Key fields in an IPv4 header
How is the header checksum used?
Detects bit errors in the header; recomputed at each router
Why does IPv4 fragment datagrams?
Links have different MTUs. Fragments share the same ID but have unique offsets
How is the offset calculated?
Offset = (Previous Fragment’s Data Length) / 8
What is CIDR notation?
/24 means the first 24 bits are the network prefix; remaining 8 bits (/32) for hosts
How are interfaces addressed?
Each interface has a unique IP. Subnets group interfaces
What are private IP ranges?
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16 (non-routable on public internet)
Why was IPv6 introduced?
IPv4 address exhaustion. IPv6 uses 128-bit addresses (vs 32-bit)
Key IPv6 improvements
IPv4 vs IPv6
Address Size- IPv4: 32-bit, IPv6: 128-bit
Header- IPv4: Variable 20+ bytes, IPv6: Fixed 40 bytes
Fragmentation- IPv4: Routers fragment, IPv6: Senders only
Checksum- IPv4: Header checksum, IPv6: No checksum (rely on upper layers)