MPLS
Label switching, Label Switched Paths, LDP and RSVP-TE signaling, MPLS VPN services, and traffic engineering capabilities.
Overview
Overview MPLS (Multiprotocol Label Switching) is a high-performance packet forwarding technology that uses short fixed-length labels instead of long IP address lookups to forward packets. Standardized by the IETF in the early 2000s, MPLS became the backbone technology for service provider networks and enterprise WAN services for over two decades.
In traditional IP routing, each router performs a full IP lookup in the routing table for every packet. MPLS replaces this with label-based forwarding: the ingress Label Edge Router (LER) assigns a label to an incoming packet, and all subsequent Label Switching Routers (LSRs) in the MPLS network forward the packet based solely on the label using a simple table lookup — much faster than full IP routing on older hardware.
Labels are 32-bit values inserted between the Layer 2 header and Layer 3 IP header (the "shim header"). Labels can be stacked, enabling VPN services where an outer label identifies the LSP (Label Switched Path) tunnel and an inner label identifies the VPN instance (VRF).
MPLS enables several critical services: Layer 3 VPNs (RFC 4364) where service providers deliver private IP connectivity between enterprise sites, Layer 2 VPNs (VPLS, VPWS) for transparent Ethernet services, and Traffic Engineering (MPLS-TE) where explicit paths are established using RSVP-TE to guarantee bandwidth and route around congestion.
While MPLS is mature technology being replaced at the edge by SD-WAN, it remains ubiquitous in service provider cores and is still offered as a premium enterprise WAN service. Understanding MPLS VPN architecture is directly applicable to understanding how AWS Direct Connect Virtual Interfaces and Transit VIFs work under the hood.
Key concepts
- Label Switching Router (LSR)
- LDP (Label Distribution Protocol)
- RSVP-TE (Resource Reservation Protocol - Traffic Engineering)
- MPLS L3VPN (RFC 4364)
Interview questions
- Explain how MPLS L3VPN works end-to-end. How does a packet from a branch office reach another branch in the same VPN?
Sign up free to read the full topic
More Networking topics
Start free on Cariara · Coding problems · System design studio