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.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

TCOM 501: Networking Theory & Fundamentals
Lecture 13 – Continuous-Time Markov Chains
Queueing Theory: Recap
Queuing Theory For Dummies
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
TCOM 501: Networking Theory & Fundamentals
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queueing Theory.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
1 TCOM 501: Networking Theory & Fundamentals Lecture 8 March 19, 2003 Prof. Yannis A. Korilis.
Lesson 11: Solved M/G/1 Exercises
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Introduction to Queuing Theory
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
September 27, Instabilities and Oscillations in Networks of Queues Matthew Andrews Bell Labs Joint work with Alex Slivkins (Cornell)
Decentralised load balancing in closed and open systems A. J. Ganesh University of Bristol Joint work with S. Lilienthal, D. Manjunath, A. Proutiere and.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Blocking of transitions Kelly / Whittle network Optimal design of a Kelly / Whittle.
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.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Introduction to Queueing Theory
Network Design and Analysis-----Wang Wenjie Queueing System IV: 1 © Graduate University, Chinese academy of Sciences. Network Design and Analysis Wang.
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.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
Modeling and Analysis of Computer Networks
M/M/1 queue λn = λ, (n >=0); μn = μ (n>=1) λ μ λ: arrival rate
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Networks Plan for today (lecture 8): Last time / Questions? Quasi reversibility Network of quasi reversible queues Symmetric queues, insensitivity Partial.
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 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
1 Dr. Ali Amiri TCOM 5143 Lecture 8 Capacity Assignment in Centralized Networks.
Queueing Models with Multiple Classes CSCI 8710 Tuesday, November 28th Kraemer.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Cheng-Fu Chou, CMLab, CSIE, NTU Open Queueing Network and MVA Cheng-Fu Chou.
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.
Internet Applications: Performance Metrics and performance-related concepts E0397 – Lecture 2 10/8/2010.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
BSnetworks.pptTKK/ComNet Research Seminar, SRPT Applied to Bandwidth Sharing Networks (to appear in Annals of Operations Research) Samuli Aalto.
Flows and Networks Plan for today (lecture 3): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Queuing Theory Simulation & Modeling.
Networks (3TU) Plan for today (lecture 5): Last time / Questions? Tandem network Jackson network: definition Jackson network: equilibrium distribution.
Lecture 14 – Queuing Networks
Flows and Networks Plan for today (lecture 4):
Lecture on Markov Chain
Queueing Theory Carey Williamson Department of Computer Science
Queuing models Basic definitions, assumptions, and identities
IV-2 Manufacturing Systems modeling
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):
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
SRPT Applied to Bandwidth Sharing Networks
Queueing networks.
Queuing Networks Mean Value Analysis
Carey Williamson Department of Computer Science University of Calgary
Presentation transcript:

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 Theorem 4.Computational Aspects 5.What this tells us 2

1. Networks of Queues are Important but May Be Tough to Analyze Queuing networks are frequently used models The stability issue may, in general, be a hard one Necessary condition for stability (Natural Condition) server utilization < 1 at every queue 3

Instability Examples 4 Poisson arrivals ; jobs go through stations 1,2,1,2,1 then leave A job arrives as type 1, then becomes 2, then 3 etc Exponential, independent service times with mean m i Priority scheduling Station 1 : 5 > 3 >1 Station 2: 2 > 4 Q: What is the natural stability condition ? A: λ ( m 1 + m 3 + m 5 ) < 1 λ (m 2 + m 4 ) < 1

λ = 1 m 1 = m 3 = m 4 = 0.1 m 2 = m 5 = 0.6 Utilization factors Station 1: 0.8 Station 2: 0.7 Network is unstable ! If λ (m 1 + … + m 5 ) < 1 network is stable; why? 5

Bramson’s Example 1: A Simple FIFO Network Poisson arrivals; jobs go through stations A, B,B…,B, A then leave Exponential, independent service times Steps 2 and last: mean is L Other steps: mean is S Q: What is the natural stability condition ? A: λ ( L + S ) < 1 λ ( (J-1)S + L ) < 1 Bramson showed: may be unstable whereas natural stability condition holds

Bramson’s Example 2 A FIFO Network with Arbitrarily Small Utilization Factor m queues 2 types of customers λ = 0.5 each type routing as shown, … = 7 visits FIFO Exponential service times, with mean as shown 7 LLSLLSSSSSSS Utilization factor at every station ≤ 4 λ S Network is unstable for S ≤ 0.01 L ≤ S 8 m = floor(-2 (log L )/L)

Take Home Message The natural stability condition is necessary but may not be sufficient We will see a class of networks where this never happens 8

2. Elements of a Product Form Network Customers have a class attribute Customers visit stations according to Markov Routing External arrivals, if any, are Poisson 9 2 Stations Class = step, J+3 classes Can you reduce the number of classes ? 2 Stations Class = step, J+3 classes Can you reduce the number of classes ?

Chains Customers can switch class, but remain in the same chain 10 ν

Chains may be open or closed Open chain = with Poisson arrivals. Customers must eventually leave Closed chain: no arrival, no departure; number of customers is constant Closed network has only closed chains Open network has only open chains Mixed network may have both 11

12 3 Stations 4 classes 1 open chain 1 closed chain 3 Stations 4 classes 1 open chain 1 closed chain ν

