Queueingtheory
Queueingtheory
Queueing
Theory
Motivation
(lt) -lt
n
Pn (t ) = e (1)
n!
Poissons Law in Physics
radio active decay
P[k alpha particles in t seconds]
l= avg # of prtcls per second
Poissons Law in Operations
Research
planning switchboard sizes
P[k calls in t seconds]
l=avg number of calls per sec
Poissons Law in Biology
water pollution monitoring
P[k coliform bacteria in 1000
CCs]
l=avg # of coliform bacteria per
cc
Poissons Law in Transportation
planning size of highway
tolls
P[k autos in t minutes]
l=avg# of autos per minute
Poissons Law in Optics
in designing an optical
recvr
P[k photons per sec over the
surface of area A]
l=avg# of photons per second
per unit area
Poissons Law in
Communications
in designing a fiber optic xmit-
rcvr link
P[k photoelectrons generated at
the rcvr in one second]
l =avg # of photoelectrons per sec.
l - Rate parameter
l =event per unit interval (time
distance volume...)
Analysis
Depend on the condition:
l = interarrival rate = 10 cust. per min
n = the number of customers = 100
we should get 100 custs in 10
minutes (max prob).
To obtain numbers with
a Poisson pdf, you can
write a program:
Acceptance Rejection
Method
Prove:
Poisson arrivals gene-rate an
exponential interarrival pdf.
The M/M/1 queue in equilibrium
queue
server
State of the system:
There are 4 people in the system.
3 in the queue.
1 in the server.
Memory of M/M/1:
The amount of time the person in the
server has already spent being served is
independent of the probability of the
remaining service time.
Memoryless
lPo l P1 l P k -1 lP k
0 1 2 ... k-1 k k+1
P1 P 2 P k P k +1
Symbles:
3 lP0 = P1
lP0
3a P1 =
4 lP1 = P2
l P1
4a P2 =
by 3a
lP0
l 2
l P0
4 P2 = = P2 = 2
since
5 lP k = P k+1
then:
k
l P0 k
6 P k = k = P0
l
where = = traffic intensity < 1
since all prob. sum to one
6a k
P0 = 1 = P0 k
=1
k=0 k =0
k=0 1-
Suppose that it is right, cross multiply and
simplify:
k
- = 1
k
k=0 k=0
So k
- = =1
k 0
k=0 k =1
Q.E.D.
subst 7 into 6a
6a P0
k
=1
k =0
P0
7a =1 and
1-
7b P0 = 1-
=prob server is empty
subst into
k
l P0 k
Pk = k = P0
6
yields:
k
8 P k = (1- )
Mean value:
let N=mean number of custs in the
system
To compute the average (mean) value
use:
8a E[k ] = kPk
k= 0
Subst (8) into (8a)
k
8 P k = (1- )
8a E[k ] = kPk
k= 0
we obtain
8b E[k] = k(1- ) k
= (1- ) k k
k= 0 k=0
differentiate (7) wrt k
1
7 k
=
1-
k=0
we get
1 1
Dk = Dk
k
= k k -1
8c k=0 1 - k =0
=
(1 - ) 2
multiply both sides of (8c) by
8d k = (1 - )2
k
k=0
9a
the number of customers
9b
E(number of customers
in the queue)
Relationship of , N
80
60
40
20
rho
0 0.2 0.4 0.6 0.8 1
0
N / l 1/ 1
10 T= = = =
l 1- 1- - l
For example:
1 bird
= 0.1 bird / sec =
10 sec
= mean service rate
Result:
So the mean service-time is 10
seconds/bird =(1/ service rate)
1 1
T= = = 20 sec
- l 0.1- 0.05
st andard deviation
Cb =
mean