All work
Deep dive · Network Explorer

Spanning Tree Mapping: preventing broadcast storms before they take the plant down.

Layer 2Broadcast stormsSTP · RSTP · MRPOT resilience
blocked port loop broken by STP SW-CORE root bridge SW-DIST-A distribution SW-DIST-B distribution SW-EDGE cell switch PLC HMI
Four switches form a physical ring; spanning tree blocks one port, so the ring carries no logical loop

A single mis-cabled switch can flood an OT network with broadcast traffic until nothing else gets through. Production lines stop, safety systems go unreachable, often within a minute. The hard part is never fixing the loop. It is finding it.

Loops and broadcast storms

A switching loop forms when there is more than one Layer 2 path between two switches. When a switch receives a broadcast frame, an ARP request for example, it forwards it out of every port except the one it arrived on. In a looped topology that frame comes straight back, gets forwarded again, and the copies multiply exponentially.

That is a broadcast storm. The network floods with duplicate frames, available bandwidth drops to zero, switch CPUs saturate, and MAC address tables thrash as the same addresses turn up on port after port. Legitimate traffic cannot get through.

Without spanning tree, in one minute

From a single accidental loop the collapse is fast, and in an industrial network the consequences are physical:

How spanning tree stops it

Industrial networks need redundancy: if one link fails, production has to continue. But redundant Layer 2 paths are exactly what creates loops. Spanning Tree Protocol (IEEE 802.1D) and its modern successor RSTP (802.1w) resolve that contradiction. They keep the physical redundancy while presenting a loop-free logical topology.

It works by election. Switches exchange BPDUs and choose a root bridge, the switch with the lowest Bridge ID, which combines a configurable priority with the switch's MAC address. Every other switch then calculates its shortest path to the root by path cost, and each port is given a role:

When the topology changes, when a link drops or a switch is added, spanning tree recalculates the tree and updates the port states. With RSTP that reconvergence happens in seconds.

STP, RSTP and MRP: convergence time matters

Which protocol builds the tree decides how long an industrial network sits still after a topology change. Legacy STP under IEEE 802.1D takes 30 to 50 seconds to reconverge, 15 of those in the listening state and 15 in learning, all of it timer-based. RSTP (802.1w) cuts that to 1 to 6 seconds through proposal/agreement handshakes and edge port designation. For real-time applications even that is too slow, and MRP takes over.

Legacy STP · 802.1D
30–50 s
  • Listening state: 15 s
  • Learning state: 15 s
  • Timer-based convergence
  • Single root bridge per network
  • No VLAN optimisation
RSTP · 802.1w
1–6 s
  • Proposal/agreement mechanism
  • Edge port fast transition
  • Backup port roles
  • Standard for new deployments
  • Backward compatible with STP
MRP · Media Redundancy
10–500 ms
  • Ring topology specific
  • Guaranteed failover times
  • Recommended for PROFINET
  • Industrial Ethernet standard
  • Real-time application support

The most expensive mistake in a network that grew over decades is mixing them. The moment a single switch still speaks legacy STP, the segment falls back to the slower STP timers. The convergence time you planned for is not the one you get, and you find out during the outage.

Industrial failover scenarios

When the redundancy is designed properly, a failure looks unremarkable from the plant floor:

Assuming the redundancy is actually there and the tree agrees. That is precisely the assumption you cannot check without a map of the topology.

When it was never really configured

Done right, the storm never starts. But a network that grew over two decades, across vendors and hand-overs, rarely has spanning tree done right. The root bridge is wherever the election happened to land. Priorities sit at their factory defaults. A "temporary" redundant link became permanent years ago. The tree holds, quietly, until one topology change triggers the loop it was always hiding.

The blast radius

When a loop does form, the question is how far the damage spreads. The blast radius of a Layer 2 failure is every device in the same broadcast domain, which means the same VLAN. In the flat network designs still common in older industrial installations, that can be hundreds of devices across several production lines.

And Layer 2 failures do not respect geography. A broadcast storm started by one mis-patched cable at a remote site can saturate a WAN link and take down a building kilometres away.

