ArticleslgStudy

computer science

Path MTU Discovery

Path MTU Discovery is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Path MTU Discovery rather than just read about it. In short: Path MTU Discovery (PMTUD) is a technique in computer networking for determining the maximum transmission unit (MTU) size on the network path between two Internet Protocol (IP) hosts, so that packets can be sent at the largest size without being fragmented in transit. It was defined for IPv4 in RFC 1191, which builds on the ICMP "Fragmentation Needed" error messages that routers send when a packet exceeds the MTU of…

Key takeaways

  • Path MTU Discovery belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Path MTU Discovery to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Path MTU Discovery from memory before moving on to harder problems.

Reference excerpt

Path MTU Discovery (PMTUD) is a technique in computer networking for determining the maximum transmission unit (MTU) size on the network path between two Internet Protocol (IP) hosts, so that packets can be sent at the largest size without being fragmented in transit. It was defined for IPv4 in RFC 1191, which builds on the ICMP "Fragmentation Needed" error messages that routers send when a packet exceeds the MTU of the next hop. A sending host starts from the MTU of its first-hop link and lowers its estimate whenever an ICMP error reports a smaller limit along the path; IPv6 works the same way using ICMPv6 Packet Too Big messages, since its routers never fragment packets.RFC 8201 As an extension to the standard path MTU discovery, a technique called Packetization Layer Path MTU Discovery works without support from ICMP.

Implementation For IPv4 packets, Path MTU Discovery works by setting the Don't Fragment (DF) flag bit in the IP headers of outgoing packets. Then, any device along the path whose MTU is smaller than the packet will drop it, and send back an Internet Control Message Protocol (ICMP) Fragmentation Needed (Type 3, Code 4) message containing its MTU, allowing the source host to reduce its path MTU appropriately. The process is repeated until the MTU is small enough to traverse the entire path without fragmentation. As IPv6 routers do not fragment packets, there is no Don't Fragment option in the IPv6 header. For IPv6, Path MTU Discovery works by initially assuming the path MTU is the same as the MTU on the link layer interface where the traffic originates. Then, similar to IPv4, any device along the path whose MTU is smaller than the packet will drop the packet and send back an ICMPv6 Packet Too Big (Type 2) message containing its MTU, allowing the source host to reduce its path MTU appropriately. The process is repeated until the MTU is small enough to traverse the entire path without fragmentation. If the path MTU changes after the connection is set up and becomes lower than the previously determined path MTU, the first large packet will cause an ICMP error and the new, lower path MTU will be found. If the path changes and the new path MTU is larger, the source will not learn about the increase, because all routers along the new path will be capable of relaying all packets that the source sends using the originally determined, lower path MTU.

Problems Many network security devices block all ICMP messages for perceived security benefits, including the errors that are necessary for the proper operation of PMTUD. This can result in connections that complete the TCP three-way handshake correctly but then hang when attempting to transfer data. This state is referred to as a black hole connection. Some implementations of PMTUD attempt to circumvent this problem by inferring that large payload packets have been dropped due to MTU rather than link congestion. One such scheme is standardized under RFC 8899, Datagram Packetization Layer Path MTU Discovery (DPLPMTUD). Upon loss of connectivity, DPLPMTUD utilizes probe packets of controlled sizes to probe the MTU of the path. Acknowledgement of a probe packet indicates that the path MTU is at least the size of that packet. Usage of DPLPMTUD is standardized in QUIC. However, in order for transport layer protocols to operate most efficiently, ICMP Unreachable messages (type 3) should still be permitted. Some routers, including the Linux kernel and Cisco, provide an option to reduce the maximum segment size (MSS) advertised in the TCP handshake as a workaround. This is known as MSS clamping. Another problem occurs when network administrators don't properly update the MTU between two adjacent layer 3 hops if the link between these hops is composed of multiple layer 2 segments with switches between them. Usually the MTU on the outgoing L3 interface is taken from the first L2 segment. But, if the second or further segment has a lower MTU, the switch that is between will silently drop the packet without reporting back any ICMP (because only layer 3 hops can generate ICMP "packet too big"). In this case, admins should update the MTU for each outgoing L3 interface to the minimum MTU of the layer 2 segments used until the next L3 hop.

References

Worked examples

Example 1 — a first encounter with Path MTU Discovery

Start with the simplest possible case. Write down what Path MTU Discovery claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Path MTU Discovery before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Path MTU Discovery ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Path MTU Discovery

In research
Path MTU Discovery appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Path MTU Discovery in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Path MTU Discovery is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer network analysis, Internet protocols, so understanding it makes those chapters shorter.
In everyday life
Look for Path MTU Discovery outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Path MTU Discovery” →

How to study Path MTU Discovery in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Path MTU Discovery means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Path MTU Discovery out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Path MTU Discovery in simple terms?

Path MTU Discovery (PMTUD) is a technique in computer networking for determining the maximum transmission unit (MTU) size on the network path between two Internet Protocol (IP) hosts, so that packets can be sent at the largest size without being fragmented in transit. It was defined for IPv4 in RFC…

Why does Path MTU Discovery matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Path MTU Discovery?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Path MTU Discovery.

Tags

  • Computer network analysis
  • Internet protocols

Keep exploring