Skip to content

Surveillance VLAN loop broadcast-storm decision tree — a whole area of cameras drops offline

There is a scalp-tingling failure in surveillance VLANs: the cameras in an underground garage (or one floor, one zone) suddenly stutter with high latency, then drop offline en masse, and a whole block of channels on the NVR goes gray. The first reflex drifts toward "NVR storage is full", "bad disk", or "this batch of cameras is aging", so people clear storage, swap disks, replace cameras — and the zone still drops.

The signature of this fault is "a whole zone at once, and the switch side fails first". The root is usually not the camera nor the NVR, but a layer-2 loop in the surveillance VLAN; the broadcast storm saturates the access switch CPU and every port in that segment congests together. The decision tree below handles the "surveillance VLAN broadcast storm" class.

60-second check — is it a loop broadcast storm?

Self-test with one sentence:

Multiple cameras in one zone drop together; and the corresponding access switch CPU spikes with MAC-flapping logs → strongly suspect a network loop (broadcast storm) in the surveillance VLAN.

If only scattered few streams fail and NVR replay is also slow, that looks more like storage/disk — outside this page.

Troubleshooting decision tree

User reports: one zone of cameras stutters, high latency, mass drop-offline
  │
  ├─ Confirm the scope shape
  │    ├─ A whole zone drops at once? → layer-2 / switch-side problem (check loop)
  │    └─ Scattered few streams, replay also slow? → more like NVR/disk/single stream, check storage
  │
  ├─ Log into access switch, check CPU
  │    ├─ CPU suddenly 80%+? → broadcast-storm suspect ★most common
  │    └─ CPU normal?       → not a storm, check uplink / NVR
  │
  ├─ Check alerts and logs
  │    ├─ MAC flapping (same MAC jumps ports)? → loop fingerprint, confirmed
  │    ├─ STP abnormal / STP off?             → loop unprotected, easily disturbed
  │    └─ Neither?                        → maybe not a loop
  │
  ├─ Unplug method, isolate segment by segment
  │    ├─ Unplug downlinks one by one; CPU drops on one → far end of that cable is loop source
  │    └─ Recovers after unplugging uplink? → loop is upstream, go up
  │
  └─ Root-cause locating
       ├─ Unauthorized switch / shorted patch cord? → introduced by work or misoperation
       └─ STP off or edge port lacks BPDU guard?   → missing protection amplified impact

The hinge of the whole tree is one line: first confirm "whole-zone layer-2 flooding vs single-point storage", then decide whether to check switch CPU or NVR. That step "check CPU + MAC flapping" is the pivot — once a loop forms, the switch fails before the cameras.

Three-step locating procedure

Step 1 — check switch CPU and ports

Commands differ by vendor; pick the block for your switch:

Cisco IOS/IOS-XE:
show processes cpu                   :: see if CPU suddenly spikes above 80%
show interfaces brief                :: ports all busy, error/dropped packets surge
show logging                         :: scan for MAC flapping / broadcast alerts

Huawei VRP:
display cpu-usage                    :: see if CPU suddenly spikes above 80%
display interface brief              :: ports all busy, error packets surge
display logbuffer                    :: scan for MAC flapping / broadcast alerts

Note: a normal surveillance access switch CPU should be very low. Once a broadcast storm hits, CPU is saturated by flooded packets — the most direct signal.

Step 2 — check MAC flapping and STP

Cisco IOS/IOS-XE:
show mac address-table               :: watch a MAC jump between ports = loop fingerprint
show spanning-tree                   :: see if STP is enabled, root bridge reasonable

Huawei VRP:
display mac-address                  :: same MAC appearing on two ports = loop fingerprint
display stp brief                    :: see port role/state (DESIGNATED/ALTERNATE/DISCARDING)

MAC flapping is the most typical loop fingerprint — the same camera MAC appears on port 1 then port 8, meaning layer-2 has a "circling" path.

Step 3 — unplug method to locate the loop source

1. Start from the access switch closest to the failed zone
2. Unplug downlink ports one at a time (except uplink), observe after each whether CPU falls back
3. When unplugging one cable drops CPU sharply and images recover → far end of that port is the loop source
4. Follow the thread: usually an unauthorized small switch, or a patch cord plugged into the switch at both ends

Honest note: the unplug method must be done on the switch on site; there is no terminal script substitute. The above is a troubleshooting checklist, not code; commands depend on your switch vendor.

