3/2/2001Hanoch Levy, CS, TAU1 QoS Routing Hanoch Levy March 2001.

Slides:



Advertisements
Similar presentations
Ch. 12 Routing in Switched Networks Routing in Packet Switched Networks Routing Algorithm Requirements –Correctness –Simplicity –Robustness--the.
Advertisements

Single Source Shortest Paths
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
© DEEDS 2008Graph Algorithms1 Remarks on Dijkstra  Determining the minimum marginal element (code line: v = the vertex in M 2 with minimum v.L; ) accounts.
October 31, Algorithms and Data Structures Lecture XIII Simonas Šaltenis Nykredit Center for Database Research Aalborg University
Introduction To Algorithms CS 445 Discussion Session 6 Instructor: Dr Alon Efrat TA : Pooja Vaswani 03/21/2005.
Management Science 461 Lecture 2b – Shortest Paths September 16, 2008.
Tirgul 12 Algorithm for Single-Source-Shortest-Paths (s-s-s-p) Problem Application of s-s-s-p for Solving a System of Difference Constraints.
Shortest Paths Definitions Single Source Algorithms –Bellman Ford –DAG shortest path algorithm –Dijkstra All Pairs Algorithms –Using Single Source Algorithms.
Algorithms for Precomputing Constrained Widest Paths and Multicast Trees Paper by Stavroula Siachalou and Leonidas Georgiadis Presented by Jeremy Witmer.
Algorithms for Precomputing Constrained Widest Paths and Multicast Trees Paper by Stavroula Siachalou and Leonidas Georgiadis Presented by Jeremy Witmer.
Shortest Path Problems Directed weighted graph. Path length is sum of weights of edges on path. The vertex at which the path begins is the source vertex.
Graph Algorithms: Shortest Path We are given a weighted, directed graph G = (V, E), with weight function w: E R mapping.
Shortest Paths Definitions Single Source Algorithms
CS541 Advanced Networking 1 Routing and Shortest Path Algorithms Neil Tang 2/18/2009.
Tirgul 13. Unweighted Graphs Wishful Thinking – you decide to go to work on your sun-tan in ‘ Hatzuk ’ beach in Tel-Aviv. Therefore, you take your swimming.
1 Shortest Path Algorithms. 2 Routing Algorithms Shortest path routing What is a shortest path? –Minimum number of hops? –Minimum distance? There is a.
The Shortest Path Problem
Routing Protocols and the IP Layer CS244A Review Session 2/01/08 Ben Nham Derived from slides by: Paul Tarjan Martin Casado Ari Greenberg.
Advanced Algorithms Piyush Kumar (Lecture 5: Weighted Matching) Welcome to COT5405 Based on Kevin Wayne’s slides.
Nirmalya Roy School of Electrical Engineering and Computer Science Washington State University Cpt S 223 – Advanced Data Structures Graph Algorithms: Minimum.
CS223 Advanced Data Structures and Algorithms 1 The Bellman-Ford Shortest Path Algorithm Neil Tang 03/11/2010.
Dijkstras Algorithm Named after its discoverer, Dutch computer scientist Edsger Dijkstra, is an algorithm that solves the single-source shortest path problem.
Internet Traffic Engineering by Optimizing OSPF Weights Bernard Fortz (Universit é Libre de Bruxelles) Mikkel Thorup (AT&T Labs-Research) Presented by.
The Minimal Communication Cost of Gathering Correlated Data over Sensor Networks EL 736 Final Project Bo Zhang.
SPANNING TREES Lecture 21 CS2110 – Spring
Algorithm Course Dr. Aref Rashad February Algorithms Course..... Dr. Aref Rashad Part: 6 Shortest Path Algorithms.
QoS Routing in Networks with Inaccurate Information: Theory and Algorithms Roch A. Guerin and Ariel Orda Presented by: Tiewei Wang Jun Chen July 10, 2000.
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
Week 12 - Monday.  What did we talk about last time?  Topological sort and cycle detection in directed graphs  Connectivity  Strong connectivity.
Pipelining and Retiming
SPANNING TREES Lecture 20 CS2110 – Fall Spanning Trees  Definitions  Minimum spanning trees  3 greedy algorithms (incl. Kruskal’s & Prim’s)
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Lecture 13 Shortest Path.
CSC317 Shortest path algorithms
Dijkstra’s shortest path Algorithm
CprE 458/558: Real-Time Systems
Single-Source Shortest Paths
Algorithms and Data Structures Lecture XIII
Shortest Path Problems
Shortest Path Problems
Routing in Packet Networks Shortest Path Routing
CS223 Advanced Data Structures and Algorithms
Instructor: Shengyu Zhang
Algorithms (2IL15) – Lecture 5 SINGLE-SOURCE SHORTEST PATHS
Lecture 11 Topics Application of BFS Shortest Path
Algorithms and Data Structures Lecture XIII
Lecture 13 Algorithm Analysis
Lecture 13 Algorithm Analysis
Dijkstra’s Shortest Path Algorithm Neil Tang 03/25/2008
Shortest Path Problems
Lecture 13 Algorithm Analysis
Flow Networks and Bipartite Matching
Lecture 13 Algorithm Analysis
Algorithms (2IL15) – Lecture 7
The Bellman-Ford Shortest Path Algorithm Neil Tang 03/27/2008
EE5900 Advanced Embedded System For Smart Infrastructure
Chapter 24: Single-Source Shortest Paths
Dijkstra’s Shortest Path Algorithm Neil Tang 3/2/2010
Brad Karp UCL Computer Science
Shortest Path Problems
Graph Algorithms: Shortest Path
Chapter 24: Single-Source Shortest Paths
Maximum Flow Neil Tang 4/8/2008
Spanning Trees Lecture 20 CS2110 – Spring 2015.
Bellman Ford.
CSCI 465 Data Communications and Networks Lecture 16
More Graphs Lecture 19 CS2110 – Fall 2009.
Presentation transcript:

