Lesson 6 of 9 · 23m
MTU, Fragmentation, and PMTUD: The Silent Stall Machine
How IP fragmentation and TCP segmentation differ, why path MTU discovery breaks in real networks, and how to recognize the classic small-requests-work-large-transfers-stall failure.
If you have operated networks long enough, you have met this incident: ping works, the TLS handshake often works, small API responses work, then large downloads stall or reset. The culprit is frequently path MTU discovery failing because some device drops the ICMP messages that make it work. It is boring, common, and still misdiagnosed as “TCP is flaky.”
Segmentation and fragmentation are different
TCP segmentation happens when the sender divides the byte stream into segments sized for the connection. IP fragmentation happens when an IP datagram is too large for a link and is split into multiple IP fragments. TCP normally tries to avoid IP fragmentation by choosing an appropriate maximum segment size.
TCP segmentation: transport-layer decision, sequence numbers still contiguous
IP fragmentation: network-layer splitting of one datagram into fragmentsIPv6 routers do not fragment packets in transit; the sender must handle path MTU correctly. That makes ICMPv6 Packet Too Big messages essential rather than optional.
The path MTU discovery contract
A sender emits packets with Don’t Fragment set. If a router cannot forward one because the next link is smaller, it sends back ICMP Fragmentation Needed or ICMPv6 Packet Too Big with the smaller size. The sender reduces packet size and retries.
ping -M do -s 1472 203.0.113.10 # IPv4: test 1500-byte path including headers
ping -M do -s 1452 203.0.113.10 # typical lower test for tunnel overheadWhen a firewall administrator “blocks ICMP for security,” they often break this control loop. The SYN gets through because it is small. Data packets vanish only after they grow.
Recognize the capture signature
At the client you may see a successful handshake, then repeated retransmission of large segments with no ACK. At the server you may never see the large segments arrive. The strongest evidence is asymmetric: small packets pass, large packets disappear.
SYN/SYN-ACK/ACK complete
small GET succeeds
server sends full-sized segments
client retransmits or stops progressing
no ACK advance beyond the first large rangeA traceroute may also stall or omit hops, but traceroute behavior alone is not proof because many routers deprioritize or filter probe responses.
Tunnels make it worse
GRE, IPsec, WireGuard, PPPoE, and overlay networks consume bytes inside the outer packet. A host configured for 1500 may be sending into a path whose effective MTU is 1420 or lower. MSS clamping is the pragmatic workaround: rewrite the TCP MSS option during handshake so endpoints choose smaller segments.
iptables -t mangle -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtuClamping fixes TCP, not every UDP application. Applications with large UDP datagrams still need correct MTU behavior.
Field notes
- “ICMP is blocked” is not a security posture; it is often an outage generator.
- Test payload sizes deliberately. A pass at 1400 and failure at 1472 is diagnostic data.
- Do not confuse local interface MTU with path MTU; the smallest link on the path wins.
- Capture fragmentation with IP IDs and fragment offsets, not just Wireshark summaries.
- MSS is a TCP option, not the path MTU itself; understand the difference before changing it.
Was this lesson helpful?