223a1131 Umair Momin Exp7
223a1131 Umair Momin Exp7
223a1131 Umair Momin Exp7
Dynamic Routing
Aim: i. Build a simple network using routers, switches and end users.
ii. Configure it for dynamic routing RIP protocol using packet tracer.
iii. Inspect the packet routes and routing table.
Theory:
Routing is a procedure of making decisions in which the router (which is a hardware device used
in networking to receive and send data in the form of packets on a network) selects the best path
to make data transfer from source to destination. A router exists in the network layer in the OSI
as well as TCP/IP model. Some functions of a router are:
Building an optimal path on a network to reach its destination (in which static and
dynamic routing take place).
Taking routing decisions.
Balancing load.
Dynamic routing, also called adaptive routing, is a process where a router can forward data via
a different route for a given destination based on the current conditions of the communication
circuits within a system. The term is most commonly associated with data networking to describe
the capability of a network to 'route around' damage, such as loss of a node or a connection
between nodes, as long as other path choices are available. Dynamic routing allows as many
routes as possible to remain valid in response to the change. Dynamic routing is a technique of
finding the best path for the data to travel over a network in this process a router can transmit
data through various different routes and reach its destination on the basis of conditions at that
time of communication circuits.
There are several protocols that can be used for dynamic routing. Routing Information Protocol
(RIP) is a distance-vector routing protocol that prevents routing loops by implementing a limit
on the number of hops allowed in a path from source to destination. Open Shortest Path First
(OSPF) uses a link state routing (LSR) algorithm and falls into the group of interior gateway
protocols (IGPs). Intermediate System to Intermediate System (IS-IS) determines the best route
for data through a packet-switched network.
The Routing Information Protocol (RIP) is one of the oldest distance-vector routing protocols
which employs the hop count as a routing metric. RIP prevents routing loops by implementing a
limit on the number of hops allowed in a path from source to destination. The largest number of
hops allowed for RIP is 15, which limits the size of networks that RIP can support. RIP
implements the split horizon, route poisoning, and hold down mechanisms to prevent incorrect
routing information from being propagated.
RIP version 2:
RIP version 2 (RIPv2) includes the ability to carry subnet information, thus supporting Classless
Inter-Domain Routing (CIDR). To maintain backward compatibility, the hop count limit of 15
remained. RIPv2 has facilities to fully interoperate with the earlier specification if all Must Be
Zero protocol fields in the RIPv1 messages are properly specified. In addition, a compatibility
switch feature allows fine-grained interoperability adjustments. In an effort to avoid unnecessary
load on hosts that do not participate in routing, RIPv2 multicasts the entire routing table to all
adjacent routers at the address 224.0.0.9, as opposed to RIPv1 which uses broadcast. Unicast
addressing is still allowed for special applications. Route tags were also added in RIP version 2.
This functionality allows a distinction between routes learned from the RIP protocol and routes
learned from other protocols. It supports authentication and does subnetting and multicasting.
Auto summary can be done on every router. In RIPv2 Subnet masks are included in the routing
update. RIPv2 multicasts the entire routing table to all adjacent routers at the address 224.0.0.9,
as opposed to RIPv1 which uses broadcast (255.255.255.255).
EXPERIMENT NO. 7
Dynamic Routing
Aim: i. Build a simple network using routers, switches and end users.
ii. Configure it for dynamic routing RIP protocol using packet tracer.
iii. Inspect the packet routes and routing table.
Output: