Even the command to set them is named timers basic… However in some documentation it is not really clear what the difference is between the invalid and holddown timer.
The default timers are 30 for updates, 180 for invalid, 180 for holddown and 240 for flush.
I have heard and seen described in official documentation that when a route is in holddown it will not accept routes with a worse metric but routes with a better metric. This is however not true. First lets describe the different timers.
- Updates – Updates are sent every 30 seconds by default to the address 224.0.0.9.
- Invalid – If there has not been any updates for 180 seconds about the prefix it is consider invalid and the route will be poisoned (route advertised with a metric of 16).
- Holddown – The timer for holddown will be activated when the route goes into an invalid state. This is set to 180 by default.
- Flush – This timer is set to 240 seconds, when a routes is 240 seconds old it is flushed from the routing table.
We will created a topology with 3 routers connecting to each other and both the routers announced 1.1.1.1/32 to the middle router. We created an ACL on the middle router to filter all traffic so that the best route will become invalid. On the third router we used an offset-list to make the route worse. After the route became invalid we stopped sending the route with a worse metric and sent it with a better metric. However the route is still not installed until the holddown timer has expired. If you manipulate the timers it is easier to see. We used 5 seconds for updates, 30 for invalid, 30 for holddown and flush of 240. You will see that it takes 60s before the route gets installed.
If you use the standard timers the holddown timer will not expire before the route is flushed since the 180 seconds start counting after 180s by default and then there is only 60s left until the route is flushed. Try this out for yourself and see if you get the same results as I.
timers basic
To adjust Routing Information Protocol (RIP) network timers, use the timers basic command in router configuration mode. To restore the default timers, use the no form of this command.
timers basic update invalid holddown flush
no timers basic
Syntax Description
Defaults
update: 30 seconds
invalid: 180 seconds
holddown: 180 seconds
flush: 240 seconds
invalid: 180 seconds
holddown: 180 seconds
flush: 240 seconds
Command Modes
Router configuration
Command History
Usage Guidelines
The basic timing parameters for RIP are
adjustable. Because RIP is executing a distributed, asynchronous routing
algorithm, these timers must be the same for all routers and access
servers in the network.
Note The current and default timer values can be seen by inspecting the output of the show ip protocols EXEC command. The relationships of the various timers should be preserved as described previously.
Examples
The following example sets updates to be
broadcast every 5 seconds. If a router is not heard from in 15 seconds,
the route is declared unusable. Further information is suppressed for an
additional 15 seconds. At the end of the suppression period, the route
is flushed from the routing table.
router rip
timers basic 5 15 15 30