Queuing Networks Mean Value Analysis

Slides:



Advertisements
Similar presentations
Queuing Theory For Dummies Jean-Yves Le Boudec 1.
Advertisements

Richard J. Boucherie department of Applied Mathematics
TCOM 501: Networking Theory & Fundamentals
Queueing Theory: Recap
Queuing Theory For Dummies
1 IOE/MFG 543 Chapter 11: Stochastic single machine models with release dates.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Multiple server queues In particular, we look at M/M/k Need to find steady state probabilities.
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Modeling and Analysis of Manufacturing Systems Session 2 QUEUEING MODELS January 2001.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
1 TCOM 501: Networking Theory & Fundamentals Lecture 8 March 19, 2003 Prof. Yannis A. Korilis.
Lecture 14 – Queuing Systems
Dimitrios Konstantas, Evangelos Grigoroudis, Vassilis S. Kouikoglou and Stratos Ioannidis Department of Production Engineering and Management Technical.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Computer Networks Performance Evaluation. Chapter 12 Single Class MVA Performance by Design: Computer Capacity Planning by Example Daniel A. Menascé,
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
1 Chapter 5 Flow Lines Types Issues in Design and Operation Models of Asynchronous Lines –Infinite or Finite Buffers Models of Synchronous (Indexing) Lines.
Introduction to Operations Research
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Introduction to Queueing Theory
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
Queuing Networks Jean-Yves Le Boudec 1. Contents 1.The Class of Multi-Class Product Form Networks 2.The Elements of a Product-Form Network 3.The Product-Form.
1 Chapter 8 Closed Queuing Network Models Flexible Machining Systems CONWIP (CONstant Work In Process)
Queuing Networks Jean-Yves Le Boudec 1. Networks of Queues Stability Queuing networks are frequently used models The stability issue may, in general,
1 Dr. Ali Amiri TCOM 5143 Lecture 8 Capacity Assignment in Centralized Networks.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Machine interference problem: introduction
Cheng-Fu Chou, CMLab, CSIE, NTU Open Queueing Network and MVA Cheng-Fu Chou.
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Queueing Theory II.
OPERATING SYSTEMS CS 3502 Fall 2017
Lecture 14 – Queuing Networks
Much More About Markov Chains
Al-Imam Mohammad Ibn Saud University
Flows and Networks Plan for today (lecture 4):
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Jackson Networks
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Generalized Jackson Networks (Approximate Decomposition Methods)
Queueing Theory Carey Williamson Department of Computer Science
Queuing models Basic definitions, assumptions, and identities
IV-2 Manufacturing Systems modeling
System Performance: Queuing
Queuing models Basic definitions, assumptions, and identities
Variability 8/24/04 Paul A. Jensen
Queueing Theory II.
Flows and Networks Plan for today (lecture 6):
Queuing Theory By: Brian Murphy.
Queueing networks.
Lecture 14 – Queuing Networks
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
CSE 550 Computer Network Design
LECTURE 09 QUEUEING THEORY PART3
Course Description Queuing Analysis This queuing course
Presentation transcript:

Queuing Networks Mean Value Analysis Jean-Yves Le Boudec 1

Goal of This Module Learn on an example how to solve a product-form queuing network 2

Reminder : A queuing network is called «Product Form» if… Station are either Markov routing One or several classes External arrivals, if any are Poisson FIFO with one or more servers (possibly with exclusion constraints - MSCCC) exponential service times, independent of class Or insensitive station: delay, processor sharing, LCFS among others Service time is arbitrary, with finite mean – may depend on class 3

A product-form queuing network… …is stable when the natural stability condition holds The stationary distribution of state and of number of customers has product form (Theorem 8.7): 𝑃 𝑛 1 , …, 𝑛 𝑆 =𝐾 𝑝 1 𝑛 1 … 𝑝 𝑆 𝑛 𝑆 𝑝 𝑠 𝑛 𝑠 = 𝑓 𝑠 𝑛 𝑠 𝜃 1,𝑠 𝑛 1,𝑠 … 𝜃 𝐶,𝑠 𝑛 𝐶,𝑠 Normalizing constant Station 1 Station S Depends only on station and visit rates, not on the othernetwork around Visit rate for class C at station s Station function depends only on station in isolation 4

Visit Rates 5

