Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

MPLS Fundamentals

Direct answer

MPLS forwards packets through locally significant labels that map a FEC to push, swap, pop or deliver actions.

When to use this

Use it to distinguish IGP reachability, label distribution, label forwarding and VPN service state.

First 30 seconds

1. MPLS forwards on labels instead of IP lookups in the core.

2. IGP must carry loopbacks; LDP distributes labels for them.

3. Each LSR swaps labels using the LFIB.

4. PHP pops the label one hop before the egress.

5. Check MTU for label overhead (4 bytes per label).

Evidence · next step

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.

Continue only after interpreting the current observation.
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
Scope / prerequisiteUse it to distinguish IGP reachability, label distribution, label forwarding and VPN service state.
What next?3 suggested next steps
Child topics (this level)8
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 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 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.

command output · 1
Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

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 interfaces — interfaces with MPLS enabled
  • show mpls ldp neighbor — LDP sessions
  • show mpls forwarding-table — LFIB labels
ReferenceWhat it is1 section · depth on demand

How MPLS forwards

ActionWhereWhat happens
Push (impose)Ingress LSR (PE)Adds a label for the FEC
SwapCore LSR (P)Replaces the label with the next hop's label
PopPenultimate hop (PHP) or egressRemoves 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)

TermMeaning
LabelShort, fixed-length, locally significant identifier for a FEC
FECGroup of packets forwarded the same way
LSRLabel Switching Router: a router that supports MPLS
Ingress / egressEdge LSRs where packets enter and leave the LSP
LSPLabel Switched Path through the network
Label stackSeveral labels, last-in first-out; processing uses the top label

Label operations

OperationWhere
PushIngress: label added
SwapTransit: top label replaced
PopEgress, 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

ServiceHow labels help
L3VPNA VPN label identifies the customer VRF at the egress PE
L2VPN / pseudowiresEthernet carried across the core
Traffic engineeringExplicit paths with RSVP-TE or segment routing
BGP-free coreCore routers only need labels to PE loopbacks

MPLS itself doesn't encrypt; L3VPN separation comes from labels and VRFs.

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.

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
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. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%
Terminology layer

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.

Aliases that resolve here
multiprotocol label switchingMPLS LDP LFIBlabel switched path
Embedded reference data

Quick lookup tables

MPLS Fundamentals evidence chain

Configuration, operational state, counters and downstream proof remain separate.

BoundaryQuestionEvidenceDoes not prove
DefinitionWhat is configured or intended?running configuration / controller policylive operation
Local stateIs the feature active at the expected scope?show mpls forwarding-tableremote success
CountersDid controlled traffic or an event reach this stage?scoped counters/timestampscomplete return path
Next boundaryWhat consumes or transports this state?IGP/transport → label discovery/session → FEC binding → LFIB push/swap/pop → egress/service contextapplication success
Confirmation

Confirm action

Continue?