MPSL Label Distribution

mpls label distribution, how mpls label distribution

MPSL Label Distribution is done with two differetn protocols in MPLS Networks. One fom them is LDP and other is RSVP-TE. In this Lesson, we will focus on LDP Label Distribution. LDP (Label Distribution Protocol) is one of the MPLS Label Distribution protocols that is used for label signaling in MPLS (Multi Protocol Label Switching). So, how LDP works and how is the label distribution done? In this lesson, we will explain these processes detailly with an example.

 

Key Point: MPLS label distribution is the process of assigning and exchanging labels between routers to establish LSPs (Label Switched Paths).

 

Key Point: Routers use protocols like LDP and RSVP-TE to distribute labels and build MPLS forwarding tables.

 

LDP uses IGP (OSPF, EIGRP etc.) to determine the best path to a destination. So, before LDP configuration, IGP or in other words Routing Protocol must be configured and converged in the network.

 

Key Point: Label distribution works alongside IP routing protocols to map network prefixes to MPLS labels.

 

After Routing Protocol Configuration, LDP is enabled on the routers and LDP Adjacencies are established.

 

Key Point: Each router maintains a Label Information Base (LIB) to store label mappings received from neighbors.

 

The adjacent routers check their routing tables and sends labels to the upstream router about the networks that they know. Here, there is a key information. Label Distribution is done in the opposite direction of the label swapping. In other words, label learning is done in one direction and label swapping is done in another direction.

mpls label distribution versus label swapping

 

When the Upstream Router learns the labels, it stores them in the Label Databases with the associated networks. And whenever a packet comes with the destination of that network, it assigns this label and send the packet to the Downstream Router.

 

With such a mechanism, all the routers learn all the possible destinations and associated labels.

 

Now let’s do an example for this MPLS Label Distribution.

 

 

As you can see in the below topology, we have three routers and six different networks connected to these routers. Router A and Router C are Provider Edge routers and Router B is a Provider router.

 

 

After the LDP adjacencies are established, Router C checks its routing table and assigns a label for the networks, 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24. The assigned label by Router C is 100 for these networks and send it to Upstream Router, Router B.

 

mpls label distribution, how mpls label distribution

 

 

After that the Upstream Router, Router B receives this label and records it in its Label Databases as Egress Label.

 

mpls label distribution, how mpls label distribution

 

Then, it sends the same networks with a different label value, with label 200 to its Upstream Router, Router A.

 

mpls label distribution, how mpls label distribution

 

Router A receives the label and records it in its Label Database as Eggress Label.

 

 

mpls label distribution, how mpls label distribution

 

The Label tables are filled with this method for all the routers in the service provider network. The MPLS Label Distribution or in other words Label Learning is also done for the reverse direction, from Router A to Router C.

 

After all the labels are learned, now let’s see how the packets are send from Router A to a network behind Router C. Here, our destination will be 192.168.2.0/24.

 

mpls label distribution, how mpls label distribution

 

When a packet comes from one of the networks connected to Router A, Router A check its Label Database. Here, Router A receives a packet from 10.2.0.0/24 network for the destination 192.168.2.0/24. Router A checks its Label database and finds a record for this network as label. This Label is 200. It adds Label 200 and sends the packet to Router B. Because, Label 200 shows this direction.

 

mpls label distribution, how mpls label distribution

 

When Router B receives the packet, again, it looks the destination and sees the destination 192.168.2.0/24. Router B also checks its Label Database and finds the record related with destination as Label 100. It adds Label 100 to the packet and send it to the Router C.

 

In Router C, the label is removed and send to the destination 192.168.2.0/24 network.

 

Real Life Use Case: In an ISP backbone, Provider Edge routers first assign labels to customer networks and advertise them upstream in the opposite direction of traffic flow. Core routers store these labels in their label databases and use them to forward packets efficiently. This allows traffic between two remote office networks to move through the MPLS cloud using label swapping instead of full IP lookups, ensuring fast and predictable delivery.

 

MPLS Label Distribution and Label Swapping is basically like above.

 


Other Basic MPLS Lessons:

 

Back to: Nokia MPLS Course > MPLS Basics

Leave a Reply

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