The process a switch goes through to create a spanning tree. (High Level)
Bridge ID
Unique identifier for each switch
Root bridge
Switch with the lowest bridge ID
Root port
The port on each bridge closest to the root bridge
Root path cost
A bridge’s calculated cost to get from itself to the root bridge
Equal to the received root path cost from configuration BPDUs plus the port cost of the root port on the bridge
Port cost
Every interface on a bridge has an assigned port cost value
Designated bridge
A switch representing the LAN segement
Port ID
A unique identifier for each port on each switch
Designated port
The designated bridge’s forwarding port on a LAN segment.
The port used by a designated bridge to send traffic from the direction of the root to the LAN or from the LAN toward the root.
Bridge protocol data unit
Packets used to exchange information between switches
Types of BPDUs:
In STP, what are the four states a bridge’s port can be in?
Blocking state (STP)
2. The port is not used in active topology
Listening state (STP)
2. The port is transitioning and will be used in active topology
Learning state (STP)
2. The port is transitioning and the switch is learning MAC addresses
Forwarding state (STP)
Ethernet Frame Format
BPDU Format
BPDU Field: Protocol ID
This value is always 0
BPDU Field: Protocol Version
This value is always 0
BPDU Field: BPDU Type
This field determines which of the two BPDU formats this frame contains:
BPDU Field: Flags
This field is used to handle changes in the active topology
BPDU Field: Root ID
This field contains the bridge ID (BID) of the Root Bridge.
After convergence, all configuration BPDUs in the bridge network should contain the same value for this field (for a single VLAN).
Some network sniffers break out the two BID subfields: