NEW FRONTIERS IN APPLIED PROBABILITY

Similar documents
Exact Simulation of the Stationary Distribution of M/G/c Queues

arxiv: v2 [math.pr] 24 Mar 2018

Omnithermal perfect simulation for multi-server queues

Perfect Simulation of M/G/c Queues

Stationary remaining service time conditional on queue length

IEOR 6711, HMWK 5, Professor Sigman

RELATING TIME AND CUSTOMER AVERAGES FOR QUEUES USING FORWARD COUPLING FROM THE PAST

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

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

Some open problems related to stability. 1 Multi-server queue with First-Come-First-Served discipline

Lecture 20: Reversible Processes and Queues

Exact Simulation Techniques in Applied Probability and Stochastic Optimization. Yanan Pei

LIMITS FOR QUEUES AS THE WAITING ROOM GROWS. Bell Communications Research AT&T Bell Laboratories Red Bank, NJ Murray Hill, NJ 07974

Performance Evaluation of Queuing Systems

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

1 IEOR 4701: Continuous-Time Markov Chains

15 Closed production networks

Non Markovian Queues (contd.)

Part I Stochastic variables and Markov chains

M/G/1 and Priority Queueing

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

15 Closed production networks

Regenerative Processes. Maria Vlasiou. June 25, 2018

Stationary Probabilities of Markov Chains with Upper Hessenberg Transition Matrices

Introduction to Markov Chains, Queuing Theory, and Network Performance

Queuing Theory. Using the Math. Management Science

Duality and Other Results for M/G/1 and GI/M/1 Queues, via a New Ballot Theorem

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

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

Name of the Student:

Synchronized Queues with Deterministic Arrivals

Statistics 150: Spring 2007

ECE 3511: Communications Networks Theory and Analysis. Fall Quarter Instructor: Prof. A. Bruce McDonald. Lecture Topic

Other properties of M M 1

Perfect sampling of a single-server queue with periodic Poisson arrivals

Data analysis and stochastic modeling

SEVERAL results in classical queueing theory state that

Stability and Rare Events in Stochastic Models Sergey Foss Heriot-Watt University, Edinburgh and Institute of Mathematics, Novosibirsk

Markov Chains. X(t) is a Markov Process if, for arbitrary times t 1 < t 2 <... < t k < t k+1. If X(t) is discrete-valued. If X(t) is continuous-valued

Figure 10.1: Recording when the event E occurs

THE HEAVY-TRAFFIC BOTTLENECK PHENOMENON IN OPEN QUEUEING NETWORKS. S. Suresh and W. Whitt AT&T Bell Laboratories Murray Hill, New Jersey 07974

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

Perfect sampling for multiclass closed queueing networks

Blanchet, J., Dong, J., and Pei, Y.

Introduction to Queueing Theory

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 "

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

IEOR 8100: Topics in OR: Asymptotic Methods in Queueing Theory. Fall 2009, Professor Whitt. Class Lecture Notes: Wednesday, September 9.

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

Q = (c) Assuming that Ricoh has been working continuously for 7 days, what is the probability that it will remain working at least 8 more days?

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

QUEUING SYSTEM. Yetunde Folajimi, PhD

Perfect sampling for multiclass closed queueing networks

Markov processes and queueing networks

THE ON NETWORK FLOW EQUATIONS AND SPLITTG FORMULAS TRODUCTION FOR SOJOURN TIMES IN QUEUEING NETWORKS 1 NO FLOW EQUATIONS

2905 Queueing Theory and Simulation PART III: HIGHER DIMENSIONAL AND NON-MARKOVIAN QUEUES

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

Link Models for Circuit Switching

1 Stationary point processes

NATCOR: Stochastic Modelling

Recap. Probability, stochastic processes, Markov chains. ELEC-C7210 Modeling and analysis of communication networks

Introduction to Queueing Theory

IEOR 6711: Stochastic Models I, Fall 2003, Professor Whitt. Solutions to Final Exam: Thursday, December 18.

