1
Intro to Queueing Theory
Little’s Law M/G/1 queue Conservation Law
M/G/1 queue (Simon S. Lam) 1
1/31/2017
Intro to Queueing Theory Littles Law M/G/1 queue Conservation Law - - PowerPoint PPT Presentation
Intro to Queueing Theory Littles Law M/G/1 queue Conservation Law M/G/1 queue (Simon S. Lam) 1 1/31/2017 1 Littles Law No assumptions applicable to any system L ttle s Law No assumptions applicable to any system whose
1
M/G/1 queue (Simon S. Lam) 1
1/31/2017
2
where N is number of departures
N
where N is number of departures where is duration of experiment
where is duration of experiment
2 M/G/1 queue (Simon S. Lam)
1/6/2017
3
3 M/G/1 queue (Simon S. Lam)
4
Consider 6 jobs that have gone through a system during the time interval [0, 15], where time is in seconds, as shown in the table:
Job Arrival Time Departure Time
shown in the table:
Job Arrival Time Departure Time 1 0.5 4.5 2 1.5 3.0 3 6.0 11.0
For the time duration [0, 15]: (a) calculate throughput rate;
4 7.0 14.0 5 8.5 10.0 6 12.0 13.0
( ) g p (b) plot number of jobs in the system as a function of time from 0 to 15 and calculate the average number over the duration [0, 15]; [ ] (c) calculate the average delay of the 6 jobs. Verify that Little's Law is satisfied by the results in (a) Verify that Little s Law is satisfied by the results in (a), (b), and (c).
M/G/1 queue (Simon S. Lam) 4
5
1
m i i
P i
=
2 2
1 i =
2 2
M/G/1 queue (Simon S. Lam) 5
6
X
X X
X X
∞
X
2 2 2
X
∞
M/G/1 queue (Simon S. Lam) 6
7
It is a counting process with independent increments.
t
λ
−
The above can be derived from the binomial
M/G/1 queue (Simon S. Lam) 7
n
→∞
8
Consider the random variable T which is the time
Probability distribution function of T is
t
λ −
Probability density function of T is
t
λ
−
M/G/1 queue (Simon S. Lam) 8
9
Pollaczek-Khinchin formula motivation for packet switching
9 M/G/1 queue (Simon S. Lam)
1/31/2017
10
(Note: For packets, service time is transmission time)
time is transmission time)
Conservation of flow ( , unbounded buffer)
λ µ <
f f w (
ff )
µ
1/31/2017 M/G/1 queue (Simon S. Lam) 10
11
work-conserving – it does not idle when there is work also work conserving
it does not idle when there is work, also no overhead, i.e., it performs 1 second of work per second
FCFS service
11 M/G/1 queue (Simon S. Lam)
12
2 2
3 3
2 1
2 2
2 3
1/31/2017 M/G/1 queue (Simon S. Lam)
12
13
2
n n
1 1
i i i i i
= =
2
2
i i i i
i i i
×
13 M/G/1 queue (Simon S. Lam)
14
2 2 2
2
2
2
1/31/2017 M/G/1 queue (Simon S. Lam) 14
15
1 0
1.0
2
1/31/2017 M/G/1 queue (Simon S. Lam) 15
16
2 2
2 2
2 2
µ
1 0
10µ
1/31/2017 M/G/1 queue (Simon S. Lam) 16
1.0
17
1/31/2017 M/G/1 queue (Simon S. Lam) 17
18
60 jobs/sec 100 jobs/sec 60 jobs/sec j 100 jobs/sec
120 jobs/sec 200 jobs/sec
1/31/2017 M/G/1 queue (Simon S. Lam) 18
19
1/31/2017 M/G/1 queue (Simon S. Lam) 19
20
2 / 2
1
i
n i
=
1 n i i
=
2 1
1 2 x
2 2
1 2 x
2 3
2 4
1 2 x
2 5
2 6
2
2 2
2
20 M/G/1 queue (Simon S. Lam)
21
2
2 2
x X
−
2 2
X
M/G/1 queue (Simon S. Lam) 21
22
M/G/1 queue (Simon S. Lam) 22
1/31/2017
23
3 3
2 1
1 2 x
2 2
1 2 x
2 3
1 2 x
2 2
2 2
23 M/G/1 queue (Simon S. Lam)
24
1 2
R
1 2
R
1 2
R 2 2 2 1 2
R
1 2
r r r R
2 2 2 2 2 1 1 1
2 2 2 2 2
R R R r r r r r S r r r r r
x x x x x U x x λ λ λ λ ρ ρ λ
= = =
= = = = =
2
where is mean residual service, is the fraction of time a class packet is in service, and is ave. residual service of the class pac 2
S r r
U r x r ρ ket found by arrival , p 2
r
x y
24 M/G/1 queue (Simon S. Lam)
25
q r
R R R
,
q r
, 1 1 1 R R R S q r r S r r r S r r r r r
= = =
2 2
S
M/G/1 queue (Simon S. Lam)
S FCFS
25
26
1
R S S r r r
=
R S S r r S FCFS
1
r
=
1
r
=
M/G/1 queue (Simon S. Lam) 26
27
M/G/1 queue (Simon S. Lam) 27