Professional Documents
Culture Documents
W.C.Chan
T.-C. LU
R.-J.Chen
2 Discrete-time M / G / I model
Abstract: The continuous-time MIGI1 queue with
vacations has been studied by many researchers. A discrete-time queueing system, such as an ATM
In the paper the authors report on an network, is characterised by time-slotted and
investigation of the discrete-time M/G/l queue synchronous services [7].The time axis is divided into
using Little's formula and conditional equal intervals, called slots. Arriving customers that
expectation. This direct approach can also be find the server busy wait in a queue. Servicing of
adopted to study the continuous-time case. customers is synchronised to start only at slot
boundaries.
We will use the following definition for the discrete-
time models. Departures take place only at slot bound-
1 Introduction aries. Without loss of generality, we normalise the
length of a slot to unit time. Slots are sequentially
Consider a discrete-time M/G/l queue in which the numbered in nonnegative integers so that thejth slot is
server begins a vacation of random length each time located in the time interval [i 1, j),where j = 1, 2, _ _ _ .
-
that the system becomes empty. If the server returns The two time points immediately before and after time
from a vacation to find one or more customers waiting, j are denoted j - and j. A customer completing service
'
the server works until the system empties, and then in slot j will leave the system at timej- and a customer
begins another vacation. If the server returns from a starting service in slot (j +1) will begin the service at
vacation to find no customers waiting, the server begins time j.
another vacation immediately. We assume that the The service times of customers are i.i.d. random vari-
lengths of vacations are independent and identically ables with probability density function
distributed (i.i.d.) random variables and are independ- pk = P{service time equals k slots} k 2I
ent of the arrival process as well as the service times of
customers. Now we define two discrete-time models for two differ-
The continuous-time model has been analysed in a ent memoryless arrival processes.
number of papers [l-61. A key result from these Dejhition I: Model A (bulk arrivals at slot boundaries)
analyses is that the number of customers present in the Bulk arrivals occur at slot boundaries with a Poisson
system at a random point in time in equilibrium is the distributed size of mean A customers, that is,
sum of two independent random variables: the number
of Poisson arrivals during a time interval of the f ( k ) = P{k customers arrive at a slot boundary}
residual vacation time, and the number of customers X"-X
__
- k = 0 , 1 , 2 , .. .
present at a random point in time in equilibrium in the
k!
corresponding standard MIGI1 queue.
The purpose of this paper is to present a discrete- Definition 2: Model B (exponential interarrival time)
time model using a simple and direct method. The Interarrival times are identical and exponentially dis-
Pollaczek-Khinchin (P-K) mean-value formula, either tributed with mean l / A slots. The probability density
in continuous-time or discrete-time models, can be function of the interarrival time is
derived using Little's formula and conditional
expectation. f(x) = Xe-'" 2 2 0
0 IEE, 1997 Equivalently the number of arrivals in a slot has the
IEE Proceedings online no. 19971225 same Poisson distribution as that of model A, How-
Paper first received 13th June 1996 and in revised form 21st February ever, customers in model B have to wait, on average,
1997 an additional half-slot more than that of customers in
W.C. Chan is with the Department of Electrical and Computer Engineer- model A.
ing, The University of Calgary, Alberta, Canada T2N IN4
R.J. Chen and T.C. Lu are with the Department of Computer Science Proposition 1: The mean service time of customers in
and Inlormation Engineering, National Chiao Tung University, Hsinchu. model B is a half-slot more than that of customers in
Taiwan model A.
222 IEE Proc.-Comput. Digit Tech., Vol. 144, No. 4, July 1997
3 Residual service time in discrete-time model Then
Consider the test customer in model A who arrives at a r j = P{R =j }
discrete-time MiGil queueing system and finds the
server busy. The time interval between the arrival
epoch of this test customer and the completion of the
service of the customer being served is known as the Prooj! Suppose that the special service time Y is exactly
residual service time R as shown in Fig. 1. k slots in length and that the arrival process is Poisson.
The arrival epoch of the test customer occurs at any
one of the k time points of Y with equal probability 1/
k. In other words, given that Y = k the conditional
R #
probability of R being exactlyj slots in length is
I , , , , , I , , ,
Y = the special service time within which the test cus- k=3+1 m1
tomer arrives; and
R = the residual service time.
By definition, P k = P { X = k } is the probability that X Applying the results of proposition 2 and proposition 3
equals exactly k slots in length. Now let we obtain the mean value of the residual time as fol-
4 k = P{Y = k } k = 0,1,. . . lows:
be the probability that Y equals exactly k slots in Theorem 1: The mean residual service time R A for
length. model A is given by
Proposition 2: Given { p k ) , the probability distribution
of Y can be expressed as
where ml, m2 are the first and second moments of X ,
respectively.
Proof: By definition, we write
where m1 is the first moment or mean of X , 00
k=O k=O
Thus
1
c=-
ml
where ml = XEo kpk, is the mean of X -ml
- m2
-
W%
~y-x,,q.j time
Suppose that at the end of each busy period, the
server goes on vacation for a random interval of time
with first moment vi and second moment v2. For com-
puter communication networks, vacations correspond
Fig.2 Waiting time for.the test customer
to transmissions of various kinds of control and
record-keeping packets when there is little traffic or
For the event B, we have the waiting time as shown when the transmit queue is empty.
in Fig. 2 and We shall derive an expression for the average waiting
E'[WIB] = E[R x + +
1 x2 + . .' + X v q / B ] time in the MIGIl queue with vacations. In this case
the second term on the right-hand side of eqn. 1 is no
+
= E [ R / B ] E [ X 1 X2 +
. . Xhr,iB] + + longer zero and is simply the delay caused by the resid-
+
= E[R/B] E[X/B]E[N,/B] ual vacation interval equal to (1 - p)v2/2v,. Now from
= E [ R / B+
eqns. 1 and 2 and theorem 2 we obtain
] E[X]E[1Vq]/p
= E [ R / B+
] E[W]
Thus we find
Solving for E[W yields the mean waiting time for
E[WIB]= E [ R / B ] E [ W ] + model B:
where X N q= 0 if Nq = 0 and
E [ X N , p ]= E [ X ]= 7x1 (5)
E[NIBl = E[N,lp = W W I / p This expression may be regarded as an extension of the
have been used. Note that X and B are independent Pollaczek-Khinchin formula (eqn. 3) for the mean
random variables. waiting time in the M/G/l queue in discrete time to the
For the event I, the waiting time becomes zero case with vacations.
because the arriving customer is served immediately.
Thus 5 Application
E[WII] = 0 Consider a polling system for transmission of cells
and hence the second term on the right-hand side of from several cell-based streams into a statistical multi-
eqn. 1 vanishes. Therefore, we obtain from eqn. 1 plexing system where the cell size for each stream is
constant. This situation arises often in multiaccess
E[WI = P(E[RIBl + E [ W channels.
or As a typical example, we consider a communication
224 IEE PIOC-Camput Dzgit Tech, Val 144, No 4 July 1997
channel that can be accessed by m spatially separated - mr
stations. These m stations are connected by cables in a
-
1 - ( m - 1)J-
unidirectional loop. Each station transmits the back- 1-P
A" Ad A0
dota flow
6 Discussion
J-Lv- Lid- L t a -
It is interesting to note that if model A is adopted, then
time
using similar arguments as in Section 4 would result in
Fig.3 Input packets for a single stream
the following expressions:
The Pollaczek-Khinchin formula in discrete time
Consider the network as an MiGI1 queue. The mean becomes
residual service time is given by
P -
E [ W ]= -RA
1-P
-
-
ml)
X(m2 -
2(1 - P )
The mean number of customers in the system is
where
The results of eqns. 6, 7 and 8 for model A correspond
to eqns. 3, 4 and 5 for model B, respectively.
and 7 Conclusions
226 IEE Proc.-Comput. Digit. Tech., Vol. 144, No. 4,July 1997