Emergency stopgap — restore service before finding root

1. After locating the loop port, shutdown that port first to recover the whole zone
2. Follow the thread and remove the unauthorized device / shorted cord
3. Before restoring the port, force STP/RSTP + edge-port BPDU guard on that switch
4. Watch whether CPU and MAC flapping return to zero

Honest note: emergency actions (shutdown port, enable STP) must be done on the switch; the above is a handling checklist, not copy-run script.

Root cause — make loops "blocked even if plugged in"

Recovering one switch is only a stopgap. Surveillance VLANs see constant construction and ops activity; close it off in three layers:

Layer Action Prevents
Switch Force STP/RSTP on all surveillance access switches; edge ports with BPDU Guard; key uplinks with root guard unauthorized devices disturb topology, loop forms
Norm "Machine-room / weak-current-well patch-cord standard": forbid unauthorized switches, forbid shorted patch cords; emphasize at construction handover construction / misoperation introduces loop
Audit Enable MAC-flapping alert on access switches, wired to monitoring; new ports default edge + BPDU guard loop caught the moment it appears

One often-missed point: surveillance VLANs often skip STP "for simplicity". Many think "just a dozen cameras, simple topology, STP is redundant", then one construction plug-in floods the whole VLAN. Once a surveillance VLAN loops, it takes down a whole security zone — a far higher cost than enabling STP.

Quick decision table (use it directly)

Symptom First reflex (misjudged) Real root cause Where to look
Whole zone drops offline NVR storage full / bad disk surveillance VLAN loop broadcast storm access switch CPU + MAC flapping
Image stutters but replay also slow camera aging actually NVR/disk, not loop NVR disk / write
CPU spikes, ports all busy uplink bandwidth shortage broadcast flood saturates CPU switch CPU + port error counters
MAC jumps between ports camera MAC chaos layer-2 loop fingerprint MAC address table (Cisco show mac address-table / Huawei display mac-address)
Recovers right after unplugging one that cable loose contact far end of that cable is loop source unplug method locate

This table is the practical version of "what this class of ticket is most easily misdiagnosed as" — eight out of ten of them open as "disk broken" or "camera no good", and checking against the table skips most wasted effort.

FAQ

Q: Why does a whole zone drop, not just one stream, yet people blame the NVR or disk?
A: NVR storage-full or a bad disk usually only affects "recordings won't write" or "a few streams replay slow" — it does not make live front-end images drop across the board. A loop broadcast storm is layer-2 flooding that saturates the whole access switch CPU, so every camera under that switch congests and drops together — the symptom is "a zone", not "a few streams". Whether it is "one whole area at once" vs "scattered few" tells them apart at a glance.

Q: How do I confirm it is a loop and not something else?
A: Watch three signals together: 1) switch CPU usage suddenly spikes above 80%; 2) logs show MAC address flapping (one MAC jumping between ports); 3) STP state is abnormal or STP is simply off. Any one of the three warrants suspicion of a loop — especially MAC flapping, the most typical fingerprint of a loop.

Q: How do I unplug without causing collateral damage?
A: Start from the access switch closest to the failed zone, and unplug downlink ports one at a time (except the uplink), observing after each whether CPU falls back. When unplugging one cable drops CPU sharply and images recover, the far end of that cable is the loop source. Note the port mapping before unplugging and restore promptly to avoid causing a new outage.

Q: If STP is on, can loops never happen?
A: STP/RSTP blocks redundant paths and prevents most loops, but only if "it is on and configured right". Many surveillance access switches ship with STP off, or edge ports lack BPDU protection; an unauthorized device with its own spanning tree or a more aggressive bridge priority can disturb the topology. So you must "force it on + edge-port BPDU Guard", not just enable and sleep easy.

Q: How do construction/ops prevent unauthorized loops at the root?
A: Two things: 1) force STP/RSTP on all access switches with edge-port BPDU protection, so even if someone plugs in, it is auto-blocked; 2) establish a machine-room / weak-current-well patch-cord standard that explicitly forbids unauthorized switches and shorted patch cords, emphasized during construction handover. Technical blocking plus process constraint together make loops truly rare.

Further reading and references

This page is a troubleshooting decision asset. External links are authority references only; commands differ greatly by switch vendor — follow your device documentation.

The fault case in this page comes from a real low-voltage site, used as a credibility anchor for the judgment. Actual commands depend on your switch vendor documentation.