What does STP (IEEE 802.1D) do?
STP prevents Layer 2 loops by creating a loop-free logical topology.
How is the Root Bridge elected in STP?
Root Bridge Election is based on the lowest Bridge ID (priority + MAC address).
What are Bridge Protocol Data Units (BPDUs)?
BPDUs are exchanged to share topology information.
What are the Port Roles in STP?
Port Roles include Root Port, Designated Port, and Non-Designated (Blocking) Port.
What are the Port States in STP?
Port States: Blocking → Listening → Learning → Forwarding → Disabled.
What is Rapid STP (RSTP)?
RSTP improves convergence time to <6 seconds.
What is Multiple STP (MSTP)?
MSTP maps multiple VLANs to a single STP instance.
What is Per-VLAN STP (PVST+)?
PVST+ runs a separate STP instance per VLAN (Cisco proprietary).
What is Rapid PVST+?
Rapid PVST+ combines RSTP speed with PVST+ VLAN granularity.
What does BPDU Guard do?
BPDU Guard disables a port if a BPDU is received on a PortFast-enabled port.
What is the Root Port in STP?
Root Port is the port with the lowest path cost to the Root Bridge.
What is a Designated Port?
Designated Port is the best forwarding port on a segment.
How is Path Cost determined?
Path Cost is inversely proportional to link speed (e.g., 100 Mbps = cost 19).
What are the tiebreakers for equal-cost paths?
Tiebreakers: lowest sender BID → lowest port priority → lowest port number.
What are Topology Change Notification (TCN) BPDUs?
TCN BPDUs are sent when a port goes up/down.
What does PortFast do?
PortFast skips Listening/Learning states for edge ports (e.g., hosts).
What is UplinkFast?
UplinkFast accelerates convergence for access-layer switches with redundant uplinks.
What does BackboneFast do?
BackboneFast speeds up convergence when indirect link failures occur.
What does Loop Guard do?
Loop Guard prevents alternate ports from becoming designated due to missing BPDUs.
What does Root Guard do?
Root Guard prevents a port from becoming a Root Port if a superior BPDU is received.
What is a design tip for STP?
Always manually set Root Bridge priority to control topology (default is 32768).
How can you verify STP configurations?
Use show spanning-tree to verify port roles, root bridge, and path costs.
What can cause interoperability issues in STP?
Mismatch in STP versions (e.g., PVST+ vs MSTP) can cause interoperability issues.
What does BPDU Filtering do?
BPDU Filtering suppresses BPDU transmission/reception—use with caution.