Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Forwarding Equivalence Class

Direct answer

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.

When to use this

Use it to explain which packets share a label and LSP in an MPLS network.

First 30 seconds

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.

Operational verification

IGP prefix → FEC → label binding → LFIB entry

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 forwarding-table 10.0.0.5 32 detail
Scope / prerequisiteUse it to explain which packets share a label and LSP in an MPLS network.
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.

4 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 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 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
  • show mpls forwarding-table <prefix> — label for one FEC
  • show 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

FECExample
IP prefixAll packets to 10.255.0.4/32 (an egress PE loopback)
VPN routeA customer prefix in a VRF, identified by a VPN label
PseudowireOne Ethernet attachment circuit
Traffic-engineered pathTraffic mapped to a specific TE tunnel
QoS classTraffic of one class sent over a particular LSP

FEC to label to next hop (RFC 3031)

TableMaps
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
NHLFENext 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

BenefitDetail
One classificationEdge does the complex lookup once
AggregationMany destinations share one FEC towards an egress
ServicesVPNs 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
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 → 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%
Confirmation

Confirm action

Continue?