Presentation is loading. Please wait.

Presentation is loading. Please wait.

Scheduling algorithms for CIOQ switches Balaji Prabhakar.

Similar presentations


Presentation on theme: "Scheduling algorithms for CIOQ switches Balaji Prabhakar."— Presentation transcript:

1 Scheduling algorithms for CIOQ switches Balaji Prabhakar

2 2 Outline of lecture notes We have seen a brief overview of switches and routers –Practice and theory: the commonalities, the divergence –The evolution of switch architectures The CIOQ switch architecture –Overview –Current practice: separate fabric and output schedulers –Stable marriage algorithms for integrating the two schedulers –Why they were unsuccessful –Why they are interesting again…

3 3 A Detailed Sketch of a Router Network Processor Lookup Engine Network Processor Lookup Engine Network Processor Lookup Engine Interconnection Fabric Switch Output Scheduler Line cardsOutputs Packet Buffers Packet Buffers Packet Buffers Fabric Scheduler

4 4 Note Typically, there are two interlocking schedulers –Fabric scheduler and the output scheduler –Speedup is the “grease” that smoothes their interaction

5 5 What is speedup Switch with speedup S: In each time slot –At most 1 packet arrives at (departs from) each input (output) –At most S packets switched from (to) each input (output) Crossbar Fabric with Speedup S Crossbar Fabric with Speedup 1 Fabric with Speedup N Input-queued switchOutput-queued switch Memory Bandwidth = S+1 Memory Bandwidth = S+1 M.B. = N + 1M.B. = 2

6 6 CIOQ Switches Probabilistic analyses: Assume traffic models –Bruzzi and Patavina ‘90, Chen and Stern ‘91, Iliadis and Denzel ‘93, Lin and Sylvester ‘93, Chang, Paulraj and Kailath ‘94 Numerical methods: Use simulated or actual traffic –Murata, Kubota, Miyahara ’89, Lee and Li ’91, Goli and Kumar ’92, Lee and Liu ’94, Bianchini and Kim ’95, etc. Showed that switches which use a speedup of between 2 and 5 achieve the same mean delay and throughput as an output- queued switch (whose speedup is N) IQCIOQOQ Speedup = 1 Inexpensive Poor performance Speedup = 2--5 ? Inexpensive Good performance Speedup = N Expensive Great performance

7 7 Our approach Arbitrary inputs and emulation of OQ switch –Can we say something about delay irrespective of traffic statistics? –Competitive analysis: The idea is to compete with an o/q switch The setup –Under arbitrary, but identical inputs (packet-by-packet) –Is it possible to replace an o/q switch by a CIOQ switch and schedule the CIOQ switch so that the outputs are identical, packet-by-packet? –If yes, what is the scheduling algorithm?

8 8 More specifically Consider an N × N switch with (integer) speedup S > 1 Apply the same inputs, cell-by-cell, to both switches –We will assume that the o/q switch sends out packets in FIFO order –And we’ll see if the CIOQ switch can match cells on the output side

9 9 An algorithm

10 10 Key concept: Port threads

11 11 Theorem (P and McKeown, ‘97)

12 12 Subsequent work Interestingly (and surprisingly), the MUCF algorithm doesn’t give OQ emulation at speedup 2 –Counterexample due to S-T. Chuang Theorem (Chuang, Goel, McKeown and P, ‘98) –An algorithm, called Critical Cells First (CCF), achieves OQ emulation at speedup of 2 - 1/N; moreover, this is necessary and sufficient –The output scheduling policy can be any “monotone scheduling policy;” e.g. strict priority, WFQ, LIFO Charny et al (‘98) –Showed speedup of 4 is sufficient for monotone scheduling policies with leaky bucket constrained inputs Krishna et al (‘98) –Produced an algorithm that is work-conserving, like an OQ switch is However, none of these algorithms were “implementable”

13 13 Implementable algorithms In a core router, switching decisions need to be made in 40ns –Therefore, algorithms have to be v.simple –The elaborate information exchange required by the previous algorithms “did them in” What is implemented: the Request-Grant-Accept type algorithm –In each iteration of the matching process… –Inputs send 1-bit requests to outputs –An output grants to one of the requesting inputs –An input, which receives multiple grants, accepts one of the outputs –All of these are 1-bit communications The CIOQ algorithms, while being of the iterative type, lacked the RGA capability –The information exchanged was “global” –E.g. time of arrival, flow id, … So this work seemed fundamentally limited

14 14 A new perspective The output scheduling algorithms commercially implemented are “port- level fair” –That is, an output link’s bandwidth is partitioned at the level of input ports A policy is “port-level fair” if at any given time the output has a complete ordering of all the inputs for service, based only on the occupancy of the VIQs –FIFO is not port-level fair, because an output can only determine the departure time of a packet when given its arrival time, not just based on which input it arrived at –Flow-level WFQ is also, clearly, not port-level fair

15 15 Remarks Note that FIFO is the easiest policy for an OQ switch to implement –So, port-level fair algorithms should be harder… –Somewhat surprisingly, in a CIOQ switch, this is inverted, as we will see A port-level fair algorithm is popular in practice because a network operator can guarantee bandwidth at that level, without knowing how many flows there are –Individual flows at an input get bandwidth guarantees from the input’s share (which is known at the input) of the output bandwidth –A 2-step process

16 16 The algorithm: FLGS We now describe the Fully Local Gale-Shapley (FLGS) algorithm: –It is a “stable marriage” algorithm between inputs and outputs –The ranking list at an output at any time is defined by the port-level fair policy Ranking list at an input: –The VOQs are divided into two groups: empty and non-empty –All empty VOQs have rank “infinity” –When an empty VOQ has an arrival, it becomes ranked 1 –It will remain in this rank until another empty VOQ receives an arrival, or it becomes empty, whichever is first –NOTE: The relative ranks of two non-empty never changes while they remain non-empty

17 17 The algorithm: FLGS Theorem (Firoozshahian, Manshadi, Goel and P, ‘06): The fully local Gale-Shapley (FLGS) algorithm enables the emulation of an OQ switch employing any port-level fair output scheduler at a speeup of 2 –The algorithm seems counter-intuitive because the ranking at the inputs seems “dumb,” too much so –But, the algorithm works, and it was nearly known to us in 1997 (in the Chuang et al paper); however, we weren’t looking for something so simple at that time!

18 18 At smaller speedups… The theorem guarantees emulation of an OQ switch at speedup 2 –Using simulations we can see how the algorithm performs relative to an OQ switch at speedups less than 2 –Here the comparison is wrt average packet delays, not packet-by-packet –4 classes with WFQ and Strict Priority, load of 99.9% WFQ: High weight class WFQ: Low weight class

19 19 Concluding remark So, why did it take “10 years?” –We became aware of “port-level fair” policies only recently –The implementors never really understood our original algorithms; they thought (correctly) that they were too complicated and, perhaps, dismissed the whole approach The big “take away” for me –Try to understand implementors and the process of implementation –This could have saved us a lot of time –The implementors (especially the good ones) aren’t really looking at the theoretical literature


Download ppt "Scheduling algorithms for CIOQ switches Balaji Prabhakar."

Similar presentations


Ads by Google