Download Understanding Queueing Systems in Computer Networks: M/G/1, P-K Equation, Queues Network - and more Study notes Computer Science in PDF only on Docsity!
Network of Queues
CSC 790
WAKE FOREST
U N I V E R S I T Y
Department of Computer Science
Spring 2009
High Speed Networksp pCSC 790 Network of Queues 1
M/G/
- M/M/1 provides a good approximation to many systems
- Hoewever, exponential service is problematic for many systems
What is an example?
- M/G/1 applies to systems with general service-time distributions
- Any service distribution is possible
- Arrivals are exponentially distributed with average rate λ
- Assume X i
is the service time of the i
th
arrival
, X
2
, ...) are identically distributed, mutually
independent
X = E[X] =
μ
= average service time
X
2 = E[X
2
] = second moment of the service time
What is the second moment?
- The Pollaczek-Khinchin (P-K) equation states for a M/G/1 system
W =
λX
2
2(1 − ρ)
where W is the expected waiting time in the queue, therefore
T = X +
λX
2
2(1 − ρ)
where T is the average total time in the system
E. W. Fulp Spring 2009
High Speed Networksp pCSC 790 Network of Queues 3
- Applying Little’s Theorem to W and T
N
Q
λ
2 X
2
2(1 − ρ)
which is the average number in the queue, and total average is
N = ρ +
λ
2 X
2
2(1 − ρ)
Queueing Systems
- We have discussed single queueing systems in isolation
- Assume an arrival rate of λ and service rate of μ
(assume the service time depends on the packet length)
- Can determine the number in the system and average delay
- However, a network is a set of interconnected queues
- We never stated anything about the departure process...
- Consider a set of tandem queues
server
buffer
λ
μ
server
buffer
μ
system 1 system 2
E. W. Fulp Spring 2009
High Speed Networksp pCSC 790 Network of Queues 7
- The output of the first system is the input for the second
- What is the arrival process for the second system?
- The second system cannot be modeled as a M/M/
- “Interarrival times at the second system are strongly correlated
with the packet lengths”
Why is this the case?
- Referred to as the tandem queue problem
- We are still interested in evaluating a network of queues
- Average end-to-end delay
- Need to make more assumptions and approximation claims...
Kleinrock Independence
- Networks typically consist of traffic streams merging together
λ 0
λ 3
λ 1
1
? 2
λ 2
λ 4
- Kleinrock suggested merging streams restores independence
- Called the Kleinrock independence approximation
- The approximation is acceptable under certain conditions
- Poisson stream arrivals at the entry points
- Packet lengths are nearly exponentially distributed
- Densely connected network and moderate to heavy loads
E. W. Fulp Spring 2009
High Speed Networksp pCSC 790 Network of Queues 9
Burke’s Theorem
- Consider an M/M/1, M/M/m, or M/M/∞ with arrival rate λ
- Assume the system starts in steady-state, then the following is true
- The departure process is Poisson with rate λ
- At each time t, the number of customers in the system is
independent of the sequence of departure times prior to t
What? Are tandem queues no longer an issue?
- The proof is based on reversibility of the system
- “The forward and reversed systems are statistically
indistinguishable in stead state”
Would this apply to M/D/1 queues? Implications?
- Now we can approximate a network of queues...
represent the probability that a packet (customer)
completing service at node i is routed to node j
- Given these routing probabilities, the following must be true
q i,d
N ∑
j=
q i,j
= 1, 1 ≤ i ≤ N
where d represents the destination (note q’s can equal zero)
What does this equation mean? Zero probability?
- Flow conservation provides another necessary condition
λ i
= q s,i
N ∑
k=
q k,i
λ k
, 1 ≤ i ≤ N
What? Why is this equation legal?
E. W. Fulp Spring 2009
High Speed Networksp pCSC 790 Network of Queues 13
- The objective, as always, is determining p(k 1
, k 2
, ..., k N
, k 2
, ..., k N
)) = p 1
(k 1
) · p 2
(k 2
) · ... · p N
(k N
- Using p can determine average delay
How?
- But we won’t derive the equations... sorry Brian
- Consider a M -hop virtual circuit in a network of M/M/1 queues
- End-to-end delay through the cascading M queues is
T =
M ∑
i=
μ i
− λ i
M ∑
i=
1
μ i
μ i
− ρ i
- The average delay over the entire network is
T =
γ
N ∑
i=
λiTi =
γ
N ∑
i=
λ i
μ i
− λ i
where N is the total number of nodes and γ is the net arrival rate
into the network
- Gordon and Newell considered closed queueing networks
- No customer can enter or leave
- Same assumptions as open queueing networks
E. W. Fulp Spring 2009
High Speed Networksp pCSC 790 Network of Queues 15
Example
- Consider the following network where link speed is 3 packets/sec
λ 2
= 2
λ 1 = 2
1
q=
1
4
q=
3
4
2
q=
1
3
q=
2
3
3
λ 5 = 2
5
q=
1
2
q=
1
2
4
How many M/M/1 queues are present?
Does the network follow the probability requirement?
Does the network follow the flow conservation requirement?
- Specific queueing systems
- M/M/1/K, M/M/1, M/M/c/c, M/G/1, and M/D/
- Determined average delay and number
- Network of queues
- Tandem queue problem
- Kleinrock independence approximation and Burke’s theorem
- Open and closed networks
- Jackson networks