chapter
    IPv4 Addressing, Subnetting, NAT and Fragmentation Short Notes for GATE CS

    IPv4 Addressing, Subnetting, NAT and Fragmentation short notes for GATE CS: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved p

    ipv4 addressing subnetting nat and fragmentation short notes

    Summary: IPv4 Fragmentation Quick Reference

    Quick Reference

    Original Data
    Total Length IP Header (usually 20 bytes).
    Max Data per Fragment
    MTU IP Header.
    Adjusted Max Data ()
    Largest multiple of 8 Max Data per Fragment.
    Number of Fragments
    \lceil \text{Original Data} / D_{max} \rceil
    Fragment Offset
    (Starting byte of data in original datagram) .
    MF Flag
    1 for all fragments except the last one (which is 0).
    DF Flag
    1 means do not fragment; drop and send ICMP error if too large.
    Multi-router Rule
    Each fragment is evaluated independently against the new MTU. All sub-fragments share the original Identification number.

    Summary: Header Modifications and NAT

    Quick Reference Summary

    Header Modifications at a Router

    • TTL: Always decremented by 1. (Packet dropped if it reaches 0).
    • Header Checksum: Always recalculated if any header field changes.
    • Source/Dest IP: Unchanged by standard routers. Modified by NAT routers.
    • Protocol: Never changed in transit.

    The Protocol Field

    1 → ICMP 6 → TCP 17 → UDP

    Network Address Translation (NAT)

    • Purpose: Conserves public IPv4 addresses by allowing many private hosts to share one public IP.
    • Private Ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
    • NAPT / PAT: Translates both IP and Port numbers. Uses a translation table to map internal (IP, Port) to external (IP, Port).
    • Side Effect: NAT modifies the IP (and Port), which means the TCP/UDP checksum must also be recalculated by the NAT router, as the pseudo-header has changed.

    Summary: CIDR and Subnetting Cheat Sheet

    Final Revision Checklist

    Total Addresses
    Usable Hosts
    Prefix Length
    Valid Start IP Multiple of
    Valid Mask Contiguous 1s then 0s
    Routing Tie-breaker Longest Prefix
    Free preview ends here

    Login to view the complete short notes

    Creating an account is free. You get the rest of this chapter, step-by-step solutions, and a study plan built around the topics you are actually weak at.

    Why MastersUp

    Personalised first. High quality throughout.

    Most platforms hand everyone the same content. Here the content moves with your performance, topic by topic.

    Built around you, not around a syllabus PDF

    Every answer you give moves your topic-level intelligence rate. The next question, the next revision card and tomorrow's plan all change with it.

    Revision that hits your weak spots

    We only revise topics you have actually attempted and are still below the safe bar on — never the same chapter on repeat.

    Questions calibrated to the real exam

    Each question carries a measured toughness. You are served a rung above your current level, so practice keeps stretching you.

    Notes written for recall, not for volume

    Full lesson cards for first study, curated short-note cards for the last mile — with derivations, traps and exam patterns marked.

    One place for everything

    Notes, chapter practice, previous-year questions, test series and full-length papers — all feeding one picture of your preparation.

    Honest progress

    No vanity streaks. Progress here means chapters mastered and accuracy that held up on harder questions.

    Unlock the whole course

    Full notes and short notes, the complete question bank with worked solutions, mock tests, full-length papers, and an adaptive plan that rebuilds itself as you improve.

    IPv4 Addressing, Subnetting, NAT and Fragmentation Short Notes for GATE CS

    IPv4 Addressing, Subnetting, NAT and Fragmentation short notes for GATE CS: 3 study cards covering concepts, formulas, shortcuts and exam traps, plus solved practice questions.

    Summary: IPv4 Fragmentation Quick Reference

    Quick Reference

    Original Data
    Total Length IP Header (usually 20 bytes).
    Max Data per Fragment
    MTU IP Header.
    Adjusted Max Data ()
    Largest multiple of 8 Max Data per Fragment.
    Number of Fragments
    \lceil \text{Original Data} / D_{max} \rceil
    Fragment Offset
    (Starting byte of data in original datagram) .
    MF Flag
    1 for all fragments except the last one (which is 0).
    DF Flag
    1 means do not fragment; drop and send ICMP error if too large.
    Multi-router Rule
    Each fragment is evaluated independently against the new MTU. All sub-fragments share the original Identification number.

    Summary: Header Modifications and NAT

    Quick Reference Summary

    Header Modifications at a Router

    • TTL: Always decremented by 1. (Packet dropped if it reaches 0).
    • Header Checksum: Always recalculated if any header field changes.
    • Source/Dest IP: Unchanged by standard routers. Modified by NAT routers.
    • Protocol: Never changed in transit.

    The Protocol Field

    1 → ICMP 6 → TCP 17 → UDP

    Network Address Translation (NAT)

    • Purpose: Conserves public IPv4 addresses by allowing many private hosts to share one public IP.
    • Private Ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16.
    • NAPT / PAT: Translates both IP and Port numbers. Uses a translation table to map internal (IP, Port) to external (IP, Port).
    • Side Effect: NAT modifies the IP (and Port), which means the TCP/UDP checksum must also be recalculated by the NAT router, as the pseudo-header has changed.

    Summary: CIDR and Subnetting Cheat Sheet

    Final Revision Checklist

    Total Addresses
    Usable Hosts
    Prefix Length
    Valid Start IP Multiple of
    Valid Mask Contiguous 1s then 0s
    Routing Tie-breaker Longest Prefix

    More short notes in this unit