Professional Documents
Culture Documents
Fa22 BCS 147 (Cnlab 3)
Fa22 BCS 147 (Cnlab 3)
Sahiwal Campus
________________________________________________
Engr. M. Kashif Rao
______________________________________________
LAB #: Routing Information Protocol
Objectives
Upon completion of this lab, you will be able to:
Pre-Lab Exercise
Read this experiment in its entirety to become familiar with objectives of this lab. Study in detail and
become familiar with the Dynamic Routing basics provided with this laboratory experiment and in
the chapter 4 of the reference book. You may record the terms and sections that require more
elaboration for reference. The instructor may provide the class some time to reflect upon these before
proceeding with the lab.
Dynamic Routing
Dynamic routing is when protocols are used to find networks and update routing tables on routers.
This is whole lot easier than using static or default routing, but it will cost you in terms of router
CPU processing and bandwidth on network links. A routing protocol defines the set of rules used by
a router when it communicates routing information between neighbouring routers.
Dynamic routing is further divided into two types as:
Distance Vector
Link State
Distance vector
The distance-vector protocols in use today find the best path to a remote network by judging
distance. A distance-vector routing protocol periodically sends out the entire routing table to directly
connected neighbours. Example of distance vector protocol is Routing Information Protocol (RIP).
Link state
In link-state protocols, the routers each create three separate tables. One of these tables keeps track
of directly attached neighbours, one determines the topology of the entire internetwork, and one is
used as the routing table. Link-state routers know more about the internetwork than any distance-
vector routing protocol ever could. Link state protocols send updates containing the state of their
own links to all other directly connected routers on the network. This is then propagated to their
neighbours. Example of link state protocol is OSPF.
In this lab we will learn about distance vector protocol RIP. Link state protocol will be discussed in
next lab.
Routing Information Protocol
Routing Information Protocol (RIP) is a true distance-vector routing protocol. RIP sends the
complete routing table out of all active interfaces every 30 seconds. It relies on hop count to
EEE 314 | Data Communication and Computer Networks 29
Lab Manual
determine the best way to a remote network, but it has a maximum allowable hop count of 15 by
default, so a destination of 16 would be considered unreachable. RIP works okay in very small
networks, but it’s super inefficient on large networks with slow WAN links or on networks with a
large number of routers installed and completely useless on networks that have links with variable
bandwidths!
RIP version 1 uses only classful routing, which means that all devices in the network must use the
same subnet mask. This is because RIP version 1 doesn’t send updates with subnet mask
information in tow.
RIP version 2 provides something called prefix routing and does send subnet mask information with
its route updates. This is called classless routing. You’ll rarely see RIPv1 used in today’s networks.
Even RIPv2 doesn’t get much attention in the objectives. So why am I even telling you about them?
Because it helps me explain routing protocols a little better before we get into the much more
advanced, and very much focused upon, OSPF protocol.
In-Lab Exercise
In this lab activity, you will create a network that is similar to the one shown in the Topology
Diagram. Begin by cabling the network as shown in the Figure 4.1. Assign any Network_ID from
Class A and fill in the table. You will then perform the initial router configurations required for
connectivity. Use the IP addresses according to your IP assignment. First test the connections
between directly connected devices, and then test connectivity between devices that are not directly
connected. You will configure the dynamic routing protocol RIP to add remote networks, this will
allow communication between the hosts of different networks. View the routing table after each
dynamic route is added to observe how the routing table has changed.
Topology Diagram
Network 3
Addressing Table
R1 192.168.2.1 255.255.255.0
S0/0/0
192.168.3.2 255.255.255.0
Fa0/0
192.168.5.2 255.255.255.0
S0/0/1
192.168.3.1 255.255.255.0
FA0/0
R3 192.168.5.1 255.255.255.0
S0/0/1
Ping to check connectivity between the host PC3 and PC2, is ping successful and why?
YES
Ping to check connectivity between the host PC1 and PC3, is ping successful and why?
YES
Step 3: What is the metrics value against each network in R1 routing table?
Explain it.
YES
Ping to check connectivity between the host PC3 and PC2, is ping successful?
YES
Ping to check connectivity between the host PC1 and PC3, is ping successful?
YES