Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Label-Switched Path

Direct answer

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.

When to use this

Use it when traffic does not follow the expected MPLS path or stops at one hop.

First 30 seconds

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.

Operational verification

ingress PE → LSRs swap → PHP → egress PE

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 ldp bindings 10.255.0.4 32
Scope / prerequisiteUse it when traffic does not follow the expected MPLS path or stops at one hop.
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.

3 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 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 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
  • traceroute mpls ipv4 <pe-loopback>/32 — LSP trace
  • ping mpls ipv4 <pe-loopback>/32 — LSP connectivity
  • traceroute <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.

RouterLocal label for 10.255.0.4/32Outgoing label usedAction
PE2 (egress)implicit-null (3) advertised—Receives plain IP (or VPN label)
P2 (penultimate)22implicit-null from PE2Pops the label (PHP)
P11822 from P2Swaps 18 → 22
PE1 (ingress)—18 from P1Pushes 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 columnMeaning
A numberSwap to that label
Pop LabelThis router is penultimate hop; it removes the top label
No LabelNo 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
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-Switched Path. 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?