Ch 2: Spanning Tree Protocol Flashcards
How many different BPDU types are there?
a. One
b. Two
c. Three
d. Four
B. There are two BPDU types: the configuration BPDU and topology change notification BPDU.
What attribute is used to elect a root bridge?
a. Switch port priority
b. Bridge priority
c. Switch serial number
d. Path cost
B. The switch with the lowest bridge priority is elected as the root bridge. In the event of a tie, the bridge MAC address is used to elect a root bridge.
The original 802.1D specification assigns what value to a 1 Gbps interface?
a. 1
b. 2
c. 4
d. 19
C. The original 802.1D specification set the value of 4 for a 1 Gbps interface.

All of the ports on a root bridge are assigned what role?
a. Root port
b. Designated port
c. Superior port
d. Master port
B. All of the ports on a root bridge are assigned the designated port role.(forwarding)
Using default settings, how long does a port stay in the listening state?
a. 2 seconds
b. 5 seconds
c. 10 seconds
d. 15 seconds
D. The default 802.1D specification places a switch port in the listening state for 15 seconds
Upon receipt of a configuration BPDU with the topology change flag set, how do the downstream switches react?
a. By moving all ports to a blocking state on all switches
b. By flushing out all MAC addresses from the MAC address table
c. By temporarily moving all non-root ports to a listening state
d. By flushing out all old MAC addresses from the MAC address table
e. By updating the Topology Change version flag on the local switch database
D. Upon receipt of a TCN BPDU, a switch sets the age for all MAC addresses to 15 seconds. Non-active/older entries are flushed from the MAC address table.
Which of the following is not an RSTP port state? (choose two)
a. Blocking
b. Listening
c. Learning
d. Forwarding
A and B. The blocking and listening states have been combined into the discarding state of RSTP.
True or false: In a large Layer 2 switch topology, the infrastructure must fully converge before any packets can be forwarded.
a. True
b. False
B. False. STP allows for traffic to flow between switches once a root bridge has been elected and the ports have gone through the appropriate listening and learning stages.
True or false: In a large Layer 2 switch topology that is running RSTP, the infrastructure must fully converge before any packets can be forwarded.
a. True
b. False
B. False. RSTP allows for traffic to flow between switches that have synchronized with each other, while other parts of the Layer 2 topology converge.
T/F: PVST+, RSTP, and MST modes are backward compatible with 802.1D
Catalyst switches now operate in PVST+, RSTP, and MST modes. All three of these modes are backward compatible with 802.1D.
What are 802.1D, 802.1W and 802.1S?
STP has multiple iterations:
- 802.1D, which is the original specification
- Per-VLAN Spanning Tree (PVST)
- Per-VLAN Spanning Tree Plus (PVST+)
- 802.1W Rapid Spanning Tree Protocol (RSTP)
- 802.1S Multiple Spanning Tree Protocol (MST)
List and define the 802.1D port states.
- Disabled: The port is in an administratively off position (that is, shut down).
- Blocking: The switch port is enabled, but the port is not forwarding any traffic to ensure that a loop is not created. The switch does not modify the MAC address table. It can only receive BPDUs from other switches.
- Listening: The switch port has transitioned from a blocking state and can now send or receive BPDUs. It cannot forward any other network traffic. The duration of the state correlates to the STP forwarding time. The next port state is learning.
- Learning: The switch port can now modify the MAC address table with any network traffic that it receives. The switch still does not forward any other network traffic besides BPDUs. The duration of the state correlates to the STP forwarding time. The next port state is forwarding.
- Forwarding: The switch port can forward all network traffic and can update the MAC address table as expected. This is the final state for a switch port to forward network traffic.
- Broken: The switch has detected a configuration or an operational problem on a port that can have major effects. The port discards packets as long as the problem continues to exist.
List and define the 802.1D port types.
- Root port (RP): A network port that connects to the root bridge or an upstream switch in the spanning-tree topology. There should be only one root port per VLAN on a switch.
- Designated port (DP): A network port that receives and forwards BPDU frames to other switches. Designated ports provide connectivity to downstream devices and switches. There should be only one active designated port on a link.
- Blocking port: A network that is not forwarding traffic because of STP calculations.
What is the destination MAC address of a BPDU?
Bridge protocol data unit (BPDU): This network packet is used for network switches to identify a hierarchy and notify of changes in the topology. A BPDU uses the destination MAC address 01:80:c2:00:00:00, the multicast address reserved for STP.
There are two types of BPDUs:
Configuration BPDU: This type of BPDU is used to identify the root bridge, root ports, designated ports, and blocking ports. The configuration BPDU consists of the following fields: STP type, root path cost, root bridge identifier, local bridge identifier, max age, hello time, and forward delay.
Topology change notification (TCN) BPDU: This type of BPDU is used to communicate changes in the Layer 2 topology to other switches. This is explained in greater detail later in the chapter.
What is STP ‘system priority’?
System priority: This 4-bit value indicates the preference for a switch to be root bridge. The default value is 32,768. Same as Bridge Priority.
What is the STP ‘max age’ timer?
What is the default?
What is the command to change this?
If a switch loses contact with the BPDU’s source, it assumes that the BPDU information is still valid for the duration of the Max Age timer.
The default value is 20 seconds, but the value can be configured with the command:
- spanning-tree vlan vlan-id max-age maxage.
What is the default Hello time interval in STP?
What is the command to change the hello time?
This is the time that a BPDU is advertised out of a port. The default value is 2 seconds, but the value can be configured to 1 to 10 seconds with the command spanning-tree vlan vlan-id hello-time hello-time.
What is STP ‘forward delay’?
This is the amount of time that a port stays in a listening and learning state. The default value is 15 seconds, but the value can be changed to a value of 15 to 30 seconds with the command spanning-tree vlan vlan-id forward-time forward-time.
Define STP cost, both short and long.
The interface STP cost is an essential component for root path calculation because the root path is found based on the cumulative interface STP cost to reach the root bridge. The interface STP cost was originally stored as a 16-bit value with a reference value of 20 Gbps. As switches have developed with higher-speed interfaces, 10 Gbps might not be enough. Another method, called long mode, uses a 32-bit value and uses a reference speed of 20 Tbps. The original method, known as short mode, is the default mode.
Table 2-2 displays a list of interface speeds and the correlating interface STP costs.

