Multi Protocol Label Switching (MPLS) Last Updated : 10 Oct, 2025 Suggest changes Share 10 Likes Like Report 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.Multi Protocol Label SwitchingNote: 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 MPLSTraditional IP routing involves a long lookup process in routing tables.MPLS simplifies forwarding by assigning a short fixed-length label to each packet.This ensures: Faster packet delivery, better support for Quality of Service (QoS) & easier traffic engineering and Virtual Private Networks (VPNs).MPLS HeaderThe MPLS header is 32 bits long and is inserted between the Layer 2 and Layer 3 headers. It contains the following fields:MPLS HeaderFieldSizeDescriptionLabel20 bitsIdentifier used to make forwarding decisions (range: 0 to 2²⁰ – 1).Experimental (Exp)3 bitsUsed for Quality of Service (QoS) and traffic prioritization.Bottom of Stack (S)1 bitIndicates whether this label is the last in the stack (1 = last label).Time to Live (TTL)8 bitsPrevents loops; decrements by 1 at every hop.Note: Multiple labels can be stacked to form a label stack, enabling hierarchical routing.Key Terminologies in MPLSProvider Edge (PE) Router: Router at the edge of the MPLS provider’s network; adds/removes labels from packets.Customer Edge (CE) Router: Router at the customer’s network edge that communicates with PE routers.Label Switch Router (LSR): Router inside the MPLS core that understands and processes labels.Ingress LSR: First router that receives the packet from CE and pushes (adds) the MPLS header.Intermediate LSR: Routers that swap labels as packets move across the MPLS path.Egress LSR: The last router in the MPLS domain that pops (removes) the MPLS header before sending the packet to the CE.Push, Pop, Swap: Push -> Add a label, Pop -> Remove a label. & Swap -> Replace an existing label with a new one.Working of MPLS (Forwarding Process)Ingress Stage (Push): CE sends an IP packet to the PE (Ingress LSR). Ingress PE assigns a label based on the destination and attaches an MPLS header.Core Stage (Swap): Intermediate LSRs forward the packet based only on the label. They swap the label with a new one as defined in their Label Forwarding Information Base (LFIB).Egress Stage (Pop): The Egress PE removes the MPLS header and forwards the original IP packet to the CE router. Note: Labels are distributed using the Label Distribution Protocol (LDP).MPLS and VPNMPLS can separate traffic of different customers similar to VPNs.Unlike regular VPNs, MPLS does not encrypt data.Instead, it ensures traffic isolation by keeping each customer’s traffic within its label-switched path (LSP).Read more about Difference between VPN and MPLSAdvantages of MPLSFaster packet forwarding (label-based).Supports multiple protocols (hence “multi-protocol”).Enables Traffic Engineering (efficient use of resources).Facilitates Quality of Service (QoS).Provides scalable support for Layer 3 VPNs.Reliable with loop prevention (via TTL).Disadvantages of MPLSExpensive to implement compared to IP routing.Complexity in configuration and management.Security is weaker than encrypted VPN solutions.Less suitable for small-scale networks.Multiprotocol Label Switching (MPLS) Routing. Create Quiz A adarsh_sahni Follow 10 Article Tags : Computer Networks Explore Computer Network BasicsBasics of Computer Networking4 min readTypes of Computer Networks6 min readIntroduction to Internet10 min readNetwork Devices3 min readWhat is OSI Model? - Layers of OSI Model11 min readTCP/IP Model6 min readDifference Between OSI Model and TCP/IP Model2 min readPhysical LayerPhysical Layer in OSI Model3 min readTypes of Network Topology9 min readTransmission Modes in Computer Networks (Simplex, Half-Duplex and Full-Duplex)3 min readTransmission Media in Computer Networks7 min readData Link LayerData Link Layer in OSI Model4 min readSwitching | Computer Networks2 min readVirtual LAN (VLAN)3 min readFraming in Data Link Layer3 min readError Control in Data Link Layer3 min readFlow Control4 min readPiggybacking in Computer Networks2 min readNetwork LayerNetwork Layer in OSI Model3 min readIntroduction of Classful IP Addressing7 min readClassless Addressing in IP Addressing7 min readWhat is an IP Address?11 min readIPv4 Datagram Header4 min readDifference Between IPv4 and IPv63 min readPublic and Private IP addresses4 min readIntroduction To Subnetting5 min readWhat is Routing?10 min readNetwork Layer Protocols9 min readTransport LayerTransport Layer in OSI Model4 min readTransport Layer Protocols9 min readTransmission Control Protocol - TCP4 min readUser Datagram Protocol - UDP3 min readSession Layer & Presentation LayerSession Layer in OSI model2 min readPresentation Layer in OSI model2 min readSecure Socket Layer (SSL)4 min readPoint-to-Point Tunneling Protocol - PPTP2 min readMultipurpose Internet Mail Extension (MIME) Protocol3 min readApplication LayerApplication Layer in OSI Model4 min readClient-Server Model3 min readWorld Wide Web (WWW)6 min readIntroduction to Electronic Mail4 min readWhat is a Content Distribution Network and how does it work?4 min readProtocols in Application Layer4 min readAdvanced TopicsWhat is Network Security?7 min readQuality of Service and Multimedia5 min readAuthentication in Computer Network3 min readEncryption, Its Algorithms And Its Future6 min readIntroduction of Firewall in Computer Network3 min readMAC Filtering in Computer Network3 min readWi-Fi Standards Explained2 min readWhat is Bluetooth?6 min readGenerations of wireless communication2 min readCloud Networking4 min readPracticeTop 50 Plus Networking Interview Questions and Answers15+ min readTop 50 TCP/IP Interview Questions and Answers 202515+ min readNetwork Fundamentals Interview Questions - Computer Networks15+ min readLast Minute Notes for Computer Networks14 min readComputer Network - Cheat Sheet15+ min read My Profile ${profileImgHtml} My Profile Edit Profile My Courses Join Community Transactions Logout Like