www.networkbulls.com
Best Institute for CCNA CCNP CCSP CCIP CCIE Training in India
M-44, Old Dlf, Sector-14 Gurgaon, Haryana, India
Call: +91-9654672192
RFC 1058 from June 1988 defines RIPv1. RIP is a distance-vector routing protocol that uses router hop count as the metric. RIPv1 is a classful routing protocol that does not support VLSMs or classless interdomain routing (CIDR). RIPv1 is no longer a topic on the CCDA test. But reading this section will help you understand the evolution of this routing protocol and help you compare it to the later versions.
There is no method for authenticating route updates with RIPv1. A RIP router sends a copy of its routing table to its neighbors every 30 seconds. RIP uses split horizon with poison reverse; therefore, route updates are sent out an interface with an infinite metric for routes learned (received) from the same interface.
The RIP standard was based on the popular routed program used in UNIX systems since the 1980s. The Cisco implementation of RIP adds support for load balancing. RIP load-balances traffic if several paths have the same metric (equal-cost load balancing) to a destination. Also, RIP sends triggered updates when a route's metric changes. Triggered updates can help the network converge faster rather than wait for the periodic update. RIP has an administrative distance of 120. Chapter 9, "Routing Protocol Selection Criteria," covers administrative distance.
RIPv1 summarizes to IP network values at network boundaries. A network boundary occurs at a router that has one or more interfaces that do not participate in the specified IP network. The IP address assigned to the interface determines participation. IP class determines the network value. For example, an IP network that uses 24-bit subnetworks from 180.100.50.0/24 to 180.100.120.0/24 is summarized to 180.100.0.0/16 at a network boundary.
RIPv1 Forwarding Information Base
- IP address— IP address of the destination host or network
- Gateway— The first gateway along the path to the destination
- Interface— The physical network that must be used to reach the destination
- Metric— The number of hops to the destination
- Timer— The amount of time since the entry was last updated
The database is updated with the route updates received from neighboring routers. As shown in Example 10-1, the show ip rip database command shows a router's RIP private database.
Example 10-1. show ip rip database Command
router9# show ip rip database
172.16.0.0/16 auto-summary
172.16.1.0/24 directly connected, Ethernet0
172.16.2.0/24
[1] via 172.16.4.2, 00:00:06, Serial0
172.16.3.0/24
[1] via 172.16.1.2, 00:00:02, Ethernet0
172.16.4.0/24 directly connected, Serial0 |
RIPv1 Message Format
The RIPv1 message format is described in RFC 1058 and is shown in Figure 10-1. The RIP messages are encapsulated using User Datagram Protocol (UDP). RIP uses the well-known UDP port 520.
- Command— Describes the packet's purpose. The RFC describes five commands, two of which are obsolete and one of which is reserved. The two used commands are
- - Request— Requests all or part of the responding router's routing table.
- - Response— Contains all or part of the sender's routing table. This message might be a response to a request, or it might be an update message generated by the sender.
- Version— Set to a value of 1 for RIPv1.
- Address Family Identifier (AFI)— Set to a value of 2 for IP.
Because RIP has a maximum hop count, it implements counting to infinity. For RIP, infinity is 16 hops. Notice that the RIP message has no subnet masks accompanying each route. Five 32-bit words are repeated for each route entry: AFI (16 bits); unused, which is 0 (16 bits); IP address; two more 32-bit unused fields; and the 32-bit metric. Five 32-bit words equals 20 bytes for each route entry. Up to 25 routes are allowed in each RIP message. The maximum datagram size is limited to 512 bytes, not including the IP header. Calculating 25 routes by 20 bytes each, plus the RIP header (4 bytes), plus an 8-byte UDP header, you get 512 bytes.
RIPv1 Timers
- Update
- Invalid
- Flush
- Holddown
RIPv1 sends its full routing table out all configured interfaces. The table is sent periodically as a broadcast (255.255.255.255) to all hosts.
Update Timer
The update timer specifies the frequency of the periodic broadcasts. By default, the update timer is set to 30 seconds. Each route has a timeout value associated with it. The timeout gets reset every time the router receives a routing update containing the route.
Invalid Timer
When the timeout value expires, the route is marked as unreachable because it is marked invalid. The router marks the route invalid by setting the metric to 16. The route is retained in the routing table. By default, the invalid timer is 180 seconds, or six update periods (30 * 6 = 180).
Flush Timer
A route entry marked as invalid is retained in the routing table until the flush timer expires. By default, the flush timer is 240 seconds, which is 60 seconds longer than the invalid timer.
Holddown Timer
Cisco implements an additional timer for RIP, the holddown timer. The holddown timer stabilizes routes by setting an allowed time for which routing information about different paths is suppressed. After the metric for a route entry changes, the router accepts no updates for the route until the holddown timer expires. By default, the holddown timer is 180 seconds.
The output of the show ip protocol command, as shown in Example 10-2, shows the timers for RIP, unchanged from the defaults.
Example 10-2. RIP Timers Verified with show ip protocol
| Code View: router9> show ip protocol Routing Protocol is "rip" Sending updates every 30 seconds, next due in 3 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is Incoming update filter list for all interfaces is Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain Ethernet0 1 1 2 Serial0 1 1 2 Automatic network summarization is in effect Routing for Networks: 172.16.0.0 Routing Information Sources: Gateway Distance Last Update 172.16.4.2 120 00:00:00 172.16.1.2 120 00:00:07 Distance: (default is 120) |
RIPv1 Design
New networks should not be designed using RIPv1. It does not support VLSMs and CIDR. The IP addressing scheme with RIPv1 requires the same subnet mask for the entire IP network, a flat IP network. As shown in Figure 10-2, when you use RIPv1, all segments must have the same subnet mask.
RIPv1 has low scalability. It is limited to 15 hops; therefore, the network diameter cannot exceed this limit. RIPv1 also broadcasts its routing table every 30 seconds. RIP's slow convergence time prevents it from being used as an IGP when time-sensitive data, such as voice and video, is being transmitted across the network. RIPv1 is usually limited to access networks where it can interoperate with servers running routed or with non-Cisco routers.
RIPv1 Summary
The characteristics of RIPv1 follow:
- Distance-vector protocol.
- Uses UDP port 520.
- Metric is router hop count.
- Periodic route updates broadcast every 30 seconds.
- 25 routes per RIPv1 message.
- Implements split horizon with poison reverse.
- Implements triggered updates.
- No support for authentication.
- Administrative distance for RIP is 120.
| |
No comments:
Post a Comment