How can devices be configured to us the ‘long-mode interface cost’ with STP?
Devices can be configured with the long-mode interface cost with the command spanning-tree pathcost method long. The entire Layer 2 topology should use the same setting for every device in the environment to ensure a consistent topology. Before enabling this setting in an environment, it is important to conduct an audit to ensure that the setting will work.
When a switch examines a configuration BPDU to determine the Root Port it uses the following logic. Put them in order!
- When multiple links are associated to the same switch, the lower port number from the advertising switch is preferred.
- The interface associated to the lowest system priority of the advertising switch is preferred next.
- The interface associated to lowest path cost is more preferred.
- When multiple links are associated to the same switch, the lowest port priority from the advertising switch is preferred.
- The interface associated to the lowest system MAC address of the advertising switch is preferred next.
Locating Root Ports
After the switches have identified the root bridge, they must determine their root port (RP). The root bridge continues to advertise configuration BPDUs out all of its ports. The switch compares the BPDU information to identify the RP. The RP is selected using the following logic (where the next criterion is used in the event of a tie):
- The interface associated to lowest path cost is more preferred.
- The interface associated to the lowest system priority of the advertising switch is preferred next. (Bridge ID)
- The interface associated to the lowest system MAC address of the advertising switch is preferred next.
- When multiple links are associated to the same switch, the lowest port priority from the advertising switch is preferred.
- When multiple links are associated to the same switch, the lower port number from the advertising switch is preferred.
To simplify:
- lowest path cost becomes root port
- tie? use lowest system priority of the advertising switch…
- Still tied?? use the lowest system MAC address of the advertising switch…
- multiple ports? use port-priority.
- multiple ports with a tie?? use lower port number.
When examining an STP domain what command is useful for locating the root bridge?
The root bridge can be identified for a specific VLAN through the use of the command show spanning-tree root and examination of the CDP or LLDP neighbor information to identify the host name of the RP switch. The process can be repeated until the root bridge is located.
When the command show spanning-tree root is run on a root bridge what are the values for ‘Root Port’ and ‘Root Cost’?
The ‘Root Port’ is empty/null and the ‘Root Cost’ value is 0.
The output of show spanning-tree root includes the VLAN number, root bridge identifier, root path cost, hello time, max age time, and forwarding delay.
Because SW1 is the root bridge, all ports are designated ports, so the Root Port field is empty. This is one way to verify that the connected switch is the root bridge for the VLAN.
The advertised root path cost is always the value calculated on the local switch. As the BPDU is received, the local root path cost is the advertised root path cost plus the local interface port cost. The root path cost is always zero on the root bridge.
What is the root bridge priority of VL10 on SW1 in an STP domain with the default bridge priority set on the switch?
The root bridge priority on SW1 for VLAN 10 is 32,778 and not 32,768. The priority in the Configuration BPDU packets is actually the priority plus the value of the sys-id-ext (which is the VLAN number). This means that VLAN 10 has a priority of 32,778, which is 10 higher than 32,768.

