MTU (Maximum Transmission Unit)

The Maximum Transmission Unit (MTU) is the largest network-layer packet an interface can transmit over a link without fragmentation at that layer. The path MTU is the smallest link MTU along a particular path.

Interface MTU and path MTU

An interface MTU describes one link. A path can cross links with different limits, so a local interface set to 1500 does not prove that every destination can receive a packet of that size along its entire path.

On an ordinary Ethernet interface, an IP MTU of 1500 refers to the IP packet carried in the Ethernet payload. It does not mean that the entire Ethernet frame, including its link-layer headers and trailer, is only 1500 bytes.

Encapsulation example

Suppose an IPv4 underlay supports IP packets of 1500 bytes. A basic VXLAN overlay adds an outer IPv4 header, a UDP header, a VXLAN header and the inner Ethernet header around the inner IP packet.

Outer IPv4 header       20 bytes
UDP header               8 bytes
VXLAN header             8 bytes
Inner Ethernet header   14 bytes
Total overhead          50 bytes

1500 - 50 = 1450-byte inner IP MTU

This is an illustrative calculation, not a universal setting. IPv6 outer headers, encryption, extra encapsulation and other features change the overhead. Use the actual tunnel format and the smallest relevant underlay limit when calculating a setting.

What happens to an oversized packet

IPv4 behavior depends in part on the Don't Fragment flag and the forwarding path. IPv6 routers do not fragment transit packets. Path MTU Discovery uses feedback about a smaller limit so the sender can adapt; filtering the required ICMP messages can contribute to failures where small requests work but larger transfers stall.

Inspect without changing configuration

On Linux:

ip link show dev eth0
ip -4 route get 203.0.113.8

Check the source interface, tunnel interface and destination path rather than changing every interface to the same value. A working small ping is not a test of every packet size.

MTU is not TCP MSS

TCP Maximum Segment Size (MSS) describes TCP data, excluding IP and TCP headers. With a 1500-byte IP MTU and minimum 20-byte IPv4 and 20-byte TCP headers, the corresponding TCP payload is 1460 bytes. Options, IPv6 and encapsulation change the calculation; UDP has no TCP MSS negotiation.

References

Explore networking learning paths