Storm Control Configuration
Prevent broadcast, multicast, and unicast storms using Storm Control.
1. Executive Summary & Objective
The stability of any local area network relies on predictable traffic flows. However, Layer 2 networks are inherently vulnerable to traffic stormsβmassive, uncontrolled floods of packets that consume all available bandwidth, overwhelm switch CPU resources, and paralyze network communications. These storms can be triggered accidentally by physical network loops (e.g., a user plugging both ends of a cable into the same unmanaged switch) or intentionally via malicious Denial-of-Service (DoS) attacks.
The objective of this module is to master Storm Control, a critical hardware-level security mechanism designed to detect and suppress excessive traffic rates before they degrade the network. By the end of this deep-dive, you will understand the theoretical triggers of broadcast, multicast, and unknown unicast storms. You will be able to architect, deploy, and tune Storm Control parameters to automatically throttle or isolate offending interfaces, ensuring high availability and resilience across the Layer 2 domain.
2. Core Concept & Theory (The βWhyβ)
The Anatomy of a Traffic Storm
A traffic storm occurs when packets are flooded continuously across the network without a mechanism to stop them. Ethernet frames do not have a Time-to-Live (TTL) field like IP packets do. Therefore, if a Layer 2 loop exists and Spanning Tree Protocol (STP) fails or is misconfigured, a single broadcast frame will circulate infinitely, duplicating itself at every redundant link until the physical capacity of the switches is entirely saturated.
Storms are typically categorized by the type of traffic generating the load:
- Broadcast Storms: Broadcast frames (Destination MAC
FF:FF:FF:FF:FF:FF) are designed to be processed by every device in the VLAN. ARP requests and DHCP discovers are common examples. An uncontrolled flood of broadcasts not only chokes link bandwidth but also spikes the CPU of every end-host forced to process the frames. - Multicast Storms: Multicast frames are intended for a specific group of devices. Without mechanisms like IGMP snooping, switches treat multicast similarly to broadcast, flooding it everywhere. Misbehaving IP video cameras or flawed routing protocol configurations can cause multicast storms.
- Unknown Unicast Storms: If a switch receives a unicast frame destined for a MAC address that does not exist in its CAM table, its default behavior is to flood the frame out of all ports in the VLAN to ensure it reaches its destination. Attackers can exploit this by directing a high-volume stream of data to a fictitious MAC address, causing widespread unknown unicast flooding.
The Storm Control Mechanism
Storm Control operates at the port hardware level (ASIC). It functions as an intelligent traffic policer that constantly measures the rate of incoming broadcast, multicast, or unknown unicast frames.
The administrator defines a specific threshold (e.g., 5% of total interface bandwidth). If the incoming traffic of a monitored type exceeds this threshold, Storm Control engages immediately. It will drop all subsequent frames of that specific traffic type until the incoming rate falls back below a predefined lower limit, restoring stability. Alternatively, it can be configured to take a more aggressive stance, completely shutting down the port to isolate the source of the anomaly.
3. Architecture & Topology (Visualizing)
Consider a large enterprise campus environment:
- Core/Distribution Layers: High-capacity 10G/40G fiber links aggregating traffic.
- Access Switch (e.g., Switch-A): Connects to user cubicles.
- The Threat: An employee brings in a cheap, unmanaged 5-port desktop switch. They accidentally plug two patch cables from the desktop switch into two different wall jacks, both leading back to Switch-A.
The Meltdown Scenario (Without Storm Control): The unmanaged switch does not run Spanning Tree. A physical loop is formed. A single ARP request from a PC enters the loop. Switch-A forwards it, the unmanaged switch receives it on one port and loops it back out the other. The frame circulates endlessly, multiplying. Within seconds, gigabits of broadcast traffic saturate the uplinks, causing a building-wide network outage.
The Resilient Architecture (With Storm Control): Storm Control is deployed on all access-facing ports on Switch-A with a threshold of 5%. As soon as the loop is created and the broadcast traffic spikes, Storm Control on the affected access port detects the anomaly in milliseconds. It instantly drops the excess broadcast frames, preventing them from traversing the uplinks and protecting the rest of the campus from the localized mistake.
4. Command Execution & Deployment (The βHowβ)
Configuring Storm Control involves setting thresholds and defining the penalty action. Thresholds can be defined as a percentage of link speed, in bits per second (bps), or in packets per second (pps).
Step 1: Defining the Thresholds
Navigate to the interface configuration mode. It is best practice to apply this to all access ports.
Switch(config)# interface range GigabitEthernet1/0/1-48
Configure the upper thresholds. When traffic exceeds this limit, action is taken.
Switch(config-if-range)# storm-control broadcast level 5.00
Switch(config-if-range)# storm-control multicast level 10.00
Switch(config-if-range)# storm-control action drop
Note: drop is the default action. It suppresses traffic but keeps the port operational.
Step 2: Configuring High and Low Watermarks (Optional but Recommended)
To prevent the switch from rapidly oscillating between dropping and forwarding (flapping) when traffic hovers right at the threshold, configure a high (falling) and low watermark.
Switch(config-if-range)# storm-control broadcast level 5.00 3.00
This command instructs the switch: Start dropping broadcasts when they exceed 5% of bandwidth. Do not resume normal forwarding until the broadcast rate drops below 3%.
Step 3: Configuring the Penalty Action
For high-security or fragile environments, dropping the traffic isnβt enough; you may want to aggressively isolate the misbehaving segment.
Switch(config-if-range)# storm-control action shutdown
Switch(config-if-range)# storm-control action trap
shutdown: Places the port into anerr-disablestate.trap: Sends an SNMP alert to the Network Management System (NMS).
Step 4: Automating Recovery
If using the shutdown action, configure errdisable recovery to automatically restore the port after a cooldown period, saving a manual trip to the wiring closet.
Switch(config)# errdisable recovery cause storm-control
Switch(config)# errdisable recovery interval 300
5. Verification & Troubleshooting
Storm Control is a silent protector; verifying its operation and investigating triggers requires targeted commands.
1. Verifying Configuration and Current Levels:
Switch# show storm-control broadcast
This is the primary verification command. It displays a table of interfaces, showing their configured upper and lower thresholds, the current amount of broadcast traffic on the link, and most importantly, the Action configured.
2. Identifying Suppressed Interfaces:
Switch# show storm-control
This command reveals if any port is actively blocking traffic. Look at the Filter State. If it says Forwarding, the port is normal. If it says Blocking, Storm Control is currently dropping packets on that interface.
Troubleshooting Scenario:
- Symptom: A network backup server connected to an access port keeps going offline during its nightly run. The port is in
err-disablestate. - Root Cause: The
show interfaces status err-disabledcommand reveals the cause isstorm-control. The backup server utilizes a heavily multicast-dependent application for discovery that bursts over the 10% threshold during synchronization. - Resolution: Access ports connected to high-volume servers require tuned thresholds.
Adjust the threshold higher to accommodate legitimate business applications while still providing a ceiling against catastrophic loops.Switch(config)# interface GigabitEthernet1/0/24 Switch(config-if)# storm-control multicast level 50.00
6. Sandbox / Interactive Lab Context
To deeply understand the impact of Storm Control, simulate a network loop in a controlled lab.
Lab Execution:
- Deploy a single managed switch with a PC connected to Gi0/1.
- Configure basic IP addressing and verify pings to the switch management interface.
- Apply Storm Control to Gi0/2 and Gi0/3, setting the broadcast threshold to a very low
level 1.00and the action toshutdown. - Take a single ethernet cable and plug one end into Gi0/2 and the other end into Gi0/3. Warning: If STP is enabled, it will block one port and prevent the loop. You must temporarily disable STP on those two ports for this experiment.
spanning-tree bpdufilter enable - Initiate a continuous ping from the PC to a non-existent IP address to generate broadcast ARP requests.
- The physical loop will instantly multiply the ARP broadcasts.
- Observe the console logs. Within milliseconds, the switch will log a
%STORM_CONTROL-3-SHUTDOWNmessage. - Verify that Gi0/2 and Gi0/3 have been placed into an
err-disablestate, effectively killing the loop and protecting the switchβs CPU from being overwhelmed. The continuous pings from the PC (once you stop the loop) should remain unaffected, proving the rest of the network survived.
π§ͺ Want to practise this on your own computer? See how to set up your lab →