unknown unicast flooding

term

networking

Kept in this browser · My desk

A switch sending a unicast frame out of every port in its VLAN because its MAC table has no entry for the destination: normal for a moment, a problem when it lasts.

Cisco: when there is no entry for the frame's destination MAC address in the incoming VLAN, the unicast frame is sent to all forwarding ports in that VLAN. It is how a switch finds a host it has not heard from, and the reply ends it. It becomes a problem when the table keeps forgetting an address the traffic still uses. Cisco's document 23563 names three causes: asymmetric routing, spanning tree topology changes that shorten the table's ageing, and a full forwarding table; on hashed tables a full bucket has the same effect.

What it is. Unknown unicast flooding is a switch sending a unicast frame out of every forwarding port of its VLAN (virtual local area network), except the arrival port, because its MAC (media access control) address table has no entry for the destination. It is one of the three kinds of BUM (broadcast, unknown unicast and multicast) traffic, and the only one whose destination is a single station: the flood is the bridge's way of finding a host it has not heard from, and the reply, which teaches the table the host's port, ends it. Radia Perlman's 1985 paper states the rule (no entry for the destination: send on all links but the arrival link), and Juniper's documentation gives the purpose: flooding lets the switch learn.

When it becomes a problem. Normal for a moment, a problem when it lasts: the table keeps forgetting an address that traffic still uses. Cisco's document 23563 names three causes: asymmetric routing, spanning tree topology changes that shorten the table's ageing, and a full forwarding table; on hashed tables a full bucket has the same effect.

The commonest cause is two timers. A router keeps ARP (Address Resolution Protocol) entries for hours (4 hours is the EOS default Ivan Pepelnjak cites, and the Cisco default on the slide of a GTER 45 talk), while switches age MAC entries after 5 minutes. When a server's replies leave by another path, the switch in front of the sending router never hears the server, forgets it after 300 seconds and floods the router's traffic for the remaining 14,100 seconds of every 14,400: 97.9 per cent of the time, invisible except as a slow VLAN. Worked by hand: the router refreshes its ARP entry at second 0, the switch learns the server only from that exchange, the MAC entry expires at second 300, and nothing from the server crosses that switch again until the router's next ARP request at second 14,400; 14,100 divided by 14,400 is 0.979. Hosts are not the problem: Linux keeps a neighbour reachable for a random time around 30 seconds (base_reachable_time) and reprobes, and the GTER 45 slides contrast the 4 hours of Cisco and Juniper routers with MikroTik's 30 seconds.

Other causes. A spanning tree topology change makes bridges age their tables in the forward delay, 15 seconds by default, or flush them at once in the rapid protocol, so a port that flaps keeps the VLAN flooding; that is why Cisco puts PortFast on end-device ports. A full table, whether from growth (Request for Comments (RFC) 7348 describes top-of-rack switches that must learn hundreds of virtual machines per server and may stop learning when the table overflows) or from MAC flooding, leaves new hosts unlearned. A table that cannot learn by design floods too: Fortinet's FortiSwitchOS lets learning be turned off per port, and then traffic from unknown sources is dropped or forwarded as configured.

Why it matters beyond speed. Every flooded frame reaches every port of the VLAN, so a host that only listens sees unicast traffic that was never meant for it; this is the effect MAC flooding produces on purpose. Flooding can also skip controls applied to learned traffic: the National Vulnerability Database (NVD) record CVE-2025-20316 (24 September 2025) describes traffic from an unlearned MAC address, flooded on a switch virtual interface, bypassing an egress access control list (ACL) on Cisco Catalyst 9500X and 9600X switches, and notes that an attacker could cause it by making the VLAN flush its table and that a full table has the same effect.

Fixes. Cisco's remedy is to bring the ARP timeout and the forwarding table ageing close to each other, plus PortFast on end-device ports against topology-change ageing, port security against overflow, and switchport block unicast on ports that should never receive it; the Linux bridge has a per-port unicast flood flag. Douglas Fernando Fischer described the same mechanism on links to Brazilian Internet exchanges (IX) in 2018, where most flooded packets went to participants whose routers kept ARP for four hours; raising the switch's ageing helps, and matching the ARP and MAC timers makes sense. At exchange points the cure can be architectural: RFC 9161 (January 2022) shows that an EVPN (Ethernet virtual private network) proxy ARP/ND (Neighbor Discovery) function, with static entries for every participant, suppresses ARP/ND and unknown unicast flooding in the peering network. Storm control can bound it, but check whether a platform counts all unicast or only unknown unicast: Huawei's display separates UC (unicast) from UUC (unknown unicast), and Fortinet's storm control counts unknown unicast as its own type.

Neighbours. BUM traffic, the MAC address table, transparent bridging, topology change notification, MAC flooding, storm control and ARP.

Also known as: unknown unicast, unicast flooding, unicast flood, flooding, unicast storm

Sources

← Back to U Back to the glossary