stp timer-factor
Use stp timer-factor to configure the timeout period by setting the timeout factor.
Timeout period = timeout factor × 3 × hello time.
Use undo stp timer-factor to restore the default.
Syntax
stp timer-factor factor
undo stp timer-factor
Default
The timeout factor of a device is set to 3.
Views
System view
Predefined user roles
network-admin
Parameters
factor: Sets the timeout factor in the range of 1 to 20.
Usage guidelines
In a stable network, each non-root-bridge forwards configuration BPDUs to surrounding devices at the interval of hello time to determine whether any link fails. If a device does not receive a BPDU from the upstream device within nine times of the hello time, it assumes that the upstream device has failed. Then it will start a new spanning tree calculation process.
As a best practice, set the timeout factor to 5, 6, or 7 in the following situations:
To prevent undesired spanning tree calculations. An upstream device might be too busy to forward configuration BPDUs in time, for example, many Layer 2 interfaces are configured on the upstream device. In this case, the downstream device fails to receive a BPDU within the timeout period and then starts an undesired spanning tree calculation.
To save network resources on a stable network.
Examples
# Set the timeout factor of the device to 7.
<Sysname> system-view [Sysname] stp timer-factor 7
Related commands
stp timer hello