Back to course

Spanning Tree Protocol (STP) Fundamentals

CCNA: 0 to Hero - Comprehensive Network Engineering Bootcamp

Lesson 29: Spanning Tree Protocol (STP) Fundamentals

Redundancy is critical in networking, but redundant paths (loops) in a Layer 2 network cause severe problems:

  1. Broadcast Storms: Broadcast frames loop endlessly, consuming all bandwidth.
  2. MAC Address Table Instability: Switches learn the same MAC address arriving on multiple ports, leading to constant table updates.

STP (802.1D) Purpose

Spanning Tree Protocol (STP) prevents Layer 2 loops by forcing redundant paths into a blocking state while still ensuring that a path exists if the primary link fails.

STP Operation

STP uses Bridge Protocol Data Units (BPDUs) to communicate configuration information between switches.

The Root Bridge

All switches elect a single Root Bridge—the central reference point for the topology. The switch with the lowest Bridge ID (BID) becomes the Root Bridge.

Bridge ID (BID) = Bridge Priority (32768 default) + MAC Address

To control the election, network administrators manually lower the Bridge Priority on the desired Root Bridge.