Sub topic 2
Labels, LSRs, and LSPs: Push, Swap, and Pop
Assume you know IPv4 subnetting, basic routing, and the roles of routers in a WAN. MPLS adds a forwarding label between the Layer 2 frame and the Layer 3 packet.
How MPLS forwards a packet
An LSR (Label Switch Router) forwards traffic using labels. An LSP (Label Switched Path) is the label-defined path through the provider network.
- The ingress PE router examines the IP route and pushes an MPLS label.
- A core LSR uses the incoming label and swaps it for the next label.
- The egress PE router pops the label and forwards the original IP packet.
The core does not need a separate customer route for every destination. It only needs label-forwarding information.
MPLS Layer 3 VPNs
An MPLS Layer 3 VPN lets one provider carry several customers while keeping their routes separate. Each PE maintains a VRF, or virtual routing and forwarding table, for each customer. A packet can therefore use the same private address as another customer without entering the wrong routing table.
A route distinguisher (RD) makes otherwise identical customer prefixes unique in the provider's VPNv4 table. A route target (RT) controls which VRFs import and export those routes. MP-BGP distributes VPNv4 routes and the labels needed to reach them. Provider-core routers usually do not need customer-specific routes.
QoS and traffic engineering
MPLS providers can classify packets into QoS classes so voice or other delay-sensitive traffic receives better treatment. Traffic engineering can select an LSP that avoids congestion or meets bandwidth constraints.
QoS does not create bandwidth. Traffic engineering also cannot fix an under-sized access link. Provider support for classes, reservations, and alternate paths must be confirmed in the service agreement.
Internet VPNs and SD-WAN
An IPsec VPN encrypts traffic between sites across the public internet. It often costs less than MPLS, but internet paths have variable latency, loss, and provider control.
SD-WAN targets these limits by combining transports such as MPLS, broadband, and LTE. Its policy can measure each path and select one based on application requirements instead of relying on a single circuit.
Exercise
A label changes from 100 to 240 at a core router. Is this router routing the customer's IP prefix?
Show answer
Usually no. It is swapping an MPLS label using its label-forwarding table.