The Wayback Machine - https://web.archive.org/web/20240922185521/https://www.geeksforgeeks.org/what-is-dynamic-routing-in-computer-network/
Open In App

What is Dynamic Routing in Computer Network?

Last Updated : 17 Dec, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Routing is a procedure of making decisions in which the router (which is a hardware device used in networking to receive and send data in the form of packets on a network) selects the best path to make data transfer from source to destination. A router exists in the network layer in the OSI as well as TCP/IP model. Some functions of a router are:

  1. Building an optimal path on a network to reach its destination (in which static and dynamic routing take place).
  2. Taking routing decisions.
  3. Balancing load.

Types of Routing:

  1. Static routing
  2. Default routing
  3. Dynamic routing

Static and Default routing has some drawbacks, due to which Dynamic Routing was introduced.

Drawbacks of Static Routing:

  • It is a burdensome task to sum up or add-on each route manually to the routing map in a large network.
  • Managing its ordering is time-consuming.
  • It cannot reroute traffic in case some link fails.

Drawbacks of Default routing was:

  • If the network is complex then it is more difficult to set up.

To overcome the shortcomings of static and default routing, Back in the 1980s, the first-ever Dynamic routing was used in a computer and the protocol which was used in it was the RIP(routing information protocol). 

Dynamic Routing

Dynamic routing is known as a technique of finding the best path for the data to travel over a network in this process a router can transmit data through various different routes and reach its destination on the basis of conditions at that time of communication circuits.

Dynamic Routing

Dynamic Routing

Dynamic routers are smart enough to take the best path for data based on the condition of the present scenario at that time of the network. In case one section fails in the network to transfer data forward dynamic router will use its algorithm (in which they use routing protocols to gather and share information of the current path among them) and it will re-route the previous network over another network in real-time. And this amazing capability and functionality to change paths in real-time over the network by sharing status among them is the key functionality of Dynamic Routing. OSPF (open shortest path first) and RIP are some protocols used for dynamic routing.

In the image above the upper image depicts the path R1->R2->R5->R9->R10 to take data from R1 (source) to R10 (destination) but, then due to some reason R9 fails to process its work then it dynamically builds a new path which is R1->R2->R5->R8->R10.

Unlike the static routers in which the admin was there to reconfigure the change in the router, here it itself changes the route and finds the best network/path.

Working of Dynamic Routing

Working of Dynamic Routing

Working of Dynamic Routing

First, A routing protocol (a protocol that states how the information is going to share between routers and how are they going to communicate with each other to share/distribute information between nodes on a network) must be installed in each router in the network to share information among each other. 
Second, it is started manually to go to the first routing table of the router with router information, and then after that it goes on automatically with the help of a dynamic routing algorithm and dynamically forms the routing table for the rest of the routers in the network. 
Third, then the routing information is exchanged among the routers so in case if the network goes down or the router fails to work and share information with its connected routers then the routing table of each router is modified correctly to that present condition so that it never fails to deliver information to the destination. 
Fourth, hosts are present to check or match the default gateway address to the IP addresses of the local router.

Purpose 

Dynamic protocols were introduced to:

  1. Explore every single path and choose the best path.
  2. Sharing of information about the network with each other router present in the network.
  3. Updating the path on its own and rerouting the best possible path.

Components

There are three main components that were used in dynamic routing:

  1. Data structure ( to structure information )
  2. Algorithm ( to construct or re-update path )
  3. The routing protocol ( to share information about the network )

Advantages

  1. Beneficial in Performance as well as scalable networking with a high frequency of data on nodes.
  2. Makes fewer mistakes as it reroutes itself compared to other routing protocols.
  3. No need to be manually configured by the admin.
  4. Shares information about the network with each other makes them more reliable to work efficiently.

Disadvantages

  1. Requires more heavy and reliable powerful hardware.
  2. Higher maintenance compared to static protocol


Similar Reads

Routing Tables in Computer Network
Routers: A Router is a networking device that forwards data packets between computer network. This device is usually connected to two or more different networks. When a data packet comes to a router port, the router reads address information in packet to determine out which port the packet will be sent. For example, a router provides you with the i
4 min read
Routing v/s Routed Protocols in Computer Network
The Network Layer of the OSI Model is responsible for providing logical addressing, which routers use to select best path for routing packets. There are two types of packets used at this layer : Data Packets - The user data is transferred in the inter-network by these data packets. Routed protocols are those protocols which support such data traffi
6 min read
What is Routing Loop and How to Avoid Routing Loop?
Routing is a procedure that helps the packet choose an optimal path to reach its destination as soon as possible. For example, a device can be a router, which is used to handle traffic within networks. Optimal network routing methods help maintain your network operating efficiently at help in some ways i.e. faster data access and preventing overloa
3 min read
Unicast Routing - Link State Routing
Prerequisite: Distance Vector Routing, Dijkstra algorithm Unicast means the transmission from a single sender to a single receiver. It is a point-to-point communication between the sender and receiver. There are various unicast protocols such as TCP, HTTP, etc. TCP is the most commonly used unicast protocol. It is a connection-oriented protocol tha
6 min read
Difference between Distance vector routing and Link State routing
Routing, a process in computer networks, is responsible for the best path to transmit data packets from one node to another, Distance Vector Routing and Link State Routing are two of the most prominent dynamic routing algorithms, they each have their own procedures for calculating routes and disseminating information about those routes throughout a
4 min read
Difference Between Classful Routing and Classless Routing
Classful and classless routing are two different ways through which the IP addresses are managed and structured in a network. Classful Routing is an older approach whereby the IP addresses are divided by fixed classes such as A, B, C, and the rest all with a preset mask. This way, the subnet mask information is not carried in routing updates and it
5 min read
Difference between Static and Dynamic Routing
Routing is a vital communication mechanism that governs how data packets travel from source to destination. Effective routing ensures that data is transferred across networks in an efficient, reliable, and timely manner. There are two main forms of routing: static and dynamic. In this article, we will discuss the differences between static and dyna
3 min read
Why Star network is More Efficient in Network Fault Tolerance in Place of Bus Network?
Answer: Star networks offer better fault tolerance than bus networks because a single point of failure in a star network (the central hub) affects only the connected device, while a fault in a bus network can disrupt communication for all devices on the bus.Advantages of Star Topology Over Bus Topology Individual Connection Points: In a star networ
2 min read
Basic Network Attacks in Computer Network
Many people rely on the Internet for many of their professional, social and personal activities. But there are also people who attempt to damage our Internet-connected computers, violate our privacy and render inoperable the Internet services. Given the frequency and variety of existing attacks as well as the threat of new and more destructive futu
7 min read
Hierarchical Ad-hoc Network Routing Protocol
Hierarchical State Routing Protocol(HSR) is a distributed multi-level hierarchical routing protocol that employs clustering at different levels. Clustering has various advantages in itself. A leader of the cluster is selected at each level of clustering. The benefits of this protocol are:- Reduction in routing table size Better scalabilityClusterin
2 min read
Network Layer Services- Packetizing, Routing and Forwarding
The network Layer is the third layer in the OSI model of computer networks. Its main function is to transfer network packets from the source to the destination. It involves both the source host and the destination host. Key among these services are packetizing, routing, and forwarding. Packetizing involves encapsulating data into packets suitable f
8 min read
How to Find Network IP Address of Computer Using Computer Name?
Answer: By using the command "ping" followed by the computer name in the command prompt or terminal.To find the network IP address of a computer using its computer name: Open Command Prompt or Terminal Begin by opening the Command Prompt (Windows) or Terminal (macOS/Linux) on your computer. Use the Ping Command Type "ping" followed by the computer
1 min read
Dynamic Spectrum Sharing in Wireless Network
Dynamic spectrum Sharing (DSS) is a new emerging technology that allows flexibility to mobile operators for switching between low, mid, and high-band frequencies. It allows both 4G and 5G to share the same spectrum. In this article we are going to learn about the definition of DSS, how it works, all terminologies related to it, what are its disadva
4 min read
Differences between Wireless Adhoc Network and Wireless Sensor Network
1. Wireless Adhoc Network: A wireless ad-hoc network is a wireless network deployed without any framework or infrastructure. This incorporates wireless mesh networks, mobile ad-hoc networks, and vehicular ad-hoc networks. Its history could be traced back to the Defense Advanced Research Project Agency (DARPA) and Packet Radio Networks (PRNET) which
3 min read
Difference between Next Generation Network and Traditional Network
1. Next Generation Network : In short Next Generation Network is termed as NGN which is packet based network used for both telephony and data. It uses multiple broadband and Quality of Services (QoS) enabled transport technologies to establish advance communication system. NGN can handle multiple type of services/traffic such as voice, audio, video
5 min read
Creating a Network in Docker and Connecting a Container to That Network
Networks are created so that the devices which are inside that network can connect to each other and transfer of files can take place. In docker also we can create a network and can create a container and connect to the respective network and two containers that are connected to the same network can communicate with each other. These containers can
2 min read
Difference between Network Administrator and Network Engineer
1. Network Administrator :A network administrator is a someone in an organization whose job is to manage organization's computer network. They also do jobs like on-site server organization , software networking and also placing the network in there correct position which is also called as Network Integrity. Those are the main thing in their job to
3 min read
Difference Between Network Security and Network Administration
In the world of information technology, there are two important and distinct roles that are often confused: network security and network administration. While these two jobs may be closely related, they require different sets of skills and responsibilities. It’s significant to understand the differences between network security and network administ
5 min read
Difference Between Network Management and Network Monitoring
Pre-requisites: Areas of Network Management Network management and Network monitoring are two important functions in maintaining the performance and security of a network. While they are often used interchangeably, they are distinct concepts with different goals and methods. Network management refers to the process of controlling, configuring, and
3 min read
Difference Between Network Congestion and Network Latency
Network congestion refers to a situation in which a network experiences an excessive amount of traffic, resulting in a reduction of available bandwidth and increased delays for network users. This can occur in both wired and wireless networks and can have a significant impact on the performance and reliability of the network. Congestion can occur d
9 min read
How Does a Network Topology Affect Your Decision in Setting up a Network?
Answer: Different Network Topology offer different costs, security, reliability, etc. So we choose one of the network topology as a blueprint for setting up our network according to the features that we required.By Network Topology we get to know how different nodes are connected in the network. There are different types of network topology like Bu
2 min read
How does a Network Interface Card (NIC) Facilitate Connectivity in a Wired Network?
Answer: A network interface card (NIC) facilitates connectivity in a wired network by providing an interface between the physical layer which provides the physical connection with the cables and the data link layer which provides reliable communication channel. The NIC converts the digital data into electrical data so that it can be transferred usi
2 min read
Difference Between Network Topology and Network Protocols
Network Topology and Network Protocols are closely related but distinct concepts in the field of computer networking. Network Topology refers to the physical and logical arrangement of devices on a network, while Network Protocols refer to the rules and standards that govern the communication between devices on a network. Understanding the differen
5 min read
Difference between Software Defined Network and Traditional Network
Whenever it comes to networks, new trends keep on adding up and thus it becomes essential to know about the dissimilarities that SDN Networks and Traditional Networks possess. Given the ever-increasing need for the expansion, fault tolerance, and resource optimization of the networks that connect today’s business environments, organizations, and IT
7 min read
Difference between Storage Area Network (SAN) and Network Attached Storage (NAS)
When it comes to managing and storing data in an IT setup it’s important to know the different storage options available. Two key technologies are Storage Area Network (SAN) and Network Attached Storage (NAS). SAN is a high-speed network that connects servers to storage devices, enabling efficient data transfer and centralized management making it
7 min read
MAC Filtering in Computer Network
There are two kinds of network Adapters. A wired adapter allows us to set up a connection to a modem or router via Ethernet in a computer whereas a wireless adapter identifies and connects to remote hot spots. Each adapter has a distinct label known as a MAC address which recognizes and authenticates the computer. Mac address is shown in the format
10 min read
DHCP Relay Agent in Computer Network
Prerequisite - Dynamic Host Configuration Protocol (DHCP), How DHCP server dynamically assigns IP address to a host? To assign an IP address to the host dynamically, the DHCP client exchanges DHCP messages with the DHCP server in the DORA process. In the DORA process, the discover and request message is broadcast, the offer and the acknowledgement
6 min read
Redundant Link problems in Computer Network
Basically, redundant links are used to prevent nasty network failure. These are used to provide redundancy, i.e back up when a link fails, i.e a frame can be forwarded out through another path but it can cause problems also. Here are some of these problems: Broadcast Storm - A switch forwards out the broadcast frame, generated by another device, to
4 min read
Port Security in Computer Network
Attackers' task is comparatively very easy when they can enter the network they want to attack. Ethernet LANs are very much vulnerable to attack as the switch ports are open to use by default. Various attacks such as Dos attack at layer 2, address spoofing can take place. If the administrator has control over the network then obviously the network
3 min read
EtherChannel in Computer Network
EtherChannel is a port link aggregation technology in which multiple physical port links are grouped into one logical link. It is used to provide high-speed links and redundancy. A maximum of 8 links can be aggregated to form a single logical link. EtherChannel, also known as Link Aggregation Control Protocol (LACP), is a technique used in computer
5 min read