Professional Documents
Culture Documents
Computer Communication Networks II: Chapter 3: Stochastic Models For Network Traffic
Computer Communication Networks II: Chapter 3: Stochastic Models For Network Traffic
Computer Communication Networks II: Chapter 3: Stochastic Models For Network Traffic
Single-Server Queues
M/M/c queue
Outline I
2 Single-Server Queues
3 M/M/c queue
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
System model
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
System parameters
Definition I
Definition
Definition
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Definition
The probability that no arrival until time t
Variance
Example
Example 1
The packet that arrives a station follows a Poisson distribution with a
average rate of λ = 0.2 packet/s. Find the following probability
1 At least 2 frames that arrives in 15 s
2 Less than 2 frames that arrives in 15 s
3 At least 2 frames that arrives in 15 s
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Example
Example 2
Let a Poisson process with rate λ = 0.5.
Find the probability of no arrivals in (3,5].
Find the probability that there is exactly one arrival in each of the
following intervals: (0,1], (1,2], (2,3], and (3,4].
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Probability P(TE > t) that the first arrival occurs at time TE > t
P(TE > t) = P(A(t) = 0) = e −λt (5)
Distribution and density function of interarrival times
FTE (t) = P(TE < t) = 1 − e λt (6)
fTE (t) = λe −λt (7)
Expected value of interarrival times
Z ∞
1
E [TE ] = tfTE dt = (8)
0 λ
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Exercise
1
You are observing the arrivals of TCP connections at a web server. You
find that such arrivals can be modeled as a Poisson process of mean
rate λ. What is the probability of observing two arrivals in a time
interval of duration 1/λ.
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Memoryless Property
Memoryless Property
Theorem
Given that n arrivals of a Poisson process occur in the interval (0, t),
the PDF of their ordered epochs t1 < t2 < ... < tn is
n!
f (t1 , t2 , ..., tn ) = n (11)
t
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Example I
Let N(t) be a Poisson process with intensity λ = 2, and let X1 , X2 , ...
be the corresponding interarrival times.
1 Find the probability that the first arrival occurs after t=0.5, i.e.,
P(X1 > 0.5).
2 Given that we have had no arrivals before t=1, find P(X1 > 3).
3 Given that the third arrival occurred at time t=2, find the
probability that the fourth arrival occurs after t=4.
4 I start watching the process at time t=10. Let T be the time of the
first arrival that I see. In other words, T is the first arrival after
t=10. Find E[T] and Var[T].
The Poisson Process
Poisson Counting Process
Single-Server Queues
Poisson Point Process
M/M/c queue
Example II
5 I start watching the process at time t=10. Let T be the time of the
first arrival that I see. Find the conditional expectation and the
conditional variance of T given that I am informed that the last
arrival occurred at time t=9.
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Outline I
2 Single-Server Queues
System model
Performance metrics
Priorities
3 M/M/c queue
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
System model
System model
Birth-death process
The state transitions are of only two types: "births", which increase the
state variable by one and "deaths", which decrease the state by one
Birth-death process
At equilibrium
Birth-death process
At equilibrium
λ0
p1 = p0
µ1
λ0 ...λn−1
pn = p0 (17)
µ1 ....µn
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Birth-death process
State definition
Limiting state probability pn
λ0 ...λn−1
pn = p0 (18)
µ1 ....µn
Condition
∞
X
pn = 1 (19)
n=1
Initial state p0
1
p0 = P∞ λ0 ...λn−1
(20)
1+ n=1 µ1 ...µn
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Single-Serve Queues
λn = λ
µn = µ
Theorem
p0 = 1 − ρ (21)
pn = ρn (1 − ρ) (22)
where ρ = λ/µ represents the load intensity
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Single-Serve Queues
1 1
E [S] = E [N] + (25)
µ µ
Single-Serve Queues
Example
A Television repairman finds that the time spent on his jobs has an
exponential distribution with mean 30 minuets.
If he repairs the sets in the order in which they come in, and if the
arrivals of sets are approximately Poisson with an average rate of 10 per
8 hours day which is the repairs man idle time each day ?
Find the expected number of units in the system and in the queue
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
System model
Preemptive-resume priority
Performance Metrics
Performance Metrics
Theorem (Total number of customers: Average queue length)
λ1 + λ2
E [N1 ] = (32)
µ − λ1 + λ2
Example
Consider a network system work with a single queue server. There two
types of customers Type 1 and Type 2 that arrive with rates of
λ1 = 0.2 ∗ 106 packet/s and λ2 = 0.6 ∗ 106 packet/s. The service rate
of the queue is µ = 106 packet/s. Find the average number of packets
and average waiting time in the system in case
1 All customers are treated independently
2 Type 1 customers have absolute priority over Type 2
3 Type 2 customers have absolute priority over Type 1
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Non-preemptive priority
Type 1 users are not allowed to interrupt the service of Type 2 users
For the mean waiting time of type 1 customers
1 1 1
E [S1 ] = E [L1 ] + + ρ2 (36)
µ µ µ
where Type 1 user finds a type 2 user in service is ρ2
Non-preemptive priority
(1 + ρ2 )/µ
E [S1 ] = (38)
1 − ρ2
(1 + ρ2 )/ρ1
E [L1 ] = (39)
1 − ρ1
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Non-preemptive priority
E [S2 ] = (40)
E [L2 ] = (41)
The Poisson Process System model
Single-Server Queues Performance metrics
M/M/c queue Priorities
Example
Consider a network system work with a single queue server. There two
types of customers Type 1 and Type 2 that arrive with rates of
λ1 = 0.2 ∗ 106 packet/s and λ2 = 0.6 ∗ 106 packet/s. The service rate
of the queue is µ = 106 packet/s. Find the average number of packets
and average waiting time in the system in case
1 All customers are treated independently
2 Non-preemptive priority
3 Preemptive-resume priority where Type 1 users have absolute
priority over type 2
The Poisson Process
Birth-Death Process
Single-Server Queues
Performance Metrics
M/M/c queue
Outline I
2 Single-Server Queues
3 M/M/c queue
Birth-Death Process
Performance Metrics
The Poisson Process
Birth-Death Process
Single-Server Queues
Performance Metrics
M/M/c queue
Birth-Death Process
At the equilibrium
At the equilibrium
(cρ)n
pn = p0 if n = 0, 1, 2, ..., c (44)
n!
and
(cρ)c
pc+n = ρn pc = ρn p0 if n = 0, 1, 2, ... (45)
c!
Pn
where k=1 pk = 1
The Poisson Process
Birth-Death Process
Single-Server Queues
Performance Metrics
M/M/c queue
c−1
!−1
X (cρ)n (cρ)c 1
p0 = + (46)
n=0
n! c! 1 − ρ
c−1
!−1
(cρ)c X (cρ)n (cρ)c
= (1 − ρ) + (47)
c! n=0
n! c!
The Poisson Process
Birth-Death Process
Single-Server Queues
Performance Metrics
M/M/c queue