Interactive Spanning Tree Protocol (PVST+) Simulator

Explore Root Bridge election, Path Cost, and Port ID tie-breakers across VLANs.

Simulation Control

Set priorities, link cost, and VLAN, then click "Rerun STP".

Switch Base Priority (Multiple of 4096)

Link & Port Tie-Breakers

Learning Point: Per-VLAN STP (PVST+) and Tie-Breakers

STP runs per VLAN. The final blocking decision is made using four tie-breakers in order:

  1. **Lowest Root Bridge ID** (Priority + VLAN ID + MAC).
  2. **Lowest Root Path Cost** (Determined by link speeds, e.g., 100M=19, 1G=4).
  3. **Lowest Sending Bridge ID** (MAC).
  4. **Lowest Port ID** (Port Priority + Port Number/Index).

Network Topology - Loop Analysis for VLAN 1

STP Election Logic for VLAN 1