Use it when traffic does not follow the expected MPLS path or stops at one hop.
Label-Switched Path
A Label-Switched Path (LSP) is the one-way sequence of routers and labels that packets of a FEC follow through the MPLS network from ingress to egress LER.
1. An LSP is the label path from ingress to egress PE.
2. Unidirectional — check both directions.
3. Breaks typically at a hop with missing LDP binding.
4. MPLS ping/traceroute test the LSP itself.
5. IP traceroute shows labels on each hop.
ingress PE → LSRs swap → PHP → egress PE
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mpls ldp bindings 10.255.0.4 32Verification & 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 Checking an LSP Verify boundary
show mpls ldp bindings 10.255.0.4 32
show mpls forwarding-table 10.255.0.4
traceroute mpls ipv4 10.255.0.4/32
An LSP exists only if every hop has an LDP (or SR) label for the destination /32. A missing label on one hop turns the packet into plain IP there, which breaks VPN traffic. LDP–IGP synchronisation avoids black holes after link recovery.
Step 2 Commands Verify boundary
show mpls forwarding-table 10.0.0.5 32
traceroute mpls ipv4 10.0.0.5/32
ping mpls ipv4 10.0.0.5/32
MPLS traceroute shows labels per hop and finds where the LSP breaks.
Step 3 Common mistakes Narrow the fault
- LDP-IGP sync missing, so traffic black-holes while LDP comes up.
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.
traceroute mpls ipv4 <pe-loopback>/32— LSP traceping mpls ipv4 <pe-loopback>/32— LSP connectivitytraceroute <pe-loopback> source <loopback>— labels shown per hop
ReferenceWhy it matters1 section · depth on demand
How it works
An LSP is the path a labelled packet follows from ingress LER to egress LER. LDP builds it hop by hop from the IGP: each router binds a local label to a prefix and learns its neighbours' labels; the label from the IGP next hop is used as the outgoing label. If LDP is missing on one link, the LSP breaks there.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
Worked LSP — four routers, LDP
PE1 → P1 → P2 → PE2, destination PE2 loopback 10.255.0.4/32.
| Router | Local label for 10.255.0.4/32 | Outgoing label used | Action |
|---|---|---|---|
| PE2 (egress) | implicit-null (3) advertised | — | Receives plain IP (or VPN label) |
| P2 (penultimate) | 22 | implicit-null from PE2 | Pops the label (PHP) |
| P1 | 18 | 22 from P2 | Swaps 18 → 22 |
| PE1 (ingress) | — | 18 from P1 | Pushes 18 |
Labels are locally significant: each router chooses its own value, and only the downstream neighbour's value is put on the packet. RFC 3031 calls this downstream label assignment.
P1# show mpls forwarding-table 10.255.0.4 32
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
18 22 10.255.0.4/32 152640 Gi0/0/1 10.1.23.3
| Outgoing label column | Meaning |
|---|---|
| A number | Swap to that label |
Pop Label | This router is penultimate hop; it removes the top label |
No Label | No binding from the next hop — traffic leaves unlabelled and the LSP is broken here |
Untagged (older output) | Same as No Label |
Implicit vs explicit null
Implicit null (label 3) is never sent on the wire; it tells the upstream router to pop. Explicit null (label 0 for IPv4) keeps a label on the last hop so the EXP/TC bits for QoS survive to the egress PE (mpls ldp explicit-null).
LSPs follow the IGP
LDP does not compute paths; the LSP is the IGP shortest path. Every IGP change (link cost, failure) changes the LSP, and while LDP re-learns bindings traffic can be dropped — the reason for LDP–IGP synchronisation and LDP session protection.
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-Switched Path. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%