chapter 6: basic queuing networksczou/cda5530-08/queue-network.pdf · chapter 6: basic queuing...

19
CDA5530: Performance Models of Computers and Networks Chapter 6: Basic Queuing Networks

Upload: others

Post on 17-Aug-2020

9 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

CDA5530: Performance Models of Computers and Networks

Chapter 6: Basic Queuing Networks

Page 2: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

2

Open Queuing Network

� Jobs arrive from external sources, circulate, and eventually depart

Page 3: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

3

Closed Queuing Network

� Fixed population of K jobs circulate continuously and never leave� Previous machine-repairman problem

Page 4: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

4

Feed-Forward QNs

� Consider two queue tandem system

� Q: how to model?� System is a continuous-time Markov chain (CTMC)

� State (N1(t), N2(t)), assume to be stable� π(i,j) =P(N1=i, N2=j)

� Draw the state transition diagram� But what is the arrival process to the second queue?

Page 5: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

5

Poisson in ⇒⇒⇒⇒ Poisson out

� Burke’s Theorem: Departure process of M/M/1

queue is Poisson with rate λ independent of

arrival process.

� Poisson process addition, thinning� Two independent Poisson arrival processes adding

together is still a Poisson (λ=λ+λ)

� For a Poisson arrival process, if each customer lefts

with prob. p, the remaining arrival process is still a Poisson (λ = λ· p)

Why?Why?Why?Why?

Page 6: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

6

� State transition diagram: (N1, N2), Ni=0,1,2,L

Page 7: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

7

� For a k queue tandem system with Poisson arrival and expo. service time

� Jackson’s theorem:

� Above formula is true when there are feedbacks among different queues� Each queue behaves as M/M/1 queue in

isolation

Page 8: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

8

Example

� λi: arrival rate at queue i

Why?Why?Why?Why?

Why?Why?Why?Why?

In M/M/1:In M/M/1:In M/M/1:In M/M/1:

Page 9: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

9

� T(i): response time for a job enters queue i

Why?Why?Why?Why?

In M/M/1:In M/M/1:In M/M/1:In M/M/1:

Page 10: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

10

Extension

� results hold when nodes are multiple server nodes (M/M/c), infinite server nodes finite buffer nodes (M/M/c/K) (careful about interpretation of results), PS (process sharing) single server with arbitrary service time distr.

Page 11: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

11

Closed QNs

� Fixed population of N jobs circulating among M

queues.� single server at each queue, exponential service

times, mean 1/µi for queue i� routing probabilities pi,j, 1 ≤ i, j ≤ M

� visit ratios, {vi}. If v1 = 1, then vi is mean number of

visits to queue i between visits to queue 1

� γi : throughput of queue i,

Page 12: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

12

Example

� Open QN has infinite

no. of states

� Closed QN is simpler

Page 13: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

13

Steady State Solution

� Theorem (Gordon and Newell)

� For previous example, vi?

Page 14: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

14

Mean Value Analysis (MVA) Algorithm

� Key idea: a job that moves from one queue to another, at time of arrival to queue sees a system with the same statistics as system with one less

customer.� We only consider single server nodes

Page 15: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

15

MVA Algorithm

� System with population of n jobs

Why?Why?Why?Why?

Why?Why?Why?Why?

Page 16: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

16

Example: File Server

� Each workstation requests

file server’s CPU and I/O

service� Workstation = job

� What is vi?

Page 17: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

17

Page 18: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

18

Page 19: Chapter 6: Basic Queuing Networksczou/CDA5530-08/queue-network.pdf · Chapter 6: Basic Queuing Networks. 2 Open Queuing Network Jobs arrive from external sources, circulate, and eventually

19