Chapter 2 - 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/85

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:24 PM on 9/26/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

86 Terms

1
New cards

What is the primary purpose of Spanning Tree Protocol (STP) in a redundant Layer 2 topology?

To build a loop-free topology by temporarily blocking traffic on redundant ports

2
New cards

Why can't Layer 2 forwarding loops be resolved the way Layer 3 loops are?

Because there is no time-to-live (TTL) mechanism for Layer 2 forwarding, so looped frames circulate indefinitely

3
New cards

List the five iterations/versions of Spanning Tree Protocol mentioned as part of its evolution.

802.1D (original), PVST, PVST+, 802.1W (RSTP), and 802.1S (MST)

4
New cards

Which three STP modes do modern Catalyst switches operate in, and are they backward compatible with 802.1D?

PVST+, RSTP, and MST; yes, all three are backward compatible with 802.1D

5
New cards

Name the six 802.1D port states.

Disabled, Blocking, Listening, Learning, Forwarding, and Broken

6
New cards

In 802.1D, which port state allows a port to receive BPDUs but not modify the MAC address table or forward other traffic?

Blocking

7
New cards

In 802.1D, which port state allows a port to send or receive BPDUs but still cannot forward other network traffic?

Listening

8
New cards

In 802.1D, which port state allows a port to update the MAC address table but still not forward non-BPDU traffic?

Learning

9
New cards

What is the final 802.1D port state in which a port both forwards traffic and updates the MAC address table?

Forwarding

10
New cards

What does the 802.1D 'Broken' port state indicate?

That the switch detected a configuration or operational problem on the port, causing it to discard packets while the problem persists

11
New cards

Roughly how long does it take an 802.1D port to go from blocking to forwarding under default timers?

About 30 seconds

12
New cards

Name the three port types defined by the 802.1D standard.

Root port (RP), designated port (DP), and blocking port

13
New cards

How many root ports per VLAN should exist on a single switch?

Only one

14
New cards

How many active designated ports should exist on a given link?

Only one

15
New cards

What destination MAC address do BPDU frames use?

01:80:c2:00:00:00

16
New cards

Name the two BPDU types used by STP.

Configuration BPDU and Topology Change Notification (TCN) BPDU

17
New cards

Which BPDU type is used to identify the root bridge, root ports, designated ports, and blocking ports?

The configuration BPDU

18
New cards

List the fields carried in a configuration BPDU.

STP type, root path cost, root bridge identifier, local bridge identifier, max age, hello time, and forward delay

19
New cards

Which BPDU type communicates a change in the Layer 2 topology to other switches?

The Topology Change Notification (TCN) BPDU

20
New cards

How is root path cost defined?

The combined (cumulative) interface cost along a specific path toward the root bridge

21
New cards

The system priority field used in root bridge elections is how many bits wide, and what is its default value?

4 bits; default value of 32,768

22
New cards

What does the 12-bit system ID extension in a bridge identifier represent?

The VLAN that the BPDU correlates to

23
New cards

A bridge's root bridge identifier is a combination of which three values?

The root bridge's system MAC address, system ID extension, and system priority

24
New cards

By default, how long does a bridge port retain BPDU information before assuming it is stale, and which command changes this value?

20 seconds (Max Age); spanning-tree vlan vlan-id max-age maxage

25
New cards

What is the default hello time interval for BPDU advertisement, and what range of values can it be configured to?

2 seconds by default; configurable from 1 to 10 seconds with spanning-tree vlan vlan-id hello-time hello-time

26
New cards

What is the default forward delay, and what does this timer govern?

15 seconds by default; it is the time a port spends in the listening and learning states, configurable from 4 to 30 seconds with spanning-tree vlan vlan-id forward-time forward-time

27
New cards

True or false: the terms 'bridge' and 'switch' are used interchangeably when discussing STP.

True — STP predates modern switches, and the original devices were called bridges

28
New cards

In short mode, what reference speed is used for calculating STP interface cost, and how many bits is the cost value?

20 Gbps reference speed; a 16-bit value

29
New cards

What is 'long mode' STP path cost, and why was it introduced?

A 32-bit cost value using a 20 Tbps reference speed, introduced because higher-speed interfaces made the original short-mode values insufficient

30
New cards

What is the short-mode STP cost assigned to a 1 Gbps interface?

4

31
New cards

What is the short-mode STP cost assigned to a 10 Gbps interface?

2

32
New cards

What is the short-mode STP cost assigned to a 100 Mbps interface?

19

33
New cards

What is the long-mode STP cost assigned to a 1 Gbps interface?

