Media Access Control (MAC) Flooding

Media Access Control (MAC) flooding is a type of network attack that targets the switching infrastructure of a local area network (LAN). This attack exploits a vulnerability in the way network switches handle MAC address tables, leading to network performance degradation or even a complete denial of service.

In a typical Ethernet network, switches use MAC address tables (also known as Content Addressable Memory or CAM tables) to maintain a mapping between MAC addresses and the corresponding switch ports. This enables the switches to forward network traffic only to the appropriate destination devices.

In a MAC flooding attack, the attacker floods the switch with a large number of fake MAC addresses, overwhelming the switch's MAC address table. As a result, the switch enters a "fail-open" mode, where it starts acting like a hub instead of a switch. In this mode, the switch broadcasts incoming network traffic to all connected ports, regardless of the destination MAC address. This flooding of unnecessary traffic consumes network resources and can lead to network congestion, performance degradation, and potential denial of service for legitimate network users.

MAC flooding attacks can be mitigated through the following preventive measures: