R20 Shortest Path in CN
R20 Shortest Path in CN
Flooding Algorithm:
Intra- and Interdomain Routing: Today, an internet can be so large that one routing
protocol cannot handle the task of updating the routing tables of all routers. For this
reason, an internet is divided into autonomous systems. An autonomous system (AS)
is a group of networks and routers under the authority of a single administration.
Routing inside an autonomous system is referred to as intradomain routing. Routing
between autonomous systems is referred to as interdomain routing.
● Each router has a table with information about the network. These tables are
updated by exchanging information with the immediate neighbours.
● Bellman Ford Basics – Each router maintains a Distance Vector table containing the
distance between itself and ALL possible destination nodes. Distances,based on a
chosen metric, are computed using information from the neighbours’ distance
vectors.
● A router transmits its distance vector to each of its neighbours in a routing packet.
● Each router receives and saves the most recently received distance vector from each
of its neighbours.
When a node x receives new DV estimate from any neighbour v, it saves v’s distance vector
and it updates its own DV using B-F equation:
Example – Consider 3-routers X, Y and Z as shown in figure. Each router have their routing
table. Every routing table will contain distance to the destination nodes.
Consider router X , X will share it routing table to neighbours and neighbours will share it
routing table to it to X and distance from node X to destination will be calculated using
bellmen- ford equation.
As we can see that distance will be less going from X to Z when Y is intermediate node(hop)
so it will be update in routing table X.
Similarly for Z also –