Multiple Spanning Tree Protocol (MSTP) 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). Configure proper MSTP parameters to implement rapid network convergence.
The system view is displayed.
The MSTP process view is displayed.
This step is needed only when you perform configurations in a Multiple Spanning Tree Protocol (MSTP) process with a non-zero ID. If you perform configurations in the MSTP process 0, skip is step.
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 maximum hop count is set for the MST region.
MCheck is enabled.
On a device running MSTP, if an interface is connected to a device running STP, the interface automatically transitions to the STP mode.
Enabling MCheck on the interface is required because the interface may fail to automatically transition to the MSTP mode in the following situations:
The device running STP is shut down or moved.
The device running STP transitions to the MSTP mode.
If you run the stp mcheck command in the system view, the MCheck operation is performed on all the interfaces.
The configuration is committed.