What is MPLS?

mpls-header

In this lesson, we will focus MPLS in Networking and we will learn the answer of what is MPLS? So, What is MPLS? MPLS is a Packet-Forwarding technology which uses MPLS Labels for data forwarding decisions. It is the abbreviation of Multi Protocol Label Switching. Over time, users in networks have increased and this big traffic has brought high bandwidth and forwarding speed need. The existing routing protocols are looking to the routing table for forwarding decision on all nodes and this was overloading the routers beside causing a lot of time lose. Here Multi Protocol Label Switching brings also CEF and this bypass the slow part of this layer 3 decisions. Beside that it brings the speed of OSI layer 2 switching. In brief, MPLS Networking is combining the beneficial parts of both Layer 2 and Layer 3 of OSI reference model.

 

Key Point : MPLS operates between Layer 2 and Layer 3, often referred to as a Layer 2.5 technology.

 

Other Basic MPLS Lessons:

 


If you would like to learn more about MPLS, you can follow the lessons of Nokia MPLS Training.


 

In addition to these negative facts, there were some other problems about ATM technology, while working together with Ethernet and Frame Relay. To solve all these problems IETF developed MPLS in 1997. This development could be done with existing routing protocols. But changing all the existing routing protocols was very difficult, so IETF has chosen developing a new protocol.

 

This new protocol is using Labels for routing decisions. These labels are router specific and local significant to that router.

 

Key Point: MPLS forwards packets using labels instead of IP lookups, which significantly improves forwarding speed.

 


 

MPLS Header

We have learned what is MPLS. Now, let’s focus MPLS Header. For MPLS Networking, a header is added between Layer 2 and Layer 3 header in packets. This MPLS Header is 32 bits long. This header consist of the below fields:

  • Label (20 bits),
  • Experimental Bits (3 bits),
  • Bottom of Stack (1bit),
  • Time to Live (8 bits)
mpls-header

MPLS Header Parts

 

Key Point: The MPLS header is a 32-bit label stack entry that includes Label, EXP (QoS), S (Bottom of Stack) and TTL fields.

 

Label value is local significant for the router and it is used for label switching. Experimental field is used as Class of Service for QoS. One bit Bottom of Stack shows that if this label is the last label in the packet or not (1 shows that it is the last). Finally, the TTL value is used for loop protection like other IP packets.

 

mpls-labels

Labels in MPLS Header

 

Key Point: MPLS headers can be stacked (label stacking), allowing multiple labels to be added for advanced routing and tunneling.

 

As an example, you can check the below packet capture that includes also an MPLS Header. Here, MPLS Header is shown with blue rectangle. As you can see Multi Protocol Label Switching header is between the Layer 2 header (ethernet II header) and Layer 3 header.

 

MPLS Header in Wireshark

MPLS Header in Wireshark

 


You can test your knowledge with MPLS Questions


MPLS Router Types

Firstly, I want to talk about Router terms used in this technology. There are different routers used in MPLS Technology. These routers are given below:

  • Customer Router (C)
  • Customer Edge Router (CE)
  • Provider Router (P)
  • Provider Edge Router (PE)

 

Customer Router is the router of customer, so it is not related to MPLS network.

 

Customer Edge Router is the router that is connected to MPLS PE Router of the Service Provider Network.

 

Provider Router is the router used in Service Provider Networks for MPLS Label Switching and Data Forwarding.

 

Provider Edge Router is the router that is located at the edges of the Service Provider Networks. They are the routers that VPN Services are defined. They are the borders between customer and Service Provider networks.

 

The below shape clearly explains the location of these routers.

 

MPLS Network and MPLS Router Types

MPLS Network and MPLS Router Types

 

Instead of Provider Router or Provider Edge Router, we can also use LSR (Label Switching Router) and Edge LSR (Edge Label Switching Router) terms for the routers capable of label switching. Specifically, Edge LSRs can be divided into two as Ingress Edge LSR and Egress Edge LSR. The below shape shows this clearly:

 

Key Point: LSRs are core MPLS routers that forward packets based on labels by performing label swap operations.

 

Key Point: LERs are edge routers that add (push) or remove (pop) MPLS labels when packets enter or leave the MPLS network.

 

mpls-ingress-egress-pe-routers