Operations Research Letters. Instability of FIFO in a simple queueing system with arbitrarily low loads

Computer Networks More general queuing systems

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Relating Polling Models with Zero and Nonzero Switchover Times

Queueing Networks and Insensitivity

IDLE PERIODS FOR THE FINITE G/M/1 QUEUE AND THE DEFICIT AT RUIN FOR A CASH RISK MODEL WITH CONSTANT DIVIDEND BARRIER

Contents LIST OF TABLES... LIST OF FIGURES... xvii. LIST OF LISTINGS... xxi PREFACE. ...xxiii

Continuous-Time Markov Chain

EXACT SAMPLING OF THE INFINITE HORIZON MAXIMUM OF A RANDOM WALK OVER A NON-LINEAR BOUNDARY

Large number of queues in tandem: Scaling properties under back-pressure algorithm

Lecture 10: Semi-Markov Type Processes

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

Single-Server Service-Station (G/G/1)

ISyE 6650 Test 2 Solutions

A TANDEM QUEUEING SYSTEM WITH APPLICATIONS TO PRICING STRATEGY. Wai-Ki Ching. Tang Li. Sin-Man Choi. Issic K.C. Leung

Derivation of Formulas by Queueing Theory

Queueing Theory and Simulation. Introduction

Time Reversibility and Burke s Theorem

TOWARDS BETTER MULTI-CLASS PARAMETRIC-DECOMPOSITION APPROXIMATIONS FOR OPEN QUEUEING NETWORKS

UNIVERSITY OF YORK. MSc Examinations 2004 MATHEMATICS Networks. Time Allowed: 3 hours.

Chapter 8 Queuing Theory Roanna Gee. W = average number of time a customer spends in the system.

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

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

Simple queueing models

Probability Models in Electrical and Computer Engineering Mathematical models as tools in analysis and design Deterministic models Probability models

Waiting time characteristics in cyclic queues

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

Advanced Computer Networks Lecture 3. Models of Queuing

THE VARIANCE CONSTANT FOR THE ACTUAL WAITING TIME OF THE PH/PH/1 QUEUE. By Mogens Bladt National University of Mexico

INDEX. production, see Applications, manufacturing

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

TCOM 501: Networking Theory & Fundamentals. Lecture 6 February 19, 2003 Prof. Yannis A. Korilis

Keywords: GI/G/1 queue, duality, busy cycle, modified first service.

Chapter 1. Introduction. 1.1 Stochastic process

Departure Processes of a Tandem Network

THIELE CENTRE. The M/M/1 queue with inventory, lost sale and general lead times. Mohammad Saffari, Søren Asmussen and Rasoul Haji

The Queue Inference Engine and the Psychology of Queueing. ESD.86 Spring 2007 Richard C. Larson

Transcription:

J. Appl. Prob. Spec. Vol. 48A, 209 213 (2011) Applied Probability Trust 2011 NEW FRONTIERS IN APPLIED PROBABILITY A Festschrift for SØREN ASMUSSEN Edited by P. GLYNN, T. MIKOSCH and T. ROLSKI Part 4. Simulation EXACT SIMULATION OF THE STATIONARY DISTRIBUTION OF THE FIFO M/G/c QUEUE KARL SIGMAN, Columbia University Department of Industrial Engineering and Operations Research, Columbia University, MC: 4704, New York, NY 10027, USA. Email address: karl.sigman@columbia.edu APPLIED PROBABILITY TRUST AUGUST 2011

