The holdoff command configures a switching delay for a PW protection group with the master/slave PW redundancy mode.
The undo holdoff command deletes the switching delay for a PW protection group with the master/slave PW redundancy mode.
By default, no switching delay is configured for a PW protection group with the master/slave PW redundancy mode. In this situation, if a fault occurs on the primary PW, traffic immediately switches from the primary PW to the secondary PW.
Parameter | Description | Value |
---|---|---|
holdoff-time | Specifies the switching delay. |
The value is an integer ranging from 1 to 180, in seconds. |
Usage Scenario
By default, if a working path fails, traffic immediately switches to the protection path. If the working path flaps or an error occurs in the detection mechanism, traffic frequently switches between the working and protection paths. If you want to avoid this problem in a PW protection group with the master/slave PW redundancy mode, run the holdoff command to configure a switching delay. If the working path recovers before the specified switching delay expires, traffic does not switch to the protection path. If the working path remains faulty after the specified switching delay expires, traffic switches to the protection path.
Prerequisites
The PW redundancy mode of the PW protection group is master/slave.
Precautions
If the holdoff command is run multiple times, the latest configuration overrides the previous ones.
After you configure a switching delay, traffic forwarded during the delay period will be interrupted if the primary PW fails to recover before the delay period expires.
A PW protection group with the independent PW redundancy mode does not support delayed switching.
On a VPLS network that uses BFD for fault detection, traffic immediately switches from the primary PW to the secondary PW after BFD detects a fault on the primary PW, no matter whether delayed switching is configured. It is recommended that you determine whether to use BFD or delayed switching based on your actual network requirements.
# Configure a switching delay of 60s for a PW protection group.
<HUAWEI> system-view [HUAWEI] vsi vsi1 [HUAWEI-vsi-vsi1] pwsignal ldp [HUAWEI-vsi-vsi1-ldp] protect-group group1 [HUAWEI-vsi-vsi1-ldp-protect-group-group1] protect-mode pw-redundancy master [HUAWEI-vsi-vsi1-ldp-protect-group-group1] holdoff 60