The tunnel-withdraw-delay command sets an S-PMSI tunnel withdraw delay for a VPN instance to delay the withdrawal of the S-PMSI tunnel in a switchover from the S-PMSI tunnel to an I-PMSI tunnel.
The undo tunnel-withdraw-delay command restores the default value.
By default, the S-PMSI tunnel withdraw delay is 5s for a VPN instance.
Usage Scenario
When multicast data is switched back from an S-PMSI tunnel to an I-PMSI tunnel, the device starts the S-PMSI tunnel withdraw delay timer to prevent service interruptions in case of an I-PMSI tunnel failure during the switchback. If the default value of the timer does not meet actual requirements, run the tunnel-withdraw-delay command to set a longer delay.
If multicast data needs to be switched to the S-PMSI tunnel again before the timer expires, the data can be directly switched to the S-PMSI tunnel. If such a switchover is not required, the S-PMSI tunnel is withdrawn when the timer expires.
Precautions
If a long delay is set using the tunnel-withdraw-delay command, excessive tunnel resources may be consumed before the delay expires, which will then delay new services that need to be transmitted over an S-PMSI tunnel.
<HUAWEI> system-view [~HUAWEI] multicast mvpn 2.2.2.2 [*HUAWEI] ip vpn-instance mcast1 [*HUAWEI-vpn-instance-mcast1] ipv4-family [*HUAWEI-vpn-instance-mcast1-af-ipv4] route-distinguisher 100:100 [*HUAWEI-vpn-instance-mcast1-af-ipv4] multicast routing-enable [*HUAWEI-vpn-instance-mcast1-af-ipv4] mvpn [*HUAWEI-vpn-instance-mcast1-af-ipv4-mvpn] ipmsi-tunnel [*HUAWEI-vpn-instance-mcast1-af-ipv4-mvpn-ipmsi] mldp [*HUAWEI-vpn-instance-mcast1-af-ipv4-mvpn-ipmsi] quit [*HUAWEI-vpn-instance-mcast1-af-ipv4-mvpn] spmsi-tunnel [*HUAWEI-vpn-instance-mcast1-af-ipv4-mvpn-spmsi] tunnel-withdraw-delay 20