Multi Protocol Label Switching (MPLS) (original) (raw)

Last Updated : 10 Oct, 2025

Multi-Protocol Label Switching (MPLS) is an advanced packet-forwarding technique used in modern networks. Instead of making routers look into complex Layer 3 routing tables for every IP packet, MPLS uses labels for forwarding decisions. These labels create pre-defined, efficient paths across the network, which enhances speed, scalability and traffic management.

mpls_network

Multi Protocol Label Switching

**Note: MPLS lies between Layer 2 (Data Link) and Layer 3 (Network Layer) of the OSI model, which is why it is often referred to as a Layer 2.5 protocol.

Why MPLS

The MPLS header is 32 bits long and is inserted between the Layer 2 and Layer 3 headers. It contains the following fields:

mpls_header

MPLS Header

Field Size Description
Label 20 bits Identifier used to make forwarding decisions (range: 0 to 2²⁰ – 1).
Experimental (Exp) 3 bits Used for Quality of Service (QoS) and traffic prioritization.
Bottom of Stack (S) 1 bit Indicates whether this label is the last in the stack (1 = last label).
Time to Live (TTL) 8 bits Prevents loops; decrements by 1 at every hop.

**Note: Multiple labels can be stacked to form a label stack, enabling hierarchical routing.

Key Terminologies in MPLS

Working of MPLS (Forwarding Process)

Note: Labels are distributed using the Label Distribution Protocol (LDP).

MPLS and VPN

Read more about Difference between VPN and MPLS

Advantages of MPLS

Disadvantages of MPLS