Chapter 2: Spanning Tree Flashcards
List the 802.1D port states
Disabled Blocking Listening Learning Forwarding Broken
Identify the CST port state:
-The port is shutdown.
Disabled
Identify the CST port state:
- Port is enabled but not forwarding traffic.
- Can only receive BPDU from other switches.
Blocking
Identify the CST port state:
- Port has transitioned from a blocking state and can now send or receive BPDUs.
- Port is capable of becoming root port.
- 15 seconds.
Listening
Identify the CST port state:
- Port can modify MAC address table with any traffic it receives.
- Does not forward traffic except BPDUs.
- 15 seconds
Learning
Identify the CST port state:
- Port can forward all network traffic and update MAC address table.
- This is the final port state.
Forwarding
Identify the CST port state:
- A configuration or an operational problem on a port that can have major effects has been detected.
- The port discards packets as long as the problem continues to exist.
Broken
By default, how long does 802.1D take for a port to transition through all the port states?
30 seconds
List the 802.1D port types
Root port
Designated port
Blocking port
Original STP from IEEE.
Ensures loop-free topology for one vlan.
802.1D
Root of the spanning-tree from which all path calculations are directed towards.
Lowest BID
Root bridge
What is a BPDU?
Bridge Protocol Data Unit
What destination MAC does a BPDU use?
Multicast 01:80:c2:00:00:00
What does the configuration BPDU identify?
Root bridge
Root ports
Designated ports
Blocking ports
When is a Topology Change Notifcation (TCN) BPDU sent?
When a link status changes.
Combined cost for a specific path toward the root switch.
Root path cost
4-bit value that identifies the preference for a switch to be root bridge.
System priority (Bridge priority)
What is the default system priority?
32768
What is the system ID extension?
12-bit value.
Indicates the VLAN that the BPDU correlates to.
What combines to form the root bridge identifier?
Root bridge system MAC
System ID extension
System priority of the root bridge
What combine to form the local bridge identifier?
Local switch’s MAC address
System ID extension
System priority of root bridge
The maximum length of time that passes before a bridge port saves its BPDU information.
Max age
Max age default value
20 seconds
What three timers does STP use to make sure that a network converges properly before a bridging loop occurs?
Hello timer
Forward delay
Max age
What are the 2 spanning-tree cost modes?
Short mode
Long mode
STP Port Costs: 10 Mbps 100 Mbps 1 Gbps 10 Gbps
SM / LM 10 Mbps = 100 / 2,000,000 100 Mbps = 19 / 200,000 1 Gbps = 4 / 20,000 10 Gbps = 2 / 2,000
Hello timer default interval
2 seconds
Max age default time
20 seconds
Forward delay default value
15 seconds
What command is used to configure spanning-tree for long-mode interface cost?
spanning-tree pathcost method long
What does a BID consist of?
Bridge priority (system priority)- 2 bytes MAC address- 6 bytes
How many bytes make up a BID?
8 bytes
Bridge priority range and default value?
Range: 0-65535
Default: 32768 (0x8000)
Explain the root bridge election process.
- Switches send out BPDUs with a root BID equal to its own BID and a sender BID that is it’s own BID.
- Received BPDUs are analyzed to determine if it is a better BPDU.
- The switch that sent the better BPDU becomes the root bridge.
- Non-root bridges update their BPDU to advertise the net root BID and root path cost.
What determines the root bridge?
- Lower Bridge priority.
2. Lower MAC address (if priority is the same).
Interface STP cost is used to determine ____ ____ ___ ?
Root path cost
Which switch will become the root bridge?
Switch A:
System priority 16572
MAC 0062.ec9d.c500
Switch B:
System Priority 20480
MAC 0062.ec9d.3500
Switch C:
System priority 32768
MAC 0062.ec9d.a500
Switch B.
What command is used to display the root bridge?
show spanning-tree root
Root port election process
- Interface with lowest path cost.
- Interface with the lowest system priority of advertising switch.
- Interface with the lowest MAC address of advertising switch.
- Lowest port priority, if multiple links involved.
- Lower port number, if multiple links involved.
If two non-root switches are connected on their designate ports, what port state will one of the ports become?
Blocking
What determines which port becomes blocked between two non-root switches?
Switch must be a designated port
- Switch with the higher path cost blocks.
- Higher system priority blocks.
- Higher MAC address blocks.
List the various STP versions.
802.1D PVST PVST+ 802.1W RSTP 802.1S MST
What 3 STP modes do Cisco Catalyst switches operate in?
PVST+
RSTP
MST
What port types are expected on Catalyst switches?
P2P
P2P Edge
This type of port specifies portfast is enable on the port.
P2P Edge
This port type connects with another network device,
P2P
‘show spanning-tree’ is issued on a switch. The Type field shows *TYPE_INC. What does this signify?
Port configuration mismatch between the switch and the switch it’s connected to.
True or False:
BPDUs always flow from the edge switches to the root bridge in a stable L2 topology.
False.
BPDUs originate from the root bridge.
True or False:
Root bridges contain root ports.
False:
All ports on a root bridge are designated ports.
What cause a TCN BPDU to be generated?
L2 topology change.
What does the root bridge do when a TCN BPDU is received?
- Creates a new configuration BPDU.
- Sets the topology change flag.
- Floods the BPDU to all switches.
What does a non-root bridge do when it receives a configuration BPDU with the topology change flag set?
- Changes MAC address timer to the forwarding delay timer.
- Flushes all learned MAC address, EXCEPT MACs that are actively communication.
- Reset MAC address timer to default (300 seconds) when second configuration BPDU is received.
True or False:
TCNs are generated on a VLAN basis.
True
What command shows topology changes?
show spanning-tree [vlan #] detail
True or False:
A root bridge can generate a configuration BPDU with the Topology Change flag set, without ever receiving a TCN.
True
What are the IEEE spanning-tree versions?
- 1D Common Spanning Tree
- 1W RSTP
- 1S MSTP
What are the Cisco spanning-tree versions?
PVST
PVST+
RPVST+
What are the 802.1W port states?
Discarding
Learning
Forwarding
Name the 802.1W root ports.
Root port
Designated port
Alternate port
Backup port
Name the 802.1W port types.
Edge port
Root port
Point-to-point port
True or False:
802.1D improve 802.1W by reducing the number of port states a port transitions through to reach the forwarding state.
False
- 1D is CST.
- W is RSTP
A port that connects to the root switch or an upstream switch. Has the best path cost toward the root bridge.
Root port
A port that provides connectivity to downstream switches and devices.
Designated port
A port that provides alternate connectivity toward the root through a different switch.
Alternate port
This port only exists when there are multiple links between the same switches. It cannot guarantee connectivity to the root in the event that the upstream switch fails.
Backup port
A port where host connect to the L2 topology with one interface and cannot form a loop.
Edge port