Title: Queuing Theory
1Queuing Theory
- for those who cannot wait
2All 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
31 Deterministic Queuing
- Easy but powerful
- Applies to deterministic and transient analysis
- Example playback buffer sizing
4Use of Cumulative Functions
5Solution of Playback Delay Pb
A.
62 Stochastic Queuing SystemsClassical Results
7i.e. which are event averages (vs time averages ?)
8(No Transcript)
9(No Transcript)
10(No Transcript)
11Non Linearity of Response Time
12Impact of Variability
13Optimal Sharing
- Compare the two in terms of
- Response time
- Capacity
145.3 Operational Laws5.3.1 Littles Law
15Idea of Proof
- Consider a simulation where you measure R and N.
You use two counters responseTimeCtr and
queueLengthCtr. At end of simulation, estimate
R responseTimeCtr / NbCust N
queueLengthCtr / Twhere NbCust number of
customers served and Tsimulation duration - Both responseTimeCtr0 and queueLengthCtr0
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 thusN R . NbCust/T now NbCust/T is
our estimator of ?
16Other Operational Laws
17The Interactive User Model
184.2 Network Laws
194.3 Bottleneck Analysis
- Apply the following two bounds
-
-
(1)
(2)
17
20Throughput Bounds
21Bottlenecks
A
22Case Study
- What is the impact on waiting time when capacity
is doubled ?
23Application of Methodology
24Queuing Model
25Load (1) Transient Analysis
dmax
customers
dmax/2
B
A(t)
b(t)2ct
b0(t)ct
time
26Load (2) Stationary Analysis
27Load (2) Stationary AnalysisA Refined Model,
with feedback loop
- Reduction of waiting time increases throughput
- A better model
c
Z
28Bottleneck Analysis
29(No Transcript)
30- We also see that a key value isGive an
interpretation for c - The system should target c c
31Conclusion
- Queuing is essential in communication and
information systems - Bottleneck analysis and worst case analysis are
usually very simple and often give good insights - M/M/1, M/GI/1 and variants have closed forms