An IPv6 NG MVPN uses the I-PMSI tunnel to send multicast data to receivers. The I-PMSI tunnel transmits multicast traffic to all PEs on the same MVPN, regardless of whether these PEs have receivers. If some PEs do not have receivers, this implementation will cause redundant traffic, wasting bandwidth resources and increasing PEs' burdens. Selective-PMSI (S-PMSI) tunnels can address the preceding issue. After multicast traffic data is switched from an I-PMSI tunnel to an S-PMSI tunnel, only PEs that have receivers can receive the traffic. Therefore, S-PMSI tunnels can prevent redundant traffic, reduce bandwidth consumption, and relieve the workload of PEs.
The system view is displayed.
The VPN instance view is displayed.
The VPN instance IPv6 address family view is displayed.
Multicast routing is enabled in the VPN instance IPv6 address family view.
The VPN instance IPv6 address family MVPN view is displayed.
Immediate switching from an I-PMSI tunnel to an S-PMSI tunnel is configured.
After immediate switching from an I-PMSI tunnel to an S-PMSI tunnel is configured, upon the generation of an (S, G) entry with an MTI as the outbound interface on the sender PE, an S-PMSI tunnel is created and traffic is immediately switched from an I-PMSI tunnel to the S-PMSI tunnel.
Compared with the original implementation, immediate switching from an I-PMSI tunnel to an S-PMSI tunnel allows traffic corresponding to an (S, G) entry to be switched to an S-PMSI tunnel earlier, thereby reducing multicast traffic loss.
After this command is run, the switching threshold configured in the MVPN S-PMSI view does not take effect.
The MVPN S-PMSI view is displayed.
The address pool range and criteria for switching between I-PMSI and S-PMSI tunnels are configured.
A delay for switching traffic from the I-PMSI tunnel to an S-PMSI tunnel is configured for the VPN instance.
The device starts a switchover delay timer when using the I-PMSI tunnel to transmit multicast traffic. The device keeps monitoring the multicast traffic forwarding rate before the switchover delay timer expires. If the forwarding rate is consistently higher than the specified switchover threshold throughout the timer lifecycle, the device switches multicast traffic from the I-PMSI tunnel to an S-PMSI tunnel. If the forwarding rate is consistently lower than the specified switchover threshold throughout the timer lifecycle, the device still uses the I-PMSI tunnel to transmit multicast traffic.
A delay for switching traffic from an S-PMSI tunnel back to the I-PMSI tunnel is configured.
In some cases, the multicast traffic forwarding rate may fluctuate around the specified switchover threshold. To prevent multicast data traffic from being frequently switched between S-PMSI and I-PMSI tunnels, the device starts the switchback delay timer when the forwarding rate falls below the specified threshold rather than performing an immediate switchback. The device keeps monitoring the forwarding rate before the switchback delay timer expires. If the rate remains consistently lower than the threshold throughout the timer period, the device switches multicast traffic back to the I-PMSI tunnel. Otherwise, the device still uses the S-PMSI tunnel to forward multicast traffic.
A delay for checking tunnel status when the bearer tunnel of VPN instance multicast data changes is configured. The tunnel-detect-delay command needs to be run only on the receiver PE, not on the sender PE.
The configuration is committed.