For working professionals
For fresh graduates
More
Learn Cyber Security Tutorial …
1. Cyber Security
2. Difference between Circuit Switching and Packet Switching
3. Difference Between Hub and Switch
4. Difference between IPv4 and IPv6
5. Distance Vector Routing (DVR) Protocol
Now Reading
6. Go-Back-N ARQ
7. What is Google Dorking
8. How Does The Internet Work
9. Identity And Access Management (IAM)
10. OSI Model
11. Selective Repeat ARQ
12. Sliding Window Protocol
13. Two Factor Authentication
14. Digital Signatures and Certificates
15. What is VPN and How It Works?
16. What is Firewall
17. What Is Network Topology
18. Subnetting in Computer Networks
19. Intrusion Prevention Systems
20. Network Segmentation
21. Endpoint Detection and Response
22. Security Information and Event Management (SIEM)
23. Data Loss Prevention (DLP)
24. Cross Site Scripting (XSS)
25. Software Bill of Materials(SBOM)
26. ESG Frameworks
Routing protocols help guide network traffic and are used for sharing information among a network of routers. Distance vector routing protocol is used widely in residential and office settings due to its simplicity. In the DVR algorithm, the best-fit path is chosen according to the periodic updates received by the routers.
Having worked with routers, I’ve curated this tutorial on distance vector routing protocol to help you gain a basic understanding. So let us understand what they are and how they work.
Distance vector routing protocol is used for calculating the best-fit path for data transmission among routers. It finds the direction and distance of the vector of the next hop through the information received by the neighbor router. If there are any changes in topology, it is necessary to keep track of it as well as inform the neighboring devices.
Here are some key points you must be aware of when learning about distance vector routing protocol:
i) Routing pattern: In the DVR protocol, routing data is shared by the nodes only to those that are directly linked with one or several nodes in the network.
ii) Network information: All the nodes in a network must have information regarding their neighbors. Every node in the network is designed to share information with all the nodes in the network.
iii) Data sharing: As there is a change in network topology, the nodes share information with the neighbors time and again.
Let’s say, you decide to start a business. Your goal is going to be to advertise about it. Let the other local businesses know about you and spread the word around. As your business grows, you will keep connecting with your neighboring businesses to form a complete network. This is quite similar to what happens in a DVR set-up.
Let me explain how the distance vector routing protocol works:
There are three types of distance vector routing protocol:
This protocol selects the best-fit path depending on the hop counts to reach a destination in a specified direction.
Let’s say that you are traveling from point A to point B. You will surely choose the path that has fewer deviations and fewer pit stops. This will help you save time and energy. The same idea is used in this process.
Hop count is every router that is present between the source and the destination network. The path having the least hop count is going to be chosen as the best fit.
The DVMRP (Distance Vector Multicast Routing Protocol) is a specific type of distance-vector routing protocol. While traditional distance-vector routing protocols like RIP (Routing Information Protocol) are used for unicast routing, DVMRP is specifically designed for multicast routing.
Compared to any other distance vector routing protocol, this protocol knows the internet the best. Also known as the shortest path first (SPF) protocol, uses the concept of triggered updates - only a topology change triggers an update.
Hello, messages, also called keep-alive messages are used for neighbor discovery and recovery. The number of updates shared is equal to the number requested by the neighbor router.
This algorithm is used for finding the shortest route within the network from one node to another. The DVR protocol is used for calculating the best-fit route from the source to the destination. It determines the optimal path based on the number of hops or distance.
The distance vector routing algorithm is:
dx(y) = minv{c(x,v) + dv(y)}
Where minv = selecting the smallest distance
dx(y) = the smallest distance from x to y
c(x,v) = cost of node x from all of its neighbors v.
dv(y) = Distance between each neighbor from the initial node
Let’s say, you set all the routers and run the DVR algorithm. Every router of that network is going to share information of distance with their neighboring router. When all the information has been gathered from the neighbors, an optimal path is selected and stored in the routing table.
Let us understand some applications of distance vector routing algorithm in computer networks:
In the given network model, there are three blocks - A, B, and C representing the nodes in the connection. Every connection line has a distance-vector value in the given network.
To create the routing table of the network model given above, you should understand how to implement one in DVR. Let me explain:
At first, the local tables of routers are filled with connections to all the destinations. These represent paths that are assumed to be the best-fit route at first.
When routers receive new data from their neighbors, they compare this information with the existing data in their tables. In case a neighbor offers a more efficient way to a particular destination, the local table of the routers is updated to reflect the better route.
Let me explain the distance vector routing in computer networks.
To solve the network model, we need to create the routing table for all the routers.
Router A:
This router sends routing data to nodes B and C. There its routing table looks like this:
Destination | Vector | Hop |
A | 0 | A |
B | 1 | B |
C | 5 | C |
Router B: This router shares data with A and C. Its routing table looks like the following:
Destination | Vector | Hop |
A | 1 | A |
B | 0 | B |
C | 2 | C |
Router C: This router shares data with A and B. Its routing table looks like the following:
Destination | Vector | Hop |
A | 5 | A |
B | 2 | B |
C | 0 | C |
In the second step, we have to update the nodes.
In the first case, we can see that distance will be less traveling from A to C when B is the intermediate node. So the updated router A table is:
Destination | Vector | Hop |
A | 0 | A |
B | 1 | B |
C | 3 | B |
Similarly for C also, the updated table will look like the following:
Destination | Vector | Hop |
A | 3 | A |
B | 2 | B |
C | 0 | C |
This example demonstrates that, in distance vector routing, the shortest path is always chosen.
There are several advantages of distance vector routing algorithms in computer networks. Some of these are as follows:
Even though there are many advantages of distance vector routing in computer networks, there are also certain limitations. Some of these are as follows:
The distance vector routing protocol is an example of the dynamic protocol. Used for calculating the shortest path from one router to another, this routing protocol is widely used due to its flexibility and low overhead.
If you are looking to expand your career and boost your employability, I will recommend you check out the certified courses offered by upGrad. The courses are designed according to the current market and are taught by experienced professionals.
The distance vector routing algorithm is used to find the best path in a network to reach a destination. In this algorithm, routers share information about their connected neighbors to determine the shortest path.
The three types of routing protocols are as follows:
An example of distance vector routing is Routing Information Protocol (RIP).
Yes, distance vector routing is a dynamic routing algorithm. Every router in this algorithm computes the distance between itself and each possible destination.
OSPF (Open Shortest Path First) protocol is not a type of distance vector protocol. Rather it is an example of a link-state routing protocol.
The primary advantage of the DVR algorithm is that it is easy to implement and does not need many resources.
The primary drawback of the DVR protocol is that it needs time for the changes in a network to move through the network.
Distance vector routing uses the Bellman-Ford algorithm for calculating the best route. This has been discussed in the article above.
Distance vector routing protocol has a slower convergence time in comparison to link state routing.
BGP or Border Gateway Protocol is sometimes classed under distance vector routing protocol, however, it is sometimes also classified as a path vector routing protocol.
Author
Talk to our experts. We are available 7 days a week, 9 AM to 12 AM (midnight)
Indian Nationals
1800 210 2020
Foreign Nationals
+918045604032
1.The above statistics depend on various factors and individual results may vary. Past performance is no guarantee of future results.
2.The student assumes full responsibility for all expenses associated with visas, travel, & related costs. upGrad does not provide any a.