- STP states/timers
- STP BPDU
- STP optional features
- STP configuration
STP Port State | Stable / Transitional |
---|---|
Blocking | Stable |
Listening | Transitional |
Learning | Transitional |
Forwarding | Stable |
- Root/Designated ports remain stable in a
forwarding
state. - Non- designated ports remain stable in
Blocking
state. - In case of new device addition, interface shutdown, hardware failure they may have to change states.
Listening and Learning
are transitional states which are passed through when an interface is activated, or whenBlocking
port must transition to aForwarding
state.
- Non designated ports are in
Blocking State
. - Interfaces in a
Blocking state
are effectively disabled to prevent loops. - Interfaces in a
Blocking state
do not send/receive regular network traffic. (if arrived, will be dropped) - Interfaces in this state do not learn MAC addresses. (if regular traffic arrives, it will be dropped without adding mac address to the mac address table)
- Interfaces in this state will receive
STP BPDUs
(to be aware to Spanning tree topology and be ready to transition towards forward state if needed.) - But interfaces in this state do not forward
STP BPDUs
.
- After the
blocking state
, interfaces withDesignated or Root
role enterListening State.
- Only
Designated or Root ports
enter theListening state
(Non designated
ports are alwaysBlocking
)
- Only
- This state is
15 sec
long by default. This is determined by the forward delay timer. - Interface in this state only forwards/receives STP BPDUs.
- It does not send or receive regular traffic.
- Interfaces in this state do not learn MAC addresses. (if regular traffic arrives, it will be dropped without adding mac address to the mac address table)
- After the listening state, a
Designated or Root
port will enter theLearning state
- This state is
15 sec
long by default. This is determined by the forward delay timer. - Interface in this state only forwards/receives STP BPDUs.
- It does not send or receive regular traffic.
BUT
Interfaces in this state do not learn MAC addresses. (if regular traffic arrives, it will be dropped without adding mac address to the mac address table)
Root and Designated ports
are in Forwarding State.- A port in this state operated as normal
- A port in this state send and receives
BPDUs
- It also sends and receives normal traffic.
- It also learns
mac address
from the frames that arrives and add them to theMac address table
- A port in this state send and receives
- Can be enabled in an interfaces connected to
end hosts
.