The Wayback Machine - https://web.archive.org/web/20240630001047/https://www.geeksforgeeks.org/difference-between-distance-vector-routing-and-link-state-routing/
Open In App

Difference between Distance vector routing and Link State routing

Last Updated : 09 May, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Prerequisite – Classification of Routing Algorithms 

Distance Vector Routing – 

  • It is a dynamic routing algorithm in which each router computes a distance between itself and each possible destination i.e. its immediate neighbors.
  • The router shares its knowledge about the whole network to its neighbors and accordingly updates the table based on its neighbors.
  • The sharing of information with the neighbors takes place at regular intervals.
  • It makes use of Bellman-Ford Algorithm for making routing tables.
  • Problems – Count to infinity problem which can be solved by splitting horizon. 
    – Good news spread fast and bad news spread slowly. 
    – Persistent looping problem i.e. loop will be there forever.

Link State Routing – 

  • It is a dynamic routing algorithm in which each router shares knowledge of its neighbors with every other router in the network.
  • A router sends its information about its neighbors only to all the routers through flooding.
  • Information sharing takes place only whenever there is a change.
  • It makes use of Dijkstra’s Algorithm for making routing tables.
  • Problems – Heavy traffic due to flooding of packets. 
    – Flooding can result in infinite looping which can be solved by using the Time to live (TTL) field. 

Comparison between Distance Vector Routing and Link State Routing:  

Figure:- Distance Vector Routing Vs Link State Routing

S.No.  Distance Vector Routing Link State Routing
1. Bandwidth required is less due to local sharing, small packets and no flooding. Bandwidth required is more due to flooding and sending of large link state packets.
2. Based on local knowledge, since it updates table based on information from neighbours. Based on global knowledge, it have knowledge about entire network.
3. Make use of Bellman Ford Algorithm. Make use of Dijakstra’s algorithm.
4. Traffic is less. Traffic is more.
5. Converges slowly i.e, good news spread fast and bad news spread slowly. Converges faster.
6. Count of infinity problem. No count of infinity problem.
7. Persistent looping problem i.e, loop will be there forever. No persistent loops, only transient loops.
8. Practical implementation is RIP and IGRP. Practical implementation is OSPF and ISIS.

 


Previous Article
Next Article

Similar Reads

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
Optimized Link State Routing Protocol
OLSR stands for Optimized Link State Routing Protocol. In this, each node periodically floods status of its links. Each node re-broadcasts link state information received from its neighbors. Each node keeps track of link state information received from other nodes. Each node uses above information to determine next hope to each destination. It is p
6 min read
TCL script to simulate link state routing in ns2
In this article we will know how to write a TCL script for the simulation of one of the routing protocols link state routing (also called dijkstra's algorithm) using the Network Simulator. To understand more about the basics of TCL scripts you can check out this article https://www.geeksforgeeks.org/basics-of-ns2-and-otcltcl-script/. TCL script to
5 min read
How Link State Routing is Different from Others?
Answer: Link-state routing protocols maintain a complete map of network topology and calculate routes independently, while other protocols like distance vector rely on iterative updates and have limited network visibility. Link State Routing is an algorithm used to find the optimal path of data packets transmitted from a source to destinations in a
2 min read
Difference between Classful Routing and Classless Routing
Classful Routing: Classful Routing does not import subnet mask. And in this also subnet mask is provided after the route update. In classful routing, subnet mask is same throughout, does not vary for all devices, we can see it in the given picture. In classful routing, VLSM (Variable Length Subnet Mask) is not supported and also CIDR (Classless Int
2 min read
Distance Vector Routing (DVR) Protocol
A distance-vector routing (DVR) protocol requires that a router inform its neighbors of topology changes periodically. Historically known as the old ARPANET routing algorithm (or known as Bellman-Ford algorithm). Bellman Ford Basics - Each router maintains a Distance Vector table containing the distance between itself and ALL possible destination n
4 min read
Difference between External link and Internal link
1. Internal Link : Internal links are hyperlinks that direct the readers to a target page on your website. Internal link is a link from one page to another page on the same domain. Example are website navigation.  Advantages of good internal link are : Internal link improves usability through anchor text.Internal linking improves page rank.Internal
2 min read
Difference between Hard Link and Soft Link
The file system in Unix-like operating systems, such as Linux and macOS, provides a variety of methods for creating hyperlinks between files and directory paths. These linkages work as suggestions or references to the source file, ensuring the organization of data and enterprise management within the device. In this article, we will discuss the dif
3 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
Cisco Discovery Protocol (CDP) and Link Layer Discovery Protocol (LLDP) in Data Link Layer
Layer 2 or the Datalink layer provides physical addressing and access to media. It defines how data is to be formatted for transmission and how access to the network is to be controlled. It also provides error detection, ensuring data on higher layers is formatted correctly for transmission. Cisco Discovery Protocol (CDP) and Link Layer Discovery P
2 min read