The document discusses spanning tree protocol (STP) which is used to prevent loops and enable redundancy in switched networks. STP designates one switch as the root bridge and elects root ports and designated ports to block ports and create a loop-free topology. STP also defines port states like forwarding, blocking, listening and learning. Rapid spanning tree protocol (RSTP) was introduced to improve upon STP by providing faster convergence when the network topology changes.