Building Redundant Switched Topologies Flashcards

1
Q

What is STP (in general) and what is it’s main goal?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does STP use for determining if there are redundant connections and how does it handle those redundant connections?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How does STP find the best path?

A
  1. Elect the root bridge
    - it becomes the center of the network in terms of STP (logical network)
  2. 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)
  3. Block whatever is left over
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are 3 conditions that can occur in a redundant switch topology if no protocols are monitoring link forwarding state?

A
  1. Continuous frame duplication - also called a broadcast storm. Switches flood broadcast, multicast and unknown unicast frames to all ports except the originating port endlessly.
  2. 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.
  3. 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.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the overall process of STP?

A
  1. All interfaces on all switches in the spanning tree topology start in blocking mode.
  2. 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.
  3. 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.
  4. 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.
  5. The root ports and designated ports transition to the forwarding state and any other ports (nondesignated ports) stay in the blocking state.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

For STP, what are the costs of each type of link?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the different STP Port Roles?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the different RSTP port states?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the IEEE standard for Common Spanning Tree (CST) and how long does it take for a CST port to come online fully?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is PVST+ and what did it do?

A

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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is RSTP and the IEEE standard for it?

A

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+)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Rapid PVST+ and what are the pros and cons of it’s use?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is MSTP and it’s IEEE standard?

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Cisco Catalyst switches, by default, use which STP protocol?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How is the STP root bridge elected?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the stages that STP & PVST+ go through to ensure loops are not created?

A
  1. Blocking - For up to 20 seconds, the port remains in the blocking state.
  2. Listening - For 15 seconds, the port listens to BPDUs that it received and listens for new topology information. If a better BPDU is received the port transitions back to blocking. If not, it transitions to learning state. In listening state, the port does not populate the MAC address table with the addresses it learns and it does not forward any frames.
  3. Learning - For up to 15 seconds, the port updates the MAC address forwarding table, but it does not begin forwarding.
  4. Forwarding - Once the switchport is certain of no loops forming, it enters the forwarding state. It still monitors for topology changes that could require it to transition back to the blocking state to prevent a loop.
17
Q

What are the two features that Cisco designed as enhancements to STP to limit the amount of time for access devices to reach the forwarding state?

A
  1. PortFast - when enabled on an access port, the port bypasses the STP listening and learning states to move straight to forwarding.
  2. BPDU guard - puts port in ‘errdisabled’ if the port receives any BPDUs.
18
Q

How is PortFast implemented in RSTP?

A
  • PortFast is known as an edge port concept, instead of PortFast
  • All ports are assumed to be edge ports until a BPDU is received, then it loses it’s edge port status and becomes a normal spanning-tree port.
19
Q

In what port state will a port accept a BPDU while using RSTP?

A

A port will accept and process BPDU frames in all port states.