Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Label

Direct answer

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.

When to use this

Use it when reading MPLS label stacks in captures or label tables.

First 30 seconds

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.

Operational verification

label allocated locally → advertised → used by upstream neighbour

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandshow mpls forwarding-table
Scope / prerequisiteUse it when reading MPLS label stacks in captures or label tables.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • show mpls forwarding-table — local labels
  • show mpls label range — label space
  • Reserved labels 0–15 (3 = implicit null, 0 = explicit null) — meaning
ReferenceWhat it is1 section · depth on demand

Label header

FieldBits
Label20
Traffic Class (EXP)3
Bottom of Stack (S)1
TTL8

Reserved labels: 0 (IPv4 explicit null), 2 (IPv6 explicit null), 3 (implicit null, signals PHP). Labels 16+ are assigned by LDP/BGP/SR. show mpls forwarding-table shows local and outgoing labels.

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)

FieldBitsPurpose
Label20The label value (0–1 048 575)
Traffic Class (TC, formerly EXP)3QoS marking
Bottom of Stack (S)1Set on the last label in the stack
TTL8Hop limit, copied from or to the IP TTL

Reserved values

LabelUse
0IPv4 explicit null
1Router alert
2IPv6 explicit null
3Implicit null: signals penultimate hop popping, never seen on the wire
0–15Reserved 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.

MTU

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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Reserved labels

LabelMeaning
0IPv4 Explicit NULL
1Router Alert
2IPv6 Explicit NULL
3Implicit NULL (PHP, never on the wire)
13GAL (MPLS-TP)
16+Normal labels
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 3031

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%
Confirmation

Confirm action

Continue?