Docsity

M/M/1 Queue Theory: Interarrival, Service Times, Distributions, and Stationary State, Study notes of Statistics

Toggle sidebar
bg1
1
M/M/1 Queue, Basic Theory
1/17/05
Arrival Process: Poisson process with rate a
λ
. Arrival times 12
, ,...AA . Thus, the inter-
arrival times 2132
, ,...AAAA−− are iid Exponential (written Expl( a
λ
)), having density
() t
f
te
λ
λλ
−
=.
Service Times: Service times are iid Expl(
s
λ
) with
s
a
λ
λ
>. [This implies the process is
stable.] Consequently, the mean inter-arrival and service times satisfy
11
as
as
µµ
λ
>. There is (only) one server. Let 12
, ,...SS denote the lengths of the
successive service times.
Queue protocol: FIFO.
Departure process: Let 12
, ,...DD denote the successive times of the departures from
service. Since there is only one server and the protocol is FIFO the k-th ordered arrival
time, k
A, and the k-th ordered departure time, k
D, correspond to the same customer (the
k-th). [For queues with more than one server this need not happen.]
Queue and Service counts: Let
(
)
(
)
,st qt denote the number of customers in service and
in the queue at time t+, the instant just after time t. (Because of this,
(
)()
,st qt are left
continuous.) Note that
()
0 or 1st= since there is only one server, and
() ()
01qt st>⇒ =. Both these variables are recoverable from the system occupancy
count,
() () ()
wt st qt+. [This is true in any G/G/n queue.]
Facts about the exponential distribution: Let X, Y be independent exponentially
distributed variables with rates ,
λ
η
respectively. Then
(1)
()
(
)
,~XY MinXY Expl
λ
η
∧+,
(2)
()
PX Y X
λ
λ
η
∧= =+
(2′) and the event
X
YX∧= is independent of the value of
X
Y
∧
,
(3) SXY+ has density
()
()
2
if
[(2,)]if
ss
S
s
ee
fs
se
λη
λ
λη
λ
η
ηλ
λ
λλη
−−
−
⎧−≠
⎪−
=⎨
⎪Γ=
⎩
.
I’ll denote the density in (3) as ExplSum( ,
λ
η
). Note that for this density
()
ES
λ
η
=+
since SXY+
.
pf3

Partial preview of the text

Download M/M/1 Queue Theory: Interarrival, Service Times, Distributions, and Stationary State and more Study notes Statistics in PDF only on Docsity!

M/M/1 Queue, Basic Theory 1/17/

Arrival Process: Poisson process with rate λ a. Arrival times A 1 , A 2 ,.... Thus, the inter-

arrival times A 2 − A 1 , A 3 − A 2 ,...are iid Exponential ( written Expl( λ a )), having density

f λ( ) t = λ e −^ λ t.

Service Times: Service times are iid Expl( λ s ) with λ s > λ a. [This implies the process is

stable.] Consequently, the mean inter-arrival and service times satisfy (^1) a s 1 a s

λ ^ μ^ >μ ^ λ. There is (only) one server. Let^ S^1^^ ,^ S^2^ ,...denote the lengths of the

successive service times.

Queue protocol: FIFO.

Departure process: Let D 1 (^) , D 2 ,...denote the successive times of the departures from service. Since there is only one server and the protocol is FIFO the k -th ordered arrival time, Ak , and the k -th ordered departure time, Dk , correspond to the same customer (the k -th). [For queues with more than one server this need not happen.]

Queue and Service counts: Let s t ( ) , q t ( ) denote the number of customers in service and

in the queue at time t +^ , the instant just after time t. (Because of this, s t ( ) , q t ( ) are left

continuous.) Note that s t ( ) = 0 or 1since there is only one server, and

q t ( ) > 0 ⇒ s t ( )= 1. Both these variables are recoverable from the system occupancy

count, w t ( )  s t ( ) + q t ( ). [This is true in any G/G/n queue.]

Facts about the exponential distribution: Let X, Y be independent exponentially

distributed variables with rates λ ,η respectively. Then

(1) X ∧ Y  Min (^) ( X Y , (^) ) ~ Expl ( λ +η),

(2) P (^) ( X Y X )^ λ

(2′) and the event X ∧ Y = X is independent of the value of X ∧ Y , (3) S  X + Y has density

( ) ( ) 2

if [ (2, )] if

s s S s

e e f s se

λ η λ

− − −

= ⎨⎪^ −

I’ll denote the density in (3) as ExplSum( λ ,η ). Note that for this density E S ( )= λ +η

since S  X + Y.

Conditional Inter-departure distribution:

w D ( i − 1 ) = 0 ⇒ Di − Di − 1 ∼ ExplSum ( λ a ,λ s )

w D ( i − 1 ) > 0 ⇒ Di − Di − 1 ∼ Expl ( λ s ).

These inter-departure times are independent of the value of Di (^) − 1. We thus have

E D ( i − Di − 1 w D ( i − 1 )= 0 ) = μ 0 , E D ( i − Di − 1 w D ( i − 1 )≠ 0 )= μ 1

where

0 1

a s s

Prob of empty queue: View the process up to the n-th departure time, given the starting

value of w ( 0 ). As a convention, let D 0  0. Then

1 1

1 1 ( (^) i ) 0 ( (^) i ) 0 n i i i i w D w D

D D D D D

− −

− − = ≠

Hence

(5) E D ( n ) = μ 0 ⋅ E ( #{ D i − 1 : Di − 1 = 0 } ) + μ 1 ⋅ E ( # { Di − 1 : Di − 1 ≠ 0 }).

Let

(6) P 0 [ n ] P w D ( ( i − 1 )= 0 : i =1,..., n ), P 0  lim n →∞ P 0 [^ n ].

[ P 0 exists and does not depend on the value of w ( 0 ).]

By definition, E ( An n ) = 1 λ a = μ a. As in the reasoning leading to Little’s Law

stability of the process then implies E D ( n n ) → 1 λ a = μ a. Then, (5) yields

( 0 0 [ ]^1 (^0 [^ ]))

(^1) n (^) 1 n (^) n a

E P P E D

n n

This, together with (6), implies

(7) 0 1 s^ 1 a a s

P^ μ^ λ

One can also ask about P 0 ∗^ where

P 0 [ n ] P q ( ( Ai )= 0 : i =1,..., n ), P 0 ∗  lim n →∞ P 0 [^ n ].

This is important because the event q ( Ai ) = 0 is the event that the i -th customer goes

directly to service, without having to wait in queue. Now, the ( i -1)-st customer leaves an empty queue behind if and only if the i -th customer arrives to an empty system. We thus get immediately from (7) that

(7′) 0 1 s^ 1 a a s

P^ μ^ λ

since w A ( i ) = 0 if and only if q D ( i − 1 )= 0.

Corollary: Formula (7) (and (7′)) is also valid for an M/G/1 queue. [Why?] It is not necessarily valid for a G/G/1 queue (or even a G/M/1 queue). [Why not?]