Bookmarks

MTU — maximum transmission unit

The largest packet size that a link or interface will pass whole, without fragmentation.

Also: maximum transmission unit, maximum transfer unit

checked 9 Nov

All terms

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 interfaceMTU, bytesComment
Ethernet1500maximum IP packet size in a frame; most networks are configured this way
PPPoE14926 bytes of PPPoE header and 2 bytes of PPP protocol ID are subtracted from 1,500
IPv6 minimum1280every IPv6 link must carry packets of this size
Jumbo frames9001inside 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 VPNsbelow 1500part 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.

bashon the sender
# 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.5

What 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 pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • throughput

    MTU is the maximum size of a single packet in bytes, while throughput is how much data a link carries per unit of time.

In depth in the references

where the topic is covered in detail