MPLS Ingress Edge LSR and Egress Edge LSR

 

The packet comes to Ingress Edge LSR firstly from the customer. Then it travels in the Service Provider network through various LSRs (Provider Routers). Lastly, it exists from the Service Provider network with Egress Edge LSR.

 

Key Point: Ingress LER is the entry point to the MPLS network that assigns the initial label to incoming packets.

 

Key Point: Egress LER is the exit point of the MPLS network that removes the label and forwards the packet using normal IP routing.

 


 

Label Distribution Protocols

The labels that will be used in MPLS network are distributed with some Label Distribution Protocols. And with these labels forwarding decision is done. As you remember from ip routing, this decision is done through IP addresses in normal routing. MPLS technology is basically a concept that changes a layer 3 routed network to a switched network.

 

Key Point: Label Distribution Protocols are used in MPLS to distribute labels between routers for building Label Switched Paths (LSPs).

 

There are four main protocols for Label Distribution. In other words, there are four Label Distribution Protocols. The widely used standard one is LDP (Label Distribution Protocol). You can find all Label Distribution Protocols below:

 

LDP (Label Distribution Protocol)  is the simplest way for Label Distribution. Basically, LDP trusts Interior Gateway Protocol and selects the next hop that has already selected by IGP. Then, it takes label from this next hop. In other words, this type of label distribution is dependent to Routing Protocol decision.

 

Key Point: LDP (Label Distribution Protocol) automatically assigns and distributes labels based on the IP routing table.

 

RSVP-TE (Resource Reservation Protocol-Traffic Engineering), is another way used for Label Distribution. With this way, the next hop selection can be determined by IGP or can be specified manually. With this protocol, Traffic Engineering activities can be done that manages the flow of different types of traffic.

 

Key Point: RSVP-TE is used for traffic engineering, allowing explicit path control and bandwidth reservation in MPLS networks.

 

Key Point (CR-LDP): CR-LDP is a constraint-based protocol that enables explicit routing with QoS requirements, but it is largely replaced by RSVP-TE.

 


 

MPLS Tables

There are four type table that is related to Multi Protocol Label Switching. This tables are formed with CEF (Cisco Express Forwarding) mechanism and the Label Distribution Protocols. So what are the tables used in MPLS? You can find Multi Protocol Label Switching tables below:

 

  • RIB (Routing Information Base): It is the classical routing table of the router. This table contains the classic routing information about the destination network.

 

  • FIB (Forwarding Information Base): It is formed from RIB by CEF to accelerate route forwarding process.

 

  • LIB (Label Information Base): It is the table that is formed by the label distribution protocol and it contains all the labels known by an LSR. It contains the label, LSR and network information.

 

  • LFIB (Label Forwarding Information Base): It is the routing database for labeled packets. It determines how the incoming label will be forwarded to the next-hop.

 


 

Control Plane and Data Plane in MPLS

MPLS works in two different systems in Routers. These systems are Control Plane and Data Plane. So, what is MPLS Control Plane? What is MPLS Data Plane?

 

  • Control Plane: Control plane is the system in which the Layer 3 Routing Protocols are work and the routing information is store. Beside protocols like RSVP and LDP works here.

 

Key Point: The Control Plane is responsible for building routing tables and distributing labels using protocols like LDP and RSVP-TE.

 

Key Point: The Control Plane uses routing protocols (OSPF, IS-IS, BGP) along with label distribution protocols to create Label Switched Paths (LSPs).

 

  • Data Plane: Data plane is the system that forwards the Label Based data. Data plane does this with the table (LIB) stored in control plane.

 

Key Point (MPLS Data Plane): The Data Plane is responsible for forwarding packets using labels instead of performing IP lookups.

 

Key Point (MPLS Data Plane): MPLS routers perform label operations such as push, swap and pop to efficiently move packets across the network.

 

The following pictures of LSR and Edge LSR will explain the Control Plane and Data Plane more clearly. Here both Control Plane and Data Plane are shown beside the tables related with them.

 

 

MPLS Control Plane and Data Plane

MPLS Control Plane and Data Plane

 


What are the Benefits of MPLS?