20,000

34
New cards

What command enables long-mode STP path cost calculation, and why should it be applied consistently?

spanning-tree pathcost method long; every switch in the Layer 2 topology should use the same setting to keep the topology consistent

35
New cards

When a switch first initializes and has not yet heard from any neighbors, which bridge does it assume itself to be?

The root bridge (it uses its own local bridge identifier as the root bridge identifier)

36
New cards

If a switch receives a neighbor's configuration BPDU that is superior to its own, what does it do?

It updates its own BPDUs to advertise the new root bridge identifier and a new root path cost reflecting the total cost to reach that root bridge

37
New cards

When comparing two bridge identifiers with equal priority, which switch is preferred as the more superior bridge?

The one with the lower system MAC address

38
New cards

Which field is empty in the output of show spanning-tree root when run on the root bridge itself?

The Root Port field, since the root bridge has no root port (all its ports are designated ports)

39
New cards

On SW1 (the root bridge) for VLAN 10, show spanning-tree root shows a priority of 32,778. How is this value derived?

It is the base bridge priority (32,768) plus the sys-id-ext, which equals the VLAN number (10)

40
New cards

Does the root path cost advertised in a BPDU include the cost of the port the BPDU is sent out of?

No — the receiving switch adds the cost of its own receiving interface to the advertised root path cost

41
New cards

What is the root path cost value on the root bridge itself?

Always zero

42
New cards

List, in order, the five tiebreaker criteria used to select a switch's root port.

1) Lowest path cost to the root; 2) lowest system priority of the advertising switch; 3) lowest system MAC address of the advertising switch; 4) lowest port priority on the advertising switch (for parallel links to the same switch); 5) lowest port number on the advertising switch

43
New cards

When two non-root switches are directly connected on what would otherwise be two designated ports, what must happen to prevent a loop?

One of the two ports must transition to a blocking state

44
New cards

Between two non-root switches whose link would otherwise have two designated ports, which switch's port is placed into blocking if their path costs to the root are tied and their system priorities are tied?

The switch with the higher system MAC address has its port blocked (the lower MAC address wins)

45
New cards

Which command displays STP role, state, cost, and priority for every interface on a switch, per VLAN?

show spanning-tree [vlan vlan-id]

46
New cards

In show spanning-tree output, what does the port type 'P2p Edge' indicate?

That STP portfast is enabled on that port

47
New cards

In show spanning-tree output, what does a Type field showing *TYPE_Inc - usually indicate?

A port configuration mismatch with the connected switch, often an incorrect port type or a trunk/access mode mismatch

48
New cards

Which command narrows STP output to a single interface across all its VLANs, and what optional keyword adds per-VLAN counters like BPDUs sent/received?

show spanning-tree interface interface-id, with the optional detail keyword

49
New cards

If a VLAN is missing from show spanning-tree interface output on a trunk port, what is a common cause to check?

The VLAN may be missing from that trunk port's allowed VLANs list

50
New cards

When a switch detects a link status change, in which direction does it send the TCN BPDU?

Out of its root port, toward the root bridge

51
New cards

After the root bridge receives a TCN, what does it do?

It generates a new configuration BPDU with the Topology Change flag set and floods it to all switches in the topology

52
New cards

When a switch receives a configuration BPDU with the Topology Change flag set, what does it do to its MAC address table aging?

It temporarily reduces the MAC address aging timer to the forward delay value (default 15 seconds) to flush stale entries

53
New cards

What is a side effect of temporarily shortening the MAC aging timer after a topology change?

A temporary increase in unknown unicast flooding while the MAC address table is rebuilt

54
New cards

After the topology-change period ends, what does the MAC address aging timer return to by default?

300 seconds

55
New cards

Are TCNs generated per switch or per VLAN?

Per VLAN

56
New cards

Which command shows how many topology changes have occurred and how long ago the last one happened?

show spanning-tree [vlan vlan-id] detail

57
New cards

Scenario: the link between two non-root switches fails, and one side's port toward the other was already in a blocking state. What is the impact on traffic?

None — traffic between the two switches was already flowing through the root bridge, so no forwarding path is lost (though a TCN is still generated)

58
New cards

Scenario: the root bridge loses its direct link to a downstream switch whose only other path was blocking. Roughly how long does that downstream switch take to reconverge, and why?

About 30 seconds — 15 seconds in listening plus 15 seconds in learning before the previously blocked port becomes the new root port

59
New cards

Why doesn't the root bridge itself ever generate a TCN BPDU?

