Lab 5 Jess
Lab 5 Jess
XAVIER’S COLLEGE
MAITIGHAR, KATHMANDU
Submitted by
Jeshika Baniya
019BIM017
Submitted to
Er. Sanjay K. Yadav
Lecturer
Department of Computer Science
St. Xavier’s College
Objectives:
Software Used:
Devices Used:
2911 Router
Laptop-PT
PC-PT
Switch 2960-24TT
Cross cable
Copper Straight Through cable
Theory
The OSPF (Open Shortest Path First) protocol is one of a family of IP Routing protocols, and is an
Interior Gateway Protocol (IGP) for the Internet, used to distribute IP routing information
throughout a single Autonomous System (AS) in an IP network.
The OSPF protocol is a link-state routing protocol, which means that the routers exchange
topology information with their nearest neighbors. The topology information is flooded throughout
the AS, so that every router within the AS has a complete picture of the topology of the AS. This
picture is then used to calculate end-to-end paths through the AS, normally using a variant of the
Dijkstra algorithm. Therefore, in a link-state routing protocol, the next hop address to which data
is forwarded is determined by choosing the best end-to-end path to the eventual destination.
The main advantage of a link state routing protocol like OSPF is that the complete knowledge of
topology allows routers to calculate routes that satisfy particular criteria. This can be useful for
traffic engineering purposes, where routes can be constrained to meet particular quality of service
requirements. The main disadvantage of a link state routing protocol is that it does not scale well
as more routers are added to the routing domain. Increasing the number of routers increases the
size and frequency of the topology updates, and also the length of time it takes to calculate end-to-
end routes. This lack of scalability means that a link state routing protocol is unsuitable for routing
across the Internet at large, which is the reason why IGPs only route traffic within a single AS.
Each OSPF router distributes information about its local state (usable interfaces and reachable
neighbors, and the cost of using each interface) to other routers using a Link State Advertisement
(LSA) message. Each router uses the received messages to build up an identical database that
describes the topology of the AS.
From this database, each router calculates its own routing table using a Shortest Path First (SPF) or
Dijkstra algorithm. This routing table contains all the destinations the routing protocol knows
about, associated with a next hop IP address and outgoing interface.
The protocol recalculates routes when network topology changes, using the Dijkstra
algorithm, and minimizes the routing protocol traffic that it generates.
It provides support for multiple paths of equal cost.
It provides a multi-level hierarchy (two-level for OSPF) called "area routing," so that
information about the topology within a defined area of the AS is hidden from routers
outside this area. This enables an additional level of routing protection and a reduction in
routing protocol traffic.
All protocol exchanges can be authenticated so that only trusted routers can join in the
routing exchanges for the AS.
In the above figure, R1 is chosen as the DR, while R2 is chosen as the BDR as R1 has the highest
router ID, whereas the R2 has the second-highest router ID. If the link fails between R4 and the
system, then R4 updates only R1 and R4 about its link failure. Then, DR updates all the non-DR
and non-BDR about the change, and in this case, except R4, only R3 is available as a non-DR and
non-BDR.
Procedure for authorization
In Router2 (R2)
Here we set the OSPF area with the help of network ID and wildcard subnet in
Router2 (R2).
It shows the following route:
The following successful message shows that the packets have been delivered from PC0 to
Laptop1 of different routers.
Conclusion
After completing this lab report, we have learned how to construct a connection between a router,
switch and end devices that is capable of monitoring the network. We have known how to assign
IP addresses through OSPF, the uses of it and many more. We learned to configure from
gigabitEthernet.