IPv6 packet headers, hop limit and path MTU
Read the fixed 40-byte header
Every IPv6 packet starts with a 40-byte base header. Version identifies IPv6; Traffic Class carries traffic-treatment bits, Flow Label can identify a flow, Payload Length normally counts bytes after the base header (including extension headers), Next Header identifies what follows, and Hop Limit bounds forwarding. Source and destination each occupy 16 bytes. The base header has no header checksum. The following field layout is an offline diagram, not a capture. Special jumbograms are outside this lesson.
Byte 0-3: Version (4) | Traffic Class (8) | Flow Label (20)Byte 4-5: Payload Length (16)Byte 6: Next Header (8)Byte 7: Hop Limit (8)Byte 8-23: Source Address (128)Byte 24-39: Destination Address (128)Numbers in parentheses are bits.Follow Next Header and Hop Limit
Next Header can name a transport protocol directly or identify an extension header. Each relevant extension header identifies the following header. In this example a destination-options header of eight bytes precedes a UDP datagram with an eight-byte UDP header and 24 data bytes. Payload Length is 40 bytes and the IPv6 packet totals 80 bytes, excluding link-layer framing. A router decrements Hop Limit when forwarding; with initial 3, two successful forwarding steps leave 1, and a third router must discard rather than forward at zero. Hop Limit measures forwarding steps, not elapsed seconds. An ICMPv6 Time Exceeded response may provide diagnostic evidence.
IPv6 (40 B, Next Header 60) -> Destination Options (8 B, Next Header 17) -> UDP (8 B header + 24 B data)Payload Length = 8 + 8 + 24 = 40 BTotal = 40 + 40 = 80 BUnderstand path MTU and fragmentation
MTU is the maximum IP packet size a link can carry without IP fragmentation in this context. Path MTU is the smallest relevant link MTU along a path. IPv6 requires links to support at least 1280 bytes at the IPv6 layer (smaller underlying links need adaptation). Routers do not fragment IPv6 packets. If a router cannot forward a packet because it exceeds the next link MTU, it discards it and sends an ICMPv6 Packet Too Big message subject to applicable protocol rules. The sender can reduce packet size, or when appropriate create fragments with a Fragment extension header; the destination reassembles them. Prefer appropriately sized packets rather than relying on fragmentation. Blocking all ICMPv6 can break path MTU discovery. The table below assumes no tunnels, no extension headers and an ordinary UDP header.
Path links: 1500 -> 1280 -> 1500 BPath MTU: 1280 BMaximum UDP data: 1280 - 40 - 8 = 1232 BWith 1300 B UDP data: 1348 B packet (too large)Diagnose a size-dependent failure
A small request may work while a larger one fails. Compare packet size to the path limit, account for extension headers and encapsulation, and look for Packet Too Big evidence in authorized lab traces. Do not interpret absence of that message as proof the path is healthy; loss or filtering can hide it. Avoid changing real firewalls to test this lesson. Practice computing the maximum UDP data for a 1500-byte path with an eight-byte extension header. Next chapter explains ARP, Neighbor Discovery and ICMP.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IPv6 packet headers, hop limit and path MTU — knowledge check
Apply IPv6 concepts to fictional offline scenarios.
How large is the IPv6 base header?
An IPv6 packet has an 8-byte extension header, 8-byte UDP header and 24 data bytes. What is Payload Length?
A router receives a packet to forward with Hop Limit 1. What happens?
Which node creates IPv6 fragments if needed?
For a 1280-byte path MTU, what is the maximum UDP data without extension headers?