Summary

  • An ordinary ICMP error could quote the IP datagram perfectly while losing the MPLS label stack that actually decided where it went. RFC 4950 added that stack back—captured at the moment it arrived at the reporting router.
  • The fix kept the old quotation and bolted on a separately framed object. Registering the format made readers agree on structure; it did not turn locally significant labels into global identities.
  • More detail in the error never guaranteed more visible hops. Legacy parsers, TTL models, the error's own return journey and selective disclosure each kept their own veto.

The evidence was outside the quotation

Watch the sequence at the heart of RFC 4950. A label-switching router receives an MPLS-encapsulated datagram it cannot deliver. Before it can complain, it strips the entire label stack, exposing the bare IP datagram, and hands that datagram to error processing.

The ICMP message that follows can say precisely why delivery failed. It can quote the IP header and the first bytes of the original payload. What it cannot do, on its own, is describe the stack that was wrapped around the packet when it walked in the door.

That is the irony. The stack the router consulted to decide the packet's fate is the one piece of evidence the act of reporting destroys. The quotation can be letter-perfect and still answer the wrong question. It is not a corrupted record; it is a record drawn around the wrong boundary.

Published in August 2007, RFC 4950 supplied the missing context as an extension object. Selected error messages should now carry the incoming MPLS stack—while still carrying the original IP header and leading payload. The new evidence sits beside the quotation; it does not replace it.

The change was never really about longer errors. It was about preserving something the handoff into IP error processing would otherwise erase.

A quotation built to find the conversation, not the path

The older purpose is right there in RFC 792, published in September 1981. Its Time Exceeded format carried the Internet header and the first 64 bits of the original datagram's data. Those eight bytes let the receiving host tie the error to the right process; where the higher-level protocol used ports, the spec expected those numbers near the front.

That is a mechanism for matching a failure to the conversation that caused it—not a promise to reproduce every scrap of state used by the routers in between. Nor should the historical format be read as a claim that every later ICMP message quoted exactly eight payload bytes.

MPLS made the mismatch vivid. Its stack sits before the network-layer header, after the data-link headers. Quoting farther into the IP payload will never recover a stack that has already been peeled off.

RFC 3032, from January 2001, describes each stack entry as four octets, top entry first. The S bit marks the bottom. Looking up the top label yields a next hop and an operation: swap a label, pop an entry, or swap the top and push more.

These are not decorative annotations on an otherwise complete IP story. They are the state through which the router decides what happens next.

Arrival is a specific moment

RFC 4950's object makes a deliberately narrow temporal claim: one instance represents the entire MPLS stack, in the format and order in which it arrived at the router generating the error.

It does not show the outgoing stack after successful processing. It is not a snapshot of the router's configuration at whatever later moment someone reads the report. It says nothing about labels that would have applied to a different packet.

The object can be appended to Time Exceeded and Destination Unreachable messages, for both ICMPv4 and ICMPv6—not a blanket invitation to staple it onto every ICMP type.

Its object header uses Class-Num 1 and C-Type 1. Length is four octets of header plus four per stack entry, so a three-entry stack yields a sixteen-octet object. That is a constructed example, not a packet capture; the separate extension header in front of the object is not counted in the sixteen.

Each entry carries a twenty-bit label, three bits then called EXP, one S bit and eight TTL bits. In February 2009, RFC 5462 renamed EXP to Traffic Class, or TC, and clarified its use. The entry did not grow a single bit.

So a historical display can print the old field name without granting a present-day operator license to treat those bits as open experimental space. The date and meaning of a format matter as much as the numbers a tool spits out.

A shared object type is not a shared label identity

The common object class makes independently written readers agree on the shape of the report. It does not make every number inside that shape globally meaningful.

RFC 3031 defines an MPLS label as a locally significant identifier for a forwarding equivalence class—not an encoding of the network-layer destination. The binding and the label space decide what it means.

Two routers printing the same value does not establish one permanent object crossing both. A path can use different values as packets move between forwarding contexts; a repeated value can belong to different contexts.

That limit is what keeps a tidy traceroute display from being a map. A string of numbers looks easy to join up. Reading them correctly needs the reporting location and the relevant local state—not just arithmetic equality.

IANA's assignment of the extension class and subtype, recorded in RFC 4950, coordinates the vocabulary of the report. It does not allocate the labels the report describes. Standardizing how evidence travels is a smaller act than governing the network that produces it.

The boundary had to survive software already in the field

The stack object leaned on RFC 4884, published four months earlier. That document defined a multipart structure for selected ICMP messages: an original-datagram quotation, an extension header and one or more extension objects.

A reader has to know where the quotation stops. RFC 4884 supplied an eight-bit length attribute using previously reserved space—32-bit words for ICMPv4, 64-bit words for ICMPv6. With extensions present, the quoted region must hold at least 128 octets, zero-padded when the original is shorter, aligned to the right boundary.

That minimum doubled as a compatibility device. The document describes implementations built between 1999 and its publication that had already placed extensions after exactly 128 quoted octets—without ever specifying the new length attribute.

So some readers looked at a fixed position and never followed an explicit length. A new sender could quote more, but an old extension-aware reader would still look where it always had.

For senders chasing that compatibility, the practical answer was exactly 128 octets. Senders who did not care could quote more, within message-size limits. What the revised format called a minimum stayed a fixed wall for deployed software.

Backward compatibility was not free. Classic applications that knew nothing of extensions could read the added bytes as part of the quoted original. RFC 4884 examined the known fallout; it never promised every older application would shrug.

Default interpretation and the historical accommodation

A compliant application that receives a zero length attribute must normally conclude there are no extensions. Clean rule—and it misses an extension emitted by an older implementation that never set the attribute at all.

RFC 4884 therefore required compliant traceroute implementations to offer a non-default mode for the old behavior. Given a long enough message with no length, that mode could inspect the fixed spot after a 128-octet quotation and look for a valid extension version and checksum.

The exception was explicit. No ordinary interpretation had to hang on an unannounced guess; an operator could switch on a mode built to recognize one particular historical habit.

The extension header uses version 2. Its checksum is a structural check, not a cryptographic credential—an all-zero value means none was sent. Object lengths are measured in octets, header and payload included. An unrecognized object does not, by itself, make the ICMP message malformed.

That flexibility still demands careful parsing. A wrong length attribute is not a cosmetic glitch on a display; it can produce unsafe reads. A receiver needs syntax checks and a policy about which objects it understands.

And decoding the stack proves nothing about who really sent the report. Format validity, association with a probe and authentication of the source are three different questions.

Two stacks with two different jobs

Labels can enter an ICMP error by a second route, described in RFC 3032's account of returning errors through an MPLS domain.

An interior router may have no idea how to route straight back to the original IP source. One technique wraps the generated ICMP message in a label-switched envelope and sends it initially toward the original destination, until it reaches a router that knows the way home.

The label values can be copied while their TTLs are set for the new message's journey. Those labels are live forwarding state wrapped around the error report. They are not the RFC 4950 object inside it, which records the original packet's arrival state.

The distinction holds even when the values look alike. A report can preserve one packet's incoming stack while a second stack carries the report home the long way round.

A displayed round-trip time includes that return leg. Adding an incoming-stack object does not let an observer pin all the measured delay on a forward link. It enriches the evidence without erasing the asymmetry of the measurement.

More contents do not guarantee more responses

RFC 4950 pointedly declines to redefine the general relationship between ICMP and MPLS, or the TTL handling specific to each encapsulation. If that handling defeats ordinary traceroute, it defeats the enhanced form too.

RFC 3443, published in January 2003, separates the relevant TTL models. Uniform processing synchronizes inner and outer TTLs at the tunnel's entry and exit. Pipe and Short Pipe can use an outer starting value unrelated to the inner one.

An inner probe can therefore fail to provoke the hop-by-hop Time Exceeded replies its sender expects while crossing the label-switched path. That does not mean the outer TTL is unlimited, or that every possible ICMP error is banned. It means the trigger for the measurement is not guaranteed just because the response format got better.

Disclosure is a separate choice again. RFC 4950 discusses including the stack according to the ICMP message's destination—management address blocks, say—or a global setting, or the depth of the incoming stack.

An observer who gets no label line cannot, from that absence alone, name the cause. The information may never have been emitted, delivered, disclosed or recognized. No object is not proof of no MPLS.

The document said in 2007 that the mechanism was already widely deployed. That is a historical statement inside a specification—not a current census, and not evidence that every network adopted it on publication day.

The gain was real and bounded. A report could keep a forwarding context that once fell outside its quotation. It could not turn one observer's partial view into an exhaustive description of the network.