Concepts / Tunnels and overlays

Tunnels and overlays

MPLS

Also called multiprotocol label switching, label, LSP, label-switched path, push swap pop, penultimate hop popping, PHP, implicit null

Forwarding by a short label put in front of the IP header, instead of by the destination address.

The ingress edge pushes a label; each core router looks only at the label, swaps it for its next hop's, and passes the packet on; the label is popped at the end, usually one router early (penultimate hop popping, asked for with the reserved label 3, implicit null). The path is a label-switched path (LSP), one way only. A label means something only to the router that chose it. Providers build VPNs, traffic engineering and fast reroute on it. In Linux: ip route … encap mpls pushes, ip -f mpls route is the label table.

Four bytes in front of the IP header
Four bytes in front of the IP header

A label sits between the Ethernet header and the IP header, and a core router decides by the label alone. From the MPLS: a core that never reads the address lab.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab