What is MTU? Packet size and path problems explained
Small pages open, but large downloads hang, or a site stops loading as soon as you switch on a VPN. A packet-size limit is a likely suspect. MTU, the maximum transmission unit, is the largest packet an interface or link can carry without splitting it at that layer. On Ethernet it is commonly 1500 bytes, tunnels and some other links allow less, and a connection has to fit within the limits of the path it actually takes.
The MTU on your network card is not the MTU of the whole path
The number shown for a network interface describes its own link. It says nothing certain about every hop to a remote server. The value that matters end to end is the path MTU: the largest IP packet that can cross a particular path without being split. It can differ between destinations and even between the two directions of one connection.
Tunnels are the usual reason it shrinks. A VPN wraps each packet in outer headers, and those headers need space. If the inner packet is already as large as the outer link allows, the wrapped packet is too big.
MTU does not limit file size or speed
Applications transfer files of any size, because the transport layer cuts the data into segments that fit. In TCP, the maximum segment size (MSS) is the amount of data in one segment. It is smaller than the MTU because the IP and TCP headers need room too. With a 1500-byte MTU and the basic 20-byte IPv4 and 20-byte TCP headers, 1460 bytes are left for data. That figure holds only for that case: header sizes and tunnels change it, so do not calculate MSS from a memorised number without looking at the real path.
How two computers find the largest packet that fits
Path MTU Discovery relies on routers reporting that a packet is too large. IPv4 and IPv6 handle this differently. In IPv4, a packet can be marked “do not fragment”, and a router that cannot forward it reports that fragmentation is needed. In IPv6, routers along the way never fragment packets. They send back an ICMPv6 Packet Too Big message. In both cases the sender then lowers its packet size. Some implementations also probe with packets of different sizes to find one that works.
RFC 1191 specifies Path MTU Discovery for IPv4, and RFC 8201 covers IPv6.
Why small requests work and large responses stall
If a firewall on the path blocks those “too large” messages, the sender never learns that it must send smaller packets. Short exchanges fit and pass. A large response fills full-size packets, they are dropped silently, and the transfer hangs. The result is a puzzling fault in which a connection opens and then freezes.
Testing for an MTU problem
If failures occur only through a VPN, or a site loads partly while larger transfers hang, compare the same task with and without the tunnel. Note the interface, the destination and the symptoms.
Ping can send probes of a chosen size with fragmentation forbidden. On Linux, ping -M do -s 1472 followed by the host name sends a 1472-byte payload. With 8 bytes of ICMP header and 20 bytes of IPv4 header that makes exactly 1500 bytes. The Windows equivalent is ping -f -l 1472. Syntax varies between systems. If the probe fails, reduce the size step by step until replies return. ICMP may be filtered on the way, so use this and other ping and traceroute tests as supporting evidence and not as a final verdict.
Before you lower the MTU everywhere
Do not reduce MTU on every device without a hypothesis. Check the tunnel settings and whether the relevant ICMP messages get through, change one setting at a time and retest the application. An unnecessarily small MTU means more headers for the same data and lower efficiency. If the bottleneck lies outside your control, give the provider an example they can reproduce.