< Home

stp timer-factor

Function

The stp timer-factor command sets the timer factor of the timeout period of a switching device to the Hello Time.

The undo stp timer-factor command restores the default setting.

By default, the timer factor is 3.

If a switching device does not receive BPDUs from an upstream device within the timeout period (timeout period = Hello Time × 3 × Timer Factor), the spanning tree is calculated again.

Format

stp timer-factor factor

undo stp timer-factor

Parameters

Parameter Description Value
factor Specifies the timer factor. The value ranges from 1 to 10.

Views

System view or MSTP process view

VBST does not support processes. When VBST is running, you cannot run the stp timer-factor command in the MSTP process view.

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a network where a spanning tree protocol is enabled, if a switching device does not receive BPDUs from an upstream device within the timeout period, it considers that the upstream device becomes faulty, and will recalculate the spanning tree.

Sometimes, however, the failure of the upstream device to send BPDUs within the timeout period is only because it is busy processing services. In this case, the spanning tree cannot be calculated. Therefore, you can set a long timeout period on a stable network to avoid the waste of network resources.

In a spanning tree, the device closer to the root bridge is the upstream device of another connected device.

Precautions

If the parameter factor is set smaller, the timeout period of the switching device to re-calculate the spanning tree is shorter. In this case, there is a higher probability that the switching device incorrectly considers the upstream device as being faulty.

If the parameter factor is set larger, the timeout period of the switching device to re-calculate the spanning tree is longer. In this case, there is a higher probability that the traffic becomes interrupted because the upstream device has become faulty.

Example

# Set the timer factor of the switching device to 6.

<HUAWEI> system-view
[HUAWEI] stp timer-factor 6
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >