What is MPLS and how is it different from IP Routing?

Introduction to MPLS

MPLS i.e. Multi Protocol Label Switching (MPLS). It is a technique that is used for the routing of network packets. It is called a  Multiprotocol as it supports multiple protocols like Internet Protocol (IP), Asynchronous Transport Mode (ATM) and Frame Relay protocols. Moreover, in MPLS technique the network packet forwarding is done based on the label present on the packet, that’s why it is called Label Switching.

MPLS : The “Shim” Protocol

As we know that there are 5 layers of TCP/IP Model. The MPLS layer lies between the layer 2 i.e. the Ethernet layer and the layer 3 i.e. Network layer of the TCP/IP model. So, in other words, it shims(fill up the space) between two layers and hence also known as the “shim” protocol.

MPLS Header

The MPLS Header consists of 32 bits. It consists of –

MPLS NETWORK – Label Switched Path (LSP)

The MPLS Network consists of LSR i.e. Label Switch Routers. These are named so as they are capable of understanding the MPLS labels. There are 3 types of LSR –

This type of path is also known as PUSH – SWAP- POP Label Switched Path. Thus a network packet follows a fixed path known as the Label Switched Path or LSP in MPLS forwarding

MPLS Forwarding & how is it different from IP Routing

So after understanding the basics of MPLS Network, we can sum up the process of MPLS forwarding easily.

In MPLS forwarding, the Ingress router present at the beginning of the MPLS network pushes a label on the incoming network packet. This label specifies a particular path that the network packet has to follow i.e the Label Switched Path. Each LSR contains Label Forwarding Information Base(LFIB)which base guides the LSR to swap the label with its corresponding outgoing label. This allows the packet to transmit through the network. The Egress router present at the end of the LSP, pops the label of the packet and it is then moved forward as normal IP packet.

In contrast to MPLS forwarding, in IP routing each network packet contains a source IP address and a destination IP address and is passed through several routers in between through hop-by-hop mechanism. Each router contains the routing table that provides information to the next hop till it finally reaches the destination.

So, MPLS forwarding is done on the basis of labels given to the packets while in IP forwarding it is done on the basis of the IP address.

The detailed comparison between the two can be studied through the below given comparison table. (Credit:ipwithease.com)

Comparison Table : MPLS vs IP Routing

PARAMETERS

MPLS

IP ROUTING

Switching/Routing principleSwitching traffic based on labels advertised by LDPRouting based on the destination address for entries in the routing table.
Switching/Routing pathEstablishes LSP (dedicated path) before data can flow.No dedicated path is established, packet is routed based on IP addresses.
Tables usageBuilds LFIB (Label Forwarding Information Base) table using LDP protocol.Stores IP routing table.
Layer of functioningLabels inserted between layer 2 and Layer 3 (hence layer 2.5)Performed at Layer 3
Overlapping IP addressMPLS can allow communication across overlapping IP addresses of multiple customersDoes not allow communication across overlapping address of different customers
Related termsLSP, LDP/TDP, VRF, LFIB, Push, Swap and Pop.Route Lookup, IP protocol
Traffic LatencyLower latency than traditional IP routingIncurs higher latency than MPLS
Topology and servicesWith MPLS, providers can create (with use of different labels and label stacks) different topologies & services (MPLS-TE, MPLS VPNs).Single topology can be created per IP routing domain.
Traffic EngineeringScalable and proficient in servicePartially possible but not scalable solution
Separate Routing tableIn MPLS network , each customer has separate routing networkTraditional IP routing can only have 1 Routing table for all customers
ScalabilityMediumHigh
Target scopeService provider domain, Large & Multitenant Data Centers.Home, Office, Service PTP/Underlay links,  Data centers etc.
Traffic typeAllows non-IP traffic forwarding in addition to IP trafficAllows forwarding of IP traffic
CREDIT:https://ipwithease.com

If you want to learn more about MPLS, then check our e-book on MPLS Interview Questions and Answers in easy to understand PDF Format explained with relevant Diagrams (where required) for better ease of understanding.

 

Leave a Comment

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

1 × one =

Shopping Cart
Scroll to Top