Back to Network Layer

Link State Routing

Complete topology awareness using Dijkstra's shortest path algorithm

Key Protocols

OSPF, IS-IS, and other implementations

Convergence

Fast convergence with complete topology knowledge

Scalability

Hierarchical areas for large networks

Link State Topics

Link State Algorithm Details

Link State Algorithm Steps

1
Network Discovery

Each router discovers its neighbors and link costs

Routers send HELLO packets to identify neighbors and measure link costs

2
LSA Generation

Create Link State Advertisements (LSAs)

Each router creates LSA containing its neighbors and link costs

3
LSA Flooding

Flood LSAs throughout the network

LSAs are reliably flooded to all routers using sequence numbers

4
Topology Database

Build complete network topology

Each router builds identical link-state database of entire network

5
SPT Calculation

Run Dijkstra's algorithm

Calculate shortest path tree (SPT) from this router to all destinations

6
Routing Table

Install routes in forwarding table

Extract next-hop information from SPT for routing table

Link State vs Distance Vector

AspectLink StateDistance Vector
Information SharedComplete topology (LSAs)Distance vectors only
Convergence SpeedFast (immediate flooding)Slow (iterative updates)
Routing LoopsNo loops (complete topology)Possible during convergence
Memory UsageHigh (topology database)Low (distance vectors)
CPU UsageHigh (Dijkstra calculation)Low (simple computation)
ScalabilityGood (hierarchical areas)Limited (hop count)

📝 Exam Preparation Tips

Key Topics to Remember

  • • Link state algorithm uses Dijkstra's SPF
  • • LSAs flooded throughout area/domain
  • • All routers have identical topology database
  • • OSPF uses areas for scalability
  • • Different LSA types for different information

Common Exam Questions

  • • "Explain link state algorithm steps" (8 marks)
  • • "Compare OSPF vs RIP" (10 marks)
  • • "Describe OSPF area concept" (6 marks)
  • • "Types of LSAs and their purposes" (8 marks)
  • • "Link state vs distance vector routing" (10 marks)