Using the Pre-empt Delay Timer (PDT)

To maintain availability of the default gateway router, the VRRP advertises a "virtual" router to the hosts. At least two other physical routers are configured to be virtual routers, but only one router provides the default router functionality at any given time. If the owner router or its VLAN goes down, the backup router takes over. When the owner router comes back on line (fail-back), it takes control of the VIP that has been assigned to it. It begins sending out VRRP advertisement packets at regular intervals. The backup router receives the VRRP advertisement packet and transitions to the backup state.

When OSPF is also enabled on the VRRP routers

When OSPF is enabled on the routers and a fail-back event occurs, the owner router immediately takes control of the VIP and provides the default gateway functionality. If OSPF has not converged, the route table in the owner router may not be completely populated. When the hosts send packets to the default gateway, the owner router may not know where to send them and packets may be dropped.


[CAUTION: ]

CAUTION: While you can run OSPF and VRRP concurrently on a router, it is best not to run VRRP with other routing protocols, such as RIP or OSPF, on the same interface or VLAN, as this can create operational issues.


Configuring the PDT

The VRRP PDT allows you to configure a period of time before the VR takes control of the VIP. It does not transition to the master state until the timer period expires. The timer value configured should be long enough to allow OSPF convergence following OSPF updates.

The PDT is applied only during initialization of the router, that is, when the router is rebooting with the VRRP parameters present in the startup config file.

VRRP preempt mode with LACP and older HPE devices

There can be an issue with VRRP preempt mode if an older HPE device (2524, 2650, 2848, 3400, or 5300) is the intermediate device connecting to a VRRP router and has LACP set in "enable, passive" mode. This mode is set by default on older devices, whereas it is disabled by default on later models such as the Series 5400zl. Hewlett Packard Enterprise recommends that you use compatible LACP settings on devices that connect with VRRP routers on VRRP VLANs.

What occurs at startup

When the owner router comes online, it waits for the configured amount of time before taking control of the VIP. This period of time is calculated as follows:

If the value of the master down time (3 * advertisement interval) is less than or equal to the preempt delay time, the owner router will wait until the master down time (3 * advertisement interval) has expired.

During this waiting period, if the owner router receives a VRRP packet for its VIP from the backup router, it waits until the PDT expires before taking control of its VIP. If the owner router does not receive any VRRP packets and the master down time expires, the owner router can take control of its VIP immediately.

If the value of the master down time (3 * advertisement interval) is greater than the preempt delay time, the owner router will wait until the PDT expires before taking control of its VIP.

Selecting a value for the PDT

You should select the value for the PDT carefully to allow time for OSPF to populate the owner router's route tables. The choice depends on the following:

  • The OFPF router dead interval—the number of seconds the OSPF router waits to receive a hello packet before assuming its neighbor is down.

  • The number of router interfaces that participate in OSPF

  • The time it may take from reception of the OSPF packets to when the population of the route table is completed.

There are trade-offs between selecting a small advertisement value and a large PDT. A small advertisement value results in a faster failover to the backup router. A larger PDT value allows OSPF to converge before the owner router takes back control of its VIP.

Choosing a large PDT value (greater than the master down time) may result in an unnecessary failover to the backup router when the VRRP routers (owner and backup) start up together. Choosing a large advertisement interval and thereby a large master down time results in a slower failover to the backup router when the owner router fails.

Possible configuration scenarios

PDT=zero seconds

This is the default behavior. It works in the same way that VRRP works currently.

PDT is greater than or equal to the master down time (3 times the advertisement interval)

  1. An owner VR after reboot—waits for the master down time. If the owner router does not receive a packet during this time, it becomes the master. If it receives a VRRP advertisement from its peer during this time, it waits until the expiration of the preempt delay time before becoming the master.

  2. A backup VR after reboot—waits for the master down time. If the backup router does not receive a packet during this time, it becomes the master. If it receives a VRRP advertisement from its peer during this time, and it has a higher priority value than this peer, it waits until the expiration of the preempt delay time before becoming the backup.

PDT is less than the master down time

  1. Owner router—becomes the master after expiration of the PDT.

  2. Backup router—becomes the backup after expiration of the PDT if it does not receive a VRRP advertisement from a higher priority peer (or the owner.)

When the PDT is not applicable

Once the router has rebooted and is in steady state VRRP operation, the PDT is not applicable if:

  • The VRRP VLAN goes down and comes back up.

  • The VR is disabled and re-enabled.

  • VRRP is globally disabled and then re-enabled.