linkstate
Link-state is a class of routing protocol in which each router builds a complete map of the network's topology to determine the best paths. In a link-state routing protocol, every router advertises its directly connected links and their costs through link-state advertisements (LSAs). These LSAs are flooded reliably to all routers in the routing domain, so each router maintains a link-state database (LSDB) containing the topology of the entire area.
To compute routes, each router runs a shortest-path algorithm, typically Dijkstra's algorithm, on the LSDB to
Examples include OSPF and IS-IS. OSPF uses areas to confine LSDBs and LSAs, improving scalability, while IS-IS
Link-state protocols generally converge quickly and avoid routing loops, but they require more memory and CPU
Direct benefits: fast convergence, accurate routing, scalable in moderate to large networks. Drawbacks: higher overhead for
Compared with distance-vector protocols like RIP, link-state protocols maintain a complete network map and compute routes