Chapter 17 Configuring Stp; Stp Overview - Cisco WS-C3750-48PS-S Software Configuration Manual

Network switch
Table of Contents

Advertisement

Understanding Spanning-Tree Features
For configuration information, see the
For information about optional spanning-tree features, see
Spanning-Tree Features."

STP Overview

STP is a Layer 2 link management protocol that provides path redundancy while preventing loops in the
network. For a Layer 2 Ethernet network to function properly, only one active path can exist between
any two stations. Multiple active paths among end stations cause loops in the network. If a loop exists
in the network, end stations might receive duplicate messages. Switches might also learn end-station
MAC addresses on multiple Layer 2 interfaces. These conditions result in an unstable network.
Spanning-tree operation is transparent to end stations, which cannot detect whether they are connected
to a single LAN segment or a switched LAN of multiple segments.
The STP uses a spanning-tree algorithm to select one switch of a redundantly connected network as the
root of the spanning tree. The algorithm calculates the best loop-free path through a switched Layer 2
network by assigning a role to each port based on the role of the port in the active topology:
Switches that have ports with these assigned roles are called root or designated switches.
Spanning tree forces redundant data paths into a standby (blocked) state. If a network segment in the
spanning tree fails and a redundant path exists, the spanning-tree algorithm recalculates the
spanning-tree topology and activates the standby path. Switches send and receive spanning-tree frames,
called bridge protocol data units (BPDUs), at regular intervals. The switches do not forward these frames
but use them to construct a loop-free path. BPDUs contain information about the sending switch and its
ports, including switch and MAC addresses, switch priority, port priority, and path cost. Spanning tree
uses this information to elect the root switch and root port for the switched network and the root port and
designated port for each switched segment.
When two ports on a switch are part of a loop, the spanning-tree port priority and path cost settings
control which port is put in the forwarding state and which is put in the blocking state. The spanning-tree
port priority value represents the location of a port in the network topology and how well it is located to
pass traffic. The path cost value represents the media speed.
In Cisco IOS Release 12.2(18)SE and later releases, the switch sends keepalive messages (to ensure the
Note
connection is up) only on interfaces that do not have small form-factor pluggable (SFP) modules.
Catalyst 3750 Switch Software Configuration Guide
17-2
Supported Spanning-Tree Instances, page 17-10
Spanning-Tree Interoperability and Backward Compatibility, page 17-11
STP and IEEE 802.1Q Trunks, page 17-11
VLAN-Bridge Spanning Tree, page 17-12
Spanning Tree and Switch Stacks, page 17-12
Root—A forwarding port elected for the spanning-tree topology
Designated—A forwarding port elected for every switched LAN segment
Alternate—A blocked port providing an alternate path to the root port in the spanning tree
Backup—A blocked port in a loopback configuration
"Configuring Spanning-Tree Features" section on page
Chapter 19, "Configuring Optional
Chapter 17
Configuring STP
17-12.
78-16180-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750

Table of Contents