On an NG MVPN, after a BGP peer relationship is established between PEs in the BGP MVPN address family, the BGP MVPN extended community attribute can be used to carry the VPN multicast route (C-multicast route) to transmit the join/leave information of multicast users.
Source AS Extended Community: carried in VPNv4 routes advertised by PEs. This attribute is an AS extended community attribute and is mainly used in inter-AS scenarios.
VRF Route Import Extended Community: carried in VPNv4 routes advertised by sender PEs to receiver PEs. When a receiver PE sends a BGP C-multicast route to a sender PE, the receiver PE attaches this attribute to the route. In a scenario in which many sender PEs exist, this attribute helps a sender PE that receives the BGP C-multicast route to determine whether to process the route and to which VPN instance routing table the BGP C-multicast route should be added.
The value of the VRF Route Import Extended Community is in the format of "Administrator field value:Local Administrator field value". The Administrator field is set to the local MVPN ID, whereas the Local Administrator field is set to the local VPN instance ID of the sender PE.
On the network shown in Figure 1, PE1 and PE2 are both sender PEs, and PE3 is a receiver PE. PE1 and PE2 connect to both vpn1 and vpn2. On PE1, the VRF Route Import Extended Community is 1.1.1.9:1 for vpn1 and 1.1.1.9:2 for vpn2; on PE2, the VRF Route Import Extended Community is 2.2.2.9:1 for vpn1 and 2.2.2.9:2 for vpn2.
After PE1 and PE2 both establish BGP MVPN peer relationships with PE3, PE1 and PE2 both send to PE3 a VPNv4 route destined for the multicast source 192.168.1.2. The VRF Route Import Extended Community carried in the VPNv4 route sent by PE1 is 1.1.1.9:1 and that carried in the VPNv4 route sent by PE2 is 2.2.2.9:1. After PE3 receives the two VPNv4 routes, PE3 adds the preferred route (VPNv4 route sent by PE1 in this example) to the vpn1 routing table and stores the VRF Route Import Extended Community value carried in the preferred route locally for later BGP C-multicast route generation.
This section describes the process of transmitting VPN multicast routes through the (S, G) and (*, G) Join/Leave processes of multicast members.