MPLS Label Stack Decoder
Paste the hex bytes of an MPLS label stack and read every entry: the label value, traffic class, bottom-of-stack bit and TTL, which entries are reserved label values, and what follows the bottom of the stack.
| Stack depth | |
|---|---|
| Bottom of stack | |
| Outermost entry | |
| Bytes after the stack | |
| Ethernet header |
| # | Label | TC | S | TTL | Meaning |
|---|
Each entry is four octets, most significant first: a 20-bit label value, the 3-bit field RFC 3032 named EXP and RFC 5462 renamed the traffic class, a one-bit bottom-of-stack flag and an 8-bit TTL. The stack runs from the outermost label to the bottom entry, the first entry whose S bit is set, and the packet the label switched path carries begins after it. Label 0 is an IPv4 explicit null (pop the stack, forward on the IPv4 header), 1 is the router alert label, 2 the IPv6 explicit null and 3 the implicit null, which a control plane distributes but never puts on the wire. RFC 3032 reserves 0 to 15; assignments in that range are the ones the IANA registry lists, such as 7 for the entropy label indicator, 13 for the generic associated channel label, 14 for the OAM alert label and 15 for the extension label, and an explicit null is only legal at the bottom while the router alert label is legal anywhere except there. A value of 16 or above is an ordinary forwarding label whose meaning comes from the label distribution protocol, so this page names no path. Frame mode reads the Ethernet header, skips VLAN tags and requires EtherType 0x8847 for unicast or 0x8848 for multicast labelled packets. The pasted bytes are trusted and nothing is captured, resolved against a control plane or sent; everything runs in your browser.