Network Layer ll Flashcards
Key fields in an IPv4 header
- Version (4-bit): IPv4/6
- Header Length: Typically 20 bytes (no options)
- TTL (8-bit): Prevents infinite loops; decremented by routers
- Protocol (8-bit): Identifies transport layer protocol
- Source/Dest IP (32-bit): Logical addresses
- Fragmentation Fields (ID, Flags, Offset): For packet splitting/reassembly
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
- Fixed 40-byte header: Faster processing (no checksum, optional fields)
- Is smarter with new address types: Unicast, multicast, anycast (deliver to nearest in group)
- No fragmentation: Handled by endpoints, not routers
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)