Spanning Tree Protocol (STP) is a Layer 2 network protocol designed to prevent loops in switched Ethernet networks. Loops occur when multiple paths exist between switches, leading to broadcast storms, MAC table corruption, and network instability. STP ensures a loop-free topology by selectively blocking redundant links while allowing alternative paths in case of failure. Learn more: https://en.wikipedia.org/wiki/STP
