Anne Reinarz Durham University

Outline

Outline


Routing Algorithms


Optimality Principle

If router J is on the optimal path from I to K, then the optimal path from J to K is on the same route

</br>


Optimality Principle

</img>


Shortest Path Algorithm

Dijkstra’s algorithm computes a sink tree on the graph:


Shortest Path Algorithm

Algorithm:


Shortest Path Algorithm

</img>


Shortest Path Algorithm

</img>

</small>


Distance Vector Routing

Two types of dynamic routing algorithm:

  1. Distance vector, and
  2. link state routing algorithms

Distance Vector Routing

Distance vector:


Distance Vector Routing

Algorithm:


Distance Vector Routing

</img>


Distance Vector Routing

</img>


Black Holes

</img>

Article


The Count-to-Infinity Problem

</img>


Distance Vector Routing

  1. Learn the network address of the neighbouring routers by sending HELLO packet, record name
  2. Set the distance to each neighbour
  3. Construct a packet telling all other routers what it has just learned
  4. Send the packet to and receive packets from all other routers
  5. Compute the shortest path by using Dijkstra’s algorithm

Link State Routing: LSPs

</img>


Flooding


Hierarchical Routing

</img>


Broadcast Routing


Broadcast Routing

</img>


Summary