Академический Документы
Профессиональный Документы
Культура Документы
and others
Telephone Line Problem
∑ n ∑
n =0
0
n =1 n!
N
ρ n −1
= ρp0 ∑
n =1 ( n − 1)!
N ρn ρN
= ρp0 ∑ −
n =0 n! N !
= ρ (1 − PB )
Telephone Line Problem
• We would generally expect to be
designing systems where PB is low, so
E(n) ≈ ρ
• The average number of calls put
through per unit time, is
N N
γ = ∑ µ n pn = ∑ nµpn = µE (n)
n =0 n =0
= λ (1 − PB )
Design Problem
• You have 1,000 incoming telephone lines,
and over an eight hour period, each
subscriber makes four phone calls, on the
average. The phone calls average five
minutes in length. How many outgoing lines
must you provide to give a blocking
probability of (a) 10% (b) 1%? How many
calls would be in progress on the average?
Design Problem
∀ λ = 1000x4/(8x60) = 8.33 calls per
minute
∀ µ = 1/5 = 0.2 calls per minute
∀ ρ = λ /µ = 8.33/0.2 = 41.67
• Blocking probability P = ρ N
ρn
B N
N !∑
n = 0 n!
Design Problem
• After a spreadsheet calculation, we
find that we need at least 43 servers
to give less than a 10% chance of
blocking, and at least 55 servers to
give less than a 1% chance of blocking
• The corresponding calls in progress is
37.7 for 43 servers and 41.3 for 55
servers
M/G/1 Queue
• A memoryless, Poisson process always
gives an exponential distribution for
inter-arrival or inter-service times
• However there are cases where the
service process times are not
exponentially distributed
• For example …
M/G/1 Queue
• For example, a packet switching
system may handle only two different
types of packet, one with 100 bytes,
and one with 2,000 bytes
• The big packets will take longer to
serve (transmit)
• This gives a dumbell distribution
M/G/1 Queue
F(t)
Service time, t
• Therefore we have
• p0 = 1 – ρ as before (M/M/1)
M/G/1 Queue
• For the next proof, we need some
intermediate results or definitions
• Firstly, the definition of the variance
2
( 2
) (
of ν isσ ν = E (υ − ρ ) = E υ − 2υ ρ+ ρ
2 2
)
= E (υ ) − 2 ρE (υ ) + ρ
2 2
= E (υ ) − 2 ρ + ρ
2 2 2
= E (υ ) − ρ
2 2
M/G/1 Queue
• Secondly, E(u2(n)) = E(u(n)) = E(ν ) = ρ
• Thirdly, we assume that ν j and nj-1 are
independent, so that E(ν jnj-1 ) = E(ν j)E(nj-
1) = ρ E(nj-1 )
σ υ2 = E ( (k − E (υ )) 2 ) = E ( (k − ρ ) 2 )
∞
= ∑ (k − ρ ) P (υ = k )
2
k =0
∞ ∞
= ∑ (k − ρ ) 2
∫ P (υ = k | τ ) fτ (τ )dτ
0
k =0
∞ ∞ (λ τ) k e −λ τ
= ∑ (k 2 − 2kρ + ρ 2 ) ∫ fτ (τ )dτ
k =0
0 k!
Queue Size (find σ ν
2
)
• We reverse the order of summation
and integration
∞
σ υ2 = ∫ e −λ τ∑
∞
( k (k − 1) + k − 2kρ + ρ )(λ τ)
2 k
fτ (τ )dτ
0
k =0 k!
∞ ∞
(λ τ) k − 2 ∞
(λ τ) k −1 ∞
(λ τ) k
=∫ e −λ τ
(λ τ) ∑
2
+ λ τ(1 − 2 ρ )∑ +ρ ∑
2
fτ (τ )dτ
k = 2 ( k − 2)! k =1 ( k − 1)! k!
0
k =0
= ∫ ( (λ τ) 2 + λ τ(1 − 2 ρ ) + ρ 2 ) fτ (τ )dτ
∞
0
Queue Size (find σ ν )
2
σ = λ E (τ ) + λ (1 − 2 ρ ) E (τ ) + ρ
2
υ
2 2 2
ρ
2
ρ
2
2
= λ σ + 2 + λ (1 − 2 ρ ) + ρ 2
λ λ
= ρ +λ σ
2 2
Queue Size
• We can now substitute back into the
formula for E(n), defining µ = λ /ρ
• We get
ρ ρ 2 2
E ( n) = 1 − (1 − µ σ )
1− ρ 2
• This formula gives expected queue
size in terms of server statistics
Queue Size
• This formula collapses to ρ /(1-ρ )
for the exponential service
distribution
• If we know exactly what the service
time will be (eg for ATM cells at a
switch), then σ 2 =ρ 0 and ρ
E ( n) = 1 −
1− ρ 2
Queue Size
• This is called a deterministic service
time, and the queue is then M/D/1
• This gives the lowest possible average
queue
• The higher the value of σ 2, the longer
the average queue will be
• The term 1/(1-ρ ) dominates for high ρ
Time Delay
• Average time delay can be found
using Little’s formula, so that
• E(T) = E(n)/λ
Problem
• Three queuing systems, with Poisson
arrivals, are alike, except that the
servicing distributions are (a) Poisson
(b) deterministic and (c) composed of
50% with a service time of 0.1, and
50% with a service time of 1.0.
Compare the average queue levels for
all cases when ρ = 0.5
Problem
• For case (c) the average service time
is 1.1/2 = 0.55. So µ = 1.81818
∀ σ 2 = 0.5(0.1 – 0.55)2 + 0.5(1.0 – 0.55)2
• = 0.2025
• From the formula
• E(n)=(0.5/0.5)(1–0.25(1-1.82x0.2025))
= 1.083
Problem
• For case (a) E(n) = 0.5/0.5 = 1
• For case (b) E(n) = 0.5/0.5x(1-0.5/2)
= 0.75
• The distribution of case (c) gives a
high variance, and this results in a
larger average queue
Tutorial Problems