Dynamic Routing
Dynamic Routing
1. Introduction:
1.2. RIP:
The Routing Information Protocol (RIP) is one of a family of IP Routing protocols, and is an Interior
Gateway Protocol (IGP) designed to distribute routing information within an Autonomous System
(AS).
RIP is a simple vector routing protocol with many existing implementations in the field. In a vector
routing protocol, the routers exchange network reachability information with their nearest
neighbours. In other words, the routers communicate to each other the sets of destinations
("address prefixes") that they can reach, and the next hop address to which data should be sent
in order to reach those destinations. This contrasts with link-state IGPs; vectoring protocols
exchange routes with one another, whereas link state routers exchange topology information,
and calculate their own routes locally.
• Each router initializes its routing table with a list of locally connected networks.
• Periodically, each router advertises the entire contents of its routing table over all of its
RIP-enabled interfaces.
o Whenever a RIP router receives such an advertisement, it puts all of the
appropriate routes into its routing table and begins using it to forward packets.
This process ensures that every network connected to every router eventually
becomes known to all routers.
o If a router does not continue to receive advertisements for a remote route, it
eventually times out that route and stops forwarding packets over it. In other
words, RIP is a "soft state" protocol.
• Every route has a property called a metric, which indicates the "distance" to the route's
destination.
o Every time a router receives a route advertisement, it increments the metric.
o Routers prefer shorter routes to longer routes when deciding which of two
versions of a route to program in the routing table.
o The maximum metric permitted by RIP is 16, which means that a route is
unreachable. This means that the protocol cannot scale to networks where there
may be more than 15 hops to a given destination.
RIP also includes some optimizations of this basic algorithm to improve stabilization of the
routing database and to eliminate routing loops.
• When a router detects a change to its routing table, it sends an immediate "triggered"
update. This speed up stabilization of the routing table and elimination of routing loops.
• When a route is determined to be unreachable, RIP routers do not delete it straightaway.
Instead they continue to advertise the route with a metric of 16 (unreachable). This
ensures that neighbours are rapidly notified of unreachable routes, rather than having to
wait for a soft state timeout.
• When router A has learnt a route from router B, it advertises the route back to B with a
metric of 16 (unreachable). This ensures that B is never under the impression that A has
a different way of getting to the same destination. This technique is known as "split
horizon with poison reverse."
• A "Request" message allows a newly-started router to rapidly query all of its neighbours’
routing tables.
2. Tools required:
4. Commands used:
• Enable
• Configure terminal
• Ip route
• Ip address
• Interface s0/2/0
• Exit
• No shut
• Hostname
• Network
• Router rip
5. Walk-through Task:
Construct the topology given below, enable RIP protocol for its IP routing. Moreover, table for all
interfaces IP address is also given.
6. Add three PC’s from the end devices tab in the cisco packet tracer.
7. Connect these routers with serial cable.
8. Connect router with switches using copper straight-through cable from connections tab.
9. Connect PC’s with switches using copper straight-through cable from connection tab.
Figure 3: connections of routers and switches
21. In the same way configure all the interfaces of all three routers, R1,R2 and R3, whether
its serial interfaces or fast Ethernet interfaces configure them both with proper IP
addresses as mention in IP table.
22. Configure every PC, by giving them proper IP address, subnet masks and default gateways.
These R with yellow indicates that these interfaces are configured using RIP protocol.
9. Now send PDU from PC0 to any PC, the status will be successful for this:
6.1 Task 1:
Construct the topology given below, configure RIP in it, configure all the interfaces serial or Fast
ethernet, send the PDU and show the results: