Use it when reading MPLS label stacks in captures or label tables.
Label
An MPLS label is a 20-bit value in a 4-byte shim header between Layer 2 and IP; it is locally significant to each router and tells the next router how to forward the packet.
1. An MPLS label is 20 bits within a 32-bit shim (label, TC, S bit, TTL).
2. Labels are locally significant.
3. Labels 0–15 are reserved.
4. Stacking: S bit marks the bottom.
5. TTL is copied from IP by default.
label allocated locally → advertised → used by upstream neighbour
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mpls forwarding-tableVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Seeing labels Verify boundary
show mpls forwarding-table
show mpls ldp bindings
traceroute 10.255.0.4 ! shows labels on MPLS hops
Pop Label in the outgoing column means PHP; No Label means the packet leaves unlabelled (LSP break if unexpected).
Step 2 Common mistakes Narrow the fault
- Not accounting for 4 bytes per label in MTU.
- Confusing local and outgoing labels.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Labels are locally significant and normally change hop by hop
- LERs impose/remove labels; LSRs swap labels
- LDP commonly follows IGP reachability, so router-ID/transport reachability must work first
- LIB/control-plane bindings and LFIB/data-plane actions are separate
- Penultimate-hop popping is normal; MPLS VPN requires additional VRF/MP-BGP state.
show mpls forwarding-table— local labelsshow mpls label range— label space- Reserved labels 0–15 (3 = implicit null, 0 = explicit null) — meaning
ReferenceWhat it is1 section · depth on demand
ReferenceWhy it matters1 section · depth on demand
When to use it
Use it to distinguish IGP reachability, label distribution, label forwarding and VPN service state.
ReferenceImportant terms & boundaries3 sections · depth on demand
Quick reference
An MPLS label is a small header inserted between the Ethernet and IP headers. Besides the label value it carries a QoS field, a bottom-of-stack flag and a TTL. Labels can be stacked, which is how services are built: the outer label carries the packet across the core, the inner label tells the exit router which VPN the packet belongs to.
An MPLS label is a 32-bit shim header: 20-bit label value, 3-bit traffic class (EXP, QoS), 1-bit bottom-of-stack, 8-bit TTL. Labels 0–15 are reserved (0 IPv4 explicit null, 3 implicit null → penultimate hop popping).
Label stacks carry service information: in L3VPN the outer (transport) label reaches the egress PE, the inner (VPN) label identifies the VRF. Each label adds 4 bytes — core MTU must allow the stack (e.g. 1500 + 8–12 bytes).
In depth
The MPLS label
RFC 3031 defines a label as a short, fixed-length, locally significant identifier that represents a FEC; it's never an encoding of the address itself. Locally significant means the same label value can mean different things on different routers: label 24 on one LSR has nothing to do with label 24 on its neighbour.
The 32-bit label entry (shim header)
| Field | Bits | Purpose |
|---|---|---|
| Label | 20 | The label value (0–1 048 575) |
| Traffic Class (TC, formerly EXP) | 3 | QoS marking |
| Bottom of Stack (S) | 1 | Set on the last label in the stack |
| TTL | 8 | Hop limit, copied from or to the IP TTL |
Reserved values
| Label | Use |
|---|---|
| 0 | IPv4 explicit null |
| 1 | Router alert |
| 2 | IPv6 explicit null |
| 3 | Implicit null: signals penultimate hop popping, never seen on the wire |
| 0–15 | Reserved range |
Stacks (RFC 3031)
A packet can carry several labels as a last-in, first-out stack, and forwarding always uses the top label. An unlabeled packet has stack depth 0. In an L3VPN, the outer label leads to the egress PE and the inner label selects the VRF.
P1# show mpls forwarding-table labels 24 detail
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
24 Pop Label 10.255.0.4/32 88214 Gi0/0/2 10.0.24.4
MAC/Encaps=14/14, MRU=1504, Label Stack{}
PE1# show mpls ldp bindings 10.255.0.4 32
lib entry: 10.255.0.4/32, rev 12
local binding: label: 24
remote binding: lsr: 10.255.0.2:0, label: 17
Pop Label on P1 is penultimate hop popping: the egress advertised implicit null.
Label scope (RFC 3031)
Labels may be per-platform (unique across the LSR) or per-interface under specific point-to-point conditions. Cisco IOS uses a per-platform label space for most interfaces, visible as :0 in the LDP identifier.
Each label adds 4 bytes. Core links need an MPLS MTU large enough for the label stack, or large packets are dropped or fragmented.
Documented example, not captured output.
Reserved labels
| Label | Meaning |
|---|---|
| 0 | IPv4 Explicit NULL |
| 1 | Router Alert |
| 2 | IPv6 Explicit NULL |
| 3 | Implicit NULL (PHP, never on the wire) |
| 13 | GAL (MPLS-TP) |
| 16+ | Normal labels |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Routing → MPLS Fundamentals → Label. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%