Overview
In a unicast environment for Layer 3 VPNs, all VPN states are contained within the provider edge (PE) routers. With multicast over Layer 3 VPNs, two PIM adjacencies are established: one between the customer edge (CE) and PE routers through a VRF instance, the second between the master PIM instance (configured at the [
edit protocols pim] hierarchy level) and the IGP neighbors of this PE. The set of these master PIM adjacencies throughout the service provider's network makes up the forwarding path, which will eventually be a rendezvous point (RP) tree. The tree is rooted at the RP contained within the service provider's network. Because of this, core provider transit routers within the service provider's network must maintain multicast state information for the VPNs.For multicast in Layer 3 VPNs to work correctly, there must be two types of rendezvous points for each VPN. The VPN-RP is an RP that resides within the VPN, and the service provider rendezvous point (SP-RP) resides within the service provider network.
A PE router can act as an SP-RP but cannot be the VPN-RP of a VPN. The VPN-RP must be located at a CE router or elsewhere within the VPN.
The operation of multicast within a Layer 3 VPN domain occurs in multiple stages, which are described on the following pages.
![]()
Figure 16 shows the various stages that multicast packets pass through in a Layer 3 VPN environment.
- PIM is configured as part of a VPN routing instance and the configuration is committed. A virtual multicast tunnel interface (
mt-x/y/z.abcde) is created if a Tunnel Services PIC exists on the router. This interface is used to communicate between the PIM instance within the VRF and the master PIM instance.- A PIM HELLO is sent from the VRF across the
mtinterface. When this happens, a GRE header is prepended to the PIM HELLO with fields containing the VPN group address and the loopback address of the PE router.- A PIM register header is prepended to the HELLO as the packet is looped through the
pe(PIM Encapsulation) interface. This header contains the destination address of the SP-RP and the loopback address of the PE router.- The packet is sent to the SP-RP.
- The SP-RP de-encapsulates the top header off the packet as it travels through the
pd(PIM De-encapsulation) interface and sends the remaining GRE encapsulated HELLO to all of the PE routers.- The master PIM instance on the PE router handles the GRE encapsulated packet. Because the VPN group address is contained in the packet, the master instance de-encapsulates the packet and sends the HELLO over the
mtinterface to reach the desired VPN group address within the VRF.
- Router CE5 is interested in receiving from multicast source
224.1.1.1, so a PIM Join message is sent from router CE5 to router PE3.- The PIM Join message is sent through the
mtinterface and a GRE header is prepended to it. The GRE header contains the VPN group ID and the loopback address of router PE3.- The PIM Join message is then sent through the
peinterface and a register header is prepended to the packet. The data contained within the register header is the IP address of the SP-RP and the loopback address of router PE3.- The PIM Join message is sent to the SP-RP using unicast routing.
- Upon arrival at the SP-RP, the register header is stripped off and the packet is sent (with the GRE header intact) to all the PE routers.
- Router PE2 receives the packet. Because the VPN-RP is behind router PE2, router PE2 sends the packet through the
mtinterface, which strips off the GRE header.- The PIM Join message is now sent to the VPN-RP.
- The source behind router CE1 is sending to group
224.1.1.1. The designated router (DR) behind the CE router encapsulates this packet into a PIM register.- Because the packet already has the PIM register header, it is forwarded to the VPN-RP by unicast routing over the Layer 3 VPN.
- The VPN-RP de-encapsulates the data packet and sends it out the downstream interfaces (which include the return path interface leading to router CE3). Router CE3 also forwards the packet to router PE3.
- The data packet is sent through the
mtinterface on router PE2. In the process, the GRE header is prepended to the packet.- The packet is next sent through the
peinterface where the register header is prepended to the data packet.- The packet is forwarded to the SP-RP, which removes the register header from the packet.
- The packet is sent to the PE routers with GRE header intact.
- The "interested" PE routers strip the GRE header off the packet and forward it to the CE routers that requested the PIM Join. If there are no PIM-join messages for this group at this site, the PE router drops the packet.
When PIM is configured within a routing instance, two
mtinterfaces are created as follows:
mt-[xxxxx] (xxxxxrange is 32768-49151) formt-encapmt-[yyyyy] (yyyyyrange is 49152-65535) formt-decapPIM is run only on the
mt-encapinterface. Themt-decapinterface is used to populate downstream interface information.