Module 4 - Building a Redundant Switched Topology Flashcards

1
Q

Switched Redundancy - Spanning Tree Protocol

A

Redundancy is vitally important and should be configured where possible.

Spanning tree offers loop-free redundancy capabilities. There is no TTL on a switch so that is where a need for a loop prevention mechanism was introduced.

STP was introduced to stop broadcast storms, also note that you can’t have two paths to a destination in switching.

Without STP then the following issues would occur:

  • Broadcast storms
  • multiple frame transmission
  • Mac database instability.

Remember - There is only ever one active path with STP. It’s a loop avoidance technology to support redundant topology.

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

Spanning Tree Election Process

Root bridge election.

A

Switches do a really bad job with STP by default. The switch with the oldest MAC address, more than likely also the slowest performance wise is seleced by default.

Within STP there is one switch more important than the rest, this is known as the ‘Root Bridge’ and this takes place as the first step of the STP process.

All ports on the root bridge take the role of designated ports.

BPDU packets are sent from the root bridge.

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

Root ports

A

Root ports are the next to be chosen on the non root bridge switches. The root ports are the ports closest to the root bridge.

The lowest sending port-id of the connected switch wins in a tie break situation.

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

Comparison of STP Protocols

A

There are 5 implementations of STP, some of them are standards and some developed by Cisco.

STP (802.1D) - slow convergence - One tree

PVST+ (cisco proprietary) - slow convergence - one tree per vlan

RSTP (802.1W) - fast - one tree

RPVSTP+ (cisco proprieratry) - fast - one tree per vlan

MST (802.1S) - fast - one tree for multiple vlans

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

Bridge Protocol Data Unit (BPDU)

A

Sent every 2 seconds by an hello timer.

There are 3 types of BDPU.

Configuration BPDU’s always come from the root bridge. They also send out a TCA - topology change acknowledgement.

Topology Change Notifications (TCN’s) are sent to the root bridge from downstream switches.

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

Root Bridge

A

The Root Bridge is elected on the lowest bridge ID.

The bridge ID is made up of the BID + MAC address. The default bridge ID is 32768 + vlan number - example would be

switch one = 32768 and vlan 10 = BID = 32778

remember lowest MAC is generally older so the priority of the switch becomes important.

Tip - The root bridge should always be placed at the core or the distribution layer depending on the topology of your network.

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

STP Port States

There are 5 of them… do you know what they are

A

It can be upto 50 seconds before a switch can forward with STP 802.1D. Quite slow and noticeable on modern networks.

blocking - 20 seconds. This state won’t receive or forward BPDU’s

listening - 15 seconds - Can RX but won’t forward BDPU’s

learning - 15 seconds - can rx and tx BPDU’s , will also learn mac addresses at this state… it won’t forward data packets though.

forwarding - rx, tx, learns mac addresses and also forwards data packets.

disabled - doesn’t rx, tx, learn macs or forwards.

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

STP Timers

A

There are 3 timers used with STP:

Hello timer - every 2 seconds by default BPDU’s are sent out.

Forward delay - 15 seconds

Max age timer - 20 seconds

You can adjust STP timers. You can tune the hello time between 1 and 10 seconds, forward delay between 4 and 30 seconds, and maximum age between 6 and 40 seconds. However, the timer values should never be changed without consideration

Normally, you do not change the STP timers, you would instead use RSTP.

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

Designated Ports

A

The designated ports are chosen on non root bridge switches, they are any port which is not a root port or blocking port.

Designated ports have lower mac address.

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

Rapid Spanning Tree Protocol

RSTP (802.1w)

A

3 basic operations of a switch port operating in RSTP:

  • discarding - blocking and listening states (combined)
  • learning
  • forwarding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

RSTP Link Types

A

Edge Port - A PC or printer for example connected into a switch.

P2P - When two switches are interconnected, this link type allows full duplex

Shared - where multiple switches may reside off, for example a hub or dirty switch. Operates in half duplex mode.

It is recommended that Portfast be configured for any interfaces which have end devices such as PC’s connected.

Also worth noting that PVST is now the default mode of switches and that 802.1d is now obsolete in reality.

