Multiprotocol Label Switching (MPLS)

Simulation
Introduced by
IETF MPLS Working Group
Year
2001
Type
label-based forwarding paradigm
Family
Routing/forwarding

What does it do?

Multiprotocol Label Switching (MPLS) is a forwarding paradigm in which routers forward packets according to a short label attached to each packet, rather than by IP destination lookup alone.

Its architecture was specified by the IETF MPLS Working Group in RFC 3031 (2001), designed to support traffic engineering, VPN provisioning and fast rerouting in IP networks. It remains widely used in service provider backbones, while its operational cost limits its use in smaller networks.

The intuition behind the method

In conventional IP routing, each router examines the destination address and performs a longest-prefix match (LPM) against its routing table, so every hop makes an independent decision based on the address alone. MPLS moves the classification to the network edge: an ingress Label Edge Router (LER) assigns each packet to a forwarding equivalence class (FEC) and attaches a label for it. Core routers then forward on the label alone, which allows operators to route traffic along paths chosen for capacity or service reasons, and to build VPNs on top of the same core. The separation between label assignment at the edge and label switching in the core is the source of MPLS's flexibility.

History

MPLS was developed in the IETF MPLS Working Group and its architecture is specified in RFC 3031 (Rosen, Viswanathan and Callon, 2001). Requirements for traffic engineering over MPLS were set out in RFC 2702 (Awduche et al.). Segment routing later simplified path encoding by carrying the path in a stack of labels, reducing the per-path signalling that LDP and RSVP-TE require.

When to use it

Use MPLS in service provider networks where operators need explicit path control for traffic engineering, provider-provisioned VPNs such as MPLS/BGP VPNs, or precomputed fast reroute. It is most justified when the network is large enough that these capabilities outweigh the cost of running label distribution across many routers. Avoid MPLS in small networks, in environments without staff experienced in its configuration, or where ordinary destination-based IP routing already meets the requirements. Segment routing is a related approach that encodes paths as label stacks and can reduce per-path signalling; it should be evaluated as an alternative when simplifying MPLS operations is the goal.

Limitations and considerations

  • Operational complexity: LSP configuration, label distribution and troubleshooting require specialist expertise.
  • Packet overhead: the MPLS label adds at least 4 bytes to each packet.
  • Scalability: the number of LSPs and their associated state grows with the number of paths and routers, which can make large deployments difficult to manage.
  • Limited visibility: because the IP header is not examined in the core, monitoring and security tools that rely on IP headers in transit may see less of the traffic.
  • Uneven adoption: MPLS is mature in service provider networks but is uncommon in enterprise networks.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Explicit path control: with RSVP-TE, the ingress router can place traffic on paths that shortest-path IP routing would not select, supporting load balancing and congestion avoidance.
  • Fast reroute: precomputed backup LSPs can take over traffic when a protected link or node fails. Recovery time depends on the implementation and configuration, so it should be verified on the target platform.
  • VPN support: MPLS/BGP VPNs let a provider carry several customers' routes over a shared core while keeping them separate.
  • Forwarding in the core depends on the label rather than on IP header inspection, so core routers perform an exact match on a single label value instead of a longest-prefix match.
  • Label values can be mapped to QoS classes, so the core can apply per-class treatment without re-classifying each packet from its IP header.

Applications

  • ISP backbone traffic engineering: distributing traffic across multiple links to balance load and avoid congestion.
  • MPLS/BGP VPNs: provider-provisioned virtual private networks for enterprise customers.
  • Fast reroute: precomputed backup LSPs that protect against link or node failures; recovery time depends on implementation and configuration and should be verified on the target platform.
  • Inter-AS VPNs: extending VPN services across the networks of more than one provider.
  • Segment routing: path control using source-imposed label stacks, which reduces the per-LSP state held in the core.

How it works

How it works

1

An IP packet arrives at the ingress Label Edge Router (LER), which examines its destination and maps it to a forwarding equivalence class (FEC). The LER then selects the label bound to that FEC.

2

The label, which is 20 bits long, is inserted as a shim header between the link-layer and IP headers. The label is significant only on the link on which it is carried, so it is locally assigned to each router.

3

Label Switch Routers (LSRs) in the network core use the incoming label, rather than the IP destination address, to index their label forwarding information base (LFIB).

4

Each LFIB entry maps an incoming label to an outgoing label and an outgoing interface. The LSR swaps the label and forwards the packet, and the egress LER removes the label and delivers the IP packet.

5

Label bindings are distributed by signalling protocols. LDP builds label paths that follow the routing tables of the interior gateway protocol, while RSVP-TE allows the ingress router to specify an explicit path. Interior routers switch labels without performing an IP routing lookup. To check that a forwarding path behaves as intended, confirm on each hop that the LFIB holds the expected incoming-to-outgoing label binding, trace the LSP from ingress to egress and confirm the interface used at each step, and check where the label is removed (at the egress router or, where penultimate-hop popping is used, at the preceding router). For protected paths, confirm that the backup LSP state is present before relying on it.

Common pitfalls

  • Over-designing the LSP topology: a large number of LSPs creates state at every router on their paths and makes troubleshooting harder.
  • Assuming label uniqueness across the network: labels are assigned locally and are swapped at each hop, so the same label value does not identify a path end to end.
  • Expecting fast recovery everywhere: precomputed protection applies only to protected LSPs. Without protection, recovery after a topology change depends on re-establishing LSPs and on IGP or BGP convergence, which is typically slower and should be verified in the target network.
  • Mixing MPLS and plain IP routing without clear roles for each: hybrid designs can produce asymmetric or unexpected paths and are harder to operate.
  • Treating segment routing as a drop-in replacement for LDP or RSVP-TE without checking the control-plane design, since the two approaches distribute path information differently.

Frequently asked questions

What is a forwarding equivalence class (FEC)?

An FEC is a group of packets that receive the same forwarding treatment and are therefore mapped to the same label and LSP. FECs are defined by match criteria such as an IP destination prefix, and can be defined more finely, for example per flow.

How is an LSP established?

LSPs are set up by label distribution protocols. LDP builds label paths hop by hop, following the routing tables of the interior gateway protocol. RSVP-TE allows the ingress router to specify an explicit path, which is what enables traffic engineering.

What is segment routing (SR)?

Segment routing encodes the path as a stack of segment identifiers, which the ingress router attaches to the packet. Intermediate routers therefore do not need per-LSP state for each path. At each segment endpoint the active segment is processed and the stack is updated; it is not simply a pop of the top label at every hop.

Why is MPLS less common in data centers than in ISP networks?

Operators often choose simpler IP designs for data center fabrics, which is a design preference rather than a technical requirement. MPLS-based VPNs are still used to connect geographically distributed data centers.

Related methods

Sources

  1. Rosen, E. C., Viswanathan, A., & Callon, R. (2001). Multiprotocol Label Switching Architecture. RFC 3031.

    Open publication reference
  2. Awduche, D. O., Malcolm, J., Agogbua, J., et al. (2002). Requirements for Traffic Engineering over MPLS. RFC 2702.

    Open publication reference