< Home

BGP VPN Route Crossing

In a BGP/MPLS IP VPN scenario, after a PE receives BGP VPN routes from a CE or BGP VPNv4 routes from a remote PE, the local PE implements route crossing to add desired routes to the routing table of this local VPN instance and sends the crossed routes to corresponding VPN sites, which concludes route learning in this scenario. Route crossing can be classified as local route crossing and remote route crossing based on the source of the BGP VPN route.
  • Remote route crossing: After a PE receives a BGP VPNv4 route from a remote PE, the local PE matches the export target (ERT) of the route against the import targets (IRTs) configured for local VPN instances. If the ERT matches the IRT of a local VPN instance, the PE converts the BGP VPNv4 route to a BGP VPN route and adds the BGP VPN route to the routing table of this local VPN instance.

  • Local route crossing: A PE matches the ERT of a BGP VPN route in a local VPN instance against the IRTs configured for other local VPN instances. If the ERT matches the IRT of a local VPN instance, the PE adds the BGP VPN route to the routing table of this local VPN instance. Locally crossed routes include both locally imported routes and routes learned from VPN peers.

After a PE receives VPNv4 routes destined for the same IP address from another PE or VPN routes from a CE, the local PE implements route crossing by following the steps in Figure 1.
Figure 1 Flowchart for BGP VPN route crossing

In Figure 2, PEs have the same VPN instance (vpna) and RTs (including the ERT and IRT). The RD configured for PE2 and PE3 is 2:2, and the RD configured for PE4 is 3:3. Site 2 has a route destined for 10.1.1.0/24. The route is sent to PE2, PE3, and PE4, who convert this route to multiple BGP VPNv4 routes and send them to PE1. On receipt of the BGP VPNv4 routes, PE1 implements route crossing as shown in Figure 3. The detailed process is as follows:
  1. After receiving the BGP VPNv4 routes from PE2, PE3, and PE4, PE1 adds them to the BGP VPNv4 routing table.

  2. The RDs configured for the VPN instance on PE2 and PE3 are the same. Therefore, the BGP VPNv4 routes that PE2 and PE3 send to PE1 are the same. On receipt of the BGP VPNv4 routes from PE2 and PE3, PE1 selects an optimal BGP VPNv4 route (the route from PE3 in this example) from them, converts the optimal BGP VPNv4 route and the BGP VPNv4 route received from PE4 to BGP VPN routes by removing their RDs, and adds the BGP VPN routes to the routing table of the BGP VPN instance.

  3. PE1 selects an optimal BGP VPN route from the two BGP VPN routes based on BGP route selection policies and adds the optimal BGP VPN route to the IP VPN instance routing table.

If a PE receives two BGP VPNv4 routes with the same RD from remote PEs, only one of the BGP VPNv4 routes can be added to the routing table of the BGP VPN instance. As a result, VPN FRR or load balancing cannot be implemented between VPN routes.

Figure 2 Route crossing networking

Figure 3 BGP VPN route crossing process

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >