Top Banner
Queuing Theory For Dummies Jean-Yves Le Boudec 1
33

Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Dec 16, 2015

Download

Documents

Holly Caines
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Queuing TheoryFor Dummies

Jean-Yves Le Boudec1

Page 2: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

All You Need to Know About Queuing Theory

Queuing is essential to understand the behaviour of complex computer and communication systems

In depth analysis of queuing systems is hard

Fortunately, the most important results are easy

We will study this topic in two modules1. simple concepts (this module)

2. queuing networks (later)

2

Page 3: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

1. Deterministic QueuingEasy but powerful

Applies to deterministic and transient analysis

Example: playback buffer sizing

3

Page 4: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Use of Cumulative Functions

4

Page 5: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Solution of Playback Delay Pb

5

A(t) A’(t) D(t)

time

bits

d(0)d(0) - d(0) + (D

1): r

(t -

d(0)

+

) (D

2): r

(t -

d(0

) -

) d(t)

A.

Page 6: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

2. Operational Laws

Intuition:Say every customer pays one Fr per minute present

Payoff per customer = R

Rate at which we receive money = N

In average λ customers per minute, N = λ R

6

Page 7: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Little Again

Consider a simulation where you measure R and N. You use two counters responseTimeCtr and queueLengthCtr. At end of simulation, estimate

R = responseTimeCtr / NbCustN = queueLengthCtr / T

where NbCust = number of customers served and T=simulation duration

Both responseTimeCtr=0 and queueLengthCtr=0 initially

Q: When an arrival or departure event occurs, how are both counters updated ?A: queueLengthCtr += (tnew - told) . q(told) where q(told) is the number of customers in queue just before the event.

responseTimeCtr += (tnew - told) . q(told)thus responseTimeCtr == queueLengthCtr and thus

N = R . NbCust/T ; now NbCust/T is our estimator of

7

Page 8: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Other Operational Laws

8

Page 9: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

The Interactive User Model

99

Page 10: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Network Laws

10

Page 11: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Bottleneck AnalysisApply the following two bounds

1.

2.

11

Example

(1)

(2)

17

Page 12: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Throughput Bounds

12

Page 13: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Bottlenecks

13

A

Page 14: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

DASSA

Intuition: within one busy period: to every departure we can associate one arrival with same number of customers left behind

14

Page 15: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

3. Single Server Queue

15

Page 16: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

16

i.e. which are event averages (vs time averages ?)

Page 17: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

17

Page 18: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

18

Page 19: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

19

Page 20: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

2 4 6 8 10Requests per Second

0.5

1

1.5

2

2.5

Mean Response Time in seconds

Non Linearity of Response Time

20

Page 21: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Impact of Variability

21

0.2 0.4 0.6 0.8Utilization

2

4

6

8

10

12

14

Mean Response Time

Page 22: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Optimal SharingCompare the two in terms of

Response time

Capacity

22

Page 23: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

The Processor Sharing Queue

Models: processors, network links

Insensitivity: whatever the service requirements:

Egalitarian

23

Page 24: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

PS versus FIFO

PS FIFO

24

Page 25: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

4. A Case Study

Impact of capacity increase ?

Optimal Capacity ?

25

Page 26: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Methodology

26

Page 27: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

4.1. Deterministic Analysis

27

Page 28: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Deterministic Analysis

28

Page 29: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

4.2 Single Queue Analysis

29

Assume no feedback loop:

Page 30: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

4.3 Operational AnalysisA refined model, with circulating users

Apply Bottleneck Analysis ( = Operational Analysis )

30

Z/(N-1)

-Z

1/c

waiting time

Page 31: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

31

Page 32: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

32

Page 33: Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Conclusions

Queuing is essential in communication and information systems

M/M/1, M/GI/1, M/G/1/PS and variants have closed forms

Bottleneck analysis and worst case analysis are usually very simple and often give good insights

… it remains to see queuing networks

33