EXACT SIMULATION OF THE STATIONARY DISTRIBUTION OF THE FIFO M/G/c QUEUE BY KARL SIGMAN Abstract We present an exact simulation algorithm for the stationary distribution of the customer delay D for first-in first-out (FIFO) M/G/c queues in which ρ = λ/µ < 1. We assume that the service time distribution G(x) = P(S x), x 0 (with mean 0 < E(S) = 1/µ < ), and its corresponding equilibrium distribution G e (x) = µ x 0 P(S > y) dy are such that samples of them can be simulated. We further assume that G has a finite second moment. Our method involves the general method of dominated coupling from the past (DCFTP) and we use the single-server M/G/1 queue operating under the processor sharing discipline as an upper bound. Our algorithm yields the stationary distribution of the entire Kiefer Wolfowitz workload process, the first coordinate of which is D. Extensions of the method to handle simulating generalized Jackson networks in stationarity are also remarked upon. Keywords: Exact simulation; coupling from the past; processor sharing; queueing theory 2010 Mathematics Subject Classification: Primary 65C05 Secondary 60K25; 60J05; 68U20 1. Introduction Consider a stable first-in first-out (FIFO) M/G/c queue (c 2) with arrival rate λ, Poisson arrival times {t n : n 1}, in which the independent and identically distributed (i.i.d.) service times {S n } are distributed as G(x) = P(S x), x 0, with tail denoted by Ḡ(x) = 1 G(x), and finite mean E(S) = 1/µ. Let V (t) = (V (1,t),V(2,t),...,V(c,t)), t 0, denote the Kiefer Wolfowitz workload vector (see, for example, Chapter 12 of [1]). At arrival epochs t n with i.i.d. interarrival times T n = t n t n 1 (t 0 := 0), the vector W n = V (t n ) satisfies the recursion W n = R(W n 1 + S n e T n f ) +, n 1, (1.1) where W n = (W n (1),...,W n (c)), e = (1, 0,...,0), f = (1, 1,...,1), R places a vector in ascending order, and ( ) + denotes the positive part of each coordinate. Then D n = W n (1) is the delay in queue (line) of the nth customer. (Equation (1.1) defines a Markov chain owing to the given i.i.d. assumptions.) With ρ := λ/µ<c(stability), it is well known that W n converges in distribution to a proper stationary distribution. From Poisson arrivals see time averages (PASTA), this coincides with the time-stationary limiting distribution of V (t) as t. Let π denote this stationary distribution. Our objective in the present paper is to provide a simulation algorithm for sampling exactly from π. Our method involves using an upper bound that can be simulated in reverse time in the spirit of a general dominated-coupling-from-the-past Applied Probability Trust 2011 209

210 K. SIGMAN method (DCFTP method), as found, for example, in Definition 3 and Algorithm 4 of [4]. Such methods build upon the original coupling-from-the-past method (CFTP method) as introduced in [6]. (See also the introduction to perfect sampling in Chapter 4, Section 8 of [2].) 1.1. The upper bound We will assume that ρ<1; the system is super stable. (We will also assume that E(S 2 )< for reasons explained later.) Under the ρ<1 condition, the corresponding single-server FIFO M/G/1 model is also stable, and, as is well known (we include a proof only for completeness) serves as a sample path upper bound for the workload. Proposition 1.1. Let V 1 (t) denote the total work done in the system at time t for the FIFO M/G/1 queue, and let V c (t) = c i=1 V(i,t) denote the total work in the system at time t for the corresponding FIFO M/G/c queue, where V 1 (0) = V c (0) = 0 and both are fed exactly the same input of Poisson arrivals and i.i.d. service times. Then P(V c (t) V 1 (t) for all t 0) = 1. (1.2) Proof. The work at time t is equal to the work that has arrived by time t minus the work processed by time t. The amount of work to arrive by time t, N(t) S j, t 0, j=1 where N(t)is the number of arrivals by time t, is the same for both queues. But the rate at which the work is processed is 1 for the single-server queue, and between 1 and c for the c-server queue; hence, (1.2) holds. 1.2. Using the upper bound If we were to start off with both the c-server and the single-server models empty at time t = while feeding them exactly the same input, then both would have their stationary distributions at time 0 (via Loynes lemma see [5, Lemma 1]) and their workloads would be ordered at all times owing to Proposition 1.1. Moreover, if we walk backwards in time from the origin, and detect the first time τ 0 at which the single-server model is empty, then, from Proposition 1.1, the c-server model would be empty as well. We could then construct a sample of V (0) (having the stationary distribution π) by starting off empty at time τ and using recursion (1.1) forwards in time from time τ to 0. We now proceed to show how to accomplish this. 1.3. The algorithm From the Pollaczek Khintchine formula we know that the stationary workload for the M/G/1 queue can be written in distribution as Q Y j, (1.3) j=1 where the {Y j } are i.i.d. as the equilibrium distribution of service, with cumulative distribution function given by x G e (x) = µ P(S > y) dy, x 0, 0 and, independently, Q has a geometric distribution, P(Q = k) = ρ k (1 ρ), k 0.

