Skip to main content
Back to blog

MTU: Finding a Limit That Nothing on the Path Announces

Technical

MTU: Finding a Limit That Nothing on the Path Announces article illustration

Your machine knows exactly how large a packet the cable or the radio in front of it will carry. Past that first link it knows nothing, and nothing along the way volunteers the answer. Two standards set out how a sender works the figure out anyway, and what separates them is how many strangers must cooperate.

Every link a packet crosses has a largest size it will carry, fixed by the technology rather than by anything you configure. A path is a run of such links, so the only size that matters end to end is the smallest one on it. Your own first hop is the easy case, because the operating system already has the number.

The rest is the part nothing tells you, and a standard said so at the time. RFC 1191, published in November 1990, describes itself in its status section as specifying “a protocol on the IAB Standards Track for the Internet community”, a phrase from before the current vocabulary settled. Its abstract offers “a technique for dynamically discovering the maximum transmission unit (MTU) of an arbitrary internet path”, and its opening names the gap it exists to fill, “the lack of a standard mechanism for a host to discover the PMTU of an arbitrary path”.

Without a mechanism, hosts guessed low. The practice the document found in place was to take “the lesser of 576 and the first-hop MTU” for anything not on your own network. Guessing low is not free. A sender pitching well under what the path would have carried is “wasting Internet resources and probably getting suboptimal throughput”, and the caution did not even buy safety, since a few paths will not carry 576 either.

One unused field, given a job

The design it proposed is almost crude, which is its merit. A sender “initially assumes that the PMTU of a path is the (known) MTU of its first hop”, then sends everything at that size with the Don’t Fragment bit set. Setting that bit withdraws permission to chop a packet up on the way, so a router that cannot pass it whole must discard it and report back.

One thing was missing from it. The message that already existed “does not report the MTU of the hop for which the rejected datagram was too big”. A sender learned that it had overshot, and nothing about by how much.

Repairing that needed one field. The authors took “a currently unused header field” in that report and gave it the number, then said how much they were asking of everyone else: “This is the only change specified for routers in support of PMTU Discovery.” That is a whole discovery mechanism bought with one new habit in the equipment between you and the far end.

That field was free because an older rule had kept it empty. Half of it stays that way, since “The high-order 16 bits remain unused, and MUST be set to zero.” The half given a meaning inherited something from the same rule: a report arriving with zero in it can only have come from a router predating the change, so a sender reads the emptiness as a version number. Housekeeping became a compatibility signal, and that mattered, since “it is not feasible to upgrade all the routers in the Internet in any finite time”.

What a sender has to remember

The figure is not a single global setting. It is held per route, and “A path is identified by a source address, a destination address and an IP type-of-service.”

Two rules bound what may be written into that store. The hard floor is stated once: “A host MUST never reduce its estimate of the Path MTU below 68 octets.” The estimate may also only ever be revised downwards on the strength of a report, and not upwards. Three reasons are given for that refusal, and one of them is an attack: what looks like a report of more headroom may be a stale copy still circulating, “a false packet injected as part of a denial-of-service attack”, or an artefact of the traffic taking more than one route.

So the mechanism can learn in one direction only. An estimate grown too large announces itself the moment the next packet bounces. An estimate that has become too small never announces anything at all, because everything fits and nothing complains: “No such mechanism exists for realizing that a stale PMTU value is too small”. The answer is to distrust the stored value on a schedule, raise it to the first hop’s figure and run the whole process again, on minimum intervals the document recommends doubling. A value that works is thrown away deliberately, because the alternative is never finding out that the path improved.

A catalogue of the ways it fell over

In September 2000 the IETF published an inventory of what had gone wrong in the field. RFC 2923 is Informational rather than a standard, and it gives every known failure the same fixed template, running from a name and a classification through to packet traces of both the broken and the working case.

Read the classification field before the description. The first entry is called Black Hole Detection, and the template does not file it under performance. It is filed as a failure to interoperate, which is a sharper verdict than slowness. The mechanism fails outright when the reports do not arrive, and the sender above it “never discovers that it needs to reduce the size of those packets”. And the consequence is unqualified: “When PMTUD fails due to the lack of ICMP messages, TCP will also completely fail under some conditions.”

The incentive this created is the part worth keeping. These situations come down to “a misconfiguration within the network, which should be corrected”, and the document then concedes what happens meanwhile. “This creates a market disincentive” for shipping the mechanism switched on, because the implementations following the standard were the ones that looked broken. A router can also be too busy to answer, because building that sort of message is not forwarding and gets handled accordingly, making it an errand the hardware hands off.

Our own throughput measurement answers in units of time rather than units of size, reporting what arrived per second and never how large any single packet was allowed to be. Put the same traffic inside a tunnel and the arithmetic shifts again, which is the version of this that a tunnel creates.

Probing instead of asking

A different answer arrived in March 2007. RFC 4821 opens its status section the modern way, as “This document specifies an Internet standards track protocol for the Internet community”. Its method inverts the dependency. “In the absence of ICMP messages, the proper MTU is determined by starting with small packets and probing with successively larger packets.”

Nothing has to be told to you, because nothing is asked. The method “does not depend on the delivery of ICMP messages”, and the techniques “do not require cooperation from the lower layers”, nor from the machine at the far end. Two paragraphs later comes the line that answers the 2000 verdict directly: “As the methods apply only to senders, variants in implementations will not cause interoperability problems.”

A lost packet is read differently depending on what it was for. Normally a drop is a congestion signal and the sender slows down, which is the ordinary reading of a dropped packet. The loss of a probe is evidence about size instead, “treated as an indication of an MTU limit, and not as a congestion indicator”. From there the sender closes in from both sides, because “Each conclusive probe narrows the MTU search range”.

This is also why a latency reading cannot settle it for you. Our own round-trip measurement describes what it sends as a small request, and the figures it hands back are timings and losses rather than sizes.

The 2007 document makes its own case in one sentence, calling the approach “more philosophically consistent with the end-to-end principle of the Internet than relying on ICMP messages containing transcribed headers of multiple protocol layers”. A sender that watches its own losses needs no favours from equipment it will never see.

The older design is still there underneath. Its authors wrote in November 1990 that “the Internet needs a simple mechanism that discovers PMTUs without wasting resources and that works before all hosts and routers are modified”. The register entry for it names no document replacing it, while the entry for the 2007 standard records that it has since been updated.