UNIT-IV - Lesson 15 - Routing
UNIT-IV - Lesson 15 - Routing
A 8 A
B 20 A
C 20 I
The table shows that if router J wants to get packets to router D, it
should send them to router H first. When the packets arrive at router D 20 H
H, the current router checks its own table and makes a decision how to E 17 I
send the packets to D.
In distance vector algorithms, each router has to follow the following F 30 I
steps: G 18 H
1) It counts the weight of the links directly connected to it and saves
the information to its table. H 12 H
2) In a particular period of time, the router sends its table to its I 10 I
neighbor routers (not to all routers) and receives the routing table
of each of its neighbors. J 0 N/A
3) Based on the information the router receives from its neighbors'
K 6 K
routing tables, it updates its own. By Dr. Shuchita Upadhyaya Bhasin
L 15 K
Part (a) shows a subnet. The first four columns of part (b) shows
the delay vectors received from the neighbors of router J. A
claims to have a 12-msec delay to B, a 25-msec delay to C, a 40-
msec delay to D etc.
Suppose that J has measured or estimated its delay to its
neighbors A, I, H and K as 8, 10, 12, 16 and 6 msec respectively.
Construct Link State (LS) packet. it contains: Source Address, Seq. No., Age, List of neighbors
+ their delay
Forwards link state packets to all other routers using Flooding algorithm
Each router uses Dijkstra algorithm to calculate shortest paths based on current values in its
database.
By Dr. Shuchita Upadhyaya Bhasin
HIERARCHICAL ROUTING
As networks grow in size, the router routing
tables grow proportionally. Not only is router
memory consumed by ever increasing tables, but
also more CPU time is needed to scan them and
more bandwidth is needed to send status reports
about them.
At a certain point the network may grow to the
point where it is no longer feasible for every
router to have an entry for every other router, so
the routing will have to be done hierarchically.
Here, the routers are divided into the regions
with each router knowing all the details about
how to route packets to destinations within its Suppose a subnet has 720 routers with no hierarchy,
own region, but knowing nothing about the
internal structure of other regions. each router needs 720 routing tables entries.
When different networks are connected together, If the subnet is partitioned into 24 regions of 30 routers
each one is regarded as a separate region in order each, each router needs 30 local entries plus 23 entries
to free the routers in one network from having to for a total of 53 entries.
know the topological structure of the other ones. If a three-level hierarchy is chosen, with eight clusters,
For huge networks the router may be grouped each containing 9 regions of 10 routers, each router
into regions, regions into clusters, clusters into need 10 entries for local routers, 8 entries for routing to
zones and so on
other regions within its own cluster and 7 entries for
distant clusters, for a total of 25 entries.
By Dr. Shuchita Upadhyaya Bhasin
Multicast message sent to User B, D, and E as they belong
MULTICAST ROUTING to the same multicast group
• Multicast communications refer to
one-to-many communications