So, what are the benefits of this new concept, what is the benefits of MPLS? Multi Protocol Label Switching Technology has many benefits to the networks. Some of these MPLS benefits are given below:

  • It combines the beneficial parts of Layer 2 and Layer 3 of OSI model,
  • It decreases the router load, provide speed and performance increment,
  • It provides easy managable VPN definitions between edge devices,
  • With traffic engineering, it provides management of the traffic,
  • It simplifies the IP forwarding over ATM devices,
  • Faster packet forwarding,
  • Traffic Engineering capabilities
  • Better QoS (Quality of Service)
  • Scalability for large networks

 

Key Point: MPLS supports traffic engineering, allowing network administrators to control the path of data for better performance.

 

Key Point: MPLS networks provide low latency and high reliability, making them ideal for critical applications like VoIP and video.

 


MPLS Interview Questions

Question 1: What is MPLS?

a) An encryption technology which uses hashes for secure transfer.

b) An organisation for international data forwarding.

c) A packet-forwarding technology which uses labels for data forwarding .


Question 2: How many bits are there in an MPLS Header?

a) 20

b) 24

c) 32

d) 64

e) 128


Question 3: How many bits of MPLS Header is used for Label?

a) 1

b) 3

c) 8

d) 20

e) 32


Question 4: Which MPLS Header Part is also used for Quality of Service?

a) Label

b) Experimental Bits

c) Bottom of Stack

d) Time to Leave


Question 5: Whick routers reside in MPLS networks? (Select two)

a) Customer Router (C)

b) Customer Edge Router (CE)

c) Provider Router (P)

d) Provider Edge Router (PE)

 


Question 6: …. is an MPLS Router that is located at the edges of the Service Provider Networks.

a) Customer Router (C)

b) Customer Edge Router (CE)

c) Provider Router (P)

d) Provider Edge Router (PE)


Question 7: Which one is formed by the label distribution protocol and contains all the labels?

a) RIB

b) FIB

c) LIB

d) LFIB


Question 8: Which one is the simplest way for MPLS Label Distribution?

a) LDP

b) RSVP-TE


Question 9: RSVP and LDP works in …. in an MPLS Network.

a) Data Plane

b) Control Plane

 


Question 10: Which ones are benefits of MPLS?

a) Combines the beneficial parts of L2 and L3

b) Provides easy managable VPN solutions

c) Provides Traffic Engineering

d) Provides speed and performanec increment

e) All of them


Answers: 1)c   2)c   3)d   4)b   5)c,d   6)  7)c   8)a   9)b   10)e


Frequently Asked Questions

What are the main components of MPLS?

The main components of MPLS (Multi Protocol Label Switching) are:

  • LER (Label Edge Router) → Adds and removes labels
  • LSR (Label Switch Router) → Forwards packets using labels
  • Labels → Identify forwarding paths

 


What is a Label Switched Path (LSP)?

An LSP (Label Switched Path) is a predefined path that labeled packets follow through an MPLS network from source to destination.

 


What is the difference between MPLS and traditional IP routing?

Traditional IP routing uses destination IP lookups at every hop, while MPLS uses labels, allowing faster and more efficient forwarding.

 


Which protocols are used with MPLS?

Common protocols used with MPLS include:

  • LDP (Label Distribution Protocol)
  • RSVP-TE (Traffic Engineering)
  • BGP (for MPLS VPNs)

 


Where is MPLS used in real life?

MPLS is widely used by Service Providers (ISPs) and Large Enterprises to deliver services like VPNs, traffic engineering and high-performance WAN connectivity.

 

Quick Summary – MPLS (Multi-Protocol Label Switching)

• Purpose: Fast packet forwarding using labels instead of IP lookup
• Technology: Layer 2.5 (between Layer 2 and Layer 3)
• Forwarding Method: Label switching (push, swap, pop)
• Core Concept: Label Switched Path (LSP)
• Key Components: LER (PE), LSR (P), CE routers
• Label Assignment: Done via LDP or RSVP-TE
• Routing Dependency: Uses IGP (OSPF / IS-IS) for path calculation
• Traffic Handling: Based on Forwarding Equivalence Class (FEC)
• Performance: High-speed and scalable backbone forwarding
• Use Case: Service provider WAN, VPNs, traffic engineering

 

Lesson tags: mpls, mpls header, lsp
Back to: Nokia MPLS Course > MPLS Basics

Leave a Reply

Your email address will not be published. Required fields are marked *