Kendall notation. PASTA theorem Basics of M/M/1 queue

Similar documents
Elementary queueing system

Part II: continuous time Markov chain (CTMC)

Performance Evaluation of Queuing Systems

Queueing Theory I Summary! Little s Law! Queueing System Notation! Stationary Analysis of Elementary Queueing Systems " M/M/1 " M/M/m " M/M/1/K "

Introduction to Queueing Theory

CPSC 531: System Modeling and Simulation. Carey Williamson Department of Computer Science University of Calgary Fall 2017

Outline. Finite source queue M/M/c//K Queues with impatience (balking, reneging, jockeying, retrial) Transient behavior Advanced Queue.

CDA5530: Performance Models of Computers and Networks. Chapter 4: Elementary Queuing Theory

Non Markovian Queues (contd.)

Introduction to Queueing Theory

Queueing systems. Renato Lo Cigno. Simulation and Performance Evaluation Queueing systems - Renato Lo Cigno 1

Figure 10.1: Recording when the event E occurs

Analysis of A Single Queue

Classical Queueing Models.

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Queues and Queueing Networks

QUEUING SYSTEM. Yetunde Folajimi, PhD

GI/M/1 and GI/M/m queuing systems

M/G/1 and M/G/1/K systems

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/6/16. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Introduction to Queueing Theory

Chapter 10. Queuing Systems. D (Queuing Theory) Queuing theory is the branch of operations research concerned with waiting lines.

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Queueing Theory II. Summary. ! M/M/1 Output process. ! Networks of Queue! Method of Stages. ! General Distributions

Link Models for Circuit Switching

Queueing Review. Christos Alexopoulos and Dave Goldsman 10/25/17. (mostly from BCNN) Georgia Institute of Technology, Atlanta, GA, USA

Computer Networks More general queuing systems

Data analysis and stochastic modeling

Buzen s algorithm. Cyclic network Extension of Jackson networks

Slides 9: Queuing Models

Networking = Plumbing. Queueing Analysis: I. Last Lecture. Lecture Outline. Jeremiah Deng. 29 July 2013

Introduction to queuing theory

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

PBW 654 Applied Statistics - I Urban Operations Research

Derivation of Formulas by Queueing Theory

Classification of Queuing Models

Contents Preface The Exponential Distribution and the Poisson Process Introduction to Renewal Theory

Systems Simulation Chapter 6: Queuing Models

CS418 Operating Systems

Introduction to Queuing Theory. Mathematical Modelling

Introduction to Markov Chains, Queuing Theory, and Network Performance

Lecture 7: Simulation of Markov Processes. Pasi Lassila Department of Communications and Networking

Queueing Theory. VK Room: M Last updated: October 17, 2013.

Chapter 5: Special Types of Queuing Models

INDEX. production, see Applications, manufacturing

Performance Modelling of Computer Systems

Introduction to queuing theory

M/G/1 and Priority Queueing

Continuous Time Processes

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

5/15/18. Operations Research: An Introduction Hamdy A. Taha. Copyright 2011, 2007 by Pearson Education, Inc. All rights reserved.

Chapter 2 Queueing Theory and Simulation

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

λ, µ, ρ, A n, W n, L(t), L, L Q, w, w Q etc. These

The effect of probabilities of departure with time in a bank

P (L d k = n). P (L(t) = n),

An M/M/1/N Queuing system with Encouraged Arrivals

SQF: A slowdown queueing fairness measure

6 Solving Queueing Models

Introduction to Queueing Theory with Applications to Air Transportation Systems

Analysis of Software Artifacts

Simple queueing models

Part I Stochastic variables and Markov chains

4.7 Finite Population Source Model

IOE 202: lectures 11 and 12 outline

Stochastic process. X, a series of random variables indexed by t

Queuing Theory and Stochas St t ochas ic Service Syste y ms Li Xia

All models are wrong / inaccurate, but some are useful. George Box (Wikipedia). wkc/course/part2.pdf

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Name of the Student:

Queueing Theory and Simulation. Introduction

Základy teorie front

Link Models for Packet Switching

Advanced Computer Networks Lecture 3. Models of Queuing

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

Review of Queuing Models

Stochastic Models of Manufacturing Systems

11 The M/G/1 system with priorities

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

Chapter 1. Introduction. 1.1 Stochastic process

NICTA Short Course. Network Analysis. Vijay Sivaraman. Day 1 Queueing Systems and Markov Chains. Network Analysis, 2008s2 1-1

Lecture 20: Reversible Processes and Queues

Queuing Theory. Richard Lockhart. Simon Fraser University. STAT 870 Summer 2011

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

Intro Refresher Reversibility Open networks Closed networks Multiclass networks Other networks. Queuing Networks. Florence Perronnin

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

Queuing Networks: Burke s Theorem, Kleinrock s Approximation, and Jackson s Theorem. Wade Trappe

