STP is a protocol that prevents bridge loops in Ethernet LANs. There are multiple versions of STP including 802.1D Common STP, 802.1w Rapid STP, and 802.1s Multiple STP. Attacks against STP protocols aim to take over the root bridge role or perform denial of service attacks by flooding bridges with BPDU packets. Countermeasures against these attacks include root guard, BPDU guard, BPDU filtering, and layer 2 PDU rate limiting on switches.