3/2/2001Hanoch Levy, CS, TAU1 QoS Routing Hanoch Levy March 2001

3/2/2001Hanoch Levy, CS, TAU2 What is Routing Need to find a route from source to destination source Destination b c f e

3/2/2001Hanoch Levy, CS, TAU3 Assign certain weights (additive, typically, hopefully) to edges of graph. Find “shortest” route from source to destination (the route for which the SUM of weights is minimal). Single Objective Routing S D b c f e

3/2/2001Hanoch Levy, CS, TAU4 S D b c f e Shortest hop-count: S-b-D = 2 2. Shortest edge length: S-c-e-D = 17

3/2/2001Hanoch Levy, CS, TAU5 1.Marks are delay over edge: –Delay is additive –Yields minimum delay path 2.Marks are edge costs: –Cost is additive –Yields minimum cost path Use of Single objective Routing to achieve certain QoS S D b c f e

3/2/2001Hanoch Levy, CS, TAU6 1.Marks are jitter over edge: –Jitter is additive? Depends on definition E.g. – if jitter is max delay difference between neighboring packets: additive. –Yields minimum jitter path (if additive) Use of Single objective Routing to achieve certain QoS S D b c f e

3/2/2001Hanoch Levy, CS, TAU7 1.Marks are available bandwidth over edge: Is Bandwidth additive? –No –But: is subject to MIN operation and can fit under this transformation to algorithms. –Yields Maximum bandwidth path Use of Single objective Routing to achieve certain QoS S D b c f e

3/2/2001Hanoch Levy, CS, TAU8 1.Marks are Probability of loss over edge: Is loss additive? No Multiplicative: 1-L=(1-L1)(1-L2) Log is additive (or, can modify algorithm to deal with products) If loss is small, approximately additive 2.Can use algorithm for Minimal loss path. Use of Single objective Routing to achieve certain QoS S D b c f e

3/2/2001Hanoch Levy, CS, TAU9 1.Put all nodes in not-finalized with distance infinity. 2.Distance (S)  0. 3.v  S 4.Add v to finalized 5.For all edges e from v to u (u in not) do: 1.Update distance(u) using MIN operation. 6.Select minimal weight node in not- finalized, denote it v, and go to 4. Dijkstra’s Algorithm S D b c f e

3/2/2001Hanoch Levy, CS, TAU10 1.Works for non-negative weights. 2.Complexity 1: –Updating all edges : O(E) –Finding MIN, V times: 3.Complexity 2: Implement binary heap: 4.Complexity 3 : Implement Fibonacci Heap All operations but deletemin are in O(1) amortized. Thus: Dijkstra’s Algorithm: properties S D b c f e

3/2/2001Hanoch Levy, CS, TAU11 1.Centralized algorithm in nature 2.Hard to distribute. 3.Result is shortest path from S to D 4.With a little more effort (and same worst case) – get shortest path from S to ALL. Dijkstra’s Algorithm: properties (cont) S D b c f e

3/2/2001Hanoch Levy, CS, TAU12 1.Algorithm Bellman Ford: 2.For i=1 to |V| do –For each edge (v,u) do relax(u,v) 3.End Relax:= d(u) := min { d(u), d(v) + w((v,u))} BellMan Ford Algorithm

3/2/2001Hanoch Levy, CS, TAU13 1.Complexity: O(VE) 2.Can conduct in a distributed mode on a graph: 1.Each node u performs: For each edge e=v  u do: d(u):=min {d(u), d(v)+w(e)} 3.Distributed algorithms for network routing based on BF. BellMan Ford Algorithm: Properties

3/2/2001Hanoch Levy, CS, TAU14 Two weight functions, w1, w2. Problem: Find a path from S to D such that Problem is NP complete Heuristic solution in polynomial time Multi Constraint Routing

