Use it to explain which packets share a label and LSP in an MPLS network.
Forwarding Equivalence Class
A Forwarding Equivalence Class (FEC) is a group of packets that get the same MPLS forwarding treatment — typically all packets to one destination prefix — and therefore the same label.
1. A FEC is a group of packets forwarded the same way, usually one IGP prefix.
2. LDP binds one label per FEC.
3. Loopback /32s are the key FECs for PE reachability.
4. Summarising PE loopbacks breaks LSPs.
5. Check bindings exist per FEC.
IGP prefix → FEC → label binding → LFIB entry
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show mpls forwarding-table 10.0.0.5 32 detailVerification & 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 Commands Verify boundary
show mpls forwarding-table 10.0.0.5 32 detail
show mpls ldp bindings 10.0.0.5 32
All packets to one FEC (normally one IGP prefix) get the same label and follow the same LSP.
Step 2 Verification and what it shows Verify boundary
Choose one exact prefix/FEC and trace IGP route, local/remote label binding and LFIB push/swap/pop across adjacent LSRs. Keep the same FEC throughout the test. An LDP neighbor shows a control adjacency only, but it does not show the selected FEC has a usable binding or that the end service is reachable.
Step 3 Observation → implication → next check Narrow the fault
Observation → implication → next check: missing route to the FEC stops before label distribution. IGP route present but no label binding moves to LDP/session/export policy. Binding present without LFIB action moves to label programming. Correct LFIB with service failure moves to egress/VRF or higher-layer service.
Step 4 Common mistakes Narrow the fault
- Expecting per-flow paths — packets of one FEC share an LSP.
- Summarising PE loopbacks, which breaks LSPs.
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.
show mpls forwarding-table <prefix>— label for one FECshow mpls ldp bindings <prefix> <mask>— local and remote labels
ReferenceWhy it matters1 section · depth on demand
How it works in operation
A Forwarding Equivalence Class groups packets that receive the same MPLS forwarding treatment, commonly by destination prefix in basic LDP transport. The FEC is a control-plane classification concept; the actual forwarding evidence is the label binding and LFIB action installed for that FEC on each hop.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
Forwarding Equivalence Class (FEC)
A FEC is a group of packets that are forwarded the same way: same path, same treatment. RFC 3031 explains that in MPLS a packet is assigned to a FEC only once, at the edge of the network, and the FEC is then represented by a label, so routers further along don't need to classify the packet again.
Typical FECs
| FEC | Example |
|---|---|
| IP prefix | All packets to 10.255.0.4/32 (an egress PE loopback) |
| VPN route | A customer prefix in a VRF, identified by a VPN label |
| Pseudowire | One Ethernet attachment circuit |
| Traffic-engineered path | Traffic mapped to a specific TE tunnel |
| QoS class | Traffic of one class sent over a particular LSP |
FEC to label to next hop (RFC 3031)
| Table | Maps |
|---|---|
| FTN (FEC-to-NHLFE) | Unlabelled packets at the ingress: FEC to label operation and next hop |
| ILM (Incoming Label Map) | Labelled packets: incoming label to label operation and next hop |
| NHLFE | Next hop, label stack operation, encapsulation |
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
remote binding: lsr: 10.255.0.3:0, label: 21
PE1# show ip cef 10.255.0.4/32
10.255.0.4/32
nexthop 10.0.12.2 GigabitEthernet0/0/1 label 17
The FEC is 10.255.0.4/32. PE1 has its own local binding (24) and learned bindings from two neighbours; CEF uses the one from the IGP next hop.
Why FECs matter
| Benefit | Detail |
|---|---|
| One classification | Edge does the complex lookup once |
| Aggregation | Many destinations share one FEC towards an egress |
| Services | VPNs and TE are defined by how traffic maps to FECs |
Default FEC behaviour with LDP
On Cisco IOS, LDP binds labels to IGP prefixes by default. Restricting bindings to PE loopbacks (mpls ldp label allocate global host-routes) reduces label usage in large networks.
Documented example, not captured output.
Quick reference
A Forwarding Equivalence Class (FEC) is a group of packets that are forwarded the same way through the MPLS network, typically everything heading for the same exit router. Each router binds one label to each FEC. Because the FEC is normally the exit router's loopback address, that address must be advertised with its exact /32 prefix for the label-switched path to work.
A Forwarding Equivalence Class groups packets forwarded the same way through the MPLS network — typically all packets to the same egress prefix (the PE loopback /32 in L3VPN cores). One label is bound per FEC per router.
This is why PE loopbacks must be advertised as /32 in the IGP: summarising them breaks the label-switched path because the FEC no longer matches the label binding.
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 → Forwarding Equivalence Class. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc3031.html · confidence 94%