Poisson Processes, Markov Chains and M/M/1 Queues: Advanced Communication Networks
Poisson Processes, Markov Chains and M/M/1 Queues: Advanced Communication Networks
Poisson Processes, Markov Chains and M/M/1 Queues: Advanced Communication Networks
Examples
M/M/m
Lecture 5
Review
Examples
M/M/m
M/M/1 Analysis
Look at discrete times With high prob., only one arrival or departure Discrete-time Markov chain
1 0 1 2 3 1 1 1
Review
Examples
M/M/m
Analysis Contd..
Steady state prob.s {pn } Balance equations pn = pn1 pn = pn1 =
n
p0 = n p0
pn = 1 p0 = 1
n
pn = (1 )n
Stability of system: <
Review
Examples
M/M/m
N=
n =0
npn =
n =0
nn (1 )
Review
Examples
M/M/m
100 90 80 70 60
NQ = W =
2 1
Review
Examples
M/M/m
sec
=1
NQ = 0 < 1. M/M/1: queue size, delay blows up for near 1 Intuition: Variability causes performance loss
Review
Examples
M/M/m
M/M/1 queue: Arrival rate and Service time is doubled What happens to delay? N?
T reduces by
1 2
Review
Examples
M/M/m
T old
T new
Review
Examples
M/M/m
Example 2
Statistical Multiplexing
/M
TDM
/M
/M
/M
/M
/M
TTDM =
Review
Examples
M/M/m
Var (N ) =
n =0
n (1 ) n2 (1 )2
Review
Examples
M/M/m
PASTA property
Interested in state of system just before packet arrives Eg: to calculate Blocking probability Steady-state prob. arriving packet sees in the system
t
Isnt this same as pn ? Not necessary Eg: D/D/1 system, < Above prob. is zero, but no steady-state exists
Review
Examples
M/M/m
The two quantities are equal PASTA Proof an = P{ N (t ) = n| arrival @t + } = P{ N (t ) = n| A(t , t + )} P ( A(t , t + )| N (t ) = n) P (N (t ) = n) (t )=n,A(t ,t + )) = P( N P = (A(t ,t + )) P (A(t , t + ))
But A(t , t + ) ind. of N (t ) = n an (t ) = P (N (t ) = n) Holds for broad class of queuing systems w/ Poisson arrivals, ind service distribution (Memoryless property)
Review
Examples
M/M/m
Review
Examples
M/M/m
m servers in system
Given 2 packets in service, Prob of departure = Prob(1st packet departs) + Prob(2nd packet departs)
Review
Examples
M/M/m
M/M/m analysis
Balance equations
p0
m
nm n>m
1 m!
p0
Review
Examples
M/M/m
pn =
If stable: pn = 1 Stability condition: =
n =0
1 n n! (m) p0 m m n m!
nm n > m,
<1
m 1
p0 =
n =0
Review
Examples
M/M/m
Erlang C formula
What is the prob arriving packet has to wait for service? Same as prob that servers are busy (Follows from PASTA property)
PQ = Pr(Queuing) = Pr(N m)
=
n =m
pn = p0
(m)m m!(1 )
Widely used in telephony Model for Blocked delay calls Formula also hold for M/G/1 systems (Invariance property)