Every link has a limit on packet size: for classic Ethernet it is 1,500 bytes. Along the path from sender to receiver there are narrower links, such as a tunnel, PPPoE or a VPN. Large packets are then dropped and connections hang. Path MTU Discovery helps find the bottleneck and choose suitable sizes.
Typical MTU values
| Link or interface | MTU, bytes | Comment |
|---|---|---|
| Ethernet | 1500 | maximum IP packet size in a frame; most networks are configured this way |
| PPPoE | 1492 | 6 bytes of PPPoE header and 2 bytes of PPP protocol ID are subtracted from 1,500 |
| IPv6 minimum | 1280 | every IPv6 link must carry packets of this size |
| Jumbo frames | 9001 | inside a data centre; in AWS, between instances in the same network where the whole path is known; towards the internet, 1,500 at most |
| Tunnels and VPNs | below 1500 | part of the space goes on encapsulation headers; the MTU is chosen using PMTUD |
How PMTUD works
The sender does not know in advance where the bottleneck on the path is. Path MTU Discovery (RFC 1191 and RFC 8201) works like this: the sender takes the MTU of the first hop and sends packets with the DF (Don’t Fragment) flag. A router for which the packet is too large for the next link drops it and replies with an ICMP “fragmentation needed” message carrying the next hop’s MTU. In IPv6 the Packet Too Big message does the same, because IPv6 routers never fragment packets. On receiving the message, the sender lowers its Path MTU estimate, which is the minimum MTU of all links on the path, and tries again.
# path MTU, hop by hoptracepath -n 203.0.113.5# does a full 1500-byte packet get through: 1472 data + 8 ICMP + 20 IPping -M do -s 1472 -c 3 203.0.113.5What to do about a small MTU
- Set the tunnel interface MTU to no more than the discovered Path MTU:
ip link set dev tun0 mtu 1400. - Reduce the TCP MSS (MSS clamping) so that connections do not offer segments larger than the path allows.
- Allow the ICMP “fragmentation needed” and ICMPv6 Packet Too Big messages through the firewall. They are not noise but part of the protocol.
Sources
the term is written from these pagesVerified 9 Nov