1 Scheduling Crossbar Switches Who do we chose to traverse the switch in the next time slot? N N 11.

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Chapter 28 Weighted Graphs and Applications
Maximum flow Main goals of the lecture:
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
EE384y: Packet Switch Architectures
Advanced Piloting Cruise Plot.
Kapitel 21 Astronomie Autor: Bennett et al. Galaxienentwicklung Kapitel 21 Galaxienentwicklung © Pearson Studium 2010 Folie: 1.
Chapter 1 The Study of Body Function Image PowerPoint
1 Copyright © 2010, Elsevier Inc. All rights Reserved Fig 2.1 Chapter 2.
By D. Fisher Geometric Transformations. Reflection, Rotation, or Translation 1.
Business Transaction Management Software for Application Coordination 1 Business Processes and Coordination.
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
0 - 0.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
SUBTRACTING INTEGERS 1. CHANGE THE SUBTRACTION SIGN TO ADDITION
MULT. INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
ZMQS ZMQS
1 Maintaining Packet Order in Two-Stage Switches Isaac Keslassy, Nick McKeown Stanford University.
BT Wholesale October Creating your own telephone network WHOLESALE CALLS LINE ASSOCIATED.
ABC Technology Project
Chapter 9 -- Simplification of Sequential Circuits.
COMP 482: Design and Analysis of Algorithms
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
1. 2 No lecture on Wed February 8th Thursday 9 th Feb 14: :00 Thursday 9 th Feb 14: :00.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
Squares and Square Root WALK. Solve each problem REVIEW:
Routing and Congestion Problems in General Networks Presented by Jun Zou CAS 744.
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
Week 1.
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
A SMALL TRUTH TO MAKE LIFE 100%
PSSA Preparation.
How Cells Obtain Energy from Food
Nick McKeown Spring 2012 Maximum Matching Algorithms EE384x Packet Switch Architectures.
Towards Simple, High-performance Input-Queued Switch Schedulers Devavrat Shah Stanford University Berkeley, Dec 5 Joint work with Paolo Giaccone and Balaji.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion MSM.
CSIT560 By M. Hamdi 1 Packet Scheduling/Arbitration in Virtual Output Queues and Others.
CSIT560 by M. Hamdi 1 Packet Scheduling/Arbitration in Virtual Output Queues and Others.
1 Scheduling Crossbar Switches Who do we chose to traverse the switch in the next time slot? N N 11.
1 Performance Guarantees for Internet Routers ISL Affiliates Meeting April 4 th 2002 Nick McKeown Professor of Electrical Engineering and Computer Science,
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
SNRC Meeting June 7 th, Crossbar Switch Scheduling Nick McKeown Professor of Electrical Engineering and Computer Science, Stanford University
Input buffered switches (1)
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Edmonds-Karp Algorithm
Packet Scheduling/Arbitration in Virtual Output Queues and Others
Flow Networks and Bipartite Matching
Scheduling Crossbar Switches
Lecture 21 Network Flow, Part 1
Maximum Flow Neil Tang 4/8/2008
Lecture 22 Network Flow, Part 2
Presentation transcript:

1 Scheduling Crossbar Switches Who do we chose to traverse the switch in the next time slot? N N 11

2 History 1. [Karol et al. 1987] Throughput limited to by head- of-line blocking for Bernoulli IID uniform traffic. 2. [Tamir 1989] Observed that with “Virtual Output Queues” (VOQs) Head-of-Line blocking is reduced and throughput goes up.

3 Basic Switch Model A 1 (n) S(n) N N L NN (n) A 1N (n) A 11 (n) L 11 (n) 11 A N (n) A NN (n) A N1 (n) D 1 (n) D N (n)

4 Some definitions 3. Queue occupancies: Occupancy L 11 (n) L NN (n)

5 Finding a maximum size match  How do we find the maximum size (weight) match? A B C D E F

6 Network flows and bipartite matching Finding a maximum size bipartite matching is equivalent to solving a network flow problem with capacities and flows of size 1. A1 Source s Sink t B C D E F

7 Network Flows Source s Sink t ac bd Let G = [V,E] be a directed graph with capacity cap(v,w) on edge [v,w]. A flow is an (integer) function, f, that is chosen for each edge so that We wish to maximize the flow allocation.

8 A maximum network flow example By inspection Source s Sink t ac bd Step 1: Source s Sink t ac bd 10, , , 10 Flow is of size 10

9 A maximum network flow example Source s Sink t ac bd 10, 10 10, 1 10, , 1 10, 1 10, 10 Step 2: Flow is of size 10+1 = 11 Source s Sink t ac bd 10, 10 10, 2 10, 9 1,1 10, 2 10, 10 Maximum flow: Flow is of size 10+2 = 12 Not obvious

10 Ford-Fulkerson method of augmenting paths 1. Set f(v,w) = -f(w,v) on all edges. 2. Define a Residual Graph, R, in which res(v,w) = cap(v,w) – f(v,w) 3. Find paths from s to t for which there is positive residue. 4. Increase the flow along the paths to augment them by the minimum residue along the path. 5. Keep augmenting paths until there are no more to augment.

11 Example of Residual Graph st ac bd 10, , , 10 Flow is of size 10 t ac bd s res(v,w) = cap(v,w) – f(v,w) Residual Graph, R Augmenting path

12 Example of Residual Graph st ac bd 10, 10 10, 1 10, , 1 10, 1 10, 10 Step 2: Flow is of size 10+1 = 11 st ac bd Residual Graph 9 9

13 Complexity of network flow problems  In general, it is possible to find a solution by considering at most VE paths, by picking shortest augmenting path first.  There are many variations, such as picking most augmenting path first.  Best Algorithm based on work by Dinic.

14 Finding a maximum size match  How do we find the maximum size (weight) match? A B C D E F

15 Network flows and bipartite matching Finding a maximum size bipartite matching is equivalent to solving a network flow problem with capacities and flows of size 1. A1 Source s Sink t B C D E F

16 Network flows and bipartite matching Ford-Fulkerson method A1 s t B C D E F Residual Graph for first three paths:

17 Network flows and bipartite matching A1 s t B C D E F Residual Graph for next two paths:

18 Network flows and bipartite matching A1 s t B C D E F Residual Graph for augmenting path:

19 Network flows and bipartite matching A1 s t B C D E F Residual Graph for last augmenting path: Note that the path augments the match: no input and output is removed from the match during the augmenting step.

20 Network flows and bipartite matching A1 s t B C D E F Maximum flow graph:

21 Network flows and bipartite matching A1 B C D E F Maximum Size Matching:

22 Complexity of Maximum Matchings  Maximum SizeMatchings:  Algorithm by Dinic O(N 5/2 )  Maximum Weight Matchings  Algorithm by Kuhn O(N 3 )  In general:  Hard to implement in hardware  Slooooow.

23 Outline  Recap of LQF and proof of stability.  OCF: Weight equals the age of a cell.  Why do we need a weight to stabilize the switch for non-uniform arrivals?  Finding a maximum match.  Maximum network flow problems  Maximum size/weight matchings as examples of maximum network flows  LPF: Another algorithm.

24 Another algorithm (LPF)

25 LPF

26 Properties of LPF  LPF is stable for all admissible Bernoulli traffic.  An LPF match is a maximum size match.  How can this be stable?