← Return to Report 📚 All Topic Sources ⬇ Download Source Text

Foundations of Vanilla MPLS Architecture

Let’s strip away the engineering overhead of RSVP-TE, CSPF databases, and constraint routing to focus entirely on the core engine in its purest form: Vanilla MPLS Architecture.

When you run an architecture utilizing only basic label switching without Traffic Engineering, the network relies completely on your existing Interior Gateway Protocol (IGP) topology. The control plane drops back to a simple, deterministic mapping process where labels are handed out based on standard routing table entries.

The Vanilla Control Plane: How LDP Maps the Network

In a pure MPLS environment, LDP (Label Distribution Protocol) handles the heavy lifting of building the forwarding tables. It doesn't calculate paths; it simply shadows your IGP (OSPF or IS-IS).

IGP Convergence: First, your standard routing protocol converges normally. Every router populates its Routing Information Base (RIB) with the shortest paths to every prefix in the network based purely on metrics (cost/bandwidth).

FEC Assignment: Routers group destinations into Forwarding Equivalence Classes (FECs). Typically, a FEC corresponds to a specific IP prefix or loopback address in the routing table.

Local Label Binding: Every LSR automatically generates a unique, arbitrary 32-bit local label for every single FEC it knows about in its routing table.

Label Advertisement: Routers advertise these local-to-FEC bindings to all their directly connected LDP neighbors.

Through this exchange, every router builds a LIB (Label Information Base), which acts as a master directory of what labels its neighbors expect to see for any given destination.

The Data Plane: Building the LFIB

The actual hardware forwarding doesn’t use the raw LIB. The router takes the best path from the IGP routing table, cross-references it with the neighbor labels stored in the LIB, and bakes the result directly into line-card silicon as the LFIB (Label Forwarding Information Base).

The LFIB is a dead-simple table that dictates exact hardware actions based on three atomic operations: Push, Swap, and Pop.

Operation

Router Role

Location

Description

Push

LER (Ingress Edge)

Entry Point

Receives a raw IP packet, performs a single Longest Prefix Match lookup to find the egress FEC, inserts the 32-bit shim header, and sends it into the core.

Swap

LSR (Core Switch)

MPLS Core

Ignores the IP header completely. Looks at the incoming top label, matches it in the LFIB, overwrites it with the outbound neighbor's expected label, and switches it out the interface.

Pop

LER / LSR (Egress Edge)

Exit Point

Strips the label off entirely, exposing the underlying payload (IP packet, Ethernet frame) so it can be delivered to the final destination.

Penultimate Hop Popping (PHP): Core Optimization

In a standard packet walk, you would expect the very last router (the egress LER) to receive a labeled packet, strip the label, look at the internal IP header, perform a routing lookup, and send it out.

However, forcing an edge router to do two lookups in hardware (an MPLS lookup followed immediately by an IP lookup) creates a severe CPU/ASIC bottleneck. To optimize this, vanilla MPLS utilizes Penultimate Hop Popping (PHP):

[Ingress LER] ---> (Label: 50) ---> [Core LSR (Penultimate Hop)] ---> (Raw IP Packet) ---> [Egress LER]