Routing Algorithm
Routing Algorithm
Routing algorithm
• In order to transfer the packets from source to the destination, the
network layer must determine the best route through which packets can
be transmitted.
• The routing protocol is a routing algorithm that provides the best path
from the source to the destination. The best path is the path that has the
"least-cost path" from source to the destination.
Adaptive routing algorithm is used by dynamic The Non-Adaptive Routing algorithm is used by
Usage
routing. static routing.
Categorizatio The types of adaptive routing algorithm, are The types of Non Adaptive routing algorithm are
n Centralized, isolation and distributed algorithm. flooding and random walks.
Complexity Adaptive Routing algorithms are more complex. Non-Adaptive Routing algorithms are simple.
Properties of Routing Algorithm
Types of Routing
• Static Routing Algorithm
• Shortest path Routing
• Flooding
• Flow based routing
• Dynamic Routing Algorithm
• Link State Routing
• Distance Vector Routing
• Hierarchical Routing
• Broad cast Routing
• Routing for Mobile Host
Consider B is the
source
B D
C E
• 1. Consider the following subnet. Distance vector routing is used, and
the following vectors have just come into router C: from B: (5, 0, 8, 12,
6, 2); from D: (16, 12, 6, 0, 9, 10); and from E: (7, 6, 3, 9, 0, 4). The
measured delays to B, D, and E, are 6, 3, and 5, respectively. What is
C’s new routing table? Give both the outgoing line to use and the
expected delay.
2.Consider the following subnet. Distance vector routing is used, and
the following vectors have just come in to router F: from B: (5, 0, 8, 12,
6, 2); from D: (16, 12, 6, 0, 9, 10); and from E: (7, 6, 3, 9, 0, 4). The
measured delays to B, D, and E, are 9, 6, and 3, respectively. What is F’s
new routing table? Give both the outgoing line to use and the expected
delay.