STP/Rapid Spanning Tree Protocol (RSTP) parameters that may affect network convergence include the network diameter, hello time, and timeout period for waiting for Bridge Protocol Data Units (BPDUs) from the upstream (3 x hello time x time factor). Therefore, STP/RSTP parameters need to be set properly to help implement rapid network convergence.
The system view is displayed.
The network diameter is configured.
RSTP uses a single spanning tree instance on the entire network, which cannot prevent the performance from deteriorating 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. Then, the device calculates the optimal Forward Delay period, Hello time, and Max Age period based on the set network diameter.
The timeout period for waiting for BPDUs from the upstream of a device is set.
To configure all ports on the devices as edge ports, run the stp edged-port default command.
After ports on a network edge device are configured as edge ports, the ports no longer participate in spanning tree calculation. This speeds up network topology convergence and improves network stability.
To configure all ports on the devices as BPDU filter ports, run the stp bpdu-filter default command.
After ports on a network edge device are configured as BPDU filter ports, the ports no longer process or send BPDUs.
After the stp bpdu-filter default and stp edged-port default commands are run in the system view, all ports on the device no longer actively send BPDUs or negotiate with directly-connected ports; instead, all the ports are in the Forwarding state. This may lead to a loop on the network, causing broadcast storms. Exercise caution when running these commands.
To set the Forward Delay period for a device, run the stp timer forward-delay forward-delay command.
To set the Hello time for a device, run the stp timer hello hello-time command.
To set the Max Age period for a device, run the stp timer max-age max-age command.
The configuration is committed.