RIP
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.
-
includes four basic components: routing update process, RIP routing metrics, routing stability, and routing timers.
RIP characteristics and versions
The Routing Information Protocol (RIP) is one of the most enduring routing protocols. It sends routing updates periodically and during topology changes. The packets that RIP sends include network reachability and hop count to destinations. RIP generates more traffic and is easier to configure than OSPF. It supports both Version 1 and 2.
The Secure Firewall Threat Defense device supports both RIP Version 1 and RIP Version 2. RIP Version 1 does not send subnet masks with its updates, while 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, unlike static routes, which require updates for each change. However, it 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 routers updates.
RIP routing metric
A RIP routing metric is a network measurement that
-
measures the distance between the 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.
-
modifies the routing table upon receiving new routing data, using the sender's IP address as the next hop.
RIP stability features (concept)
A RIP stability feature is a routing mechanism that
-
prevents routing loops by setting a limit on the number of hops in a path from source to destination,
-
provides 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 hops allowed in a path is 15. If a routing update shows a new or changed entry, increasing the metric value to infinity (16) makes the network destination unreachable. This stability mechanism limits the maximum diameter of a RIP network to fewer than 16 hops.
RIP timers
A RIP timer is a network protocol mechanisms that
-
regulates RIP performance through timed intervals for routing updates and route management
-
controls when routes are marked invalid, placed in holddown, or flushed from the routing table, and
-
helps 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. When this timer expires, 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), then the route enters into the Flush state where 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 the system flushes the route. Even if the adjacent routers interface comes up immediately, the system waits for the Holddown timer to complete the 120-second period before accepting updates.

Feedback