SpanningTreeProtocol is a network protocol used on a bridged LAN, that prevents frames from going in circles indefinitely.
It accomplishes this by detecting loops, then automatically disabling ports on switches involved in the loop until there are no loops.
In more detail, it elects one bridge to be the "root", and then all other switches form into a tree below the root, disabling any ports that would be links across the tree..

