Network Switching and Routing
Network Switching and Routing
➢ Forward delay: The forward delay is the time that is spent in the
listening and learning state. This time is equal to 15 sec by default, but
you can tune the time to be between 4 and 30 sec.
➢ Max age—The max age timer controls the maximum length of time
that passes before a bridge port saves its configuration BPDU
information. This time is 20 sec by default, but you can tune the time
to be between 6 and 40 sec.
Timers
Each configuration BPDU contains these three parameters. In addition,
each BPDU configuration contains another time-related parameter that is
known as the message age. The message age is not a fixed value. The
message age contains the length of time that has passed since the root
bridge initially originated the BPDU. The root bridge sends all its
BPDUs with a message age value of 0, and all subsequent switches add 1
to this value. Effectively, this value contains the information on how far
you are from the root bridge when you receive a BPDU.
Timers
- The MAX Age represents the aging timer of a BPDU.
- BPDU are discarded when Message Age exceeds MAX Age.
Root Election Process
- All STP switches advertise BDPU to peers with self as root.
Port Role Establishment Process
- The Bridge ID and Root Path Cost are used to elect port roles.
Port State Transition
- There are five Spanning Tree Port States: Blocking, Listening, Learning,
Forwarding, and Disabled States.
Port State Transition
✓ Each switch will progress through a number of port state transition.
✓ Any port that is administratively disabled will be considered to be in the disabled state.
✓ Enabling of a port in the disabled state will see a state transition to the blocking state 1
✓ 2 Any BPDU received will be used to determine whether a transition to the listening
state is necessary.
✓ 3 May occur in the event that the port is changed to an alternate port role.
✓ STP defines a delay mechanism for port state transition. The newly selected root port
and designated port must wait for two Forward Delay intervals (listening 15sec +
learning 15sec) before transitioning to the Forwarding state 4
✓ The disabled state is reachable at any time during the state transition period 5
Port State Transition
✓ Switch port remains in blocking state for 20 seconds and later changes
to listening state.
✓ Switch port remains in listening state for 15 seconds and then move to
learning state.
✓ Switch port remains in learning state for 15 seconds and then move to
forwarding state.
Port State Transition
STP Exercise