Routing Information Protocol (RIP) comes in two versions. RIPv1 is a legacy protocol, but a network designer should know its shortcomings in order to understand the evolution to RIPv2.
RIPv1
The major drawback of RIPv1 is its classful behavior, meaning it does not send subnet mask information in its routing updates. If there is no subnet mask information in the updates about prefixes, then a consistency of the used prefixes is assumed. This means RIPv1 does not offer VLSM support.
Another issue with RIPv1 is that it broadcasts updates. In addition to the unnecessary use of bandwidth, this also means that routers not running RIP will constantly receive unnecessary RIP updates from the network. Modern routing protocols use a multicast approach in order to solve this issue by sending updates only to routers that really need to receive them (i.e., devices that subscribe in order to hear the RIP information).
RIPv1 does not allow authentication so there is no element of security that can be added to the routing protocol to ensure it is not sending information to devices that should not receive it.
RIPv2
When examining RIPv2, you can see that many of the RIPv1 shortcomings have been addressed. RIPv2 has a classless behavior, meaning subnet mask information is sent in updates so VLSM can be achieved. RIPv2 also supports authentication to ensure that the person you are sending the information to is a person authorized to receive that information.
RIPv2 multicasts routing updates instead of broadcasting used by RIPv1, which allows for efficient routing update exchanges. Another special feature of RIPv2 is its automatic summarization feature applied to prefixes on classful boundaries. This behavior can induce problems in real-world scenarios.
Figure 7.5 – RIP Automatic Summarization
In Figure 7.5 above, a router (R1) connects to the following networks: 10.10.10.0, 10.10.20.0, and 10.10.30.0. R1 connects to R2 and then to R3, which has connectivity to the 10.10.40.0 and 10.10.50.0 networks. There are also other networks between the routers, such as 172.16.0.0 between R1 and R2 and 192.168.0.0 between R2 and R3.
Notice the change in classful boundaries that makes RIP automatically summarize the networks behind R1 and R3 as 10.0.0.0/8 toward R2. This leads to a real problem: R2 will receive the same route from both directions. If it gets a packet destined to 10.10.10.0, it can send it in both directions based on the automatically summarized prefixes it received. This problem is called discontiguous subnets and it is generated by the automatic summarization behavior of the routing protocol that aggregates those subnets. Solutions for this problem involve not using discontiguous subnets in different areas in the network topology or disabling the automatic summarization behavior.
Another interesting aspect about RIP is that it relies on a series of timers for its operation, as follows:
- Update: Updates are sent every 30 seconds by default.
- Invalid: The route is invalidated if no update was received before this timer expires.
- Flush: Determines the time a route gets flushed from the RIP table.
- Holddown: Updates are not accepted for a route that keeps getting a bad metric.
- Sleep: Adds a delay to triggered updates.
Note: The holddown and sleep timers are Cisco-specific and are used to enhance RIP functionality. They were not originally specified in the RFCs for RIP.
