Professional Documents
Culture Documents
Acknowledgement: this lecture is partially based on the slides of Dr. Yannis A. Korilis.
Outline
Poisson process
Littles Theorem
Outline
Poisson process
Littles Theorem
Processing Delay
Queueing Delay
Transmission Delay
Time between receiving a packet and assigning the packet to an outgoing link queue
Time between transmitting the first and the last bit of the packet
Propagation Delay
Outline
Poisson process
Littles Theorem
Server(s)
Departures
Arrivals
Queued
In Service
Characteristics of a Queue
Buffer size b
Arrival process
Service statistics
Arrival Process
n +1
n 1
n
tn
n is a random variable
{ n , n 1} is a stochastic process
Service-Time Process
n +1
n 1
sn
t
{ s n , n 1} is a stochastic process
E[ sn ] = E [ s ] =
is called the service rate
Queue Descriptors
M: exponential distribution
G: general distribution
Outline
Poisson process
Littles Theorem
Exponential Distribution
Memoryless Property
Poisson Distribution
Poisson Process
Exponential Distribution
e x
f X ( x) =
0
if x 0
if x < 0
1 e x
FX ( x ) = P{ X x} =
0
if x 0
if x < 0
, Var( X ) =
Proof:
E[ X ] = x f X ( x ) dx = x e x dx =
= xe
x
0
E[ X ] = x e
2
+ e x dx =
2 x
0
dx = x e
Var( X ) = E[ X 2 ] ( E[ X ])2 =
+ 2 xe x dx =
1
E[ X ] =
Memoryless Property
e ( x +t )
= t = e x = P{ X > x}
e
Poisson Distribution
P{ X = k } = e
k
k!
, k = 0,1, 2,...
etc
Proof:
E[ X ] = kP{ X = k } = e
k =0
= e
j =0
j
j!
k =0
= e e =
E[ X ] = k P{ X = k } = e
2
k =0
k =0
= e ( j + 1)
j =0
k k ! = e ( k 1)!
k =0
j
j!
= je
j =0
k
k!
=e
k ( k 1)!
k =0
j
j!
+ e
Var( X ) = E[ X 2 ] ( E[ X ])2 = 2 + 2 =
j =0
j
j!
= 2 +
Sum S = X + X + ... + X
n
1
2
n
= 1 + 2 + ... + n
m
X
k=0
m
X
P fX1 = k; X2 = m kg
f 1 = kg
g P fX
f 2 = m kg
g
P fX
k=0
m
X
mk
k
e1 1 e2 2
=
k!
(m k)!
k=0
= e
(1 +2)
m
1 X
m!
k1mk
2
m! k=0 k!(m k)!
+ 2)m
= e
m!
Poisson with parameter = 1 + 2.
(1 +2) (1
=
p1 p2 e
k1
(k1 + k2)!
1
=
(p1)k1 (p2)k2 e(p1+p2)
k1 !k2!
k1
k2
p1 (p1 )
p2 (p2 )
e
= e
k1 !
k2 !
X1 and X2 are independent
k1
P fX1 = k1g = ep1 (pk 1!) , P fX2 = k2g = ep2 (pk 2!)
1
2
k2
n
P{ X = k } = p k (1 p )n k
k
Proof:
n
P{ X = k } = p k (1 p )n k
k
k
( n k + 1)...( n 1)n
=
1
k!
n n
( n k + 1)...( n 1)n
1
n
nk
n
e
1
n
n
1
1
n
n
P{ X = k }
e
n
k
k!
nk
Outline
Poisson process
Littles Theorem
A(t) is the number of events (arrivals) that have occurred from time 0 to
time t, when A(0)=0
A(t)-A(s) number of arrivals in interval (s, t]
P{ A(t + ) A(t ) = n} = e
( )n
, n = 0,1,...
n!
Interarrival-Time Statistics
P{ n s} = 1 e s , s 0
Proof:
p
p
1 + 2
1-p
2
(1-p)
Outline
Poisson process
Littles Theorem
Littles Theorem
T
N = T
t
Time Averages
Nt
t
Tt
1 t
= N ( s )ds
t 0
a (t )
=
t
1 a (t )
=
Ti
a (t ) i =1
(t )
=
t
Littles theorem:
N = lim N t
t
= lim t
t
T = lim Tt
t
= lim t
t
N=T
Applies to any queueing system
provided that:
(t)
N(t)
(t)
S (t ) = N ( s )ds
0
T1
T2
t
N
s
ds
=
N t = tTt
i
0
0
t
t (t )
i =1
t
(t )
(t)
Ti
(t)
T1
T2
(t ) T 1 t
(t ) T
Ti N ( s )ds Ti
N ( s )ds
0
(t )
t
t 0
t (t )
i =1
i =1
tTt N t tTt
(t )
(t )
(t)
(t)
pn (t ) = P{N (t ) = n}
n =0
n =0
E[ N (t )] = n.P{N (t ) = n} = npn (t )
lim pn (t ) = pn , n = 0,1,...
t
EN = npn = lim E[ N (t )]
n =0
For an ergodic process, the time average of a sample function is equal to the
steady-state expectation, with probability 1.
N = lim N t = lim E[ N (t )] = EN
t
In principle, we can find the probability distribution of the delay Ti for customer
i, and from that the expected value E[Ti], which converges to steady-state
ET = lim E[Ti ]
T = lim
i
Ti
= lim E[Ti ] = ET
i
EN = .ET
where the arrival rate is define as
E[ (t )]
= lim
t
t
=>
N Q = W
= X
is also called the utilization factor
Example 1: a network
Given
A network with packets arriving at n different nodes, and the arrival rates
are 1, ..., n respectively.
N: average # of packets inside the network,
Then
T=
i =1
Consider
a window flow congestion system with a window of size W for each session
Then W T
=> if congestion builds up (i.e., T increases), must eventually decrease
Now suppose
W T
=> increasing W only increases delay T
Summary
Littles Theorem
Homework #7
Grading: