Professional Documents
Culture Documents
CSE/EE 461: Introduction To Computer Communications Networks Autumn 2010
CSE/EE 461: Introduction To Computer Communications Networks Autumn 2010
Computer
Communications Networks
Autumn 2010
Module 10
Routing Overview
John Zahorjan
zahorjan@cs.washington.edu
534 Allen Center
This Module
Application
• Review of forwarding Presentation
• Computing routing tables Session
• The centralized explanation
Transport
Network
Data Link
Physical
R2
R1
Routing table
128.208.4.* R2
140.142.13.* R4
… …
R4
R3
140.142.13.107 140.142.13.107
128.208.4.1 128.208.4.3
2
R2 Routing table
R1
128.208.4.* R2
140.142.13.* R4
1 4
3
… …
R4
R3 2
140.142.13.107 140.142.13.107
128.208.4.1 128.208.4.3
2
R2 Routing table
R1
1
128.208.4.* R2
3 140.142.13.* R4
1 4
2 1 5
… …
2 R4
R3 2
140.142.13.107 140.142.13.107
128.208.4.1 128.208.4.3
• Greedy:
– Build the spanning tree by adding routers to the current
spanning tree one at a time
– Choose next the as-yet-unadded router whose distance to
the destination is minimal
– Starting conditions:
• [0,-] at destination
• [∞, -] at every other router
• Spanning tree is the destination router alone
• Bellman-Ford Algorithm
• Iterative:
– At each step, update [cost, next hop] for every router
based on [cost] at neighbors
– Starting conditions:
• [0,-] at destination
• [∞, -] at every other router