3/2/2001Hanoch Levy, CS, TAU15 Due to : S. Chen, K.Nahrstedt, 1998, “On Finding Multi-Constrained Paths”, IEEE ICC ’98, June Problem Transformation: Make the second weight discrete: W2 can get only discrete values. Example: weights are only the integers. Costs in whole dollars. Note: practically it affects problem very little (depending on GRANULRITY of weights). Theorem 1: A solution to transformed problem is a solution to original problem. Reverse: If no solution found to transformed problem, there may exist a solution to the original problem. Heuristic Solution

3/2/2001Hanoch Levy, CS, TAU16 1.We have two objectives: D1, D2. 2.During the algorithm each node is marked with two distances : (d1, d2). 3.D1 is continuous while D2 is discrete with g values. 4.Each real node v is represented by g virtual nodes, one for each value of the 2 nd distance. We mark this node (v, g). 5.Initially we set D(v,g) = infinity. Put all nodes (v,g) in not-finalized. 6. D (S, 0)  (v,g)  (S,0) 8.Add (v,g) to finalized 9.For all edges e from v to u do: –Consider the node (u, g+g’) where g’ is the second weight of the edge e. Update the distance of (u, g+g’) to: Min {D(v,g) +D(e), D(u,g+g’} 10.Select minimal weight node in not-finalized, denote it (v,g), and go to 8. Approach of Solution (Dijkstra version)

3/2/2001Hanoch Levy, CS, TAU17 Approach of Solution (Dijkstra version): cont S D b c f e S D b c f e S D b c f e

3/2/2001Hanoch Levy, CS, TAU18 1.Put all nodes in not-finalized with distance infinity. 2.Distance (S)  0. 3.v  S 4.Add v to finalized 5.For all edges e from v to u (u in not) do: 1.Generate a new node (u,g) where distance is sum of distances and g is sum of constraints.Update distance(u) using MIN operation 6.Select minimal weight node in not-finalized, denote it v, and go to 4. Approach of Solution (Dijkstra version) S D b c f e

3/2/2001Hanoch Levy, CS, TAU19 Time Complexity: Where g= granularity of constraint (the number of different values the constraint can get). If Fibonacci heap is used: Complexity of Solution

3/2/2001Hanoch Levy, CS, TAU20 Use a similar approach (“virtual nodes at g layers) and run BF on it. Time Complexity: Where g= granularity of constraint (the number of different values the constraint can get). BellMan Ford Version

3/2/2001Hanoch Levy, CS, TAU21 Alp´ar J¨uttner, Bal´azs Szviatovszki, Ildik´o M´ecs, Zsolt Rajk’o, INFOCOM 2001 Consider the one objective to be minimized (cost) and one constraint (delay) to be met. 1.Each edge has two weights w1(e) and w2(e). 2.Want to minimize the two objectives (or minimize one while constraining the other). 3.Approach : consider an objective function of linear sum of the two: w1 + w2. will be variable. 4.For given, run Dijkstra and find shortest route. 1.If w2 constraint is met: OK. Done. –Otherwise: decrease x and go back to 4. Lagrange Relaxation Based Method for the QoS Routing Problem

3/2/2001Hanoch Levy, CS, TAU22 Procedure LARAC (s=source,t=tar,c=cost,d=delay,Ddel=max delay) Pc:=Dijkstra (s,t,c) /* path of min cost */ If d(Pc) < Ddel then return Pc /* if legal – done */ Pd:=Dijkstra (s,t,d) /* path on min delay */ If d(Pd) > Ddel then return (“no solution”) /* not ok -> no chance */ Repeat –Lam:= {c(Pc)-c(Pd)}/{d(Pd)-d(Pc)} /* diff(cost)/diff(delay) */ –r:= Dijkstra (s,t, Clam) /* Clam = c+ lam * d –If Clam(r) = Clam (Pc) then return Pd:=r Else if d(r) < Ddel then Pd:= r Else Pc:=r End repeat End procedure Lagrange Relaxation :cont

3/2/2001Hanoch Levy, CS, TAU23 References S. Chen, K.Nahrstedt, 1998, “An Overview of Quality-of-Service Routing for the next generation High-Speed Networks: Problems and Solutions”, IEEE Network, Special Issue on Transmission and Distribution of Digital Video, Nov./Dec S. Chen, K.Nahrstedt, 1998, “On Finding Multi-Constrained Paths”, IEEE ICC ’98, June T. H. Cormen, C. E. Leiserson, R. L. Rivest, 1995, “Introduction To Algorithms”, MIT Press. H. de Neve, P. van Meighem, 2000, “TAMCRA: Tunable Accuracy Multiple Constraints Routing Algorithm”, Computer Communications, 23: R Guerin, A. Orda, 1997, “QoS-Based Routing in Networks with Inaccurate Information: theory and Algorithms”, IEEE INFOCOM ’97, Japan, April Alp´ar J¨uttner, Bal´azs Szviatovszki, Ildik´o M´ecs, Zsolt Rajk’o, “ Lagrange Relaxation Based Method for the QoS Routing Problem”, IEEE INFOCOM’ 2001.