Study this topic

Distance-Vector Routing

A router forwards each packet by looking up its destination in a forwarding table; routing is the process that fills that table. Routing algorithms come in two families. In link-state routing every router learns the whole topology and runs Dijkstra's algorithm itself (Link-State Routing).

Short notes9 min read

Link-State Routing

In link-state (LS) routing every router learns the complete topology of its routing domain and computes shortest paths itself.

Short notes8 min read