


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of routing algorithms, focusing on dijkstra's shortest path first and bellman-ford algorithms. Learn how these techniques help determine the optimal route between nodes in a network, and understand their differences in terms of message size, exchange, and space requirements.
Typology: Slides
1 / 26
This page cannot be seen from the preview
Don't miss anything!



















Hierarchy and Autonomous Systems
Naïve: Flooding Distance vector: Distributed Bellman Ford Algorithm Link state: Dijkstra’s Shortest Path First-based Algorithm
Interior Routing Protocols: RIP, OSPF Exterior Routing Protocol: BGP
Routing is a very complex subject, and has many aspects. Here, we will concentrate on the basics.
Delay to send an average size packet (Make high speed links attractive, but closeness counts) Bandwidth Link utilization Stability: Is a link (or path) up or down?
Objective: Determine the route from A to B that minimizes the path cost.
R 7
R (^11) R 2 1 R 4 4 R 6
2 4
2 2 3 2 3 R 8
Examples of link cost: Distance, data rate, price, congestion/delay, …
A
B
R 5 R 3
Learn more at http://www.lumeta.com
The Internet is split into Autonomous Systems (AS’s) Examples of AS’s: Stanford (32), HP (71), MCI Worldcom (17373) Try: whois –h whois.arin.net “MCI Worldcom” Within an AS, the administrator chooses an Interior Gateway Protocol (IGP) Examples of IGPs: RIP (rfc 1058), OSPF (rfc 1247). Between AS’s, the Internet uses an Exterior Gateway Protocol AS’s today use the Border Gateway Protocol, BGP-4 (rfc 1771)
Advantages: Simple. Every destination in the network is reachable. Disadvantages: Some routers receive a packet multiple times. Packets can go round in loops as long as TTL>0. Inefficient.
Flood! -- Routers forward packets to all ports except the ingress port. R 1
The solution is a spanning tree with R 8 as the root of the tree. Tree: There are no loops. Spanning: All nodes included. We’ll see two algorithms that build spanning trees automatically: The distributed Bellman-Ford algorithm Dijkstra’s shortest path first algorithm
(^114)
2
4
2 2
3
2 3
Technique 2: Distance Vector
The Distributed Bellman-Ford Algorithm
1 2 7 8 0
8
n (^) i i
i
T i C
i R C
1
1
. Hence, where determines the next step improvement.
i n n
n n
X f X f X X
This is the “Distance vector”.
(^114)
2 2 2
3
2 3 4
R 1 5, R 2 R 2 4, R 5 R 3 4, R 8 R 4 5, R 2 R 5 2, R 8 R 6 2, R 8 R 7 3, R 8
R 1 6, R 3 R 2 4, R 5 R 3 4, R 8 R 4 6, R 7 R 5 2, R 8 R 6 2, R 8 R 7 3, R 8
5 4 5 2
4 2
(^23) R 7
Solution
Routers send out update messages whenever the state of an incident link changes. Called “Link State Updates” Link State Updates are flooded throughout the network Based on all link state updates received each router calculates lowest cost path to all others, starting from itself. Use Dijkstra’s single-source shortest path algorithm Assume all updates are consistent At each step of the algorithm, router adds the next shortest (i.e. lowest-cost) path to the tree. Finds spanning tree rooted at the router.