RIP
Routing Information Protocol (RIP) is a distance-vector routing protocol that
-
uses hop count as the metric for path selection,
-
exchanges RIP broadcasts with neighboring devices to dynamically learn and advertise routes, and
-
includes four basic components: routing update process, RIP routing metrics, routing stability, and routing timers.
RIP characteristics and versions
RIP is a widely used routing protocol. It sends routing updates at regular intervals and when the network topology changes. These updates provide information about network reachability and the number of hops to each destination..
You can configure RIP with less effort than OSPF, but it generates more network traffic. RIP supports both Version 1 and Version 2.
Secure Firewall Threat Defense device supports both RIP Version 1 and Version 2. RIP Version 1 does not send subnet masks with its updates; Version 2 supports variable-length subnet masks and neighbor authentication to ensure trusted routing information exchanges.
RIP offers simple configuration and adapts to topology changes. In contrast, static routes require manual updates for each change. RIP, however, incurs higher network and processing overhead compared to static routing.
How RIP routing updates work
Summary
Key components in the RIP routing update process include:
-
RIP routers: Send and receive routing update messages to maintain network topology information
-
Routing tables: Store the best routes to destinations with associated metric values
-
Routing update messages: Contain network topology changes and route information
-
Metric values: Determine the best path, with routers maintaining only the lowest metric route
Workflow
The process involves these stages:
- RIP routers send routing-update messages at regular intervals and when the network topology changes.
- When a router receives a routing update that includes changes to an entry, it updates its routing table to reflect the new route. The metric value for the path is increased by 1, and the sender is indicated as the next hop.
- RIP routers maintain only the best route to a destination, which is the route with the lowest metric value.
- After updating its routing table, the router immediately begins transmitting routing updates to inform other network routers of the change. These updates occur independently from regularly scheduled RIP router updates.
RIP routing metric
A RIP routing metric is a network measurement that
-
calculates the distance between a source and a destination network,
-
assigns a hop count value, typically 1, to each hop in a network path from the source to the destination, and
-
updates the routing table when new routing data is received, using the sender's IP address as the next hop.
RIP stability features
RIP stability features are routing mechanisms that
-
prevent routing loops by setting a limit on the number of hops in a path from source to destination,
-
provide stability despite potentially rapid changes in network topology, and
-
include split horizon and hold-down mechanisms to prevent incorrect routing information propagation.
Additional stability mechanisms
The maximum number of hops allowed in a path is 15. If a routing update shows a new or changed entry, the system increases the metric value to infinity (16), which makes the network destination unreachable. This stability mechanism limits the maximum diameter of a RIP network to fewer than 16 hops.
RIP timers
RIP timers are network protocol mechanisms that
-
regulate RIP performance through timed intervals for routing updates and route management,
-
control when routes are marked invalid, placed in holddown, or flushed from the routing table, and
-
help prevent network congestion by managing the timing of routing updates across devices.
RIP timer stages
RIP uses numerous timers to regulate its performance. These are the timer stages for RIP:
-
Update: The routing-update timer is the interval between periodic routing updates. This is how often the device sends routing updates. Generally, set to 30 seconds, a small random delay added to prevent simultaneous route updates.
-
Invalid: Each routing table entry has a route-timeout timer for the last valid update. The route is marked invalid and moves to holddown once the timer expires. The default is 180 seconds (3 minutes).
-
Holddown: The period the system waits before accepting any new updates for invalid routes. The default is 180 seconds (3 minutes).
-
Flush: The route-flush timer marks the period from when the system receives the last valid update until the route is discarded and removed from the routing table. The default is 240 seconds (4 minutes).
RIP timer sequence when adjacent router interface goes down
When an adjacent router goes down, routing updates stop, and the Invalid and Flush timers start increasing. In the first 180 seconds, nothing will happen. After 180 seconds, the Invalid timer expires, marks the route invalid, and the Holddown timer begins, holding the route for 60 seconds.
If there is no routing update for the adjacent router's status (that is, it is still down), the route enters into the Flush state. In total, the system has waited for 240 seconds from the last update (180 seconds for the Invalid timer and 60 seconds for Holddown timer), and then the system flushes the route. Even if the adjacent router's interface comes up immediately, the system waits for the Holddown timer to complete the 120-second period before accepting updates.

Feedback