Hi YaminaMD,
RSTP considers that the network topology has changed when a non-edge port transitions to the Forwarding state.
When detecting a topology change, RSTP devices react as follows:
The local device starts a TC While timer on each non-edge designated port. The TC While timer value is twice the Hello timer value.
Within the TC While time, the local device deletes MAC address entries learned on ports whose states have changed. These ports send out RST BPDUs with the TC bit set to 1. When the TC While timer expires, the ports stop sending RST BPDUs.
When other switches receive RST BPDUs, they clear MAC address entries learned on all their ports except the ports that receive the RST BPDUs. These switches also start a TC While timer on each non-edge designated port and repeat the preceding process.
For more information, please refer to https://support.huawei.com/hedex/hdx.do?docid=EDOC1100126530&id=EN-US_CONCEPT_0186953012&lang=en
I hope it helps!