atom

Link State Vs Distance Vector

Link State vs. Distance Vector Routing

💡 The Core Idea

There are two fundamental approaches to network routing:

  1. Link State (LS): Every router has a complete map of the network (Global knowledge).
  2. Distance Vector (DV): Routers only know the distance to their neighbors and what their neighbors tell them (Local knowledge).

🧠 Comparison

FeatureLink State (e.g., OSPF)Distance Vector (e.g., RIP)
KnowledgeGlobal (Topology map)Local (Neighbors’ vectors)
AlgorithmDijkstra’s AlgorithmBellman-Ford Algorithm
UpdatesBroadcasts (Flooding) link status to all nodesExchanges distance vectors only with neighbors
ConvergenceFast, but computationally heavy (O(n2)O(n^2))Slower, susceptible to routing loops (Count-to-Infinity)

🔗 Connections