useful cmd

in interface configuration mode - spanning-tree link-type point-to-point

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

Bridge Priority

Configuration and Theory

A

Bridge priority on a switch can be configured in increments of 4096. Starting at 0. It can go up to 61,440.

recommended configuration, two commands can be run:

spanning-tree vlan vlanid root primary | secondary

if changing timers then this should only be done on the root bridge, it will then propogate to the other switches.

spanning-tree vlan vlan-id priority bridge-priority

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

Q.

In a redundant topology, which of the following is a problem where multiple copies of the same unicast frames are delivered to a destination station, causing problems with the receiving protocol?

A

A.

Multiple frame transmission

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

STP Port Roles

A

Root port

This port exists on non-root bridges. It is the switch port with the best path to the root bridge. Root ports forward traffic toward the root bridge and the source MAC address of the frames that are received on the root port that is capable of populating the MAC table. Only one root port is allowed per bridge.

Designated port

This port exists on root and non-root bridges. For root bridges, all switch ports are designated ports. For non-root bridges, a designated port is the switch port that will receive and forward frames toward the root bridge as needed. Only one designated port is allowed per segment. If multiple switches exist on the same segment, an election process determines the designated switch, and the corresponding switch port begins forwarding frames for the segment. Designated ports are capable of populating the MAC table.

Nondesignated port (blocking)

The nondesignated port is a switch port that is not forwarding (blocking) data frames and is not populating the MAC address table with the source addresses of frames that are seen on that segment.

Disabled port

The disabled port is a switch port that is shut down.

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

BPDU Frame Format

A
  • Protocol ID: Identifies the STP
  • Version: Identifies the current version of the protocol
  • Message type: Identifies the type of BPDU—configuration or TCN (Topology Change Notification) BPDU
  • Flags: Used in response to a TCN BPDU
  • Root bridge ID: Identifies the bridge ID of the root bridge
  • Root path cost: Identifies the cost from the transmitting switch to the root
  • Sender bridge ID: Identifies the bridge ID of the transmitting switch
  • Port ID: Identifies the transmitting port
  • Message age: Indicates the age of the current BPDU
  • Maximum age: Indicates the timeout value
  • Hello time: Identifies the time interval between generation of configuration BPDUs by the root
  • Forward delay: Defines the time a switch port must wait in the listening and learning state
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

STP Cost

A

Links between switches witin STP have costs. The cost is associated with the bandwidth of the link, it can be changed administratively, however this is not a common practice.

STP COSTS

16mbpbs - 62

100mbps - 19

1gbps - 4

2gbps - 3

10gbps - 2

The higher the bandwidth the lower the cost!

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

In the STP (Spanning Tree Protocol) which of the two port types are able to forward traffic? (Choose two.)

A

The answer is root port and designated port.

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

In STP, which port on a nonroot switch is the closest logical port to the root switch?

A

root port

19
Q

If two switches have the same bridge priority, which of the following options is used as a tie-break to determine the root bridge?

A

MAC address.

20
Q

Which of the following options is an IEEE standard that is inspired by the earlier Cisco proprietary MISTP implementation that maps multiple VLANs into the same spanning-tree instance?

A

Multiple Spanning Tree (MST)

MSTP is an IEEE standard that is inspired by the earlier Cisco proprietary MISTP implementation. To reduce the number of required STP instances, MSTP maps multiple VLANs that have the same traffic flow requirements into the same spanning-tree instance. The Cisco implementation of MSTP is MST. MST provides up to 16 instances of RSTP (802.1w) and combines many VLANs with the same physical and logical topology into a common RSTP instance. The CPU and memory requirements of this version are lower than the requirements of Rapid PVST+ but are higher than the requirements of RSTP.

21
Q

MST (802.1W) - Multiple Spanning Tree

A

The main purpose is to reduce the number of spaning tree instances. It also eases the burden on the CPU of the switches and reduces the number of BPDU’s.

PVSTP creates an STP instance per VLAN, this leads to lots of bdpu’s traversing links and utilising CPU.

MST essentially load balances the STP to just the active links/paths, For example VLAN 1-500 could traverse one set of links as part of a STP instace. VLANa 501-1000 could be part of another instance.

