11.3 Spanning Tree Protocol (STP) Flashcards

1
Q

Describe the Spanning Tree Protocol (STP)

A

also referred to as the spanning tree algorithm (STA), assigns a designated bridge (or switch) for each route. Only the designated bridge can forward packets. Redundant bridges (and switches) are assigned as backups.

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

Describe Switching forward logic

A

The source VLAN of the frame is determined, using the access interface’s VLAN or the frame’s trunking header.
The source MAC address, source interface ID, and the VLAN ID are added to the MAC address table.
The MAC address table is searched for the destination MAC address of the frame.
The frame is forwarded to the interface of the matched address entry. If the MAC address is not found in the MAC address table, the frame is flooded out to other access ports in the same VLAN.

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

Describe the Forwarding state

A

Criteria for putting an interface into a forwarding state is as follows:
STP elects a root switch and all interfaces on the root switch are in a forwarding state.
On non-root switches, the port with the least administrative cost between the switch and the root switch is elected to the forwarding state.
The switch with the lowest root cost, compared with other switches, is also placed in the forwarding state.

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

Describe Bridge ID

A

The bridge ID (BID) is composed of the priority number of the host and its MAC address. A hello packet is the most common Bridge Protocol Data Unit (BPDU). Hello packets contain the root bridge ID, the sender’s bridge ID, the cost to the root, and the timers

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

Describe the bridge port election process

A

Every switch sends out a hello packet listing itself as the root bridge ID with a cost of zero.
As each switch receives a hello packet, it compares its root bridge ID to the root bridge ID listed in the hello packets.
If the listed BID is lower, the switch elects that as the root and forwards the hello packet listing itself as the sender.
Once the root bridge has been elected, its ports enter a forwarding state and continue to send hello packets.
The other switches examine the hello packets and determine which port has the lowest cost to the root. The port with the lowest cost to the root becomes the root port.
The port on each LAN segment with the lowest cost to the root becomes the designated port for that segment.
When the age timer expires, STP starts a new election process.

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

What is a Bridge loop/ switching loop

A

providing redundant paths between segments causes packets to be passed between the redundant paths endlessly

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

What are the benefits of STP

A

Eliminates bridge loops.
Provides redundant paths between devices.
Enables dynamic role configuration.
Recovers automatically from a topology change or device failure.
Identifies the optimal path between any two network devices.

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

Describe Bridge roles

A

The bridge role determines how the device functions in relation to other devices and whether the device forwards traffic to other segments.

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

Describe a Root Bridge

A

The root bridge is the master or controlling bridge.

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

Describe the Designated Bridge

A

A designated bridge is any other device that participates in forwarding packets through the network.

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

Describe Backup Bridge

A

All redundant devices are classified as backup bridges.

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

Describe Port state Disabled

A

A port in the disabled state is powered on but does not participate in forwarding or listening to network messages. A bridge must be manually placed in the disabled state.

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

Describe the Blocking Port state

A

When a device is first powered on, its ports are in the blocking state. In addition, backup bridge ports are always in the blocking state. Ports in a blocking state receive packets and BPDUs sent to all bridges, but will not process any other packets.

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

Describe the Listening port state

A

The listening state is a transitory state between blocking and learning. The port remains in the listening state for a specific period of time. This time period allows network traffic to settle down after a change has occurred. For example, if a bridge goes down, all other bridges go to the listening state for a period of time. During this time the bridges redefine their roles.

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

Describe the Learning port state

A

A port in the learning state is receiving packets and building the bridge database by associating MAC addresses with ports. A timer is also associated with this state. The port goes to the forwarding state after the timer expires.

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

Describe the Forwarding port state

A

The root bridge and designated bridges are in the forwarding state when they can receive and forward packets. A port in the forwarding state can both learn and forward. All ports of the root switch are in forwarding mode.

17
Q

Describe the Root port type

A

The root port is the port on the designated switch with the lowest port cost back to the root bridge.

18
Q

Describe the designated port type

A

One port on each segment is identified as the designated port. The designated port identifies the port on the segment that is allowed to send and receive frames onto that segment.

19
Q

Describe the blocking port type

A

A blocking port is any port that is not a root or a designated port. A blocking port is in blocking state.

20
Q

Describe PortFast

A

allows ports without any attached switches to transition immediately to the forwarding state. This transition is possible because bridging loops are eliminated on ports that do not have switches attached.

21
Q

Descrieb Uplink Fast

A

enables a switch to maintain an alternate path back to the root bridge. If the root port or link goes down, the alternate port can be quickly used to re-establish communication with the root bridge.

22
Q

Describe Ether Channel

A

EtherChannel provides a high degree of redundancy for network links by combining multiple parallel segments between two switches into a single link. To do this, the segments must have the same link speed. You can combine eight separate segments into one Ether Channel. STP convergence starts only if all of the links within the channel go down.

23
Q

Describe Port Fast

A

A 30-second delay is created by the default 15-second listening state and 15-second learning state that are required to transition from blocking to forwarding. PortFast allows a port to skip these states and go from a blocking state to a forwarding state immediately. However, PortFast can easily cause switching loops. You should enable it only on ports connected to non-STP devices like workstations, printers, and servers.

24
Q

Describe BPDU Guard

A

Bridge Protocol Data Unit Guard (BPDU Guard) prevents certain switch ports from connecting to other switches in order to prevent switching loops and unauthorized connections. Because only switches send BPDUs, BPDU Guard knows that a port that receives a BPDU is linked to another switch. BPDU Guard will disable ports as appropriate.

25
Q

Describe Rapid STP

A

Rapid Spanning Tree Protocol (Rapid STP) is a variation of the standard STP specification. Rapid STP improves convergence performance by actively confirming when a switch port is ready to transition to a forwarding state. This eliminates the need for the listening and learning states, which can cause a 50-second, or more delay. Rapid STP reduces convergence time to about 10 seconds.

26
Q

Describe Port Aggregation Protocol (PAGP)

A

Port Aggregation Protocol is a management function that checks the parameter consistency at either end of the link and assists the channel in adapting to link failure or addition. PAgP prevents loops and packet loss due to misconfigured channels. It facilitates network reliability.

27
Q

Describe Link Aggregation Control Protocol (LACP)

A

Link Aggregation Control Protocol is based on the 802.3ad standard and has similar functions to PAgP. LACP should be used when configuring EtherChannel between Cisco switches and non-Cisco switches that support 802.3ad.

28
Q

Switch(config-if)#channel-protocol lacp

Switch(config-if)#channel-protocol pagp

A

Selects the EtherChannel protocol on the interface.

29
Q

Switch(config-if)#channel-group [1-8] mode auto

Switch(config-if)#channel-group [1-8] mode desirable

A

Selects the PAgP mode on the interface.

30
Q

Switch(config-if)#channel-group [1-8] mode active

Switch(config-if)#channel-group [1-8] mode passive

A

Selects the LACP mode on the interface.

31
Q

Switch(config-if)#channel-group [1-8] mode on

A

Enables the on mode and forces a port to join an EtherChannel without PAgP or LACP negotiations.

32
Q

Switch(config-if)#no channel-group [1-8]

A

Disables EtherChannel on the interface.

33
Q

Switch#show etherchannel

A

Displays EtherChannel details on the switch.

34
Q

Switch#show etherchannel summary

A

Displays EtherChannel information for a channel with a one-line summary per channel group.