MPLS Label Switching

push-swap-pop

How MPLS Label Switching Works?

MPLS Technology uses different routers for different roles. There are some common router types that are in these roles. The names of these routers are changing in different vendor naming, but the main role is same. These common routers are given below:

  • C (Customer Router)
  • CE (Customer Edge Router)
  • PE (Provider Edge Router or LER (Label Edge Router)
  • P (Provier Router) or LSR (Label Switch Router)

 

C Routers and CE Routers are the routers that is located at the Customer Network. These routers are unaware of MPLS.

 

Key Point : Customer (C) routers are internal customer devices that are not aware of MPLS and operate using standard IP routing within the enterprise network.

 

Key Point: Customer Edge (CE) routers connect the customer network to the service provider and typically do not participate in MPLS labeling.

 

PE Routers are the border routers between the Customer Network and the Service Provider MPLS Network. The starting and the ending points of MPLS are these routers.

Key Point: Privider Edge (PE) routers sit at the edge of the provider network and add or remove MPLS labels, acting as Label Edge Routers (LER).

 

P Routers are the Service Provider backbone routers. It is the network that the main MPLS Label swapping takes place.

 

Key Point: Provider (P) routers are core provider routers that forward packets using label switching without direct interaction with customer networks.

 

In MPLS Network, for MPLS Label Switching there are some common jobs that is done with different routers. Here, PE and P routers are used for these common jobs. CE Router is in Customer side, so it is unaware of MPLS Label Switching.

 

Mainly, there are three common jobs for MPLS Label Switching. These are:

  • Push
  • Swap
  • Pop


push-swap-pop


You can also check MPLS VPN Labelling Lesson.


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


 

Push is the process of Label addition between the L2 and L3 Header of the traffic packet. In other words, locating label to the packet and MPLS starting point is here. Push process is done by PE Routers. PE takes the packet from Customer and with MPLS Label, PE makes this packet an MPLS packet.

 

Swap is the process of label swapping in MPLS network. The backbone routers of the Service Provider is responsible from this job. Labels are swapped between these P Routers, through the LSP (Label Switch Path) that is built between border PE Routers.

 

Pop is the process of the label exit. The last label that comes from swapping is removed with this process. And the pure traffic is sent to the customer. Pop process is done at PE routers. But sometimes, this can be changed and before the PE router, at the last P Router, Pop process is done. This specific process is called PHP (Penultimate Hop Popping).


penultimate-hop-popping
LER (Label Edge Routers) or in other named PE (Provider Edge Routers), can be divided into two here because of the position of them in the MPLS network. These are:

  • iLER (ingress LER)
  • eLER (egress LER)

 

Push process is done in iLER. It is the entrance, ingress point of the label.

 

Key Point: The iLER is the entry point of MPLS network that classifies incoming packets and assigns the initial MPLS label based on destination.

 

Pop process is done in eLER. It is the exit, egress point of the label.

 

Key Point: The eLER is the exit point of MPLS network that removes MPLS label and forwards packets using IP routing toward the final destination.

 


 

What is LSP (Label Switching Path)?

LSP (Label Switching Path) is a virtual path that the data transmission done on it. It is a label series that belongs to the routers from source through destination. The below shape shows what is LSP:

 

mpls-lsp

 

Here if orderly the labels of the routers are 100,200,300,400 and 500, the LSP will be 100-200-300-400-500 for the above shape.

 

Key Point: An LSP is a predefined path through an MPLS network that packets follow based on assigned labels.

 


 

What is Forwarding Equivalence Class (FEC)?

Forwarding Equivalence Class (FEC) is the name of a traffic group that are treated similar in the MPLS network. By traffic group I meant that, a group of IP packets. There are many FECs defined in MPLS networks. All the prefixes in these FECs, go through the same MPLS routers, use same MPLS traffic engineering parameters etc.

 

Key Point: A FEC (Forwarding Equivalence Class) is a group of packets that are forwarded in the same way, receiving the same MPLS label.

 

As you can see, below, there is an example MPLS network and there are two LSPs defined in this network. There are also two FEC. These FECs are using different LSPs as you can see. They prefer different next hope and get different labels. But each prefix in the same FEC, use the same next hop and label.

 

Key Point: Packets are classified into a FEC at the ingress LER, which determines their path through the MPLS network.

 


what-is-fec


Other Basic MPLS Lessons:

Lesson tags: mpls, label switching
Back to: Nokia MPLS Course > MPLS Basics

Leave a Reply

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