Setting the RSTP Network Diameter
Context
Any two terminals on a switching network are connected through a specific path spanning multiple devices. The network diameter is the maximum number of devices between any two terminals. A larger network diameter indicates a larger network scale.
A network diameter that is too large may cause slow network convergence and affect communication. Run the stp bridge-diameter command to set an appropriate network diameter based on the network scale to speed up convergence.
It is recommended that all devices be configured with the same network diameter.
Procedure
- Run:
system-view
The system view is displayed.
- 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. To help mitigate this, the network diameter should not be set larger than 7.
It is recommended that you run the stp bridge-diameter diameter command to set the network diameter. Then, the switching device calculates the optimal Forward Delay timer value, Hello timer interval, and Max Age timer value based on the configured network diameter.