Chapter 3: STP: Scaling Networks
Chapter 3: STP: Scaling Networks
Scaling Networks
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Chapter 3- Sections & Objectives
3.1 Spanning Tree Concepts
Examine the purpose of STP and how the spanning tree algorithm is used create a
loop-free topology.
3.2 Varieties of Spanning Tree Protocols
Examine the varieties of Spanning Tree protocols including PVST+ and Rapid
PVST+.
3.3 Spanning Tree Configuration
Configure PVST+ and Rapid PVST+ to improve network performance.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
3.1 Spanning Tree
Concepts
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
Spanning Tree Concepts
Purpose of Spanning Tree
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
MAC Database Instability
Ethernet frames do not have a time to live (TTL) attribute.
• Frames continue to propagate between switches endlessly, or
until a link is disrupted and breaks the loop.
• Results in MAC database instability.
• Can occur due to broadcast frames forwarding.
If there is more than one path for the frame to be forwarded out, an
endless loop can result.
• When a loop occurs, it is possible for the MAC address table
on a switch to constantly change with the updates from the
broadcast frames, resulting in MAC database instability.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
Broadcast Storms
A broadcast storm occurs when there are so many broadcast
frames caught in a Layer 2 loop that all available bandwidth is
consumed. It is also known as denial of service
A broadcast storm is inevitable on a looped network.
• As more devices send broadcasts over the network, more
traffic is caught within the loop; thus consuming more
resources.
• This eventually creates a broadcast storm that causes the
network to fail.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
Broadcast Storms
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
Duplicate Unicast Frames
Unicast frames sent onto a looped network can result in duplicate
frames arriving at the destination device.
Most upper layer protocols are not designed to recognize, or cope
with, duplicate transmissions.
Layer 2 LAN protocols, such as Ethernet, lack a mechanism to
recognize and eliminate endlessly looping frames.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Purpose of Spanning Tree
Issues with Layer 1 Redundancy:
Duplicate Unicast Frames
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Introduction
STP ensures that there is only one logical path between all
destinations on the network by intentionally blocking redundant
paths that could cause a loop.
A port is considered blocked when user data is prevented from
entering or leaving that port. This does not include bridge protocol
data unit (BPDU) frames that are used by STP to prevent loops.
The physical paths still exist to provide redundancy, but these
paths are disabled to prevent the loops from occurring.
If the path is ever needed to compensate for a network cable or
switch failure, STP recalculates the paths and unblocks the
necessary ports to allow the redundant path to become active.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Introduction
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Introduction
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Introduction
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Port Roles
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Root Bridge
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
STP Operation
Spanning Tree Algorithm: Path Cost
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Concepts
STP Operation
Internal root path cost is determined by summing up the individual port costs along the path from the
switch to the root bridge.
Use the spanning-tree cost value interface configuration command on both ends of a link to apply a
custom cost.
Use the show spanning-tree command to verify the port and internal root path cost to the root bridge.
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Concepts
STP Operation
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Concepts
STP Operation
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Concepts
STP Operation
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Varieties of Spanning Tree Protocols
Overview
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Varieties of Spanning Tree Protocols
PVST+
Overview of PVST+
Cisco developed PVST+ to run an independent instance of
the Cisco implementation of IEEE 802.1D for each VLAN in
the network.
Port States and PVST+ Operation
STP and PVST+ use five port states consisting of Blocking,
Listening, Learning, Forwarding, and Disabled.
Extended System ID and PVST+ Operation
• Extended system ID ensures switches
have unique BIDs for each VLAN.
• To manipulate the root-bridge election,
assign a lower priority to the desired
root bridge switch for the VLAN(s).
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Varieties of Spanning Tree Protocols
Rapid PVST+
Overview of Rapid PVST+
Rapid PVST+ is the Cisco implementation of per-VLAN
RSTP.
RSTP can achieve much faster convergence.
RSTP (Rapid) BPDU(Bridge Protocol Data Unit)
RSTP uses type 2, version 2 BPDUs and populates the flag
byte in a slightly different manner than in the original 802.1D.
Edge Ports
RSTP edge port is a switch port
that is never intended to be
connected to another switch.
It immediately transitions to the
Presentation_ID forwarding state when enabled. © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Varieties of Spanning Tree Protocols
Rapid PVST+
Link Types
Point-to-Point - A port operating in full-duplex mode typically
connects a switch to a switch and is a candidate for a rapid
transition to a forwarding state.
Shared - A port operating in half-duplex mode connects a
switch to a legacy hub that attaches multiple devices.
• RSTP must determine the port role:
• Root ports and Alternate (backup)
ports do not use the link-type
parameter in most cases.
• Designated ports make the most
use of the link-type parameter and
transition to the forwarding state if
the link-type parameter is set to
Presentation_ID
point-to-point. © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
3.3 Spanning Tree
Configuration
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential 28
Spanning Tree Configuration
PVST+ Configuration
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Configuration
PVST+ Configuration
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Configuration
Rapid PVST+ Configuration
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Configuration
STP Configuration Issues
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›
Spanning Tree Configuration
STP Configuration Issues
Presentation_ID © 2017 Cisco Systems, Inc. All rights reserved. Cisco Confidential ‹#›