Capacity Analysis
Capacity Analysis
Arriving Departing
customers customers
A/ B / X /Y / Z
• Where:
A: customer arrival pattern (inter-`arrival time distribution)
• B: Service pattern (service time distribution)
• X: Number of parallel servers
• Y: System capacity
• Z: Queuing discipline
• For example, M/M/1//FCFS represents a queuing system whose customers
arrive according to a Poisson process and receive exponentially distributed
service times. The system has only one server, an infinite waiting queue, and
customers are served on a first-come-first-serve basis.
• In many cases, we only use the first three parameters, with the default values
for the last two parameters being Y= and Z=FCFS.
• For a stochastic process, if the time average is equal to the ensemble average,
we say the process is ergodic.
P X (t ) k
lt k lt
e
k!
Point events
Poisson point events
Time
0 t
Poisson A1
+ Poisson A
Poisson AN
E z A E z A z A z A .. z A
1 2 3 N
E z E z .....E z
A1 A2 AN
e l t (1 z ) .....e l
1 N
t (1 z )
e l l1 2 .. l N t (1 z )
e lt (1 z )
Pt t P0 (t ) e lt
P 0 arrivals in 0, t0 lt0 0 lt
e o
e lt o
0!
P arrival in t0 , t0 t / no arrivals in 0, t0
t0 t
lt
le dt
t0
e l t t e lt
0 0
e lt 0
e lt 0
1 e lt
• But the probability of an arrival in (0,t) is also given by:
P arrival in (0, t ) 1 P0 1 e lt
k-1 k k+1
lk l k 0,1,2,..
m k 0, k 0,1,2,..
• Assuming the initial condition is Po(0)=0, we have, from the above two
equations:
d
Pk (t ) lPk (t ) lPk 1 (t ) k 1
dt
d
P0 (t ) lP0 (t )
dt
P (t )
lt k lt
e
k
k!
N kPk
k
l m
• Since the birth rates and death rates are state-independent, we have:
lk l ; m k m
• Then the equations (known as GLOBAL BALANCE EQUATIONS) become:
l m Pk lPk 1 mPk 1
mP1 lP0
lPk mPk 1
• If we consider a barrier between states k-1 and k, we get the detailed balance
equations as:
lPk 1 mPk
• Sometimes it may be advantageous to work with detailed rather than global
(state-based) balance equations for the steady-state probabilities.
k 1 k 1 k 1
k n k n k 0 k 0
1 1 r n
PN n 1 r rn
1 r 1 r
P N n r n
k 0 k 0 k 0
r l
N
1 r m l
l l l l
0 k-1 k k+1 S
m m m
m
The M/M/1/S Transition-rate diagram
• The truncation will affect queuing results. Using the normalization equation,
but summing only to S, we have:
S 1 r
P0 r k 1 P0
k 0 1 r S 1
Pk
1 r r k
1 r S 1
Pb Ps
1 r r S
1 r S 1
• Average number of customers in the system:
S S 1 r 1 r S
N kPk
S 1
kr k
r kr k 1
S 1
k 0 k 0 1 r 1 r k 0
r r
N S 1Ps
1 r 1 r
l
m servers
l l l l l
0 1 2 m k
m 2m mm mm mm
M/M/m transition-rates diagram
l l l
Pk Pk 1 Pk 2
km km
( k 1) m
ak
Pk P0 , k m
k!
Elementary Queueing Capacity Analysis 31
Theory
QUEUEING SYSTEMS
• MULTI-SERVER SYSTEMS – M/M/m
• For km, we have:
k m k m
l l 1 ak m am
Pk Pk 1 Pm k m P0
mm m m m m!
ak
Pk P0
m!m k m
• Using the normalization condition, where sum of Pk=1, we get:
m 1a k ak 1
P0 k m
1
k 0 k ! k m m! m
1
P0
m 1a k am
k! m!1 r
k 0
r
N lT Pd mr
1 r
P0
1
Pk
a k / k!
m ak m ak
k! k!
k 0 k 0
1
T
m
l ( M k ) 0 k M
lk
0 kM
m k m , k 1,2,3,..
Ml (M-1)l 2l l
0 1 2 M-2 M-1 M
m m m m
l ( M k ) 0 k K 1
lk
0 else
km 0 k m
mk
mm k m
m 2m m1m mm mm mm
l M i
k
k 1
li k 1
l M
pk po po po , 0 k m 1
i 0 m i 1 i 0 i 1m m k
• For the region m≤k≤K, we have:
li
m 1 k 1
l M i k 1 l M i
p k po po
i 0 m i 1 i 0
i 1 m i m mm
k
l M k! m k
po m , m k K
m k m!
Elementary Queueing Capacity Analysis 43
Theory
QUEUEING SYSTEMS
• FINITE CUSTOMER POPULATION, m-SERVER,
FINITE STORAGE: M/M/m/K/M QUEUE
• In the case of a pure-loss system (that is, M≥K=m), the stationary
state probabilities are given by:
k
M l
k m
pk i
, k 0,1,2,..., m
m
M l
i 0 i m