On the network shown in Figure 1, CE1, CE2, PE1, and PE2 form a ring network, and CE1 and CE2 are dual-homed to PE1 and PE2. To prevent routing loops and eliminate network resource waste caused by redundant traffic, deploy a loop prevention protocol. Currently, MSTP, ERPS, or STP can be deployed to prevent loops.
On the network shown in Figure 1, MSTP is deployed on the ring network formed by CE1, CE2, PE1, and PE2. PE1 and PE2 are configured with the same ring ID.
The PEs establish EVPN BGP peer relationships with each other and then exchange Ethernet segment routes.
After receiving an STP TC/TCN BPDU, the AC interface on PE1 (PE2) notifies its sub-interfaces bound to BDs of the topology change, and transparently transmits the BPDU to PE2 (PE1).
After detecting the network topology change through the Ethernet A-D per-EVI route sent by PE1, PE2 adds the MAC-Flush and Ring ID extended community attributes to its local Ethernet A-D per-EVI route and floods the route on the network. In this way, other PEs on the network can nullify the MAC routes learned from PE2 to achieve fast convergence.
On the network shown in Figure 1, ERPS/STP is deployed on the ring network formed by CE1, CE2, PE1, and PE2.
The PEs establish EVPN BGP peer relationships with each other and then exchange Ethernet segment routes.
After the AC interfaces on PE1 and PE2 receive TC/TCN BPDUs, the corresponding BD EVPN instances detect the topology change, trigger the deletion of local MAC entries, and send Ethernet A-D per-EVI routes carrying the MAC-Flush and Ring ID extended community attributes to other PEs on the network for fast convergence.
After other PEs receive the Ethernet A-D per-EVI routes, they nullify the MAC routes learned from PE1 and PE2.