fbpx

How does MPLS work when it reaches its final route and must go online?

There are two types of router in an MPLS network:

  • READ: Label Edge Router or Provider Edge router (PE) – Responsible for classifying and labeling packets entering the MPLS cloud. It is also responsible for removing the label from packets before leaving the MPLS cloud. 
  • LSR: Label Switch Router or Provider router (P) – Responsible for the transmission of already labeled packets.

MPLS (Multiprotocol Label Switching) is a routing technique that uses labels to make packet forwarding decisions across a network.

Its operation is fundamentally internal to a network of a service provider or a large company, facilitating efficient traffic between locations within the network.

However, when it comes to sending traffic to the Internet, which is an external network, the process involves several key stages because MPLS is not used directly on the Internet.

We will explain how this process is handled:

1. Package Arrival at Last MPLS Label

  • When a packet that has been routed through MPLS reaches its last hop within the MPLS network, it encounters an LSR (Label Switch Router) that acts as an exit edge. At this point, the packet still has its last MPLS label.

2. MPLS Label Removal

  • At the edge LSR, the MPLS label is removed. This process is called “pop” the tag. The router then inspects the IP header of the packet to decide the next step based on its conventional IP routing table, since the MPLS label is no longer necessary or relevant outside the MPLS network.

3. Routing to the Internet

  • Once the MPLS label is removed, the packet is handled like any other IP packet based on its destination. If the destination is to the Internet, the edge router uses its IP routing table to determine the best route to the destination. This part of the process may involve routing policies, NAT (Network Address Translation) if you are leaving a private network, and any other security settings such as firewalls.

4. Transmission to Internet Provider

  • The edge router will forward the packet to the appropriate next hop, which could be another router within the service provider's network or directly to an ISP that connects to the Internet. This router will handle the packet using standard IP routing without considering MPLS, since MPLS does not extend beyond the service provider's network.

5. Internet Access

  • Finally, the packet is transmitted through the ISP's network to the Internet, where it will be routed to its final destination based on typical interdomain routing (e.g., BGP).

In summary, MPLS is a predominant network technology within private or provider networks to improve the efficiency of routing and traffic handling. However, when packets need to go out to the Internet, the MPLS label is removed and the packet is treated like any other IP packet, using standard IP routing to reach its final destination.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

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

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

Present in several = 15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

Present in several = 20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

Present in several = 30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

Present in several = 17%

all MikroTik OnLine courses

CW23-AX

Present in several = 30%

all Academy courses

CW23-LIB

Present in several = 25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

Present in several = 22%

all MikroTik OnLine courses

BF23-AX

Present in several = 35%

all Academy courses

BF23-LIB

Present in several = 30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011