Copy-CN Ex-12
Copy-CN Ex-12
EX.NO : 12
DATE :
PERFORM A CASE STUDY ABOUT THE DIFFERENT
ROUTING ALGORITHMS TO SELECT THE NETWORK PATH WITH
ITS OPTIMUM AND ECONOMICAL DURING DATA TRANSFER.
Link State routing Routing is the process of selecting best paths in a network. In
the past, the term routing was also used to mean forwarding network traffic
among networks. However this latter function is much better described as
simply forwarding. Routing is performed for many kinds of networks, including
the telephone network (circuit switching), electronic data networks (such as the
Internet), and transportation networks. This article is concerned primarily with
routing in electronic data networks using packet switching technology.
REG NO :
PAGE
whether it is within a routing protocol or over different routing protocol)
2. Metric: where a lower metric/cost is preferred (only valid within one and
the same routing protocol)
3. Administrative distance: where a lower distance is preferred (only valid
between different routing protocols)
2. DISTANCE VECTOR :
In computer communication theory relating to packet-switched networks, a
distance vector routing protocol is one of the two major classes of routing
protocols, the other major class being the link-state protocol. Distance-
vector routing protocols use the Bellman–Ford algorithm, Ford– Fulkerson
algorithm, or DUAL FSM (in the case of Cisco Systems’ protocols) to
calculate paths.
A distance-vector routing protocol requires that a router informs its
neighbors of topology changes periodically. Compared to link-state
protocols, which require a router to inform all the nodes in a network of
topology changes, distance-vector routing protocols have less
computational complexity and message overhead. The term distance vector
refers to the fact that the protocol manipulates vectors (arrays) of distances
to other nodes in the network. The vector distance algorithm was the
original ARPANET routing algorithm and was also used in the internet
under the name of RIP (Routing Information Protocol).
Examples of distance-vector routing protocols include RIPv1 and RIPv2
and IGRP. Method Routers using distance-vector protocol do not have
knowledge of the entire path to a destination. Instead they use two
methods:
1. Direction in which router or exit interface a packet should be forwarded.
REG NO :
PAGE
2. Distance from its destination .
REG NO :
PAGE
Distance-vector protocols are based on calculating the direction and distance to
any link in a network. "Direction" usually means the next hop address and the
exit interface. "Distance" is a measure of the cost to reach a certain node. The
least cost route between any two nodes is the route with minimum distance.
Each node maintains a vector (table) of minimum distance to every node. The
cost of reaching a destination is calculated using various route metrics. RIP uses
the hop count of the destination whereas IGRP takes into account other
information such as node delay and available bandwidth.
EGP and BGP are not pure distance-vector routing protocols because a
distance-vector protocol calculates routes based only on link costs whereas in
BGP, for example, the local route preference value takes priority over the link
cost. Count-to-infinity problem The Bellman–Ford algorithm does not
prevent routing loops from happening and suffers from the count-to-infinity
problem. The core of the count-to-infinity problem is that if A tells B that it
has a path somewhere, there is no way for B to know if the path has B as a
part of it. To see the problem clearly, imagine a subnet connected like A–B–
C–D–E–F, and
let the metric between the routers be "number of jumps". Now suppose that A is
taken offline. In the vector-update-process B notices that the route to A, which
was distance 1, is down – B does not receive the vector update from A. The
problem is, B also gets an update from C, and C is still not aware of the fact
that A is down – so it tells B that A is only two jumps from C (C to B to A),
which is false. This slowly propagates through the network until it reaches
infinity (in which case the algorithm corrects itself, due to the relaxation
property of Bellman–Ford).
RESULT:
Thus the case study about the different routing algorithms to select the
network path with its optimum and economical during data transfer was studied.
REG NO :
PAGE