Outline: Routing



Routing Problem



Routing Ideas



Distance Vector Routing



Distance Vector Algorithm

  1. keep a routing table indexed by destination:
  2. send to each neighbor both periodically and when my routing table changes
  3. each message contains destination, distance from my routing table
  4. when receiving a message on port P:



Distance Vector example



Link-State Routing



Link-State -- Distance Vector



Broadcasting:
Flooding Algorithm

  1. Keep track of all packets received
  2. On receipt of a packet from port i:



More Practical Flooding



Another Flooding Algorithm