Bramson’s Example 2 A FIFO Network with Arbitrarily Small Utilization Factor 13 LLSLLSSSSSSS 2 Stations Many classes 2 open chains Network is open 2 Stations Many classes 2 open chains Network is open

Visit Rates 14

15 2 Stations 5 classes 1 chain Network is open 2 Stations 5 classes 1 chain Network is open Visit rates θ 1 1 = θ 1 3 = θ 1 5 = θ 2 2 = θ 2 4 = λ θ s c = 0 otherwise

16 ν

Constraints on Stations Stations must belong to a restricted catalog of stations We first see a few examples, then give the complete catalog Two categories: Insensitive (= Kelly-Whittle) and MSCCC Example of Category 1 (insensitive station): Global Processor Sharing One server Rate of server is shared equally among all customers present Service requirements for customers of class c are drawn iid from a distribution which depends on the class (and the station) Example of Category 1 (insensitive station): Delay Infinite number of servers Service requirements for customers of class c are drawn iid from a distribution which depends on the class (and the station) No queuing, service time = service requirement = residence time 17

Example of Category 2 (MSCCC station): FIFO with B servers B servers FIFO queueing Service requirements for customers of class c are drawn iid from an exponential distribution, independent of the class (but may depend on the station) Example of Category 2 (MSCCC station): MSCCC with B servers B servers FIFO queueing with constraints At most one customer of each class is allowed in service Service requirements for customers of class c are drawn iid from an exponential distribution, independent of the class (but may depend on the station) 18

Say which network satisfies the hypotheses for product form 19 A B (FIFO, Exp) C (Prio, Exp)

A station of Category 1 is any station that satisfies the Kelly-Whittle property Examples: Global or per-class PS, Global or per-class LCFSPR, Delay 20

Stations of Category 2 must have Exponential, class independent service requirements 21

22

3. The Product Form Theorem Stationary distrib of numbers of customers has product form Each term depends only on the station 23

24

Stability Stability depends only on every station in isolation being stable When service rates are constant, this is the natural condition 25

26

27

Product form and independence In an open network Product form => independence of stations in stationary regime No longer true in a closed or mixed network 28

Phase-Type Distributions 29

Phase Type Distributions Product form theorem requires service times to be Either exponential (category 2 stations) i.e MSCCC including FIFO) Or Phase type (category 1 stations) Phase type distributions can approximate any distribution (for the topology of weak convergence) Stationary Distribution depends only on mean service time (Insensitivity of category 1) Therefore, it is reasonable to assume that the product form theorem applies if we replace a phase type distribution by any distribution (even heavy tailed) Was done formally in some cases [8] Take home message: Stations of category 1 may have any service time distribution, class dependent Stations of category 2 must have exponential distrib, class independent 30

4. Computational Aspects Station Function The station function, used in the Product Form theorem, is the stationary distribution of the station in isolation 31

32

33

34

36

37

Different Stations may have same station equivalent service rate FIFO single server, global PS and global LCFSPR with class independent mean service time have same station functions Check this Therefore they have the same equivalent service rate and have the same effect in a network as long as we are interested in the distribution of numbers of customers Hence mean response times are the same But distributions of response times may differ Compare PS to FIFO 38

Algorithms for Mixed Networks Open networks: all stations are independent; solve one station in isolation Mixed Networks: suppress open chains (suppression theorem) Closed networks: the problem is computing the normalizing constant; Many methods exist, optimized for different types of very large networks Convolution algorithms: fairly general, applies to tricky cases (MSCCC), requires storing normalizing constant (large) 39

40

Throughput Theorem 41

Example N = nb customers at Gate K = total population Product Form theorem: 42 μ ν

43

Algorithms for Mixed Networks Open networks: all stations are independent; solve one station in isolation Mixed Networks: suppress open chains (suppression theorem) Closed networks: the problem is computing the normalizing constant; Many methods exist, optimized for different types of very large networks Convolution algorithms: fairly general, applies to tricky cases (MSCCC), requires storing normalizing constant (large) Mean Value Analysis does not require computing the normalizing constant, but does not apply (yet ?) to all cases 44

The Arrival Theorem and Mean Value Analysis (MVA) version 1 45

The Arrival Theorem and Mean Value Analysis (MVA) version 1 46 MVA version 1 uses the arrival theorem in a closed network where all stations are FIFO or Delay or equivalent Based on 3 equations and iteration on population: Mean response time for a class c customer at a FIFO station (arrival theorem): Little’s formula: Total number of customers gives :

47

48

MVA Version 2 Applies to more general networks; Uses the decomposition and complement network theorems 49

50 is equivalent to: where the service rate μ*(n 4 ) is the throughput of

51

52

53

54

5. What this tells us A rich class of networks with interesting properties Simple stability conditions Disciplines such as PS are insensitive to anything except mean service times Classes can be anything; this is a very rich modelling paradigm Only average visit rates matter 55

Example: Model of Internet 56

Product form holds if network can be modelled by a Kelly –Whittle station Requires that rate allocated to class c flows has the form Statistics of network depend only on traffic intensities Flow durations and think times may be anything and may be correlated 57

Requires that rate allocated to class c flows has the form Such an allocation is called « balanced fair » and is the only one with insensitivity property Is numerically closed to proportional fairness (TCP) 58

Questions 59

60

61

62