The following parameters affect the STP port states and convergence.
The Hello timer determines the interval at which an STP-capable device sends configuration BPDUs. The device sends BPDUs at an interval of the Hello timer to check whether any link has failed.
When the Hello timer is changed, the new value takes effect only after a new root bridge is elected. The new root bridge includes the new Hello timer value in BPDUs it sends to non-root bridges. If the network topology changes, TCN BPDUs are immediately transmitted regardless of the Hello timer.
The Forward Delay timer specifies the delay in a port state transition. If a link fails, STP calculation is triggered and the spanning tree structure changes accordingly. However, new configuration BPDUs cannot be flooded immediately across the entire network. If the new root port and designated port forward data immediately, transient loops may occur. Therefore, STP defines a delay mechanism for port state transition. The newly selected root port and designated port must wait for two Forward Delay intervals before transitioning to the Forwarding state. During this period, the new configuration BPDUs can be transmitted over the network, preventing transient loops.
The Forward Delay timer defines the time that is spent in Listening or Learning state. The default Forward Delay value is 15 seconds. This means that the port stays in Listening state for 15 seconds and then stays in Learning state for another 15 seconds before transitioning to the Forwarding state. The port in Listening or Learning state does not forward user traffic, effectively preventing transient loops.
The Max Age timer specifies the aging time of BPDUs. This parameter is configurable on the root bridge.
The Max Age value is encapsulated in configuration BPDUs and transmitted on the entire network to ensure consistency. Upon receipt of a configuration BPDU, a non-root bridge compares the Message Age value with the Max Age value in the received configuration BPDU.
If the configuration BPDU is sent from the root bridge, the Message Age value is 0. Otherwise, the Message Age value is the total time required to transmit the BPDU from the root bridge to the local bridge, including the transmission delay. The Message Age value of a configuration BPDU is incremented by 1 each time the configuration BPDU passes through a bridge.
In Figure 1: