20-24
To do...
Use the command...
Remarks
Configure the max age
parameter
stp timer max-age
centiseconds
Required
The max age parameter defaults to
2,000 centiseconds (namely, 20
seconds).
All switches in a switched network adopt the three time-related parameters configured on the CIST root
bridge.
z
The forward delay parameter and the network diameter are correlated. Normally, a large network
diameter corresponds to a large forward delay. A too small forward delay parameter may result in
temporary redundant paths. And a too large forward delay parameter may cause a network unable
to resume the normal state in time after changes occurred to the network. The default value is
recommended.
z
An adequate hello time parameter enables a switch to detect link failures in time without occupying
too many network resources. And a too small hello time parameter may result in duplicated
configuration BPDUs being sent frequently, which increases the work load of the switches and
wastes network resources. The default value is recommended.
z
As for the max age parameter, if it is too small, network congestion may be falsely regarded as link
failures, which results in frequent spanning tree recalculation. If it is too large, link problems may be
unable to be detected in time, which prevents spanning trees being recalculated in time and makes
the network less adaptive. The default value is recommended.
As for the configuration of the three time-related parameters (that is, the hello time, forward delay, and
max age parameters), the following formulas must be met to prevent frequent network jitter.
2 x (forward delay – 1 second) >= max age
Max age >= 2 x (hello time + 1 second)
You are recommended to specify the network diameter of the switched network and the hello time by
using the
stp root primary
or
stp root secondary
command. After that, the three proper time-related
parameters are determined automatically.
Configuration example
# Configure the forward delay parameter to be 1,600 centiseconds, the hello time parameter to be 300
centiseconds, and the max age parameter to be 2,100 centiseconds (assuming that the current switch
operates as the CIST root bridge).
<Sysname> system-view
[Sysname] stp timer forward-delay 1600
[Sysname] stp timer hello 300
[Sysname] stp timer max-age 2100