Shortest Path Algorithm

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks
Advertisements

Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
4/12/2015© 2009 Raymond P. Jefferis IIILect Internet Protocol - Continued.
Network Layer – Routing 2 Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
CS4550: Computer Networks II network layer basics 3 routing & congestion control.
William Stallings Data and Computer Communications 7 th Edition Chapter 12 Routing.
Data and Computer Communications Ninth Edition by William Stallings Chapter 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
Routing Basics What’s going on the back … Faisal Karim Shaikh DEWSNet Group Dependable Embedded Wired/Wireless Networks.
Computer Networks with Internet Technology William Stallings
Computer Networks with Internet Technology William Stallings
Routing Strategies Fixed Routing
1 Routing Lesson 10 NETS2150/2850 School of Information Technologies.
EE 4272Spring, 2003 Chapter 10 Packet Switching Packet Switching Principles  Switching Techniques  Packet Size  Comparison of Circuit Switching & Packet.
Traffic Engineering Jennifer Rexford Advanced Computer Networks Tuesdays/Thursdays 1:30pm-2:50pm.
Multiple constraints QoS Routing Given: - a (real time) connection request with specified QoS requirements (e.g., Bdw, Delay, Jitter, packet loss, path.
Computer Networks The Data Link / Network Layer Functions: Routing
Data Communications Packet Switching.
1 Relates to Lab 4. This module covers link state routing and the Open Shortest Path First (OSPF) routing protocol. Dynamic Routing Protocols II OSPF.
Spring Routing & Switching Umar Kalim Dept. of Communication Systems Engineering 17/04/2007.
1 Computer Networks Routing Algorithms. 2 IP Packet Delivery Two Processes are required to accomplish IP packet delivery: –Routing discovering and selecting.
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
CMPE 150- Introduction to Computer Networks 1 CMPE 150 Fall 2005 Lecture 21 Introduction to Computer Networks.
EECC694 - Shaaban #1 lec #7 Spring The OSI Reference Model Network Layer.
CSE 461: Link State Routing. Link State Routing  Same assumptions/goals, but different idea than DV:  Tell all routers the topology and have each compute.
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
Jennifer Rexford Princeton University MW 11:00am-12:20pm Wide-Area Traffic Management COS 597E: Software Defined Networking.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Data Communications & Computer Networks
Routing Algorithms (Ch5 of Computer Network by A. Tanenbaum)
1 Pertemuan 20 Teknik Routing Matakuliah: H0174/Jaringan Komputer Tahun: 2006 Versi: 1/0.
Chapter 12 Routing in Switched Networks. Routing in Packet Switched Network  key design issue for (packet) switched networks  select route across network.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Distance Vector Routing 박주호. Introduction.  Modern computer Network generally use Dynamic routing algorithms rather than The.
Review: routing algorithms. –Choose the appropriate paths. –Routing algorithms Flooding Shortest path routing (example). –Dijkstra algorithm. –Bellman-Ford.
Spring 2008CS 3321 Intradomain Routing Outline Algorithms Scalability.
Packet-Switching Networks Routing in Packet Networks.
Network Layer4-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
CIS Routing in IP. Introduction Routers forward IP datagrams from one router to another on path from source to destination Router must have idea.
Chi-Cheng Lin, Winona State University CS 313 Introduction to Computer Networking & Telecommunication Chapter 5 Network Layer.
Data and Computer Communications Ninth Edition by William Stallings Unit 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
The Network Layer.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Lecture 17 November 8Intra-domain routing November 13Internet routing 1 November 15Internet routing 2 November 20End-to-end protocols 1 November 22End-to-end.
Networking and internetworking devices. Repeater.
TELE202 Lecture 6 Routing in WAN 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »Packet switching in Wide Area Networks »Source: chapter 10 ¥This Lecture.
Routing Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009 Asia Pacific Institute of Information.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
Stainov - DataComMET CS TC5353 THE NETWORK LAYER 5.2 ROUTING ALGORITHMS - adaptive Distance Vector Routing (Bellman-Ford, Ford-Fulkenson). It was used.
William Stallings Data and Computer Communications 7th Edition
Teknik Routing Pertemuan 10 Matakuliah: H0524/Jaringan Komputer Tahun: 2009.
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Routing protocols. 1.Introduction A routing protocol is the communication used between routers. A routing protocol allows routers to share information.
Routing Algorithms and IP Addressing Routing Algorithms must be ▪ Correctness ▪ Simplicity ▪ Robustness ▪ Stability ▪ Fairness ▪ Optimality.
Routing Protocols Brandon Wagner.
Spring 2000CS 4611 Routing Outline Algorithms Scalability.
1 Chapter 14-16a Internet Routing Review. Chapter 14-16: Internet Routing Review 2 Introduction Motivation: Router performance is critical to overall.
Distance Vector Routing
Data and Computer Communications Tenth Edition by William Stallings Data and Computer Communications, Tenth Edition by William Stallings, (c) Pearson Education.
6/12/2016© 2010 Raymond P. Jefferis IIILect The Network Layer.
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Chapter 7 Packet-Switching Networks Shortest Path Routing.
William Stallings Data and Computer Communications
Dijkstra’s shortest path Algorithm
Shortest Path Algorithm
Chapter 10. Packet Switching
Shortest Path Algorithm
Communication Networks
Data Communication: Routing algorithms
CSCI 465 Data Communications and Networks Lecture 16
OSPF Protocol.
Presentation transcript:

Shortest Path Algorithm Dijkstra’s Algorithm Bellman-Ford Algorithm 8 5 3 3 5 2 6 2 6 8 3 3 2 1 4 1 2 3 1 1 2 1 7 4 5 1

Reduced graph 5 3 3 5 2 2 6 1 1 2 3 2 1 4 5 1

Dijkstra’s Algorithm 2 3 2 3 1 1 6 6 4 5 4 5 M = { 1 } M = { 1, 4 } 2

Dijkstra’s Algorithm (cont) Node D M 2 3 4 5 6 1 2 5 1 ¥ ¥ 1, 4 2 4 1 2 ¥ 1, 4, 2 2 4 1 2 ¥ 1, 4, 2, 5 2 3 1 2 4 1, 4, 2, 5, 3 2 3 1 2 4 1, 4, 2, 5, 3, 6 2 3 1 2 4

Dijkstra’s Algorithm (cont) w(i, j) = link cost, L(n) = path cost from node s to n 1. [Initialization] T = {s} L(n) = w (s, n) for n ≠ s 2. [Get next node] Find x Ï T such that L(x) = min L(j) Add x to T 3. [Update Least-Cost Paths] L(n) = min [ L(n), L(x)+w(x, n) ] for all n Ï T Go to step 2 jÏT

Bellman-Ford Algorithm 2 3 2 3 D(1)2 = 2 D(1)3 = 5 D(2)2 = 2 1 1 6 6 4 5 4 5 D(2)6 = 10 D(1)4 = 1 D(2)4 = 1 D(2)5 = 2 h = 1 h = 2 D(3)3 = 3 2 3 D(3)2 = 2 1 6 4 5 D(3)6 = 4 D(3)4 = 1 D(3)5 = 2 h = 3

Bellman-Ford Algorithm (cont) Node D h 2 3 4 5 6 ¥ ¥ ¥ ¥ ¥ Source = 1 1 2 5 1 ¥ ¥ 2 2 4 1 2 10 3 2 3 1 2 4 4 2 3 1 2 4

Bellman-Ford Algorithm (cont) Lh(n) = path cost from s to n w/ no more than h links 1. [Initialization] L0(n) = ∞, for all n ≠ s Lh(s) = 0, for all h 2. [Update] For each successive h ≥ 0 For each n ≠ s, compute Lh+1(n) = min [ Lh(j) + w(j, n) ] s j n <= h links link j

Comparisons … …… L(n) = min [ L(n), L(x)+w(x, n) ] Lh(x, D) S D S D Dijkstra’s (Link State) Bellman-Ford (Distance Vector)

Routing in ARPANET First generation(RIP), 1969 Adaptive Routing is adopted Use Bellman-Ford algorithm Estimated link delay is simply the queue length for that link Every 128ms, each node exchanges its delay vector(routing table) with all its neighbors Information about a change in network condition would gradually ripple through the network

Routing in ARPANET (cont) Each node i maintains di j = current estimate of min delay from i to j si j = next node in the current min-delay route from i to j Node k updates its vectors as follows dk j = Min [ lk i + di j ] i Î A sk j = i using i that minimizes the expression above where A = set of neighbor nodes for k lk i = current estimate of delay from k to i k i j

Routing in ARPANET (cont) Major shortcomings of RIP It did not consider line speed, merely queue length. Higher capacity links were not given the favored status Queue length is an artificial measure of delay The algorithm was not very accurate. It responded slowly to congestion and delay increases.

Routing in ARPANET (cont) Second generation, 1979 OSPF: Open Shortest Path First protocol Link-state routing protocol The delay is measured directly Every 10 seconds, the node computes the average delay on each outgoing link Information of changes in delay is sent to all others nodes using flooding Using Dijkstra’s algorithm

Routing in ARPANET (cont)

Routing in ARPANET (cont) Third generation, 1987 Problem The correlation between the reported values (delay) and those actually experienced after rerouting Conclusion Under heavy load, the goal of routing should be to give the average route a good path instead of attempting to give all routes the best path Solution Also consider the average utilization of links Revised cost function: delay-based metric under light loads, capacity-based metric under heavy loads

Calculate Link Costs Measure the avg. delay over the last 10 sec Using the single-server queuing model, the measured delay is transformed into an estimate of link utilization Average the link utilization with the previous estimate of utilization The link cost is set as a function of average utilization

ARPANET Delay Metrics (3rd) Theoretical queueing delay 5 4 Delay (hops) 3 Metric for satellite link 2 Metric for terrestrial link 1 0.0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1.0 Estimated utilization