Short for Routing Information Protocol. A distance vector routing protocol. Uses hop count as its sole metric. Runs over UDP port .
Suitable only for small networks. Does not scale beyond hops.
Infinity and Hop Limit
Infinity is defined as hops. Any route reaching is declared unreachable and purged. Maximum usable hop count is .
The cap bounds the count-to-infinity problem: once a failing route reaches , it is removed rather than incrementing indefinitely.
Timers
- Update timer
s. Routers broadcast their full routing table to all neighbors every s. - Invalid timer
s. If no update is received for a route within s, the route is marked invalid (metric set to ). - Flush timer
s. Invalid routes are removed from the table after s total since the last update.
Versions
RIPv1
Classful. Does not include subnet masks in updates. All routes assumed to use the natural class boundary. Cannot support VLSM or CIDR. Broadcasts updates to 255.255.255.255.
RIPv2
Classless. Includes subnet masks in updates. Supports VLSM and CIDR. Multicasts updates to 224.0.0.9. Supports simple password authentication.
Limitations
- Metric is hop count only. Does not consider bandwidth, delay, or reliability.
- Slow convergence. Full table broadcast every s; invalid timer adds up to s of stale route propagation.
- Hard limit of hops makes it unsuitable for large networks.
- High bandwidth overhead from full table broadcasts.