Note - MST instances start at 0. Also pruning should not be configured on trunk links, this can block ports and stop vlans traversing over links if a path is blocked due to STP.

22
Q

MST Region

A

MST Region is essentially a group of bridges/switches which have the same MST instance configured.

This VLAN-to-MST grouping must be consistent across all bridges within an MST region. Interconnected bridges that have the same MST configuration are referred to as an MST region.

You must configure a set of bridges with the same MST configuration information, which allows them to participate in a specific set of spanning-tree instances. Bridges with different MST configurations or legacy bridges running 802.1D are considered separate MST regions.

23
Q

Q.

Which type of port should be configured between switches when using MST?

A

Trunk port with no pruning.

24
Q

Which of the following options are benefits of MST (Multiple Spanning Tree)?

A

To reduce the CPU loading of the Switch.

25
Q

Spanning Tree Cmds

A

show spanning-tree - used for verifying STP protocol, port states, types, timers, and root bridge etc.

spanning-tree vlan vlan-id priority bridge-priority
spanning-tree vlan vlan-id root primary

show spanning-tree root

spanning-tree vlan 1 cost 16 - within interface configuration mode

spanning-tree link-type point-to-point - in interface configuration mode this cmd changes the link type and p2p will put the type as full duplex.

show spanning-tree summary - can see the mode and the vlans which are running in PVST

*tip - If you issue the show running-configuration command, you will see the switch priority as a number—not the primary or secondary keyword.

Note

If the priority of the root bridge is set to 0, configuring another switch with the root primary command will yield no results. The command will fail since it cannot make a local switch priority for 4096 lower than the priority of the root bridge.

26
Q

Topology Change Notification (TCN)

A

When a switch receives a BPDU with the TC bit set from a neighbor, it clears the MAC addresses that were learned on all its ports, except the 1 that receives the topology change. The switch also sends BPDUs with the TC bit set on all designated ports and the root port.

There is no need to wait for the root bridge to be notified and then maintain the topology change state for the whole network for seconds.

27
Q

MST Configuration

A

You start by first creating a MST configuration before activating it.

1) spanning-tree mst coniguration
2) name CCNP
3) revision 1 (manual process but must match across switches)

You then create an instance and assign Vlans to the instance.

4) instance 1 vlan 1,2
5) instance 2 vlan 4,5

Mapping the instance as either primary/secondary on the Switch

SW1(config)# spanning-tree mst 1 root primary

SW1(config)# spanning-tree mst 2 root secondary

Enabling MST on the switch

config mode - spanning-tree mode mst

Verfication Cmds

show spanning-tree mst 1 - verification

show spanning-tree summary

show spanning-tree mst configuration

show spanning-tree mst configuration digest

**the digest information must match across all devices within an MST region.

Switch(config)# interface ethernet 0/2 Switch

(config-if)# spanning-tree mst 1 port-priority 64

28
Q

MST Non Root Device

A

Once the root bridge has been determined, an MST non-root device uses this sequence to choose the best path to the root bridge:

1) Lowest root path cost
2) Lowest sender BID
3) Lowest sender Port_ID

Switch(config)# interface ethernet 0/2 Switch

(config-if)# spanning-tree mst 1 port-priority 64

29
Q

Portfast and BPDU Guard

Overview

A

PortFast - Cisco developed this to speed up the transition for access port devices, STP is designed to stop loops, however it runs on all ports by default. The STP delay of waiting for state transition of upto 50 seconds can cause issues with DHCP for network devices.

BPDU Guard - Usually used in conjunction with PortFast, this will shut down an access port if it receives a bpdu received on the port. This is a mechanisim for stopping other switch devices from been introduced into the network and causing issues.

30
Q

PortFast

A

Transitions from blocking to forwarding state immediatley, used on access ports for PC’s and Servers.

In a valid PortFast configuration no BPDU’s should ever be received. The only reason this may happen is if a user plugged a switch into a port.

Note

