MTU & IP Fragmentation
Ethernet 1500-byte MTU, jumbo frames at 9000 bytes, Path MTU Discovery, DF bit, VPN encapsulation overhead, and MSS clamping.
Overview
Overview Maximum Transmission Unit (MTU) and IP fragmentation are foundational networking concepts that become critical in cloud and overlay networking environments where encapsulation overhead can silently degrade or break connectivity.
The MTU is the largest IP packet that can be transmitted over a network link without fragmentation. Ethernet's standard MTU is 1500 bytes. This has been the dominant link MTU for decades. However, the effective MTU for application data is smaller: IP headers consume 20 bytes, TCP headers consume 20-60 bytes, leaving a Maximum Segment Size (MSS) of approximately 1460 bytes for TCP payload.
When a packet exceeds the MTU of a link in its path, one of two things happens depending on the IP header's Don't Fragment (DF) bit. If DF is not set, the router fragments the packet into smaller pieces that each fit within the MTU, then reassembles them at the destination (IPv4 only — IPv6 has removed router fragmentation entirely). If DF is set, the router discards the packet and sends an ICMP Type 3 Code 4 "Fragmentation Needed" message back to the sender, which should then reduce its packet size. This mechanism is called Path MTU Discovery (PMTUD).
Fragmentation is generally undesirable: it adds processing overhead at routers and end hosts, increases the number of packets, and any fragment loss requires retransmission of the entire original datagram. VPN and overlay encapsulation aggravate the MTU situation: an IPsec VPN adds 50-100 bytes of overhead, VXLAN adds 50 bytes, and GRE adds 24 bytes. If the outer MTU is 1500 bytes and the encapsulation adds 50 bytes, the inner payload must be 1450 bytes or less — but if inner senders assume 1500 bytes is safe, they will be setting DF and their packets will be dropped with ICMP messages that are often filtered by firewalls.
MSS clamping is the practical fix used in most VPN and tunnel deployments: a firewall or router rewrites the MSS value in TCP SYN packets to a safe value, preventing TCP endpoints from ever sending segments large enough to require fragmentation.
Key concepts
- MTU vs MSS
- DF Bit (Don't Fragment)
- Path MTU Discovery (PMTUD)
- Jumbo Frames
- MSS Clamping
Interview questions
- Explain Path MTU Discovery and how it breaks. Give a concrete example with VPN encapsulation.
- When should you enable jumbo frames in a cloud environment, and what must you verify before doing so?
Sign up free to read the full topic
More Networking topics
Start free on Cariara · Coding problems · System design studio