Since D has an exponential distribution, E[D] = 0.09 years. Since {A(t) : t 0} is a Poisson process with rate λ = 10, 000, A(0.

Waiting Time Analysis of A Single Server Queue in an Out- Patient Clinic

Intro to Queueing Theory

ON THE LAW OF THE i TH WAITING TIME INABUSYPERIODOFG/M/c QUEUES

NATCOR: Stochastic Modelling

57:022 Principles of Design II Final Exam Solutions - Spring 1997

7 Variance Reduction Techniques

Bulk input queue M [X] /M/1 Bulk service queue M/M [Y] /1 Erlangian queue M/E k /1

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

A Study on Performance Analysis of Queuing System with Multiple Heterogeneous Servers

Transcription:

Elementary queueing system Kendall notation Little s Law PASTA theorem Basics of M/M/1 queue 1

History of queueing theory An old research area Started in 1909, by Agner Erlang (to model the Copenhagen telephone exchange in Denmark) Booming after 1950 s, to model computer/communication/ David G. Kendall introduced an A/B/C queueing notation in 1953 used in modern packet switching networks in the early 1960s by Leonard Kleinrock (UCLA, his book) A branch of operations research Agner Erlang 1878-1929, Denmark 2

Model and analysis tool Modeling and analyze many systems Telephony systems, exchanger of telephone lines Computer systems Communication systems Transportation systems Production systems Hospital/banks/ Limitation Too restrictive, some assumptions Use other alternative methods, simulation/tools, 3

A general queueing system A general queuing system Customer arrival Customer departure waiting room Service facility A generic model dlfor Machine, computer system, communication system, intersection of roads, etc. 4

The basic elements of queueing system Arrival process of customers Interarrival time i.i.d., e.g, Poisson arrival Arrival one by one, or in batches, etc. Bh Behavior of customers Patient or impatient; different type of customers Service time i.i.d., i e.g., exponential; load/state dependent; 5

The basic elements of queueing Service discipline system (cont.) FCFS: first come first serve, LCFS: last come first serve (stack), RS: randomly serve, priority, SRPT: shortest remaining processing time first, PS: processor sharing Service capacity (number of servers) Single server or a group of servers Waiting room (system capacity) Finite or infinite; buffer size design 6

Kendall notation A family of notation symbols for different categories of queues Proposed by David G. Kendall in 1953 Professor of Oxford Univ. (1946 1962) and Cambridge Univ. (1962 1985) David G. Kendall 1918-2007, England 7

Kendall notation (cont.) A family of notation symbols for different categories of queues A/B/C/K/N/D A: distribution of interarrival time, M or G or D B: distribution of service time, M or G or D C: number of servers K: system capacity, infinite by default N: number of total customers, infinite by default D: the service discipline For default, K =, N = and D = FCFS 8

Example of Kendall notation M/M/1; M/G/1; G/M/1; G/G/1; M/D/1; M/Er/1; PH/G/1; M/M/c; M/M/1/B; M/M/ //N M/M/c/K/N/ /K/N/ M/M/c/K//LCFS / / // M/M/1///PS 9

A small joke Different of type of queue. 10

Utilization factor For a queue with single server λ: the arrival rate of customers x Utilization factor: : the mean service time Physical meaning: ρ: = λ x Single server: time fraction that server is busy Multiple server: fraction of busy servers ρ = λx / m Traffic intensity is defined as r: = λx for single or multiple servers 11

Performance measures Distribution of performance measures Distribution of waiting time W and sojourn time T of customers; E{W}, Var{W}, Pr{W>t} Distribution of number of customers in the queue N or in the system N q ; E{N}, Var{N}, Pr{N>n} Distribution of busy period of the server BP; E{BP}, Var{BP}, Pr{BP>t} Mean of performance measures Mean waiting time, mean sojourn time/mean response time; Average customer number, average queue length Average length ofbusyperiod Throughput of the system Open system: equals the arrival rate; Closed system: needs calculation and analysis 12

The Little s Law Named after John Little, (1928 ), professor of MIT For a stable queueing system, we have L: average number of customers in the system λ: arrival rate, average number of arrivals per unit time T: mean response time/sojourn time of customers L = λt 13

The Little s Law (cont.) Apply it to the queue (excluding the server) L q: average number of customers in the queue λ: arrival rate, average number of arrivals per unit time W: mean waiting time of customers Lq = λw 14

The Little s Law (cont.) Apply it to the server only ρ: average number of customers in the server, λ: average number of arrivals to the server per unit time x : mean service time of customers ρ = λxλ For M/M/1, we have ρ = λ μ 15

The Little s Law (cont.) Applicability Very general, G/G/c / Applicable to any queue which is STABLE Applicable to any subsystem of the queue Limitation Inapplicable to unstable queue Only mean metrics, inapplicable to study the transient metrics 16

PASTA Theorem Poisson Arrivals See Time Averages For queues with Poisson arrivals, M/./. The arriving customers find the same mean measures as that observed by an outside observer at an arbitrary point of time Intuitively i explained li dby the fact that Poisson arrivals occurs completely random in time (purely random sampling) 17

PASTA Theorem (cont.) Applicable to any queues with Poisson arrival M/M/1, M/G/1, etc. Not valid for some queues, e.g., D/D/1 Empty pyat time 0, arrive at 1,3,5,, service time is 1. Arrivals see empty queue, while average number of customers is 1/2 Little s Law and PASTA theorem is very fundamental and important in queueing theory E.g., Mean Value Analysis (MVA) for queueing networks Calculate the mean performance metrics, L, W, T, etc. 18

M/M/1 queue System parameters Poisson arrival rate λ,, service rate μ Infinite capacity, FCFS Study the performance metrics ti Customer arrival Customer departure waiting room Service facility 19

Dynamics of M/M/1 / queue server queue C 1 C 2 C 3 Departure Start t C 1 C 2 C 3 C 4 service 0 1 2 3 4 5 6 7 8 9 10 11 t t C 1 C 2 C 3 C 4 Arrival 1 2 3 4 # of customer 2 1 0 1 2 3 4 5 6 7 8 9 10 11 t 20

State transition rate diagram of M/M/1 State transition rate diagram state: the number of customers in the system λ λ λ λ λ λ 0 1 2 k 1 k k+1 μ μ μ μ μ μ μ A simple birth death process 21

Equilibrium behavior of M/M/1 When the system reaches steady Global balance equation π λ = π μ 0 1 n + n + 1 + n 1 n π ( λ+ μ ) = π μ+ π λ, = 1,2,... Local balance equation π nλ = πn+ 1 μ, n = 0,1,2,... Normalization equation n=00 π n = 1 22

Equilibrium behavior of M/M/1 Chalk writing (cont.) Derive the steady state distribution 1 n n π n = = (1 ) G ρ ρ ρ G is called the normalization constant, G=1/(1 ρ) 3 more ways to solve the local balance equation recursion, Z transform, direct approach of solving difference equation Very simple to solve the local balance equation 23

Key performance metrics of M/M/1 (time average metrics) Average number of customers in the system, L We have L nπn n(1 ) Variance is ρ/(1 ρ) 2 Pr{n k}: Pr{ n k} = k π = ρ ρ 1 n = = ρ ρ = n= 0 n= 0 1 ρ Use dev. to void integration by Pr{ } i i= k parts! Trick. Average queue length (excluding the customer being served) We have Chalk writing The curve of L w.r.t. ρ 2 ρ L = q ( n 1) π n = L ρ = n= 1 1 ρ 24

Key performance metrics of M/M/1 (customer average metrics) Mean response time of customers T By Little s law, we have T = L/ λ = 1 μ λ Mean waiting time of customers (excluding the service time) We have 1 λ ρ μ μ( μ λ) μ λ Chalk writing W = T = = = ρt The curve of T, W w.r.t. ρ Example, double λ and μ, how are L,T,W changing? 25

Another way to calculate mean performance metrics (MVA) Mean Value Analysis (MVA) Combine the Little s law and PASTA theorem No need to know the distribution of steady state Analysis process Seen by an arriving customer, mean response time is (should be equivalent to T by PASTA) T=L/μ+1/μ Little s law: L=λT Called arrival relation Combine to obtain: T= 1/(μ λ), L= ρ/(1 ρ), etc. 26

Distribution of sojourn time We focus on an arriving customer S: the sojourn time of the arriving customer L q : # of customers in the system seen by the arrival B k1 k : service time of the kth customer, k=1,, L q We have a L + 1 k = 1 S = B k Since B k and L q are independent, we further have a L + 1 n+ 1 k k k= 1 n= 0 k= 1 a P( S > t) = P B > t = P B > t P( L = n) 27

Distribution of sojourn time (cont.) By PASTA theorem, a n P( L = n) = π = (1 ρρ ) n+ 1 P B k > t is a n+1 stage Erlang distribution So, k = 1 n The sojourn time is exponentially distributed with parameter μ(1 ρ). Interesting! 28

Distribution of sojourn time (cont.) Another easy way is using Laplace transform Since we have The above is an exponential distribution with parameter μ(1 ρ). ) (1 ) t PS ( > t) = e μ ρ 29

Distribution of waiting time, W Since S=W+B, so We have W=0 with probability 1 ρ; W is exponentially distributed with parameter μ(1 ρ) with probability ρ. 30

Busy period # of customer 2 1 0 1 2 3 4 5 6 7 8 9 10 11 t Busy Idle period period IP(idle period) is exponentially distributed with parameter λ Mean busy period: 1/ μ EBP ( ) = 1 ρ So, it equals T. EBP ( ) EBP ( ) = = ρ EBP ( ) + EIP ( ) EBP ( ) + 1/ λ 31

Distribution of busy period It is complicated use Laplace transform and recursion analysis Omitted for simplicity pdf of BP: Where I 1 (.) is the modified Bessel function of the first kind of order 1, 32