Use it to distinguish IGP reachability, label distribution, label forwarding and VPN service state.
MPLS Fundamentals
MPLS forwards packets through locally significant labels that map a FEC to push, swap, pop or deliver actions.
IGP routes → LDP labels → LFIB → label-switched path end to end
1. Verify IGP and router ID.
2. Verify MPLS enablement and discovery.
3. Verify LDP session.
4. Compare local/remote bindings.
5. Inspect LFIB action and data-plane counters.
6. Check service/VRF separately.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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 Verification Verify boundary
show mpls ldp neighbor (sessions up), show mpls forwarding-table (local label, outgoing label, interface) and traceroute with MPLS label output. A missing LDP session or an IGP route without a label breaks the LSP even though IP routing works.
Step 2 Common mistakes Narrow the fault
- LDP not enabled on every core interface, breaking LSPs.
- MTU too small for the label stack.
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.
Subtopics
Go one level deeper into this subject.
A locally significant shim-header value selects an MPLS forwarding action.
Subtopic Forwarding Equivalence ClassPackets sharing forwarding treatment are mapped to a FEC.
Subtopic LER / LSREdge routers impose/remove labels; transit label switch routers swap labels.
Subtopic Label-Switched PathAn LSP is the unidirectional label forwarding path through the core.
Subtopic LDPLDP distributes label bindings for IGP-reachable prefixes in a common MPLS design.
Subtopic LFIBThe label forwarding table maps incoming labels to swap/pop/push actions.
Subtopic MPLS VPN ContextMP-BGP VPN routes and VRFs are separate from basic transport labels.
Subtopic VerificationIGP, discovery/session, binding and LFIB evidence are verified in order.
- 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 interfaces— interfaces with MPLS enabledshow mpls ldp neighbor— LDP sessionsshow mpls forwarding-table— LFIB labels
ReferenceWhat it is1 section · depth on demand
How MPLS forwards
| Action | Where | What happens |
|---|---|---|
| Push (impose) | Ingress LSR (PE) | Adds a label for the FEC |
| Swap | Core LSR (P) | Replaces the label with the next hop's label |
| Pop | Penultimate hop (PHP) or egress | Removes the label |
Labels are 20 bits, locally significant and distributed by LDP (or BGP/RSVP-TE/segment routing). The label table is the LFIB. MPLS L3VPN adds a second (VPN) label so the same core carries many customer VRFs.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
MPLS fundamentals
MPLS forwards packets by short labels instead of by the IP header at every hop. RFC 3031 describes the idea: a packet is assigned to a Forwarding Equivalence Class (FEC) once, when it enters the MPLS network, the FEC is encoded as a label, and later hops forward on the label without analysing the network-layer header again.
Building blocks (RFC 3031)
| Term | Meaning |
|---|---|
| Label | Short, fixed-length, locally significant identifier for a FEC |
| FEC | Group of packets forwarded the same way |
| LSR | Label Switching Router: a router that supports MPLS |
| Ingress / egress | Edge LSRs where packets enter and leave the LSP |
| LSP | Label Switched Path through the network |
| Label stack | Several labels, last-in first-out; processing uses the top label |
Label operations
| Operation | Where |
|---|---|
| Push | Ingress: label added |
| Swap | Transit: top label replaced |
| Pop | Egress, or the penultimate hop (PHP) when the egress requests it |
Label distribution
The architecture doesn't mandate one protocol; RFC 3031 names LDP, BGP and RSVP-based extensions as examples. Labels are assigned downstream: the downstream LSR binds a label to a FEC and tells the upstream LSR.
PE1(config)# mpls label protocol ldp
PE1(config)# interface GigabitEthernet0/0/1
PE1(config-if)# mpls ip
PE1# show mpls interfaces
Interface IP Tunnel BGP Static Operational
GigabitEthernet0/0/1 Yes (ldp) No No No Yes
PE1# show mpls forwarding-table 10.255.0.4 32
Local Outgoing Prefix Bytes Label Outgoing Next Hop
Label Label or Tunnel Id Switched interface
24 17 10.255.0.4/32 120744 Gi0/0/1 10.0.12.2
What MPLS is used for
| Service | How labels help |
|---|---|
| L3VPN | A VPN label identifies the customer VRF at the egress PE |
| L2VPN / pseudowires | Ethernet carried across the core |
| Traffic engineering | Explicit paths with RSVP-TE or segment routing |
| BGP-free core | Core routers only need labels to PE loopbacks |
MPLS itself doesn't encrypt; L3VPN separation comes from labels and VRFs.
Documented example, not captured output.
Quick reference
MPLS forwards packets by short labels instead of looking up the IP destination at every hop. The first router assigns a label, core routers swap labels and forward, and the label is removed near the exit. Because the core only switches labels, it does not need to know customer routes, which is what makes MPLS VPNs possible: many separate customer networks, even with overlapping addresses, share one provider core.
MPLS forwards packets by labels instead of IP lookups in the core: ingress LER pushes a label, LSRs swap labels, egress (or penultimate hop) pops. It enables L3VPN (VRFs over a shared core), L2VPN (VPWS/VPLS/EVPN), traffic engineering and fast reroute.
mpls ip ! per interface, with LDP
mpls label protocol ldp
show mpls interfaces
show mpls ldp neighbor
show mpls forwarding-table
traceroute mpls ipv4 10.255.0.9/32
Modern cores increasingly use Segment Routing (SR-MPLS/SRv6) instead of LDP/RSVP-TE.
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. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
MPLS Fundamentals evidence chain
Configuration, operational state, counters and downstream proof remain separate.
| Boundary | Question | Evidence | Does not prove |
|---|---|---|---|
| Definition | What is configured or intended? | running configuration / controller policy | live operation |
| Local state | Is the feature active at the expected scope? | show mpls forwarding-table | remote success |
| Counters | Did controlled traffic or an event reach this stage? | scoped counters/timestamps | complete return path |
| Next boundary | What consumes or transports this state? | IGP/transport → label discovery/session → FEC binding → LFIB push/swap/pop → egress/service context | application success |