Because the purpose of PortFast is to minimize the time that access ports that are connecting to user equipment and servers must wait for spanning tree to converge, you should use it only on access ports. If you enable PortFast on a port that is connecting to another switch, you risk creating a spanning-tree loop. Keep in mind, that BPDU filter is available but not recommended.

31
Q

BDPU Guard

A

Portfast BPDU Guard allows network engineers to create an STP domain boundary, one that cannot be influenced by end users plugging devices into a network and causing issues on the network.

Example of a BDPU received on a port with BPDU Guard enabled. It disables the port and puts it into an err disabled state.

2000 May 12 15:13:32 %SPANTREE-2-RX_PORTFAST:Received BPDU on PortFast enable port. Disabling 2/1 2000 May 12 15:13:32 %PAGP-5-PORTFROMSTP:Port 2/1 left bridge port 2/1

32
Q

Configuring PortFast and BPDU Guard

A

It can be configured port by port or globally.

Interface specific config

SwitchX(config)# interface FastEthernet0/1

SwitchX(config-if)# spanning-tree portfast

SwitchX(config-if)# spanning-tree bpduguard enable

Global config

SwitchX(config)# spanning-tree portfast bpduguard default

SwitchX(config)# spanning-tree portfast default

Verification Cmds

show running-config interface - to see that bpdu and portfast is configured on interfaces.

show spanning-tree summary -to check that bpdu guard and portfast are configured globally.

33
Q

Portfast and BPDU Continued

A

Note

When you enable the PortFast feature globally, you will not see it under the interface configuration using show running-config interface type slot/port command. For this case, you should use show spanning-tree interface type slot/port portfast command or show spanning-tree summary command.

Note

When setting a port as an access port you can also use the command switchport host. This command will set the port as a switchport, set spanning-tree portfast, and disable port-channeling.

34
Q

Q.

How long does it take a standard STP port without PortFast configured to progress from the blocked to the forwarding state?

A

50 seconds.

35
Q

Q.

In which STP state does the port listen to BPDUs that it received and listens for new topology information that would cause it to transition back to the blocking state without populating the MAC address table with the addresses it learns and it does not forward any frames?

A

Listening.

Listening receives BPDU’s but does not populate any information in the Mac address table.

36
Q

Q.

Which is the calculation used to determine the root port in the Spanning Tree Calculation?

1) The port with the fastest speed
2) The port that neighbor switch will forward traffic to
3) The port with the lowest cost to the root
4) The first port that becomes active

A

A.

The port with the lowest cost to the root

37
Q

Q.

In STP, what is the default factor that determines the cost of the path associated with a link?

1) the speed of the link
2) the type of link
3) the bridge priority

4 ) the duplex of the link

A

A.

the speed of the link

38
Q

Q.

Which two of the following options are IEEE variants of the Spanning Tree Protocol? (Choose two.)

  1. RSTP
  2. PVST+
  3. Rapid PVST+
  4. MSTP
  5. VRRP
A

A.

RSTP (802.1s)

&

MST (802.1w)

39
Q

Q

Which of the following options is not an RSTP port state?

  1. forwarding
  2. blocking
  3. discarding
  4. learning
A

A.

Blocking.

Blocking was removed in RSTP and discarding now combines blocking and learning.

40
Q

Q.

Which type of RSTP link type is full duplex and assumes that the port is connected to a single device at the other end of the link?

  1. shared
  2. serial
  3. multi-link
  4. point-to-point
A

A.

point-to-point

41
Q

Q.

In MST, which of the following options is the first criteria used to choose the best path to the root bridge?

  1. lowest root path cost
  2. lowest sender port ID
  3. highest BID
  4. lowest sender BID
A

A.

Lowest root path cost.

42
Q

Q.

Which of following options is the protocol that will prevent a bridging loop if BPDUs are received on an interface that has the STP calculation disabled?

  1. PortFast
  2. BPDU Guard
  3. RSTP
  4. MST
A

A.

BPDU Guard

43
Q

Q.

Which command can you use to verify the MST port cost for instance 1?

  1. show spanning-tree mst 1
  2. show spanning-tree 1
  3. show spanning-tree mst instance 1
  4. show spanning tree cost 1
A

A.

show spanning-tree mst 1