Home / Network / Routing / Dynamic routing / RIP / Understand RIP Routing Timers All in One Shot!

Understand RIP Routing Timers All in One Shot!

This post is part of a series of posts about dynamic routing protocols and especially RIP. We’ll try to get a deep understanding of its operation and function as an introductory to dynamic routing logic in general. You’ll see that what we think easy may hide an incrementing complexity…

a little introduction

Before we start lets recall that RIP or Routing Information Protocol is one of the so-called distance vector IGP protocol or Interior Gateway Protocols that is, its routing decision is based on a metric. This metric is calculated based on the distance (of the router) from the destination in terms of the number of hops (intermediate networks or routers) that separate the source (or forwarding router of trafic from the source) from the destination. For example, from a router perspective, a path to a destination that is two hops away from the destination is better than a path using three or more hops to the same destination…

let’s focus on times used by RIP

One of important aspects of the operation of any implemention of RIP is the timers it uses to maintain its routing information state up to date. It is also interesting to keep in mind this times when trying to understand the logic of operation of these implementations. The great news is that all these implementations agree on these timers: RIP is standardized allowing an integrated network in terms of multi vendor use of technologies such as: Cisco, Alcatel, etc.

Cisco RIP

Cisco’s RIP implementation defines 4 times (more precise to say time than timers) tight to one periodic update interval and 3 states of route information: invalid, hold-down and flush.

The misleading information is that they are referred to as “timers” in the configuration part!

Apart from the periodic update interval the other times correspond to exactly 2 timers that are attached to the route prefix and to path descriptors respectively. It is to note that every network route in routing table is coded as a prefix descriptor that matches one or many path descriptors. That is a route may have multiple patch attached to a specific destination; a route that has no path to destination is not usable!

To a path descriptor we associate the invalid timer so that a route path is invalidated after the invalid time has expired. This is the first timer. Let’s observe also that if multiple paths are attached to a route and one route is being invalidated, this does not mean that the route enters the down and hold down state…

Then to each prefix we associate only ONE timer (this is the second timer) that moves the prefix to garbage state after holddown state (after not receiving an update about the last valid path for 180 seconds by default corresponding to 6 times the update interval by default but are no correlated such as), and removes it from the routing table after garbage time has elapsed (that is the flush time).

more precisions on timers

In addition to the previous elements let’s note also that:

  • Holddown and garbage timer (the first timer for both times) runs separately from invalidation path timer (the second timer);
  • More interesting is that only the garbage time is a specification of the 1058 RFC, the recommendation of the workgroup to vendors on how to implement RIP solution;
  • Each prefix (that is a route in the routing table) can be in one of this states: valid, holddown, or garbage;
  • A prefix in holddown state can not be updated!

The 2 timers are reset every time an update is received which is different from the peridioc interval that triggers an update each time this constant time interval has fired…

further more

To help understand more the operation of those timers please consider our post: RIP time(r)s: let’s understand the flush operation (time) you’ll have the ability to reproduce the same test network and observe how real routers behave, gain more understanding and tools for troubleshooting also (show and debug commands).

Leave a Reply

adsense (1) application (2) architecture (4) asm (4) automatisation (2) backbone (1) cef (1) chd (2) cisco (6) cloud (1) command (5) controller (1) cost (6) coverage (2) debug (9) distance (6) fiber (1) gns3 (1) google (1) hpe (1) http (1) igmp (5) igp (8) internet (2) ip (2) label (1) ldp (1) logique (2) loop (5) lsp (1) mac (3) meraki (1) model (2) mpls (3) mroute (4) multicast (5) nat (1) ndp (2) network (3) next-hop (5) osi (5) pat (1) pim (4) poisoning (6) projet (2) qos (1) radio (3) rib (5) rip (5) route (6) router (6) routing (14) rpf (4) rrm (3) security (3) show (5) simulation (2) solution (2) split-horizon (5) sql (1) ssm (4) static (6) stp (2) summarization (5) switching (1) tcp/ip (1) telecom (1) template (1) traffic engineering (1) translation (1) travail (2) vpn (2) vrf (3) wifi (4) wlan (2)

  • What is the best way of subnetting?
    In this post, let’s recall what is subnetting (for routing and switching purposes) and how it is done. introduction and motivation Network subnetting is very important subject that maybe referred to as VLSM for variable length subnetting. The basic idea is about managing a space of IP addresses (IPv4). Historically, a network length or space
  • SSL VPN to my home network
    In this blog let’s try to connect to a home network from outside (internet) in a secure manner using SSL. NAT and PAT NAT and PAT is what allowed local IP addresses translation or mapping to some routable public IP address (over the internet). This mapping can be one to one (NAT) or many to
  • Routing from scratch… Part 1
    In this serie of posts we’ll explore routing operation. Let’s start from the general idea of how could we manage trafic, a move from one location to another… In the example of the figure presented next, the person in A wants to join its colleagues in location B through the network topology described in the
  • When a gateway says: “I’am not a good gateway… set redirection!”
    In this blog we explore how a gateway (a router) present in a LAN handles routing to the outside of this network and use redirection to enhance this operation. lab setup Our lab setup is 3 routers: R1, R2 and R3, in addition to 2 PC: PC1 and PC2. In this lab, PC1 tries to
  • Multicast: rather than dense, sparse it and let’s meet at rendez-vous point… Part 5
    in this post let’s detail the operation of PIM (Protocol Independent Multicast) in sparse mode. Previous posts tackled the operation of PIM dense mode. Let’s recall that PIM is the multicast routing protocol that allows PIM routers exchange information needed distribute multicast traffic to receivers. lab setup In our setup, Client1 is configured to join
September 2025
M T W T F S S
1234567
891011121314
15161718192021
22232425262728
2930  
Table of Contents
Copied!