In What Condition Do I Need to Configure STP Edge Ports?
User-side devices such as servers do not need to run STP. If STP is enabled on switch ports connected to these devices, the ports will alternate between Up and Down or cannot enter the Forwarding state immediately after a topology change on the STP network, which is unacceptable for some services. To prevent the preceding problem, configure the ports that do not need to run STP as edge ports. Edge ports can enter the Forwarding state immediately after they go Up. In addition, edge ports do not send TC BPDUs and therefore do not affect services on the STP network.