Because the root bridge has no root port to send a TCN out of — it only originates configuration BPDUs with the Topology Change flag when notified by others

60
New cards

Scenario: a link fails between the root bridge and a non-root switch, but the remaining path to that switch runs through another switch whose port toward it is in a blocking state. What must expire before that blocking port can transition, and how long does full reconvergence take?

The STP Max Age timer (20 seconds by default) must expire before the port moves to listening; total reconvergence is about 50 seconds (20s Max Age + 15s listening + 15s learning)

61
New cards

What distinguishes an 'indirect' link failure from a 'direct' link failure in STP?

In an indirect failure the physical link stays up but STP communication (BPDUs) is impaired or filtered, so the failure must be detected by timer expiration rather than a Layer 1 down event

62
New cards

For an indirect link failure, what has to happen before the alternate port can begin transitioning toward forwarding?

The receiving switch's Max Age timer must expire, flushing the cached root port BPDU entry

63
New cards

What was the main scalability limitation of original 802.1D that Cisco's PVST/PVST+ addressed?

802.1D used only a single spanning-tree topology, preventing per-VLAN traffic engineering such as load balancing across redundant links

64
New cards

Which IEEE specification incorporated the concepts of PVST/PVST+ along with faster-convergence enhancements?

802.1W, Rapid Spanning Tree Protocol (RSTP)

65
New cards

RSTP reduces the number of port states from the traditional five (802.1D, excluding Broken) down to how many, and what are they?

Three: Discarding, Learning, and Forwarding

66
New cards

Which three traditional 802.1D states are merged into the single RSTP 'Discarding' state?

Disabled, Blocking, and Listening

67
New cards

Name the four RSTP port roles.

Root port, Designated port, Alternate port, and Backup port

68
New cards

What distinguishes an RSTP alternate port from a backup port?

An alternate port provides a different path toward the root bridge through another switch, while a backup port provides redundancy toward the same shared segment (typically via a hub)

69
New cards

Name the three RSTP port types used to help build the topology.

Edge port, Non-Edge port, and Point-to-point port

70
New cards

Which RSTP feature directly corresponds to an 'Edge port'?

STP portfast

71
New cards

What defines an RSTP 'Non-Edge' port?

A port that has received a BPDU

72
New cards

What condition must a link satisfy to be classified as an RSTP point-to-point port?

It must connect to another RSTP switch and operate at full duplex

73
New cards

Why is duplex status used as the quick test for RSTP point-to-point eligibility?

Because full-duplex links cannot support more than two devices on a segment, while half-duplex (shared, hub-like) segments can

74
New cards

If an RSTP-enabled port can only negotiate half duplex, how must it behave?

It must fall back to traditional 802.1D forwarding behavior

75
New cards

If an RSTP switch fails to receive an RSTP handshake from its neighbor, what does it assume, and what is the consequence?

It assumes the neighbor is not RSTP-capable and falls back to 802.1D behavior, which can introduce the traditional ~30-second transmission delay

76
New cards

What is the first thing two newly connected RSTP switches verify before starting synchronization?

That the link between them is point-to-point, by checking that it is full duplex

77
New cards

During RSTP synchronization, what do two newly connected switches exchange to each propose becoming the designated port for the segment?

A proposal carried in a configuration BPDU

78
New cards

During RSTP synchronization, how is it decided which of two connected switches is 'superior' and which is 'inferior'?

Using the same bridge identifier comparison as 802.1D: lowest system priority first, then lowest system MAC address

79
New cards

When the inferior switch in an RSTP synchronization recognizes its status, what does it do to its local port and to all of its non-edge ports?

It marks its local port as the root port and moves all of its non-edge ports to a discarding state, stopping local switching on them

80
New cards

After marking its root port, what does the inferior switch send back to the superior switch to signal synchronization is underway?

An agreement, carried in a configuration BPDU

81
New cards

Once the agreement is sent, what state do the inferior switch's root port and the superior switch's designated port move to?

Forwarding

82
New cards

After completing synchronization with its upstream neighbor, what does the inferior switch do next?

It repeats the same proposal/agreement synchronization process with any of its own downstream switches

83
New cards

Using default timers, after how many missed hello messages does RSTP consider a port's BPDU information stale?

Three consecutive hello intervals

84
New cards

With default timers, how long does it take RSTP to age out missing neighbor information, compared to 20 seconds for 802.1D's Max Age?

About 6 seconds

85
New cards

What happens if a downstream switch fails to acknowledge an RSTP proposal during synchronization?

The RSTP switch falls back to 802.1D-style behavior to avoid creating a forwarding loop

86
New cards