1. The Routing Bottleneck in Carrier Backbones
In standard IP routing, every router independently parses the destination IP address of each packet, performing a Longest Prefix Match (LPM) search against hundreds of thousands of BGP routing entries. This lookup is computationally expensive and makes traffic routing strictly dependent on destination IP metrics.
Multiprotocol Label Switching (MPLS) decouples packet forwarding from IP header inspection:
Incoming IP Packet: [ IP Header | Payload ]
|
v (Ingress LER: PUSH 20-bit Label 100)
MPLS Frame: [ Label 100 | IP Header | Payload ]
|
v (Core LSR: SWAP Label 100 -> 250 in O(1) table lookup)
MPLS Frame: [ Label 250 | IP Header | Payload ]
|
v (Egress LER: POP Label 250)
Original IP Packet: [ IP Header | Payload ]- 1Ingress Label Edge Router (LER): Classifies arriving IP packets into a Forwarding Equivalence Class (FEC) and inserts a compact 32-bit MPLS shim header.
- 2Label Switching Routers (LSR): Examine only the 20-bit label, consult a precomputed Label Forwarding Information Base (LFIB), replace the label with an outgoing label, and forward to the next hop in constant time O(1).
- 3Egress LER: Strips the outer label and forwards the raw IP packet to the destination customer network.
2. The 32-Bit MPLS Header Structure
The MPLS label sits directly between Layer 2 (Ethernet MAC) and Layer 3 (IP):
- Label (20 bits): The forwarding identifier (0 to 1,048,575).
- Traffic Class / Exp (3 bits): Used for Quality of Service (QoS) and ECN markings.
- Bottom of Stack ($S$, 1 bit): Set to 1 if this is the innermost label in a multi-label stack (used in MPLS VPNs and segment routing).
- Time to Live ($TTL$, 8 bits): Prevents permanent forwarding loops.
3. Constraint-Based Traffic Engineering (MPLS-TE)
Standard interior gateway protocols (OSPF, IS-IS) forward traffic strictly over the lowest-metric shortest path, causing primary fiber links to congest while parallel secondary circuits sit underutilized.
MPLS-TE uses RSVP-TE (Resource Reservation Protocol with Traffic Engineering extensions) to establish explicit Label-Switched Paths (LSP). Network operators can steer high-priority streaming or financial data along deterministic, bandwidth-guaranteed paths that bypass congested shortest routes.