Spanning tree election calculator

The root bridge, every root port, every designated port and the ports left as alternate or backup in a small switched network you describe in a few lines, each step with the comparison that decided it; and the long (802.1t) and short (802.1D-1998) path costs by link speed, with each vendor's documented default.

Networking

Kept in this browser · My desk

Path cost method
  • bridge SW1 32768 00-00-5E-00-53-01: a name, a priority (a multiple of 4096 from 0 to 61440) and a MAC address; end the line with short or long to give that bridge its own path cost method.
  • link SW1:1 SW2:1 1G: two ports and a speed (10M, 100M, 1G, 10G, 25G, 40G, 50G, 100G, 1T or 10T), or cost 4000 in place of the speed; three or more ports make a shared segment.
  • port SW1:2 priority 64 or port SW1:2 cost 4000: a port priority (a multiple of 16, 128 by default) or a cost for that port alone.
  • vlan 10 adds the VLAN ID to every priority (the system ID extension); priority-format 802.1d reads the 16-bit priorities of 802.1D-1998. A # starts a comment.
  • Up to 16 bridges, 32 links, 8 ports on a segment, 128 ports, 80 lines and 4000 characters.

Runs locally in your browser. Nothing is sent anywhere.

Describe a switched network, one statement per line, or press Example for the course's six-bridge example (chapter 2.4, slide 259).

API endpointGEThttps://ronutz.com/api/v1/stp-election-calculatorDocumented, not served. Opens the specification.

References