Skip to main content

Link-state routing as adaptive routing

Short answer

Link-state routing is adaptive because routers measure link costs, flood LSPs on changes, and rerun Dijkstra. In the example, when B-C cost rises from 3 to 10, A's route to E changes from A-B-C-D-E to A-C-D-E; when C-D fails, it becomes A-B-C-E.

Use examples to show that the link-state routing protocol is an adaptive routing algorithm.

An adaptive routing algorithm changes its routes automatically when the topology or traffic changes. Link-state routing is adaptive because every router keeps measuring its link costs, floods a new link state packet (LSP) whenever a cost changes or a link fails, and every router then re-runs Dijkstra's algorithm on the updated map.

Steps of link-state routing

  1. Discover neighbours (HELLO packets).
  2. Measure the cost (delay/load) of each link, e.g. by ECHO packets.
  3. Build an LSP (router ID, sequence number, age, neighbours and costs).
  4. Flood the LSP to all routers.
  5. Each router computes shortest paths with Dijkstra.

Steps 2–5 repeat periodically and on any change, which is what makes it adaptive.

Example network (normal state)

        A
     2 / \ 6
      /   \
     B --3-- C
     |     / |
    7|   2/  |4
     |   /   |
     D --1-- E

Dijkstra at A (cost, previous node):

StepMade permanentBCDE
1A2, A6, A∞∞
2B–5, B9, B∞
3C––7, C9, C
4D–––8, D
5E––––

Routes from A: C via A–B–C (5), D via A–B–C–D (7), E via A–B–C–D–E (8). All traffic leaves A on link A–B.

Change 1: link B–C becomes congested (cost 3 → 10)

B and C measure the higher delay and flood new LSPs. A re-runs Dijkstra:

StepMade permanentBCDE
1A2, A6, A∞∞
2B–6, A9, B∞
3C––8, C10, C
4D–––9, D

New routes: C via A–C (6), D via A–C–D (8), E via A–C–D–E (9). Traffic to C, D and E now leaves on link A–C and avoids the congested link.

Change 2: link C–D fails

(B–C back to cost 3.) C and D stop getting HELLO replies and flood LSPs without that link. A re-runs Dijkstra and gets: C via A–B–C (5), D via A–B–D (2 + 7 = 9) and E via A–B–C–E (5 + 4 = 9).

SituationRoute A→ECost
NormalA-B-C-D-E8
B–C congestedA-C-D-E9
C–D failed (B–C normal)A-B-C-E9

The routing tables follow the state of the network without any manual change, so link-state routing (e.g. OSPF) is an adaptive routing algorithm.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Telecommunications chapter 8 questions →