






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Many assumptions are not always true, but queuing theory gives good results anyway
S
Tq
a = 1 / λ
Exponential Distribution
0
1
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
If customers are arriving at the exponentially distributed rate λ, then the probability that there will be k customers after time t is:
t
k
k e k
t P t
= !
( ) ( )
0 ≤ ρ ≤ 1
It is important that the units of both the arrival rate and the service time be identical. It may be necessary to convert these values to common units.
Q = λ * Tq
W = λ * Tw
Tq
ρ
ρ
1 ρ ρ
2
0
2
4
6
8
10
12
14
16
18
20
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Utilization
Tq
Solution
S = 10 ms = 0.01 sec / request
λ = 117,000 request / (30 min * 60 sec/min) = 65 requests / sec
ρ = λ*s = 0.01 sec/request * 65 req/sec = 0.
ms
s TQ 28. 6 1 0. 65
1
= −
= −
=
The average length of the queue
2 2
ρ
ρ
ρ
ρ
Tq^ ρ ρ
ρ
2
2 ( 1 )
2
−
W =
The average time spent in the queue, Tw.
The transmission line.
Packets (not bits or bytes)
M/D/
M/D/1 Solution
7
6 −
−
Tw
S
S
S
ρ = λ s / N
This is the average utilization for all N servers.
∑
∑
=
−
N
i i
s
N
i i
s
i
i
K
0!
( )
1
0!
( )
λ
λ
The probability that all servers are busy is
N
sK
K C λ −
1
1
This is the probability that a new customer will have to wait in the queue.
s N
Cs Tq + −
= ( 1 ρ )
Q C λ s ρ
ρ
( 1 − ρ)
= N
Cs Tw ρ
ρ
note: ρ = λ s / N
λ
λ/
λ/
λ λ
The time through the system is the sum of the time through each queuing component.
Computer (^) 12 ms Router (^) 7 ms Server
40 pkt/sec (^) 100 pkt/sec
Multiple Queue Solution
Sum of Tq for both networks
The computer transmitter and the router
Packets
both M/M/1 queues
λ λ
λ
λ
Net Disk 2 λ