Let us apply these results to this network Think time Z B=1 server FIFO K jobs in total 𝑆 1 𝑆 2 𝑆 3 Single class; closed Stations 1,2,3 are FIFO; station 0 is delay; Markov routing : visit rates 𝜃 0 =1; 𝜃 1 =102; 𝜃 2 =30; 𝜃 3 =17 Product-Form ? 6

Let us apply these results to this network Single class; closed Stations 1,2,3 are FIFO; station 0 is delay; Markov routing : visit rates 𝜃 0 =1; 𝜃 1 =102; 𝜃 2 =30; 𝜃 3 =17 Product-Form ? Yes if service time at stations 1,2,3 (FIFO) are ∼ exponential No condition for station 0 7

The Product-Form Network is always stable (because closed) 𝑝 1 𝑛 = 𝑓 1 (𝑛) where 𝑓 1 depends on station 1 only –idem for station 2 Let us compute 𝑓 𝑖 8

Station function 𝒇 𝟏 B=1 server FIFO 𝑆 1 Let us consider the simplest possible product-form queuing network: station 1 with Poisson arrivals This is a product-form network, with visit rate 𝜃=𝜆 Therefore 𝑃 𝑛 = 1 𝜂 𝑓 1 𝑛 𝜆 𝑛 But this is a well-known system: M/M/1 𝑃 𝑛 = 1−𝜌 𝜌 𝑛 with 𝜌=𝜆 𝑆 1 𝑃 𝑛 = 1−𝜌 𝑆 1 𝑛 𝜆 𝑛 Compare and obtain: 9

Station function 𝒇 𝟏 B=1 server FIFO 𝑆 1 Let us consider the simplest possible product-form queuing network: station 1 with Poisson arrivals This is a product-form network, with visit rate 𝜃=𝜆 Therefore 𝑃 𝑛 = 1 𝜂 𝑓 1 𝑛 𝜆 𝑛 But this is a well-known system: M/M/1 𝑃 𝑛 = 1−𝜌 𝜌 𝑛 with 𝜌=𝜆 𝑆 1 𝑃 𝑛 = 1−𝜌 𝑆 1 𝑛 𝜆 𝑛 Compare and obtain: 𝑓 1 𝑛 = 𝑆 1 𝑛 10

Station function 𝒇 𝟎 Think time Z Let us consider the simplest possible product-form queuing network: station 2 with Poisson arrivals This is a product-form network, with visit rate 𝜃=𝜆 Therefore 𝑃 𝑛 = 1 𝜂 𝑓 2 𝑛 𝜆 𝑛 𝑓 2 does not depend on the distribution of service time, but only on its mean (insensitive station). To obtain 𝑓 2 , we may thus consider the case where the service time is exponential. We obtain a well-known system: M/M/∞ 𝑃 𝑛 = 𝑒 −𝜌 𝜌 𝑛 𝑛! with 𝜌=𝜆𝑍 11

Station function 𝒇 𝟎 Think time Z Let us consider the simplest possible product-form queuing network: station 2 with Poisson arrivals This is a product-form network, with visit rate 𝜃=𝜆 Therefore 𝑃 𝑛 = 1 𝜂 𝑓 2 𝑛 𝜆 𝑛 𝑓 2 does not depend on the distribution of service time, but only on its mean (insensitive station). To obtain 𝑓 2 , we may thus consider the case where the service time is exponential. We obtain a well-known system: M/M/∞ 𝑃 𝑛 = 𝑒 −𝜌 𝜌 𝑛 𝑛! with 𝜌=𝜆𝑍 𝑃 𝑛 = 𝑒 −𝜌 𝑍 𝑛 𝑛! 𝜆 𝑛 Compare and obtain: 𝑓 0 𝑛 = 𝑍 𝑛 𝑛! 12

The Product-Form Network is always stable (because closed) 13

Mean Value Analysis 𝑃 𝑛 1 , 𝑛 2 , 𝑛 3 = 1 𝜂 𝐾 𝑆 1 𝜃 1 𝑛 1 𝑆 2 𝜃 2 𝑛 2 𝑆 3 𝜃 3 𝑛 3 𝑍 𝐾− 𝑛 1 − 𝑛 2 − 𝑛 3 𝐾− 𝑛 1 − 𝑛 2 − 𝑛 3 ! Assume we want to compute: throughput, mean response time at station 1 We can use direct computations but need to evaluate 𝜂 𝐾 Numerical problems for large 𝐾 Combinatorial explosion of number of states The Mean Value Algorithms does this in a smarter way 14

