Bookmarks

MPLS — Multiprotocol Label Switching

A method of forwarding packets in operator networks: a router reads a short label placed between the link-layer and network-layer headers and sends the packet along a pre-established path.

Also: label switching, multiprotocol label switching

checked 9 Nov

All terms

An ordinary router looks up a route at every hop by the destination IP address, using the longest prefix match. In MPLS, the ingress router assigns a packet to a forwarding equivalence class once and attaches a label to it, and every later hop looks only at that label. Traffic therefore follows a defined path, without a full routing table lookup at each node.

How it works

The path that labelled traffic follows is called an LSP (Label Switched Path). It is set up in advance by a label distribution protocol such as LDP, BGP or RSVP-TE. Labels are arranged in a stack, which RFC 3031 defines as an ordered set of labels; for example, the top label is for transit across the operator’s network and the bottom one is for a particular customer’s VPN.

ElementWhat it is
LERedge router: pushes a label at the ingress and pops it at the egress
LSRtransit router: swaps the top label for the next one and forwards the packet
LSPthe path of a labelled packet through the network, from the ingress node to the egress node
FECforwarding equivalence class: a group of packets that are assigned a common label and a common path

The technology is called “multiprotocol” because its methods apply to any network protocol, not just IP. The label normally sits in a short shim header between the link-layer and network-layer headers, but it can also be carried in link-layer header fields: the VPI/VCI of ATM or the DLCI of Frame Relay.

What is built on it

  • L3VPN and L2VPN: private networks over the operator’s shared network; each customer has its own routing tables and labels, packets travel over the same links, but the networks are isolated from one another
  • Traffic engineering: traffic is steered along specific paths around congested sections, and if a line breaks, fast reroute takes over
  • Pseudowires: emulation of leased lines and transport of Ethernet, ATM and Frame Relay frames over the operator’s packet network

The foundations of the technology were described in RFC 3031, published by the IETF in January 2001.

Sources

the term is written from these pages

Verified 9 Nov

Not to be confused with

what it is mixed up with and how it differs

  • VPNvirtual private network

    A VPN protects traffic as it crosses someone else’s network, while MPLS is a way of forwarding packets inside an operator’s network; a VPN over MPLS is only one of its uses.

  • VXLANVXLAN

    VXLAN encapsulates frames in UDP over IP for data centre overlays, whereas MPLS places a label between the frame and IP and lives in operators’ transport networks.