Case Study Solution - Network of Queues
Case Study Solution - Network of Queues
Processes
STA 3533
Module 6
Networks of Queues
Continue
Topics
Case Study Solution
Introduction to Queuing
Errors 0 1 3 1 0 4 0 1 0 0
Service time 1 6 21 6 1 21 1 6 1 1
10 20 30 40 50 60 70 80 90 100 110
TObservation = 100 msec
1 110
b. 100 10
N (t )dt
1
[1 6 10 20 3 12 1 10 20 3 2 6 1 1]
100
0.96
Introduction to Queuing
c.
Server is working during 65 msec = service times
proportion idle time = 1 – 65/100
= 0.35
Introduction to Queuing
Problem 2:
Three queues are arranged in the loop as shown below. Assume that
the mean service time in the queue i is mi = 1/ .
a. Suppose the queue has a single customer circulating in the loop. Find
the mean time E[T] it takes the customer to cycle around the loop.
Deduce from E[T] the mean arrival rate at each of the queues. Verify
that Little’s formula holds for these two quantities.
b. If there are N customers circulating in the loop, how are the mean
arrival rate and mean cycle time related?
Introduction to Queuing
Solution:
a. One customer no waiting
1
[T ] m1 m2 m3
m1 m2 m3
Little’s Formula
mi
[ N i ] mi %time customer in queue i
m1 m2 m3
3 3
mi
[ Ni ]
i 1 i 1 m1 m2 m3
1 one customer in system
Introduction to Queuing
b. Let [T] = mean cycle time per customer, then
Open Queuing Networks
The net arrival rate into the queue is = + p, that
is,
1 p
P[ N n] (1 ) n n 0,1,...
where / /(1 )
Open Queuing Networks
Example: New programs arrive at a CPU according to a Poisson
process of rate as shown in below fig. A program spends as
exponentially distributed execution time of mean 1/1 in the CPU.
At the end of this service time, the program execution is complete
with probability p or it requires retrieving additional information
from secondary storage with probability 1-p. Suppose that the
retrieval of information from secondary storage requires an
exponentially distributed amount of time with mean 1/2. Find the
mean time that each program spends in the system.
CPU
p
Close Queuing Networks
We now consider queuing networks that are identical to the
previously discussed Open Network except that the external
arrivals rates are zero and the networks always contain a fixed
number of customers I. We show that the steady state pmf for
such system is product from but that the states of the queues are
no longer independent.
The net arrival rate into the queue k is now given by
K
k j Pjk k 1,..., K
j 1 ……(1)
Note that these equations have the same from as the set of
equations that define the stationary pmf for a discrete-time
Markow chain with transition probabilities Pjk.
Close Queuing Networks
The only difference is that the sum of the k ‘s need not be
one. Thus the solution vector to eq. (1) must be
proportional to the stationary pmf j corresponding to
{Pjk} :
K
k ( I ) k , where k j Pjk
j 1 ……(2)
CPU
p
Close Queuing Networks
Solution: The stationary probabilities associated with equation (1) are
found by solving
1 p 1 2, 2 (1 p) 1, and 1 1 1
The stationary probabilities are then
1 1 p
1 and 2
2 p 2 p
And the arrival rates are
(I ) (1 p ) ( I )
1 ( I ) 1 and 2
2 p 2 p
Solution Continues…
Close Queuing Networks
The stationary pmf for the network is then
(1 1 ) 1i (1 2 ) 2I i
P[ N1 i, N 2 I i ] 0i I
S (I )
I
and S ( I ) (1 1 )(1 2 ) 1i 2I i
i 0
1 i
So P[ N1 i, N 2 I i] 0i I
1 I 1
1 1 2 2 1 2
where and 1 , 2
2 2 1 (1 p) 1 1 2
Solution Continues…
Close Queuing Networks
The rate at which programs are completed is pl1 . We find l1 from
the relation between server utilization and probability of an
empty system:
1 1
1 P[ N1 0]
1 1 I 1
which implies that
(1 I )
p1 p1
1 I 1