CSCI 465 Data Communications and Networks Lecture 16

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.
Data and Computer Communications Eighth Edition by William Stallings Lecture slides by Lawrie Brown Chapter 12 – Routing in Switched Networks.
Data and Computer Communications
1 Chapter 6 Dynamic Programming Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
DIJKSTRA’s Algorithm. Definition fwd search Find the shortest paths from a given SOURCE node to ALL other nodes, by developing the paths in order of increasing.
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.
Routing - I Important concepts: link state based routing, distance vector based routing.
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.
1 Dijkstra’s Shortest Path Algorithm Gordon College.
Computer Networks The Data Link / Network Layer Functions: Routing
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2007 (Term 062)
Routing Protocol Pertemuan 21 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
EE 122: Intra-domain routing Ion Stoica September 30, 2002 (* this presentation is based on the on-line slides of J. Kurose & K. Rose)
William Stallings Data and Computer Communications 7th Edition (Selected slides used for lectures at Bina Nusantara University) Routing.
ROUTING ON THE INTERNET COSC Aug-15. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
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.
TCP Traffic and Congestion Control in ATM Networks
Network and Communications Ju Wang Chapter 5 Routing Algorithm Adopted from Choi’s notes Virginia Commonwealth University.
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.
13 – Routing Algorithms Network Layer.
1 Week 5 Lecture 2 IP Layer. 2 Network layer functions transport packet from sending to receiving hosts transport packet from sending to receiving hosts.
Data and Computer Communications Ninth Edition by William Stallings Unit 12 – Routing in Switched Data Networks Data and Computer Communications, Ninth.
CSCI 465 D ata Communications and Networks Lecture 15 Martin van Bommel CSCI 465 Data Communications & Networks 1.
Data Communications and Networking Chapter 11 Routing in Switched Networks References: Book Chapters 12.1, 12.3 Data and Computer Communications, 8th edition.
Networking and internetworking devices. Repeater.
Internet Routing r Routing algorithms m Link state m Distance Vector m Hierarchical routing r Routing protocols m RIP m OSPF m BGP.
William Stallings Data and Computer Communications 7th Edition
Computer Networks with Internet Technology William Stallings Chapter 11 Interior Routing Protocols.
Shortest Path Algorithm
Decision Maths 1 Shortest path algorithm Dijkstra’s Algorithm A V Ali :
ROUTING ON THE INTERNET COSC Jun-16. Routing Protocols  routers receive and forward packets  make decisions based on knowledge of topology.
William Stallings Data and Computer Communications
CS 5565 Network Architecture and Protocols
Centralized vs Distributed Routing
Routing on the internet
Chapter 7 Dynamic Routing
Routing on the internet
Lecture 13 Shortest Path.
Dijkstra’s shortest path Algorithm
What is a router? A router is a device that connects multiple computers together. Not to be confused with a switch Routers transmit packets of data across.
Network Layer – Routing 1
CS 457 – Lecture 12 Routing Spring 2012.
Routing: Distance Vector Algorithm
Chapter 5 Network Layer.
Road Map I. Introduction II. IP Protocols III. Transport Layer
Lecture 10 Computer Networking: A Top Down Approach 6th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 CS3516: These slides are generated from.
Chapter 6 Dynamic Programming
Shortest Path Algorithm
Shortest-Paths Trees Kun-Mao Chao (趙坤茂)
ECE453 – Introduction to Computer Networks
Chapter 6 Dynamic Programming
Advanced Computer Networks
Lecture 14 Shortest Path (cont’d) Minimum Spanning Tree
Network Layer (contd.) Routing
CSE 550 Computer Network Design
Shortest Path Algorithm
EE 122: Intra-domain routing: Distance Vector
Implementation of Dijkstra’s Algorithm
Maximum Flow Neil Tang 4/8/2008
Lecture 13 Shortest Path (cont’d) Minimum Spanning Tree
EE 122: Intra-domain routing: Link State
Presentation transcript:

CSCI 465 Data Communications and Networks Lecture 16 Martin van Bommel CSCI 465 Data Communications & Networks

Least Cost Routing Algorithms Basis for routing decisions Network of nodes connected via bi-directional links Link has cost associated with it in each direction If just minimizing hop count – each link has cost 1 Usually link cost inversely proportional to capacity Link costs may include queue lengths For each pair of nodes, find path with least cost May be different for each direction Dijkstra’s or Bellman-Ford algorithms CSCI 465 Data Communications & Networks

CSCI 465 Data Communications & Networks Dijkstra’s Algorithm Finds shortest paths from given source nodes to all other nodes Develop paths in order of increasing length Algorithm runs in stages Add node with next shortest path at each stage Terminates when all nodes added CSCI 465 Data Communications & Networks

CSCI 465 Data Communications & Networks Dijkstra’s Method Step 1: Initialization T = {s} set of nodes incorporated so far (s = start node) L(n) = w(s, n) for n  s initial path costs are link costs Step 2: Get Next Node Find node x  T with minimum L(x) Add x to T and add the new edge leading to x Step 3: Update Least-Cost Paths L(n) = min [ L(n), L(x) + w(x, n) ] for all n  T CSCI 465 Data Communications & Networks

Dijkstra’s Algorithm Example

Dijkstra’s Iterations L(2) Path L(3) L(4) L(5) L(6) 1 {1} 2 1–2 5 1-3 1–4  - {1,4} 4 1-4-3 1-4–5 3 {1, 2, 4} {1, 2, 4, 5} 1-4-5–3 1-4-5–6 {1, 2, 3, 4, 5} 6 {1, 2, 3, 4, 5, 6} 1-2 1-4-5-3 1-4 1-4-5-6

Bellman-Ford Algorithm Find shortest paths from given node subject to constraint that paths contain at most one link Find shortest paths with constraint of paths of at most two links and so on … Uses Lh(n) – cost of least-cost path to node n using no more than h links CSCI 465 Data Communications & Networks

CSCI 465 Data Communications & Networks Bellman-Ford Method Step 1: Initialization L0(n) =  for all n  s Lh(s) = 0 for all h Step 2: Update for each successive h ≥ 0 for each n  s, compute Lh(n) = minj [ Lh( j ) + w( j, n) ] Connect n with the predecessor node j that achieves minimum (eliminate previous links from earlier iterations) Path from s to n terminates with j to n link CSCI 465 Data Communications & Networks

Bellman-Ford Example

Bellman-Ford Iterations h Lh(2) Path Lh(3) Lh(4) Lh(5) Lh(6)  - 1 2 1-2 5 1-3 1-4 4 1-4-3 1-4-5 10 1-3-6 3 1-4-5-3 1-4-5-6

Routing Algorithm Comparison Dijkstra: Each node needs to know compete topology needs to know link costs of all links in network must exchange information with all other nodes Bellman-Ford: Each node needs link cost to neighboring nodes needs total cost from s to each neighbor can exchange information with direct neighbors can update costs and paths based on information from neighbors and knowledge of link costs CSCI 465 Data Communications & Networks

Routing Algorithm Evaluation Dependent upon Processing time of algorithms themselves Amount of information required from other nodes Very implementation specific Both converge under static topology and costs converge to same solution If link costs change, attempt to catch up If dependent on traffic, may have instability CSCI 465 Data Communications & Networks