STP introduction and how to set up STP on VigorSwitch #
https://www.draytek.com.tw/support/knowledge-base/7676
“DrayTek VigorSwitches support STP/RSTP/MSTP which allows switch redundancy as well as preventing loops at the same time. This article introduces how STP works and how to set up STP on a DrayTek VigorSwitch. A typical topology where STP can be used is shown here where we have 4 VigorSwitches and a redundant path between the switches for failover.
STP
Spanning Tree Protocol(STP) is a management protocol that works on Layer 2 of the OSI model. The main purpose of STP is to detect and prevent the switch from the Broadcast Strom caused by using the Redundant Path mechanism. However, the network convergence process of STP is a slow process. RSTP speeds up the network convergence process. But RSTP has a flaw same as STP, that is, Load Balance can not be implemented among VLANs. And MSTP not just fasts the network Convergence, MSTP implements load balancing among VLANs.
Note: The process of each port to change the status, we call it Convergence.
When STP is enabled, the redundant path in the network topology shown by the red line will be blocked to prevent loops. If one of the other links shown be the blue lines goes down, then the redundant link (red line) will come up to provide continuity in the switch network.
RSTP
Rapid Spanning Tree Protocol (RSTP) is an enhancement of STP which responds to Bridge Protocol Data Units (BPDU) from the direction of the root while STP cannot. It provides rapid convergence of the spanning tree.
MSTP
Multiple Spanning Tree Protocol (MSTP) is a further enhancement to RSTP which enables VLANs to be grouped into a spanning-tree instance, providing multiple forwarding paths for data traffic, and enabling load balancing.
BPDU
Bridge Protocol Data Unit (BPDU) contains the information to configure and maintain the spanning-tree topology, includes the port attribute, MAC address, priority, and path cost. Vigor Switches running STP, RSTP, MSTP exchange BPDUs to calculate a loop-free topology. During the deployment of a spanning tree protocol, the edge ports do not participate in the calculation of the spanning-tree and able to transition from the Disable status to the Forward status immediately. This way, the edge ports could prevent the switches from re-calculate due to frequent online and offline, to improve network reliability.
STP settings on DrayTek VigorSwitch
a. Switch LAN >> STP >> Properties
BPDU Handing
Filtering: Filter the BPDU packets when STP is disabled
Flooding: Flood the BPDU pacekts when STP is disabled