Queueing Systems: Learning Objectives
Queueing Systems: Learning Objectives
Queueing systems
Learning objectives :
Little's law
Impact of the randomness on performances of queueing systems
Product-form solutions
Textbook :
C. Cassandras and S. Lafortune, Introduction to Discrete Event
Systems, Springer, 2007
S.M. Ross, Stochastic Process, John Wiley & Sons 1
Plan
• Introduction
• Classification of queueing systems
• Little's law
• Single stage queuing systems
• Queuing networks
2
Introduction
3
Definition of a queueing system
Departure of
Customer
served customers
arrivals
Departure of impatient
customers
4
History of queueing theory
6
Classification of queueing
systems
7
Characteristics of simple queueing systems
8
Notation of Kendall
T/X/C/K/P/Z with
9
Customer arrival process
T/X/C/K/P/Z
• If the arrivals are grouped in lots, we use the notation T[X] where X is the
random variable indicating the number of customers at each arrival epoch
– P{X=k} = P{k customers arrive at the same time}
11
Number of servers
T/X/C/K/P/Z
12
Queue capacity
T/X/C/K/P/Z
Loss of customers if
the queue is full
Capacity K
13
Size of the population
T/X/C/K/P/Z
14
Service discipline
T/X/C/K/P/Z
15
The concept of customer classes
16
Simplified notation
17
Ergodicity
1 unit reward
4 5
2
20
Some transient performances
THe(T) THs(T)
L(T)
W(T)
• A(T) : number of customers arrived from 0 to T
• D(T) : number of departures between 0 to T
• THe(T) = A(T)/T : average arrival rate between 0 to T
• THs(T) = D(T)/T : average departure rate between 0 to T
• L(T) : average number of customers between 0 to T
• Wk: sojourn time of k-th customer in the system
• 1
AT
W T
A T k 1
Wk average sojourn time between 0 to T
21
Stability of the queueing system
THe(T) THs(T)
Queueing
system
D T
lim 1
T A T
22
Little's law
L = TH×W
where
• L : average number of customers in the system
• W : average response time
• TH : average throughput rate
Queueing system
TH TH
L
W 23
Proof
Nb in system
A1 A2 A3 A4 A5 A6
W1
W2
W3
W4
e(T)
0 Time
D1 D2 T D3 D4
24
Proof
1 AT D T D T 1 A T
R T TH T
Rk
T Rk
A T k 1 T A T k 1
AT A T
AT
1 1 1
1 k still there at t dt rk T
T
T k 1
Rk
T k 1
t 0 T k AT N T 1
1
Q T e T
T
where N(T) is the number of customers at time T, e(T) total
remaining system time of customers present at time T.
26
M/M/1 queue
l
Poisson
arrivals
Exponentially
distributed service tim
27
Stability condition of M/M/1 queue
28
Markov chain of the M/M/1 queue
Let
n lim P N t n, n 0
t
29
Steady state distribution of M/M/1 queue
state 0 : 1m 0 l
state 0-1: 2 m 1l
Balance equations
state 0-1-...-n: n 1 m n l
Normalization equations: n 1
n=0
With r l/m,
0 1 r
n = rn 0
30
Performance measures of M/M/1 queue
(online proof and figures)
31
M/M/C queue
Exponentially distributed
service tim
l
Poisson
N(t) : number of customers
arrivals
in the system
32
Steady state distribution of M/M/C queue
Distribution :
r l/m
n = rn/n! 0, 0 < n C
n
r
n C C , n 0
C
1
C 1 r n rC
0
n 0 n! C !1 r C
m m m m
0 1 2 3
l l l l
U = Waiting probability
= C + C+1 + ...
= C/(1-r/C)
34
M/M/C with impatient customers i.e. M/M/C/C
m m
0 1 2
l l
35
M/M/C with impatient customers i.e. M/M/C/C
Steady state distribution :
r l/m
Pn = rn/n! P0, 0 < n C
1
C rn
P0
n 0 n!
Service time Ts
Poisson arrival
37
M/G/1 queue
38
M/G/1 queue: an embeded Markov chain
4 arrivals
40
G/G/1 queue
41
G/G/1 queue
E W
2
A T r
2
1
2 1 r m
Varability Utilization Time
42
Queueing networks
43
Definition of queueing networks
44
Example of deterministic routing
45
Open network or closed network
Open network
N customers
Closed network 46
Multi-class network
47
A production line
Raw Finished
parts parts
48
Open Jackson Network
49
Open Jackson Network
routing
50
Open Jackson Network
stability condition
51
Open Jackson Network
arrival rate at each station
Example: ???
52
Open Jackson Network
Are arrivals to stations Poisson?
as the departure
process of
M/M/1 queue
is Poisson.
Feedback
keeps
memory.
53
Open Jackson Network
State of the queueing network
i-th position
54
Open Jackson Network
Underlying Markov Chain
mi
i
56
Open Jackson Network
Performance measures
TH i li
ri
Performance measures Lsi
of each M/M/1 queue 1 ri
ri
Wsi
mi 1 ri
TH l
M
M
Ls
Ws ei Wsi
i 1 TH
57
Open Jackson Network
Extension to multi-server stations
58
Open Jackson Network
Proof of the product form solution
As a result,
• l=0
M
• p
j 1
ij 1, i 1,..., M
• n t N , t 0
i 1
i
62
Closed Queuing Network
Arrival rates
63
Closed Queuing Network
Product form solution
Product form solution of Gordon and Newell (1967)
1
n1 , n2 ,..., nM r1n1 r 2n2 ...r MnM
where CN
65
Closed Queuing Network
Computation of the normalization constant C(N)
CN
i
k 1
66
Closed Queuing Network
Mean Value Analysis (MVA)
• Suppose we are only interested in throughput THi and mean number of
customers at station i Li (i.e. Lsi)and mean system time Wi (i.e. Wsi)
• The MVA method of Reiser and Lavenberg (1980) bypasses te
computation of C(N).
• It relies on the following simple relations :
1 1
Wi Li
mi mi
TH i aN li
where
Wi is the average system time experienced by a customer arriving at i
Li is the average queue length seen by a customer arriving at i
li is any solution of the flow balance equation
aN is the missing factor.
67
Closed Queuing Network
Mean Value Analysis (MVA)
• It can be shown that Li is the same as the average queue length at i in a
network with (N-1) customers.
• Let Li(N), THi(N), Wi(N) be the queue length, the throughput and the
system time of a network with N customers.
• The following system can be iteratively solved to obtain the results:
Wi N 1 Li N 1 , i 1,..., M , N
1
1
mi
(2) Li 0 0, i 1,..., M
N
(3) N Li N , N
i 1
p m2
m1
1-p m3
p = 0.5, m1 = 4, m2 = 1, m3 = 2
N= 2, 3, 4
69