08. Introduction to Routing - Link-State Routing

Modelling

Routers are modelled as nodes and links are modelled as edges. Edges have associated metrics:

Dijkstra calculates the least-cost path.

Assumptions

Each router has a complete network picture: topology, link costs etc.

To do this, each router reliably floods information about its neighbors to every other router. All routers should have consistent information.

Flooding can sometimes cause broadcast storms; controlled flooding or spanning-tree broadcasts are used to prevent this.

Dijkstra’s Algorithm

After flooding, each router independently calculates the least-cost path from itself to every other router using Dijkstra’s algorithm and generates a forwarding table for every destination.

Definitions:

Until all nodes are in SS:

Running this algorithm, a forwarding table can be generating, mapping some destination to the next hop.

Complexity:

Since routers have a complete network picture, if one router finds a cheaper path through node ww, it is likely that other routers will also use a path through ww. If the algorithm is load-sensitive, this will cause the link cost of paths through ww to increase, repeating the cycle.