Dear Wassim!
The STP and RSTP are used in the loop network. The two protocols realize routing redundancy by adopting certain algorithms and break the loop network into a loop-free tree network, thus preventing packets from increasing and cycling in an endless manner in the loop network. In this manner, the application of the two protocols can prevent the occurrence of the broadcast storm and MAC address table flapping.
The difference between the STP and RSTP is as follows:
The STP breaks loops by blocking certain ports.
The RSTP is an optimized version of the STP and implements all the functions of the STP. With the application of the RSTP, the network convergence is quicker. In addition, in the case of a link failure, the blocked ports can be enabled to restore services quickly.
Usually, specifies that the Ethernet data board of the equipment supports two spanning tree protocols, that is, the spanning tree protocol (STP) and the rapid spanning tree Protocol (RSTP).
The RSTP and STP can be configured at the same time. The RSTP is compatible with the STP. It is recommended that you use the default value RSTP.
Thank you!