Setting the MSTP 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.
- (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.
The switch calculates the optimal Forward Delay period, Hello timer value, and Max Age timer value based on the specified network diameter.
RSTP uses a single spanning tree instance on the entire network, meaning that performance deterioration cannot be prevented when the network scale increases. Therefore, the network diameter cannot be larger than 7.