Got it

Forwarding behavior of MPLS L3VPN

Latest reply: Mar 14, 2022 15:07:52 604 5 5 0 0

 


 

Hello everyone, some guys asked me about the forwarding behavior on the PE router in the MPLS L3VPN scenario. In this post, we are going to introduce the forwarding behavior about the MPLS L3VPN from the PE router.

Commonly, we could get the forwarding information from the routing table, but the routing table leaves mass of forwarding information behind. If you want to get the detailed information, the FIB is recommended.

For example, in a MPLS L3VPN scenario as the topology dispalyed below, we could query the forwarding information on the PE router.

103245zmrwwrqw7wwu7q3m.png

A MPLS L3VPN Option C tunnel is established between PE1 and PE2, RR1 and RR2 are configured as the route-reflector.

Let’s take the PE1 as an example.

 

1.     get the vpn-instance forwarding information about the specific traffic to get the inner label and the BGP nexthop.

103245e5b6hp4ewnp6v1n6.png

LspFwdFlag field indicates the traffic should be forwarded in the MPLS tunnel(MPLS L3VPN/L2VPN tunnel).

InLabel indicates the inner label of the packet(actually, if the InLable is not 0, the packets will be encapsulated with two MPLS labels at least).

After these information, we could learn that the packets will be encapsutlated with a MPLS label 1024, and hand over to 10.1.1.3

 

2.     check the forwarding information(NOT vpn-instance forwarding information) about the BGP nexthop to get the outter label.

103245li25r0bop20vob2r.png

Label indicates the second label encapsulated(of course, the LspFwdFlag shouldn’t be 0, or the Label should be 0 too.)

From these information, the packet should be hand over to 23.1.1.3.

 

3.     check the nexthop forwarding information

103245oxinl41buxs4xp46.png

 

Check the forwarding information about 23.1.1.3, LspFwdFlag is 0, so, it should be forwarded to the nexthop 23.1.1.2(the local address) and out interface is G0/0/1.

 

By now, the packet is out of the PE1.

 


good
View more
  • x
  • convention:

Good share! Keep up the excellent work!
View more
  • x
  • convention:

AL_93
Moderator Created Dec 15, 2021 13:16:43

Useful information
View more
  • x
  • convention:

Great share
View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.