STP's port states and roles manage how sockets operate in a backup network. That is, they decide their role in forwarding or blocking traffic.