Basic Queueing Theory M/M/-/-Type Queues: A/B/C/D/E
Basic Queueing Theory M/M/-/-Type Queues: A/B/C/D/E
A/B/C/D/E
1
Kendall’s Notation for Queues A/B/C/D/E
M exponential
A Inter-arrival time distribution D deterministic
B Service time distribution Ek Erlangian (order k)
G general
C Number of servers
D Maximum number of jobs that can be there in the
system (waiting and in service)
Default ∞ for infinite number of waiting positions
E Queueing Discipline (FCFS, LCFS, SIRO etc.)
Default is FCFS
Little’s Result
N=λW (2.9)
Nq=λWq (2.10)
Jobs blocked and refused entry into the system will not be
counted in λ
2
Little’s Result
increments by
one
Time t
Little’s Result
Area(t )
Average Time W spent in system = lim t →∞
α (t )
Area (t ) α (t ) Area (t )
Average Number N in system = lim t → ∞ = lim t →∞
t t α (t )
α (t )
Since, λ = lim t → ∞ Therefore, N= λW
t
3
The PASTA “Poisson Arrivals See Time Averages”
Property
pk(t) =P{system is in state k at time t }
qk(t) =P{an arrival at time t finds the system in state k}
N(t) be the actual number in the system at time t
A(t, t+∆t) be the event of an arrival in the time interval (t, t+∆t)
Method 2: Directly write the flow balance equations for proper choice
of closed boundaries as illustrated in Section 2.2 and solve these along
with the normalization condition.
4
∞ ) Queue
M/M/1 (or M/M/1/∞
For ρ <1
λk = λ ∀k k
λ
p k = p0 = p0 ρ k
µk = 0 k =0 µ
=µ k = 1, 2, 3,....... p0 = (1 − ρ )
∞ ∞ Using
ρ N 1
N= ∑ ip =∑ iρ (1 − ρ ) = 1 − ρ
i =0
i
i =0
i W= =
λ µ (1 − ρ )
Little’s
Result
1 ρ ρ2 Using
Wq = W − = N q = λWq = Little’s
µ µ (1 − ρ ) (1 − ρ )
Result
µk = 0 k =0 λ
p0 = exp(− ) (2.15)
=µ k = 1, 2, 3,....... µ
∞
∞ λ
N= ∑
k =0
kpk =
λ
µ
λeff = ∑λ
k =0
k p k = µ 1 − exp(− )
µ
N λ
W= = Little’s Effective Arrival
λeff λ
µ 2 1 − exp(− ) Result Rate
µ
5
M/M/1/∞ Queue with Discouraged Arrivals
λk = λ ∀k µ k = kµ 0 ≤ k ≤ (m − 1)
= mµ k ≥m
ρk
For ρ = λ/µ < m pk = p0 for k≤m
k!
(2.16)
ρk
= p0 for k > m
Erlang’s m!m k −m
C-Formula −1
m −1 ρ k mρ m
p0 = ∑ +
k =0 k! m!(m − ρ )
(2.17)
∞
mρ m
P{queueing} = ∑
k =m
p k = C ( m , ρ ) = p0
m!( m − ρ )
(2.18)
6
M/M/m/m Queue (m server loss system, no waiting)
λk = λ k<m
=0 otherwise ( Blocking or Loss Condition )
µ k = kµ 0≤ k ≤m
=0 otherwise
ρk
pk = p0 for k≤m
For k! (2.19)
=0 otherwise
λ
ρ= <∞ 1
µ p0 = (2.20)
m
ρk
∑
k = 0 k!
ρm
B (m, ρ ) = p0 Erlang’s B-Formula (2.21)
m!
ρB (m − 1, ρ )
B(m, ρ ) = m
B(0, ρ ) = 1 ρB (m − 1, ρ )
(2.22)
1+
m
7
M/M/1/K Queue (single server queue with K-1 waiting
positions)
λk = λ k<K
=0 otherwise ( Blocking or Loss Condition )
µk = µ k≤K
=0 otherwise
K!
pk = p0 ρ k k=1,.….,K (2.25)
For ( K − k )!
λ 1
ρ= <∞ p0 = (2.26)
µ K
∑
K!
ρ k
k =0 ( K − k )!
8
∞ Queue
Delay Analysis for a FCFS M/M/1/∞
(Section 2.6.1)
W=Q+T W: Total Delay ( waiting time and service time) for an arrival
pdf fW(t), cdf FW(t), LW(s) = LT(fW(t)}
T: Service Time
µ
f T (t ) = µe − µ t FT (t ) = e − µ t LT ( s) =
(s + µ )
Since µ
LW ( s ) = LQ ( s) fW (t ) = f Q (t ) * [ µe − µt ] (2.30)
Q⊥T (s + µ )
Knowing the distribution of either W or Q, the distribution of the
other may be found
∫
= (1 − ρ ) + (1 − ρ ) ρ µe − µx ∑
n =1 (n − 1)!
dx (2.31)
0
t
∫
= (1 − ρ ) + (1 − ρ ) ρ µe − µx (1− ρ ) dx = (1 − ρ ) + ρ (1 − e − µt (1− ρ ) )
0
dFQ (t )
f Q (t ) = = δ (t )(1 − ρ ) + λ (1 − ρ )e − µt (1− ρ ) (2.32)
dt t
∫
fW (t ) = (1 − ρ ) µe − µt + λ (1 − ρ ) µ e − µ (1− ρ )( t − x ) e − µx dx = ( µ − λ ) e − ( µ − λ ) t
0
9
Departure of
customer of
interest
• PASTA applicable to this
Time spent in system by the
customer of interest queue
• N and NQ seen by an arrival
same as the time-averaged
values
Arrival of Arrivals coming while the
customer customer of interest is in the
of interest system
Arrival/Departure of Customer/Job of
Interest from a FCFS M/M/1Queue
Let
N* = Number in the system that a job will see left behind when it departs
pn*=P{N*=n} for N*=0, 1,....,∞
Departure of
customer of
interest
Time spent in system by the For a FCFS queue, number left
customer of interest
behind by a job will be equal
to the number arriving while it
is in the system.
Arrival of Arrivals coming while the
customer customer of interest is in the
of interest system
∞ ∞ ∞
(λt ) n −λt
G* ( z) = ∑
n=0
z n pn* = ∑ ∫
n=0
zn
n!
e fW (t )dt (2.36)
t =0
∞
∫
= e −λt (1− z ) f W (t ) dt = LW (λ − λz )
0
dG * ( z ) dLW (s ) (2.37)
E{N * } = = −λ = λW
dz z =1
ds s = 0
10
An important general observation can also be made along the lines
of Eq. (2.36).
G ( z ) = LT (λ − λz )
∝ Queue
Delay Analysis for the FCFS M/M/m/∝
(Section 2.6.2)
Using an approach similar to that used for the M/M/1 queue, we obtain
the following
mρ m µp0 ρ me − µ ( m − ρ ) t
f Q (t ) = 1 − p0 δ (t ) + u (t ) (2.34)
m!( m − ρ ) (m − 1)!
mρ m − µt µp0 ρ m [e − µ ( m − ρ )t − e − µt ]
fW (t ) = 1 − p0 µe − (2.35)
m!( m − ρ ) (m − 1)!(1 − m − ρ )
See Section 2.6.2 for the details and the intermediate steps
11