PIM support for VPNs

To support PIM for VPNs, a multicast router that runs PIM maintains an independent set of PIM neighbor table, multicast routing table, BSR information, and RP-set information for each VPN.

After receiving a multicast data packet, the multicast router checks to which VPN the data packet belongs. Then, the router forwards the packet according to the multicast routing table for that VPN or creates a multicast routing entry for that VPN.