liveBook · Manning

Chapter 14: Spanning Tree Protocol

What you will learn in chapter 14 of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

Introduces STP as Cisco switches’ default solution to Layer 2 loops and explains why the original protocol comes before Rapid STP.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Introduces STP as Cisco switches’ default solution to Layer 2 loops and explains why the original protocol comes before Rapid STP.

Key terms: Spanning Tree Protocol (STP), Layer 2 loops

14.1 The need for STP

This section explains why redundant switched LANs need STP: flooded frames can loop indefinitely, causing broadcast storms and MAC address flapping.

Key terms: Time-to-Live (TTL), Layer 2 loop, Layer 3 loop, STP, redundancy, BUM traffic, broadcast, unknown unicast, multicast, single point of failure

14.2 How STP works

This section explains how STP turns a physically redundant switched LAN into a loop-free logical topology while keeping blocked links available as backups.

Key terms: STP, Layer 2 loops, blocking state, forwarding state, physical topology, STP topology, logical topology, spanning tree, mesh

14.3 The STP algorithm

Introduces the STP algorithm as the process that creates a loop-free topology and previews its three steps.

14.3.1 Root bridge election

This section explains how switches elect an STP root bridge by comparing bridge identifiers and how bridge priority can be configured to influence the election.

Key terms: root bridge, BPDU, bridge identifier (BID), BID, bridge priority, MAC address, Extended System ID, PVST+, superior BPDU, lowest BID

14.3.2 Root port selection

This section explains how each non-root switch selects its root port by comparing path cost, then the neighbor’s bridge ID, then the neighbor’s port ID.

Key terms: root port, root bridge, root cost, BPDUs, neighbor BID, neighbor port ID, port ID

14.3.3 Designated port selection

Explains how STP selects one designated port per segment, blocks non-designated ports, and sends BPDUs through designated ports.

Key terms: designated port, non-designated port, segment, forwarding state, blocking state, root cost, BID, Layer 1 segment, Layer 2 segment, Layer 3 segment

14.4 STP port states and timers

Distinguishes STP port roles from port states and explains which ports forward or block frames in a stable LAN.

Key terms: STP port roles, port states, forwarding state, blocking state, root ports, designated ports

14.4.1 STP port states

Explains what STP ports do in each state, how port roles determine state transitions, and when the network has converged.

Key terms: blocking, listening, learning, forwarding, disabled, BPDUs, listening state, learning state, blocking state, forwarding state

14.4.2 STP timers

Explains STP’s three timers, why they delay forwarding, and how those delays affect recovery after a failure.

Key terms: hello timer, BPDUs, root bridge, designated ports, forward delay timer, listening, learning, forwarding state, Layer 2 loop, max age timer

14.5 PortFast and BPDU Guard

This section explains why ordinary STP operation can delay network access on ports connected to devices such as PCs, setting up the discussion of optional STP features.

Key terms: STP, designated ports, Layer 2 loop, forwarding state

14.5.1 PortFast

Explains how PortFast gives end hosts immediate network access, how to enable it, and why it must be limited to end-host ports.

Key terms: PortFast, forwarding state, listening, learning, Layer 2 loops, spanning-tree portfast, spanning-tree portfast default, interface config mode, global config mode, access ports

14.5.2 BPDU Guard

This section explains why BPDU Guard belongs on PortFast ports, how to enable it, and what happens when it disables a port.

Key terms: BPDU Guard, PortFast, BPDU, STP topology, spanning-tree bpduguard enable, spanning-tree portfast bpduguard default, interface config mode, global config mode, error-disabled state, down/down

14.6 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 13: Dynamic Trunking Protocol and VLAN Trunking Protocol Chapter 15: Rapid Spanning Tree Protocol →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.