You are on page 1of 15

Configuring Catalyst Switch Operations

Introducing Spanning Tree Protocol

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-1

Outline
Overview Spanning Tree Protocol Spanning Tree Operation Root Bridge Selection Spanning Tree Port States Spanning Tree Path Costs Spanning Tree Recalculation Rapid Spanning Tree Protocol Summary

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-2

Spanning Tree Protocol

Provides a loop-free redundant network topology by placing certain ports in the blocking state

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-3

Spanning Tree Operation


One root bridge per network One root port per nonroot bridge One designated port per segment Nondesignated ports are unused

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-4

Spanning Tree Protocol Root Bridge Selection

BPDU = Bridge Protocol Data Unit (default = sent every two seconds) Root bridge = bridge with the lowest bridge ID Bridge ID =

In this example, which switch has the lowest bridge ID?


2004 Cisco Systems, Inc. All rights reserved. ICND v2.21-5

Spanning Tree Port States


Spanning tree transits each port through several different states:

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-6

Spanning Tree Port States (Cont.)

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-7

Spanning Tree Operation

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-8

Spanning Tree Path Cost

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-9

Spanning Tree Recalculation

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-10

Spanning Tree Convergence

Convergence occurs when all the switch and bridge ports have transitioned to either the forwarding or the blocking state. When the network topology changes, switches and bridges must recompute STP, which disrupts user traffic.

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-11

Rapid Spanning-Tree Protocol

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-12

Rapid Transition to Forwarding

2004 Cisco Systems, Inc. All rights reserved.

ICND v2.21-13

Summary
STP is a bridge-to-bridge protocol used to maintain a loopfree network. To maintain a loop-free network topology , STP establishes a root bridge, a root port, and designated ports. With STP, the root bridge has the lowest BID, which is made up of the bridge priority and the MAC address.

When STP is enabled, every bridge in the network goes through the blocking state and the transitory states of listening and learning at power up. If properly configured, the ports then stabilize to the forwarding or blocking state.
If the network topology changes, STP maintains connectivity by transitioning some blocked ports to the forwarding state. RSTP significantly speeds the recalculation of the spanning tree when the network topology changes.
2004 Cisco Systems, Inc. All rights reserved. ICND v2.21-14

You might also like