The correct answer is STP (Spanning Tree Protocol).
STP is a Layer 2 protocol used to prevent loops in Ethernet networks by creating a loop-free logical topology. While VTP (VLAN Trunking Protocol) is involved in managing VLANs, RIP (Routing Information Protocol) and OSPF (Open Shortest Path First) are Layer 3 routing protocols.