Routing Algorithms in Computer Network

FREE Online Courses: Click, Learn, Succeed, Start Now!

The network layer must find the optimum path by which packets may be transferred in order to convey them from the source to the destination.

The network layer’s principal duty, whether it offers datagram service or virtual circuit service, is to provide the optimum path. This function is performed by the routing protocol.

A routing protocol is a routing technique that finds the shortest path from the source to the destination. The optimal way is the “least-cost path” from the source to the destination.

Routing is the process of forwarding packets from source to destination, but the routing algorithm determines the optimum path to take.

Classification of a Routing Algorithm:

Routing algorithm are broadly classified into 2 categories:

1. Adaptive Routing Algorithm:

A dynamic routing algorithm is another name for an adaptive routing method. This algorithm determines routing decisions depending on network structure and traffic. This algorithm’s major parameters are hop count, distance, and predicted transit time.

Adaptive Routing algorithms can be classified into 3 types:

a. Centralized algorithm:

It is also known as the global routing algorithm because it computes the least-cost path between source and destination by utilizing comprehensive and global network knowledge.

This algorithm takes as input the connection between the nodes and the link cost, and this information is collected before any calculations are performed.

Because it is aware of the cost of each connection in the network, the link state algorithm is referred to as a centralized algorithm.

b. Isolation algorithm:

It is an algorithm that derives routing information by utilizing local data rather than getting data from other nodes.

c. Distributed algorithm:

It is also known as a decentralized algorithm since it computes the least-cost path between source and destination in an iterative and distributed manner.

No node in the decentralized algorithm is aware of the cost of all network links. Initially, a node maintains just information about its own directly associated links and computes the least-cost path to the target through an iterative computation process.

A Distance Vector Routing algorithm is a decentralized method since it never knows the entire path from source to destination; instead, it knows the direction in which the packet should be transmitted as well as the least expensive way.

2. Non-adaptive routing algorithm:

Static routing algorithm is another name for a non-adaptive routing method. When the network boots up, the routing information is stored on the routers.

Non-adaptive routing algorithms do not make routing decisions by relying on network topology or traffic.

Non-adaptive routing algorithms can be classified into 2 types:

a. Flooding:

In the event of flooding, every arriving packet is sent to all outbound connections save the one that has already been reached. The drawback of flooding is that each node may have several copies of the same message.

b. Random Walks:

In the case of random walks, a packet is sent by the node at random to one of its neighbours. The usage of random walks has the advantage of efficiently using alternate pathways.

Difference between Adaptive and Non-Adaptive Routing algorithms:

Parameter

Adaptive Routing Algorithm

Non-Adaptive Routing Algorithm

DefinitionThe adaptive routing algorithm is a routing table construction technique that is dependent on network circumstances.The Non-Adaptive Routing method creates a static table to select which node to transmit the packet to.
UsageDynamic routing employs the adaptive routing method.Static routing employs the Non-Adaptive Routing method.
Routing DecisionTopology and network traffic are used to make routing decisions.The static tables are used to make the routing decisions.
CategorizationThere are three types of adaptive routing algorithms: centralized, isolated, and distributed.Non-adaptive routing algorithms include floods and random walks.
ComplexityAlgorithms for adaptive routing are more sophisticated.Non-Adaptive Routing algorithms are straightforward.

Summary:

In this article, we covered the different types of routing algorithms, which are adaptive and non-adaptive routing algorithms. We also looked at the various subtypes under the aforementioned categories. Lastly, we looked at a direct comparison between adaptive and non-adaptive routing algorithms.

Did we exceed your expectations?
If Yes, share your valuable feedback on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *