This section describes how to configure delayed resending of a MAC-Withdraw message. In case that the VRRP status changes to backup, this configuration allows a device to resend a MAC-Withdraw message to a peer PE after a specified delay.
Context
On the network shown in
Figure 1, the CE is dual-homed to PE1 and PE2. VRRP runs on the PEs, with PE1 functioning as the master device and PE2 the backup device. If the link between the CE and PE1 fails, a master/backup VRRP switchover is performed. PE1 becomes the backup device, and PE2 becomes the master device. After the link between the CE and PE1 recovers, a master/backup VRRP switchback is performed if the VRRP group works in preemption mode. PE1 returns to the master state, and PE2 to the backup state.
Figure 1 VPLS network on which a CE is dual-homed to PEs
Take a master/backup VRRP switchback as an example. When PE2 changes from the master state to the backup state, the PE2 interface connecting to PE3 goes Down and sends a MAC-Withdraw message to PE3 to clear the MAC address entry for PE3. Normally, PE3 no longer receives packets forwarded by PE2. Instead, PE3 receives only upstream packets forwarded by the master device PE1, and records the mapping between the CE's MAC address and PW1. However, during the switchback, the interface's forwarding status table on PE2 is updated slowly. As a result, PE2 still sends a few packets to PE3 after the switchback. Upon receipt, PE3 records the mapping between the CE's MAC address and PW2 again. In this case, PE3 incorrectly sends the downstream packets destined for the CE to PE2 through PW2. As a result, packets are lost, and packet forwarding can recover only after the local MAC address entry ages.
To solve this problem, configure delayed resending on PE1 and PE2. After the VRRP status changes to backup and then the specified resending delay elapses, PE2 resends a MAC-Withdraw message to PE3 to clear the MAC address entry for PE3. This configuration ensures that PE3 learns the correct mapping between the CE's MAC address and the PW and sends downstream packets to the master device to prevent packet loss.
Procedure
- Run system-view
The system view is displayed.
- Run vsi vsi-name
The view of a VSI is displayed.
- Run vrrp-backup mac-withdraw retry-interval retry-interval-time
Delayed resending of a MAC-Withdraw message is configured.
- Run commit
The configuration is committed.