Building Redundant Switched Topologies Flashcards
What is STP (in general) and what is it’s main goal?
Spanning Tree Protocol
It is used to prevent loops for forming when creating redundant links on the network.
NOTE: If a loop forms, then things such as a broadcast storm can start and end up taking down the network.
What does STP use for determining if there are redundant connections and how does it handle those redundant connections?
BPDU (Bridge Protocol Data Units)
Devices using STP send out BPDU’s out it’s ports to determine the links on the network and it will disable redundant links. If a primary link goes down, it will notice this using BPDU’s and enable the previously disabled redundant link.
How does STP find the best path?
- Elect the root bridge
- it becomes the center of the network in terms of STP (logical network) - Find the best path to the root
- lowest cost
- lowest bridge ID (if the costs are the same)
- lowest port number (if the cost and bridge IDs are the same) - Block whatever is left over
What are 3 conditions that can occur in a redundant switch topology if no protocols are monitoring link forwarding state?
- Continuous frame duplication - also called a broadcast storm. Switches flood broadcast, multicast and unknown unicast frames to all ports except the originating port endlessly.
- Multiple frame transmission - multiple copies of the same multicast frame could cause unrecoverable errors in protocols that don’t expect the same copy of a frame.
- MAC database instability - different ports on the switch receive copies of the same frame, causing the switch to work harder to process this in the MAC database, thus consuming it’s resources and could lead to impairing it’s ability to forward other normal traffic.
What is the overall process of STP?
- All interfaces on all switches in the spanning tree topology start in blocking mode.
- The switches elect a root bridge. - Based on lowest BID, if they have the same bridge priority then the lowest MAC wins. If the root bridge switch fails, then next lowest BID takes over as root bridge. Cisco enables the configuration of a root bridge and secondary root bridge.
- Each nonroot bridge determines a root port. It is based on the best path to the root bridge. If there are two best paths, the path with the lowest Bridge ID is selected. If the lowest Bridge ID is the same, then the lowest port on lowest Bridge ID side of the connection is the best path to the root bridge.
- A designated port is selected for each segment. This is based on the lowest root path cost. The designated port on a segment is on the switch with the lowest root path cost. If they have the same root path cost, then the lowest Bridge ID side of the segment is the designated port. On root bridges, all switch ports are designated ports. Each network segment will have one designated port.
- The root ports and designated ports transition to the forwarding state and any other ports (nondesignated ports) stay in the blocking state.
For STP, what are the costs of each type of link?
What are the different STP Port Roles?
What are the different RSTP port states?
What is the IEEE standard for Common Spanning Tree (CST) and how long does it take for a CST port to come online fully?
IEEE standard is 802.1D
It was developed in 1993. It takes 30 - 50 seconds to determine the root bridge, etc. and bring ports/communication online.
What is PVST+ and what did it do?
Per-VLAN Spanning Tree
Cisco proprietary solution that allowed you to setup different Root Bridges, one for each VLAN. You can end up blocking different links and enable some forms of load balancing.
Requires more CPU and memory resources than common spanning tree (802.1D).
What is RSTP and the IEEE standard for it?
Rapid Spanning Tree - 802.1w
It brings the time for a new connection to come online down to ~2 seconds. Requires more resources than original STP, but less that PVST+.
Faster convergence time by redefining port roles and BPDU exchanges. However, it’s not per vlan, so it does not address the suboptimal traffic flows (no load balancing like PVST+ and Rapid PVST+)
What is Rapid PVST+ and what are the pros and cons of it’s use?
It’s Cisco’s proprietary per-VLAN implementation of the RSTP (802.1w) standard.
This means it does provide faster convergence times (<2 seconds) and also allows per-VLAN for load balancing the used connections.
However, it does use the most CPU & memory resources out of the different spanning tree protocols.
What is MSTP and it’s IEEE standard?
Multi-VLAN Spanning Tree Protocol - 802.1s
It was inspired by Cisco’s proprietary Multi-Instance STP (MISTP).
It allows for multiple VLANs to be grouped into a spanning tree instance (RSTP instance). So it has all of the benefits of Cisco’s Rapid PVST+, but not require as many CPU and memory resources.
Cisco Catalyst switches, by default, use which STP protocol?
PVST+
Enabled on all ports in VLAN1
Resulting in a slower convergence after topology change than with RSTP.
NOTE: The STP protocol can also be dictated based on how old your switch is and what manufacturer.
How is the STP root bridge elected?
By default it will be elected based on the lowest Bridge ID.
Bridge ID = Bridge Priority + Bridge MAC
Bridge Priority default = 32768 (for industry standardized switches)
NOTE: When you run PVST+ or Rapid PVST+, then you take the default 32768 + vlan# = Bridge Priority