Section 25: STP - Spanning Tree Protocol

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/45

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 12:20 AM on 8/4/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

46 Terms

1
New cards

Are all ports on the Root Bridge always Designated ports?

Yes

2
New cards

How is a switch's Root Port selected?

The interface on the lowest-cost path to the Root Bridge.

3
New cards

What is the default STP Forward Delay timer?

15 seconds

4
New cards

For a port on shared media (e.g. a hub), what's the timing from Discarding to Forwarding?

Discarding→Learning is nearly instant; Learning→Forwarding takes one Forward Delay timer (15s default).

5
New cards

In a Bridge Priority tie, how is the Root Bridge chosen?

Lowest MAC address wins.

6
New cards

What is PVST+?

Cisco's enhancement to 802.1D STP; the default STP mode on Cisco switches.

7
New cards

What makes up a switch's Bridge ID?

MAC address + administrator-defined Bridge Priority.

8
New cards

What is RPVST+?

Cisco's enhancement to 802.1w RSTP; significantly improves convergence over PVST+.

9
New cards

What does Root Guard prevent?

An unintended switch from becoming the Root Bridge.

10
New cards

What's distinctive about 802.1D regarding VLANs?

One single spanning tree instance for all VLANs (vs. per-VLAN in PVST+/RPVST+).

11
New cards

What is the default Bridge Priority?

32768

12
New cards

What port role sits on the neighboring switch directly opposite a Root Port?

Designated Port

13
New cards

What is MSTP (802.1s) used for?

Grouping/mapping VLANs into different spanning tree instances for load balancing

14
New cards

What state is a port in immediately when it comes online?

Blocking (802.1D) / Discarding (RPVST+)

15
New cards

What protects against loops on Portfast-enabled ports?

BPDU Guard

16
New cards

What does Switch(config-if)# spanning-tree bpdufilter enable do, and why is it risky?

Disables BPDU processing on that interface entirely — effectively disables STP loop protection there.

17
New cards

Which STP port state is eliminated in RPVST+ compared to 802.1D?

Listening

18
New cards

Which STP versions rely on timer-based convergence?

PVST+ and 802.1D (not RPVST+ or RSTP).

19
New cards

Is standard RSTP (802.1w) itself supported on Cisco switches?

No — Cisco implements RPVST+ instead.

20
New cards

What is a broadcast storm, and why is it so damaging?

Uncontrolled looping of broadcast traffic across redundant Layer 2 links — it multiplies rapidly and can overwhelm switch CPU and bandwidth, effectively crashing the network.

21
New cards

What's the tradeoff of using STP to prevent loops?

STP blocks physically cabled, working links to prevent loops — this reduces available uplink bandwidth (e.g. from 2Gb to 1Gb if one of two uplinks is blocked) and has relatively slow convergence (up to 50 seconds with legacy 802.1D).

22
New cards

Why can't a Layer 2 loop resolve itself the way a Layer 3 routing loop can?

The Ethernet Layer 2 header has no TTL field (unlike the IP header at Layer 3), so looping broadcast traffic will loop forever unless something (like STP) actively prevents it.

23
New cards

What's the difference between Short-Mode and Long-Mode STP path cost, and which is the default?

Short-Mode (16-bit, default) maxes out at a cost of 1 for any interface ≥20 Gbps, making faster interfaces indistinguishable. Long-Mode (32-bit) is more granular, distinguishing costs up to 20 Tbps — must be enabled consistently on all switches if used.

24
New cards

Does STP load balance across multiple equal-cost paths to the Root Bridge?

No — STP always selects a single best path. Ties are broken by the lowest neighbor Bridge ID, then (if still tied) the lowest Port ID.

25
New cards

How does a switch know when to transition a Blocked/Alternate port back to forwarding after a topology change?

The Designated Port continues sending BPDUs across a blocked link. If the blocked side stops receiving those (better) BPDUs — e.g. because the upstream link failed — it unblocks and becomes the new Designated/Root Port.

26
New cards

What's the key structural difference between MSTP (802.1s) and Cisco's PVST+/RPVST+ regarding VLANs and instances?

MSTP allows multiple VLANs to be grouped into a single spanning tree instance. PVST+ and RPVST+ always run one separate instance per individual VLAN — more load on the switch, even though both support VLAN-based load balancing

27
New cards

What happens to existing Spanning Tree configuration when migrating a switch from PVST+ to Rapid-PVST+?

It carries over unchanged — same configuration and verification commands work for both; only convergence speed improves.

28
New cards

In Cisco's show spanning-tree output, what protocol name is shown even when the switch is running Cisco's proprietary PVST+?

