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.