Exact simulation 211 The workload for a single-server queue is invariant under changes of work-conserving disciplines, so here we will use processor sharing (PS) (see, for example, Section 5.7.3 of [7]). The point is that {V 1 (t)} has exactly the same sample paths under PS as it does under FIFO. Letting Q(t) denote the number of customers in the system, and Y 1 (t),...,y Q(t) (t) denote the corresponding remaining service times, it is known that the stationary distribution of the PS M/G/1 queue, as t, is of the form (Q, Y 1,...,Y Q ), (1.4) where the Q and the {Y j } are as in (1.3). Actually, the Y j (t) can be modeled as either the age of the service times in service, or the remaining service times, and in either case {X(t): t 0} ={(Q(t), Y 1 (t),...,y Q(t) (t)): t 0} (1.5) forms a Markov process (where we usually assume that the Y j (t) are in ascending order). If we assume that they are the remaining service times then it is also known that if the system is initially distributed as in (1.4), then the time reversal of {X(t)} is the same Markovian PS model in which arrivals are Poisson at rate λ, service times are i.i.d. as G, and the Y j (t) are now the ages (see, for example, [3, Section 4.2.2] and [7, pp. 278 280]). The point here is that unlike the FIFO model, we can easily simulate the time reversal of the PS model, since it is yet again the same kind of queue, and we will use this fact as follows. Algorithm 1.1. (Simulating V (0) distributed as π.) 1. Set t = 0 (time). Generate a vector (Q, Y 1,...,Y Q ) distributed as the stationary distribution in (1.4), and set X(0) = (Q(0), Y 1 (0),...,Y Q(0) (0)) = (Q, Y 1,...,Y Q ). If Q = 0 then stop simulating and set τ = 0. Otherwise, continue to simulate (as a discrete-event simulation with i.i.d. interarrival times T exp(λ) and i.i.d. service times S G) the PS model in (1.5) in forward time t 0 until time τ = min{t 0: Q(t) = 0}. The Q>0 customers are served simultaneously at rate r = 1/Q until the time of the next event: either a new arrival or a departure; reset t to be this new time. If the next event is an arrival then generate a service time S for this customer distributed as G (keep a record of its value and place it in service), generate the next interarrival time T distributed as exp(λ), and reset Q = Q + 1 and set r = 1/Q. If the next event is a departure then record this as the next departure time and record the service time of the customer associated with it, and reset Q = Q 1. If Q = 0 then stop simulating and set τ = t. If τ>0 after stopping the simulation then let t 1,...,t k and S 1,...,S k respectively denote the k 1 recorded departure times (in order of departure) and the associated service times that occurred up to time τ (with t k = τ being the last such departure time). Define the interdeparture times T i = t i t i 1, 0 i k, with t 0 = 0. We view this as simulating the time reversal of the original PS model from time 0, into the past until time t = τ. In particular, owing to the discussion in Section 1.2, we have V ( τ) = 0. (See Remark 1.1 below for more details.) 2. We now construct V (0) as follows. If τ = 0 then set V (0) = 0. Otherwise, reset (S 1,...,S k ) = (S k,...,s 1 ) and (T 1,...,T k ) = (T k,...,t 1 ) (that is, place them in

212 K. SIGMAN reverse order). (They have the conditional distribution of i.i.d. input given τ resulted in k departures, so they are no longer i.i.d.) Using (S 1,...,S k ) and (T 1,...,T k ) as the input, construct W k (initializing with W 0 = 0), by using (1.1) recursively from n = 1up until n = k. Now set V (0) = W k. We assume that E(S 2 )< to ensure that E(τ) < : τ (conditional on τ > 0) has the stationary excess distribution of a busy period B for the M/G/1 queue; thus, E(τ) = ρ E(B 2 )/2E(B), and it is well known that E(B 2 )< if and only if E(S 2 )<. (So if E(S 2 ) = then although the algorithm still works, the expected length of time to completion is infinite.) Remark 1.1. To simulate from the stationary distribution in (1.4), we first generate the geometric Q and then we assume that we can simulate from G e so as to generate Q i.i.d. such copies of the Y j. We actually need to simulate from the stationary spread distribution (having tail P(H > x) = µxḡ(x) + Ḡ e (x)), or, equivalently, from the joint stationary distribution of age (A) and excess (E) given by P(A>x,E>y)= Ḡ e (x + y); H = A + E has the stationary spread distribution. This is because the Q customers at time 0 have service times distributed as H (not G) and we need to take that into account. If we directly simulate a copy H having the stationary spread distribution then by independently generating a U uniform over (0, 1) we can use A = UH and E = (1 U)H. Thus, we could generate i.i.d. H i and i.i.d. U i (uniforms), and set Y i = U i H i while keeping a record of the whole service times H i. The point is that we will need, initially, the spread and age of each service time at time 0. After that, to simulate new arrivals, we will need only i.i.d. copies of S G and i.i.d. copies of T exp(λ). We keep a record of each new customer s generated service time so that when this customer departs, we know their service time. Remark 1.2. Exact simulation for a variety of other queueing models can be carried out in a similar fashion by using the PS model as an upper bound; we provide here an example. Consider a generalized Jackson network (with c single-server FIFO nodes), in which arrivals are Poisson at rate λ, service times at node i are i.i.d. as G i, and routeing is general i.i.d. among customers. Letting (S(1), i 1,...,S(l),i l ) denote the service times and route of a customer, we define S = l i=1 S(i) as a service time for the single-server PS model; we require the harsh condition that ρ = λ E(S) < 1 to ensure stability of the PS model. Then the total work is sample path bounded above by the PS model. Remark 1.3. Clearly, it is of interest to allow 1 ρ<c, and still obtain an exact simulation algorithm in the same spirit as was done here for ρ<1. As a first try, we might use, as an upper bound, the PS random assignment (RA) M/G/c, in which each server has its own PS queue, and arrivals are randomly assigned to a queue (probability 1/c to each). For then, each server is an independent PS M/G/1 queue, the time reversal is the same kind of model, and so on. However, the RA model does not serve as a sample path upper bound for the FIFO M/G/c as in Proposition 1.1; counterexamples exist (see [1, pp. 342 344] and [8]). (It does serve as a stochastic upper bound for each fixed time t.) The author is currently working on this for a future paper. References [1] Asmussen, S. (2003). Applied Probability and Queues, 2nd edn. Springer, New York. [2] Asmussen, S. and Glynn, P. W. (2007). Stochastic Simulation. Springer, New York. [3] Chen, H. and Yao, D. D. (2001). Fundamentals of Queueing Networks. Springer, New York. [4] Kendall, W. (2004). Geometric ergodicity and perfect simulation. Electron. Commun. Prob. 9, 140 151.

Exact simulation 213 [5] Loynes, R. M. (1962). The stability of a queue with non-independent interarrival and service times. Math. Proc. Camb. Phil. Soc. 58, 497 520. [6] Propp, J. G. and Wilson, D. B. (1996). Exact sampling with coupled Markov chains and applications to statistical mechanics. Random Structures Algorithms 9, 223 252. [7] Ross, S. M. (1996). Stochastic Processes, 2nd edn. John Wiley, New York. [8] Wolff, R. W. (1987). Upper bounds on work in system for multichannel queues. J. Appl. Prob. 24, 547 551. KARL SIGMAN, Columbia University Department of Industrial Engineering and Operations Research, Columbia University, MC: 4704, NewYork, NY 10027, USA. Email address: karl.sigman@columbia.edu