IEEE — this is a quirk of Cisco's naming; it doesn't mean the switch is running a standard IEEE version like RSTP or MSTP.

29
New cards

In show spanning-tree output, what's the difference between the Root Path Cost (in the Root ID section) and the interface cost shown per-port?

Root Path Cost is the total cumulative cost across every link back to the Root Bridge. The per-interface cost is just that individual link's own cost — you add up the interface costs along the path to get the cumulative Root Path Cost.

30
New cards

Why might traffic in a switched network take a longer physical path than necessary, even with full connectivity available?

Because STP forces all traffic onto a single tree topology (not a routing protocol calculating shortest paths) — traffic follows whatever path the Spanning Tree has built, which isn't guaranteed to be the most direct route between two specific hosts.

31
New cards

What Bridge Priority values do root primary and root secondary commands set?

root primary sets 24576; root secondary sets 28672 (both better than the default 32768).

32
New cards

Why is it safe to enable Portfast on a port connecting to a normal end host, but not on a port connecting to another switch?

An end host doesn't forward frames it receives back into the network (it's not a bridge), so it can never create a loop. A switch port can form a loop, so Portfast should never be enabled there.

33
New cards

Why is automatic errdisable recovery for BPDU Guard generally not recommended?

If the root cause (e.g. an unauthorized switch) isn't fixed, the port will keep flapping — coming back up, immediately receiving another BPDU, and going back down again on a repeating cycle.

34
New cards

How does BPDU Filter differ from BPDU Guard in how it handles a received BPDU?

BPDU Guard error-disables (shuts down) the port entirely. BPDU Filter does not shut the port down — its behavior instead depends on where it's configured (global vs. interface level).

35
New cards

What's the difference between enabling BPDU Filter globally vs. at the interface level?

Globally, it only applies to Portfast-enabled ports — it stops sending BPDUs, but if one is received, Portfast/filtering is removed and the port reverts to normal STP behavior. At the interface level, it fully disables STP on that port (no BPDUs sent or processed).

36
New cards

What does Loop Guard protect against?

Unidirectional link failures — it prevents a Root or Blocking port from transitioning to Designated/forwarding just because it stopped receiving expected BPDUs (which would otherwise create a one-way loop).

37
New cards

Which port roles does Loop Guard actually operate on?

Root ports and Blocking (non-designated) ports only — not Designated ports, since BPDUs aren't expected there anyway.

38
New cards

What state does Loop Guard place a port into when it detects a problem, and does it recover automatically?

Loop-inconsistent (blocking) state — it recovers automatically once BPDUs are received again.

39
New cards

Can Loop Guard and Root Guard be enabled on the same port?

No — they're mutually exclusive, since they do opposite things (Root Guard stops a Designated port from becoming non-designated; Loop Guard stops a non-designated port from becoming Designated). Enabling one disables the other on that port.

40
New cards

What's the alternative, non-STP mechanism for detecting unidirectional links, and how does it work?

UDLD (Unidirectional Link Detection) — a separate Layer 2 protocol that sends keepalives in both directions to detect the failure.

41
New cards

What is the default STP Max Age Timer, and when does it come into play?

20 seconds — applies during reconvergence after a failure, before a previously blocking port begins transitioning toward forwarding.

42
New cards

What convergence mechanism do RSTP/RPVST+/MSTP use instead of the old timer-based approach?

A proactive Proposal/Agreement (sync) mechanism — switches directly negotiate whether a port can safely go forwarding, rather than waiting out fixed timers.

43
New cards

Do RPVST+/RSTP/MSTP require Uplinkfast and Backbonefast to be manually configured for fast convergence?

No — equivalent fast convergence is built in automatically, unlike PVST+/802.1D where those Cisco proprietary features must be manually enabled.

44
New cards

In a network with mixed STP versions, how does a switch running a newer version behave toward a neighbor running an older version?

It falls back to the older version on that specific port only (detected via BPDU version/type fields) — fast convergence is only available on ports where both sides run the newer version.

45
New cards

What's the difference between an Alternate port and a Backup port in RSTP/RPVST+?

Alternate is a standby for a Root Port (an alternate path to the Root Bridge). Backup is a standby for a Designated Port on a shared segment (e.g. a redundant link into a hub) — not seen on normal switch-to-switch links.

46
New cards

Why does connecting a hub prevent rapid convergence on that RPVST+ port?

RPVST+ only supports rapid convergence on full-duplex, point-to-point links. A hub forces half-duplex, so RPVST+ classifies that port as "shared" and falls back to the old timer-based convergence.