Arrival Theorem The distribution of customers at an arbitrary point in time is 𝑃 𝑛 1 , 𝑛 2 , 𝑛 3 = The distribution of customers seen by a customer just before arriving at station 1 (excluding herself) 𝑃 0 𝑛 1 , 𝑛 2 , 𝑛 3 = 15

Arrival Theorem The distribution of customers at an arbitrary point in time is 𝑃 𝑛 1 , 𝑛 2 , 𝑛 3 = 1 𝜂 𝐾 𝑆 1 𝜃 1 𝑛 1 𝑆 2 𝜃 2 𝑛 2 𝑆 3 𝜃 3 𝑛 3 𝑍 𝐾− 𝑛 1 − 𝑛 2 − 𝑛 3 𝐾− 𝑛 1 − 𝑛 2 − 𝑛 3 ! for 𝑛 1 ≥ 0, 𝑛 2 ≥ 0, 𝑛 3 ≥ 0 and 𝑛 1 + 𝑛 2 + 𝑛 3 ≤𝐾 (and 0 otherwise) The distribution of customers seen by a customer just before arriving at station 1 (excluding herself) 𝑃 0 𝑛 1 , 𝑛 2 , 𝑛 3 = 1 𝜂 𝐾−1 𝑆 1 𝜃 1 𝑛 1 𝑆 2 𝜃 2 𝑛 2 𝑆 3 𝜃 3 𝑛 3 𝑍 𝐾−1− 𝑛 1 − 𝑛 2 − 𝑛 3 𝐾−1− 𝑛 1 − 𝑛 2 − 𝑛 3 ! for 𝑛 1 ≥ 0, 𝑛 2 ≥ 0, 𝑛 3 ≥ 0 and 𝑛 1 + 𝑛 2 + 𝑛 3 ≤𝐾−1 (and 0 otherwise) 16

Mean Value Analysis applied to our Network Avoids the numerical problems due to computation of normalizing constant Iterates on population 𝐾 Variables : 𝑅 𝑖 (𝐾) (response time at station i) 𝑁 𝑖 (𝐾) (mean number of jobs, station i) 𝜆(𝐾) (throughput at station 0) Uses : Arrival theorem: 𝑅 𝑖 𝐾 = 1+ 𝑁 𝑖 𝐾−1 𝑆 𝑖 for 𝑖=1,2,3 𝑅 0 𝐾 =𝑍 Little’s formula : 𝑁 0 𝐾 =𝜆 𝐾 𝑍 𝑁 𝑖 𝐾 =𝜆 𝐾 𝜃 𝑖 𝑅 𝑖 (𝐾) Conservation of total number of customers 𝑁 0 𝐾 + 𝑁 1 𝐾 + 𝑁 2 𝐾 + 𝑁 3 𝐾 =𝐾 17

Mean Value Analysis applied to our Network 𝑁 0 = 𝑁 1 = 𝑁 2 = 𝑁 3 =0; for 𝑘=1:𝐾 for 𝑖=1:3 𝑁 𝑖 = 𝜃 𝑖 1+ 𝑁 𝑖 𝑆 𝑖 ; end 𝑁 0 =𝑍; 𝜆= 𝐾 𝑁 0 + 𝑁 1 + 𝑁 2 + 𝑁 3 ; 𝑁 0 , 𝑁 1 , 𝑁 2 , 𝑁 3 =𝜆 𝑁 0 , 𝑁 1 , 𝑁 2 , 𝑁 3 ; end return (𝜆, 𝑁 0 , 𝑁 1 , 𝑁 2 , 𝑁 3 ) Iterates on 𝐾 At every step: set 𝜆=1 and compute 𝑁 𝑖 Obtain 𝜆 by the conservation of number of customers 18

19

20

The algorithm we just used is called Mean Value Analysis (MVA) version 1 It applies to closed product form networks where all stations are FIFO or Delay or equivalent (i.e. have the same function 𝑓 𝑖 ) 21

MVA Version 2 Applies to more general networks; Gives not only means but also full distribs Uses the decomposition and complement network theorems 22

where the service rate μ*(n4) is the throughput of is equivalent to: where the service rate μ*(n4) is the throughput of 23

24

25

26

Bottleneck analysis Waiting time MVA for various 𝑆 and 𝐵 1 c = 𝑆 𝐵 27

28

Conclusions Product-form queueing networks can be analyzed with very efficient algorithms 29