
- DCN Tutorial
- Data Comm & Networks Home
- DCN - Overview
- DCN - Computer Network Types
- DCN - Network LAN Technologies
- DCN - Computer Network Topologies
- DCN - Computer Network Models
- DCN - Computer Network Security
- Physical Layer
- DCN - Physical Layer Introduction
- DCN - Digital Transmission
- DCN - Analog Transmission
- DCN - Transmission media
- DCN - Wireless Transmission
- DCN - Multiplexing
- DCN - Network Switching
- Data Link Layer
- DCN - Data Link Layer Introduction
- DCN - Error detection and Correction
- DCN - Data Link Control & Protocols
- Network Layer
- DCN - Network Layer Introduction
- DCN - Network Addressing
- DCN - Routing
- DCN - Internetworking
- DCN - Network Layer Protocols
- Transport Layer
- DCN - Transport Layer Introduction
- DCN - Transmission Control Protocol
- DCN - User Datagram Protocol
- Application Layer
- DCN - Application Layer Introduction
- DCN - Client-Server Model
- DCN - Application Protocols
- DCN - Network Services
- DCN Useful Resources
- DCN - Quick Guide
- DCN - Useful Resources
What is a Routing Algorithm in Computer Network?
A routing algorithm is a procedure that lays down the route or path to transfer data packets from source to the destination. They help in directing Internet traffic efficiently. After a data packet leaves its source, it can choose among the many different paths to reach its destination. Routing algorithm mathematically computes the best path, i.e. “least – cost path” that the packet can be routed through.
Types of Routing Algorithms
Routing algorithms can be broadly categorized into two types, adaptive and nonadaptive routing algorithms. They can be further categorized as shown in the following diagram −
Adaptive Routing Algorithms
Adaptive routing algorithms, also known as dynamic routing algorithms, makes routing decisions dynamically depending on the network conditions. It constructs the routing table depending upon the network traffic and topology. They try to compute the optimized route depending upon the hop count, transit time and distance.
The three popular types of adaptive routing algorithms are −
Centralized algorithm − It finds the least-cost path between source and destination nodes by using global knowledge about the network. So, it is also known as global routing algorithm.
Isolated algorithm − This algorithm procures the routing information by using local information instead of gathering information from other nodes.
Distributed algorithm − This is a decentralized algorithm that computes the least-cost path between source and destination iteratively in a distributed manner.
Non – Adaptive Routing Algorithms
Non-adaptive Routing algorithms, also known as static routing algorithms, construct a static routing table to determine the path through which packets are to be sent. The static routing table is constructed based upon the routing information stored in the routers when the network is booted up.
The two types of non – adaptive routing algorithms are −
Flooding − In flooding, when a data packet arrives at a router, it is sent to all the outgoing links except the one it has arrived on. Flooding may be uncontrolled, controlled or selective flooding.
Random walks − This is a probabilistic algorithm where a data packet is sent by the router to any one of its neighbours randomly.
- Related Articles
- What is an Adaptive Routing Algorithm in Computer Network?
- What is a Routing Table in a Computer Network?
- What is Link State Routing in Computer Network?
- What is the Shortest Path Routing in Computer Network?
- What is Link State Routing protocol in computer network?
- What are the Routing Algorithms in Computer Network?
- Shortest Path algorithm in Computer Network
- What is a Non-Adaptive Routing Algorithm?
- What is Distance Vector Routing Algorithm?
- What is a Computer Network?
- What is traffic aware routing in computer networks?
- What is VLAN in a computer network?
- What is Computer Network?
- What is Star Network Topology in Computer Network?
- What is Ring Network Topology in Computer Network?
