Queueing Theory: Frank Y. S. Lin
Queueing Theory: Frank Y. S. Lin
Queueing Theory: Frank Y. S. Lin
Frank Y. S. Lin
Information Management Dept.
National Taiwan University
yslin@im.ntu.edu.tw
1
References
Agenda
Introduction
Stochastic Process
General Concepts
M/M/1 Model
M/M/1/K Model
Discouraged Arrivals
M/M/ and M/M/m Models
M/M/m/m Model
3
Introduction
Queueing System
Performance Measurement
Delay Analysis
Network Delay =
Queueing Delay
+ Propagation Delay (depends on the distance)
+ Node Delay Processing Delay
(independent of packet length,
e.g. header CRC check)
Adapter Delay (constant)
Probability distribution
Patient / impatient (balked) arrival
Stationary / nonstationary
Service Patterns
Probability distribution
State dependent / independent service
Stationary / nonstationary
8
Queueing Disciplines
System Capacity
Stages of Service
10
Notation
11
Notation (contd)
12
Stochastic Process
13
Stochastic Process
15
16
General Concepts
17
Continuous-time Memoryless
Property
If X ~Exp(), for any a,b > 0,
P[X > a + b | X > a] = P[X > b]
Proof:
P[X > a + b | X > a]
P[ X a b I X a ]
P X a
P X a b
P X a
1 Fx a b
1 Fx a
X a b X a
e ( a b )
a e b P ( X b)
e
18
i 0
(i j )
i 0
(i j )
Pj Pij Pi Pij
rate out of state j = rate into state j
19
P P P P
j 0
( js )
i 0
( is )
ij
i 0
( is )
j 0
( js )
ij
20
Notation:
P
k 0
Consider state k:
rate in rate out
k-1
Pk k Pk 1 k 1
Pk 1 k Pk
k 1
k 1
Pk
Pk 1
k
k-1
k+1
k+1
.
.
k 1 k 2
0
Pk .
P0
k k 1
1
i
P0
i 0 i 1
k 1
22
P
k 0
i
P0 1
k 0 i 0 i 1
k 1
P0
N
Pk k , T
k 0
i
1
k 0 i 0 i 1
k 1
waiting time w T
23
Littles Result
Black box
Service time
Queueing time
System time T
24
M/M/1 Model
Single Server, Single Queue
(The Classical Queueing System)
25
M/M/1 Queue
p (t t0 ) e t dt 1 e t0
0
System utilization
S
rate in
27
pn 1 pn pn
n 1
p
p0
n 1
Since pi 1
i 0
n
p
1
p
0
0 1
n
i 0
i 0
n
p
,
p
(1 )
n
0
#
28
N k (1 ) k (1 ) k k
(1 ) d k / d
d
(1 ) k
d
d 1
(1 )
1
N
29
1
1 1/
1
#
k
(1 ) (1 )
k
1
i k
30
M/M/1/K Model
Single Server, Finite Storage
31
M/M/1/K Model
if k < K
0
if k K
k =
32
Pk P0 P0
i 0
Pk 0
k 1
P0
k 1
kK
kK
1 ( / )
0
1 /
1 ( / ) K 1
0k K
otherwise
33
Discouraged Arrivals
34
Discouraged Arrivals
k
k 1
k
35
k!
i 0
P0
k 1
1 /
k!
k 1
k
N
Pk
e
k!
k 1
36
e
k!
k 0
k 0 k 1
1 e ( / )
(Q , 1 P0 )
N
/
T
(1 e / )
37
M/M/ Queue
39
( / ) k /
Pk P0
e
k!
i 0 (i 1)
k 1
1
T
(Littles Result)
40
M/M/m Queue
/n
41
k =
k = k
if k m
m if k > m
For k m
For k > m
pk p0
pk p0
2 k
2 n
k 1
p0 ( )
k!
k 1 1 k n
p0
( )
( )
n
n! n
42
p
i 0
p0
1
n 1
(np) k ( np) n 1
pi
k!
n ! (1 )
k 0
where
P[queueing] =
k m
1
(/ ) n
p0
2
(n 1)!(n )
43
Comparisons (contd)
44
Comparisons (contd)
45
Comparisons (contd)
1/ n 1/ n
T2
n 1
1
n
T1
T2
n
46
M/M/m/m
Multiple Servers, No Storage
(m-Server Loss Systems)
47
M/M/m/m
48
M/M/m/m (contd)
1
P0 ( / )
k!
if k m
if k m
Pk
1
P0 ( / )
k !
k 0
49
M/M/m/m (contd)
( / ) m / m !
m
k
(
)
/ k!
k 0
50