Setting the MSTP Network Diameter
Context
Any two terminals on a switching network are connected through a specific path along multiple devices. The network diameter is the maximum number of devices between any two terminals.
An improper network diameter may cause slow network convergence and affect communication on the network. To speed up convergence, run the stp bridge-diameter command to set an appropriate network diameter based on the network scale. Running this command also allows the switch to calculate the optimal Forward Delay timer value, Hello timer value, and Max Age timer value based on the configured network diameter.
It is recommended that all devices be configured with the same network diameter.
Procedure
- Run system-view
The system view is displayed.
- (Optional) Run stp process process-id
The MSTP process view is displayed.
Skip this step if you perform configurations in the MSTP process 0.
- Run stp bridge-diameter diameter
The network diameter is configured.
By default, the network diameter is 7.
RSTP uses a single spanning tree instance on the entire network. As a result, performance deterioration cannot be prevented when the network scale grows. Therefore, the network diameter cannot be larger than 7.
It is recommended that you run the stp bridge-diameter diameter command to set the network diameter. The switching device then calculates the optimal Forward Delay timer value, Hello timer value, and Max Age timer value based on the configured network diameter.
- Run commit
The configuration is committed.