Two ways the same mistake plays out

Scenario 1

Manufacturing plant

Scenario 2

District heating, into an office building

Spanning tree is a graph, not a table

The usual way to inspect spanning tree is to log into a switch and read show spanning-tree, then the next switch, then the next. Each one reports its own ports: this one forwarding, that one blocking. What none of them shows you is the tree itself. Which switch is actually root? Which physical loop is a given blocked port breaking? If that link fails, what is the blast radius?

Spanning tree is a property of the whole network, not of any single switch, and it has the shape of a graph. You cannot read a graph from a column of port states on twenty separate consoles. You have to draw it.

Mapping the spanning tree visually answers those questions from the live network, before a change is made, instead of during the incident review afterwards.

Why manual spanning tree analysis is nearly impossible

Reconstructing the spanning tree topology of a network that grew over two decades means collecting BPDU exchanges, bridge priorities, port costs and VLAN configurations across dozens or hundreds of switches. Four things make that unaffordable in practice:

A network's spanning tree mapped in narrowin Network Explorer, with forwarding links in green and blocked links in red
A real network's spanning tree, mapped in Network Explorer: forwarding links in green, blocked links in red, the root bridge and every STP instance read from the live network
Spanning tree view in narrowin Network Explorer: the root bridge highlighted in green, blocked links in red, RSTP instance 0 across a multi-vendor ring network
The same view on a ring: the root bridge highlighted in green, the blocked links in red breaking the ring, RSTP instance 0 across Huawei, Siemens and Moxa devices

From map to safe change

With the tree mapped, a tense plant-down afternoon becomes a controlled change. Confirm the root bridge sits where it should. Test a failover and watch the redundancy behave. Then make the move knowing what will happen, because you have already seen it.

What automated visualisation gives you

The narrowin Network Explorer reads the spanning tree configuration out of the live network and draws the topology for you. A column of port states across twenty consoles becomes a map:

The result: avoiding broadcast storms before they cause outages, and saving days or weeks of manual analysis.

Practical implementation in industrial networks

A spanning tree design that holds up in industrial environments follows a short list of rules. Put critical production systems in their own VLANs to bound the blast radius from the start. Set root bridges explicitly, primary and secondary, rather than relying on default priorities; typically on the core switches. Use edge port configuration on access ports to speed up convergence. Run RSTP consistently and avoid mixed STP/RSTP environments. And where guaranteed recovery times are required, use MRP in the field-level ring topologies.

Frequently asked

Where should the root bridge sit?
At the network core, where it gives the most efficient paths to every endpoint; core switches have the port density and processing capacity for it. Set a primary and a secondary root with explicit priority values (for example 24576 and 28672). Avoid the edge and access switches, which create suboptimal traffic patterns and bottlenecks.
What makes spanning tree recalculate, and how do I limit the disruption?
Topology changes: link failures, switches added or removed, BPDU parameter changes. Limit the impact by running RSTP rather than legacy STP, configuring edge ports on access connections, and adding root guard and BPDU guard so a new or misconfigured device cannot quietly reshape the tree.
PVST+ or MST?
PVST+ runs a separate spanning tree per VLAN, which allows load balancing but costs more CPU and memory. MST groups VLANs into instances, cutting that overhead while keeping some balancing. For most OT environments, with a limited number of VLANs, PVST+ is simple and gives clear per-VLAN control; MST earns its place once there are hundreds of VLANs.
When should I use MRP instead of STP/RSTP?
Media Redundancy Protocol gives deterministic failover, with guaranteed recovery in 10 to 500 ms, for real-time applications like PROFINET or EtherCAT and for safety systems where RSTP's one-to-six-second convergence is too slow. It suits the ring topologies common in field networks and needs compatible hardware. In practice it sits alongside RSTP: MRP for the critical field rings, RSTP for the wider control network.
How do I troubleshoot a loop in an emergency?
Identify the blast radius first: which VLANs and segments are affected. Look for switches with extremely high CPU and interface counters showing massive broadcast traffic. Then temporarily shut down recently added connections or devices to break the loop, and work back from there.
← All work