Preemption
Devices in a VRRP operate in either of the following modes:
Preemption mode: If the priority of a backup is higher than the priority of the current master, the backup automatically becomes the master. To enable the device with a higher priority in a VRRP group to be the master, set the preemption mode on the device.
Non-preemption mode: If the master is working properly, the backup with a higher priority cannot become the master.
Priority
VRRP determines the device role in the virtual router based on device priorities and IP address.
If the master priority in VRRP Advertisement packets is higher than or equal to the priority of the device, the backup remains in Backup state.
If the master priority in VRRP Advertisement packets is lower than the priority of the device, the backup switches to the Master state in preemption mode and remains in Backup state in non-preemption mode.
If multiple devices in the VRRP group switch to the master, the devices with a lower priority switch to the Backup state and the device with the highest priority becomes the master after these devices exchange VRRP Advertisement packets. If multiple devices have the same priority, the device where the interface with the largest IP address resides is the master.
If the device is the IP address owner, it switches to the Master state immediately after receiving an interface Up message.
Advertising the master status
Skew time = (256 - Backup priority)/256
Master_Down_Interval = 3 x Advertisement_Interval + Skew_time (in seconds)
If congestion occurs on a network, the backup may not receive VRRP Advertisement packets from the master within the period of Master_Down_Interval. A backup then switches to the Master state. If a VRRP Advertisement packet from the original master reaches the backup (new master), the new master reverts to the Backup state. In this case, the VRRP group status changes frequently, which may interrupt services. To solve the problem, the preemption delay is used. When the Master_Down_Interval timer expires, the backup waits for the preemption delay. If the backup does not receive a VRRP Advertisement packet within the preemption delay, it switches to the Master state.