M/M/1 Transient Queues and Path Counting

Similar documents
Continuous-Time Markov Chain

LECTURE #6 BIRTH-DEATH PROCESS

Stationary Probabilities of Markov Chains with Upper Hessenberg Transition Matrices

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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

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 "

Performance Evaluation of Queuing Systems

Chapter 5. Continuous-Time Markov Chains. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Statistics 150: Spring 2007

Some results on. Transient Queues. Shan XU

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

Synchronized Queues with Deterministic Arrivals

IEOR 6711, HMWK 5, Professor Sigman

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

Computer Networks More general queuing systems

Probability and Statistics Concepts

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

Introduction to queuing theory

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

Markov chains. 1 Discrete time Markov chains. c A. J. Ganesh, University of Bristol, 2015

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

Math 597/697: Solution 5

Figure 10.1: Recording when the event E occurs

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

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

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

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Birth-Death Processes

Lecture 20: Reversible Processes and Queues

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.

Lecture Notes of Communication Network I y: part 5. Lijun Qian. Rutgers The State University of New Jersey. 94 Brett Road. Piscataway, NJ

Model reversibility of a two dimensional reflecting random walk and its application to queueing network

Link Models for Packet Switching

Queuing Theory. Using the Math. Management Science

CS 798: Homework Assignment 3 (Queueing Theory)

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

SERIES

QUEUING MODELS AND MARKOV PROCESSES

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

Markov Processes and Queues

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

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

Cover Page. The handle holds various files of this Leiden University dissertation

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

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

ECE-517: Reinforcement Learning in Artificial Intelligence. Lecture 4: Discrete-Time Markov Chains

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Analysis of A Single Queue

MARKOV DECISION PROCESSES

Chapter 5: Special Types of Queuing Models

Asymptotics for Polling Models with Limited Service Policies

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

Electronic Companion Fluid Models for Overloaded Multi-Class Many-Server Queueing Systems with FCFS Routing

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

Combinatorial Structures

THE ROYAL STATISTICAL SOCIETY 2009 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES

Overload Analysis of the PH/PH/1/K Queue and the Queue of M/G/1/K Type with Very Large K

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

Quantitative Model Checking (QMC) - SS12

Stability of the two queue system

NATCOR: Stochastic Modelling

Analysis of Software Artifacts

Computer Systems Modelling

BRANCHING PROCESSES AND THEIR APPLICATIONS: Lecture 15: Crump-Mode-Jagers processes and queueing systems with processor sharing

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

The exponential distribution and the Poisson process

reversed chain is ergodic and has the same equilibrium probabilities (check that π j =

Glossary. Glossary 981. Hawkes Learning Systems. All rights reserved.

THE CAPORASO-HARRIS FORMULA AND PLANE RELATIVE GROMOV-WITTEN INVARIANTS IN TROPICAL GEOMETRY

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

λ λ λ In-class problems

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

Statistics 253/317 Introduction to Probability Models. Winter Midterm Exam Monday, Feb 10, 2014

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

Markov processes and queueing networks

Performance Modelling of Computer Systems

CPSC 531 Systems Modeling and Simulation FINAL EXAM

Lecture Notes 7 Random Processes. Markov Processes Markov Chains. Random Processes

Waiting time characteristics in cyclic queues

A Simple Solution for the M/D/c Waiting Time Distribution

POISSON PROCESSES 1. THE LAW OF SMALL NUMBERS

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

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

UNIT 5:Random number generation And Variation Generation

A Result for a Counter Problem

2 Generating Functions

The Transition Probability Function P ij (t)

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

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

Exact results for deterministic cellular automata traffic models

Readings: Finish Section 5.2

Introduction to Markov Chains, Queuing Theory, and Network Performance

MARKING A BINARY TREE PROBABILISTIC ANALYSIS OF A RANDOMIZED ALGORITHM

THE NUMBER OF PATHS IN BOUNDARY RESTRICTED PASCAL TRIANGLE

An Analysis of the Preemptive Repeat Queueing Discipline

FINAL EXAM REVIEW ITEMS Math 0312: Intermediate Algebra Name

Control of Fork-Join Networks in Heavy-Traffic

Chapter 11. Output Analysis for a Single Model Prof. Dr. Mesut Güneş Ch. 11 Output Analysis for a Single Model

Continuous Time Processes

Dynamic resource sharing

Transcription:

M/M/1 Transient Queues and Path Counting M.HlynaandL.M.Hurajt Department of Mathematics and Statistics University of Windsor Windsor, Ontario, Canada N9B 3P4 December 14, 006 Abstract We find combinatorially the probability of having n customers in an M/M/1 queueing system at an arbitrary time t when the arrival rate is λ and the service rate is µ. If λ = µ, then we can simplify considerably. Our method considers paths which can move Up, Down or remain Flat at each step. We count the number of U-D-F paths starting at terminating at the point (, i). To accomplish this, it will be shown that every U-D-F path has a one-to-one correspondence with a U-D path, and the latter are easy to count. 1 Introduction In queueing theory, the most commonly studied system is the M/M/1 system, which has exponentially distributed interarrival times, exponentially distributed service times, and a single server. The limiting probabilities of finding i customers in the system (for i =0, 1,,...) turns out to follow a geometric distribution when the arrival rate λ is less than the service rate µ. The limiting probabilities (as time tends to infinity) are easy to obtain. Details can be found in most queueing boos. However, in the transient case (time is finite), results are more complex and the probabilities are most commonly derived using differential equations and the probabilities are expressed in terms of Bessel functions (see [], for example). In the transient case, the restriction that λ<µis no longer needed. In this paper we consider a combinatorial method for finding the transient probabilities at time t. In the special case λ = µ, the expressions can be simplified. Some combinatorial analysis of transient probabilities for queues has been considered (see [1] and [3], for example). However, our analysis is different, and gives a simple expression for the λ = µ case which 1

is equal to but has a different appearance than the result based on Bessel functions. Further, our method requires the counting of certain inds of paths, which are of interest in their own right. Queueing Model Consider a single server M/M/1 queueing system with arrivals at rate λ and service at rate µ. Assume that at time 0, there are zero customers in the system. We are interested in the probability of finding i customers in the system at time t. If we wanted to simulate such a system, after each arrival or service completion, we could generate two exponential random values, one interarrival time and one completion time, and choose the minimum to determine what the next event (an arrival or a completion) will be. But if we use this method when there were no customers in the system, then we would be allowing negative customers which we not want. Thus if there are zero customers in the system and the next event is a departure, then we interpret this to mean that the system stays with zero customers but the cloc moves forward by the minimum of the two random values. The memoryless property of the exponential distribution allows us to do this. Let p 0i (t) be the probability that at time t, therearei customers in the system, given that there were 0 customers at time 0. We are dealing with a Poisson process. During the time length t, there will be some number -say events (arrivals or departures with the count having a Poisson distribution). The events in time t will result in i customers in the system at time t if there is a path of steps from (0, 0) to (, i) withthe following restrictions. (*) For m>0, a step is a movement from an arbitrary feasible point (j, m) to (j +1,m+1)orfrom(j, m) to(j +1,m 1). If m = 0 then a step is a movement from (j, 0) to (j +1, 0) or from (j, 0) to (j, 1). Theorem.1. If λ = µ, then p 0i (t) = (µ) e (µ)t =i! N 0i () (1) where N 0i () is the number of paths from 0 to i in stepsasin(*). If λ µ, p 0i (t) = i (λ + µ) e (λ+µ)t λ µ N 0ij ()(! λ + µ )m ( λ + µ )n () =i j=0 where N 0ij () is the number of paths from 0 to i in steps with exactly j flat steps, with the restrictions that m + n =, m (n j) =i.

Proof. The probability of events in time t is (λ + µ) e (λ+µ)t for =! λ 0, 1,... The probability of moving up at any particular step is λ+µ. If λ = µ, then the probability of moving up at each step is 1/. If the movement on a step is not up, then it must be down (or flat if the start of astepis(, 0)).To obtain.1, we condition on j and sum over all cases. If λ µ, then the situation is more complex. In this case the probabilities of two paths will be equal only if they have the same number of flat steps. So we partition our summation into classes with the same number of flat steps. We then condition on get and then on j and sum over all cases to get.1. For the remainder of the paper, we study properties of N 0,i (). It is interesting to compare the results obtained here with the standard expression using Bessel functions (see []) given below. p 0i (t) =e (λ+µ)t ρ i/ I i (at)+ρ (i 1)/ I i+1 (at)+(1 ρ)ρ i ρ j/ I j (at) j=i+ where ρ = λ/µ, a =µρ 1/ and I (x) = (x/) +m m=0 (+m)!m!. When λ = µ, this expression reduces to 3 Path Counting p 0i (t) =e (µ)t (I i (µt)+i i+1 (µt)) Definition 3.1. An upward step from (a, b) is a line segment connecting the lattice points (a, b) and (a +1,b+1). A downward step is a line segment connecting the lattice point (a, b) to (a +1,b 1). Aflat step is a line segment that joins the lattice point (a, 0) to (a +1, 0). Definition 3.. An U-D path of length is a polygonal path composed of a sequence of upward and downward sloped steps beginning at the origin and terminating at the lattice point (, i), whereandiareintegersand + i 0 mod. Definition 3.3. Let P be a polygonal path of length composed of upward, downward and flat paths. If P is restricted to the first quadrant and flat paths may only occur on the horizontal axis, then P is called a U-D-F path. 3

Lemma 3.1. If represents the length of a U-D path, 0 is the initial height, and i represents the height at which it terminates, then the number of such paths, denoted N 0,i (), is given by ( ) N 0,i () = +i. (3) Proof. Let u and d represent the numbers of upward and downward steps, respectively, contained in an U-D path of length terminating at height i. Then we have i = u d and = u + d. Solvingforu gives u = +i. Since there are only two choices for each segment, upward or downward, the number of such paths is ( ) ( ) N 0,i () = = +i. u Let S 1 be the set of all lattice points at which a U-D path may terminate, that is, S 1 = { (, i) >0, i, + i 0 mod }. If each such lattice point is connected to its neighbours only by an upward or a downward step and is assigned a label α, whereα is the number of U-D paths terminating at that point, then we have a representation of Pascal s triangle. (See Figure 1). Thus for example, after step 6, we have N 0, 6 (6) N 0, 4 (6) N 0, (6) N 0,0 (6) N 0, (6) N 0,4 (6) N 0,6 (6) 1 6 15 0 15 6 1 Now suppose that S 1 is folded along the line i = 1, so that the each point (, i) belowthe-axisismappedtotheoddpoint(, i 1). The result is a set of points, S = { (, i) >0, 0 i,, i Z}, whichisthe set of all lattice points at which an U-D-F path may terminate. Figure shows S connected using the permissible steps. If each Pascal label α from S 1 is carried over to S,thenα corresponds to the number of U-D-F paths terminating at that point. Thus for example, if N 0,i (6) represents the number of U-D-F paths from 0toiafter 6 steps, the counts can be shown to be N 0,0 (6) N 0,1 (6) N 0, (6) N 0,3 (6) N 0,4 (6) N 0,5 (6) N 0,6 (6) 0 15 15 6 6 1 1 Compare these values with N 0,i (6) and note the folding over i =1/. This suggests that there may exist a bijective function that maps each U-DpathtoanU-D-Fpath. 4

6 4 0 0 1 3 4 5 6 i 4 6 Figure 1: S 1 with connecting steps 4 Path Transformations An U-D path can be transformed to the corresponding U-D-F path as shown below. Upward and downward steps are denoted as U and D. Flat steps may be regarded as downward steps and hence are denoted D (or D when the fact that they are flat needs to be emphasized). A sample path has been chosen for demonstration purposes. 4.1 U-D Paths to U-D-F Paths 1. Separate the U-D path into sections such that the divisions occur where the path touches or crosses the horizontal axis and identify the positive and negative sections. (Fig. 3) + UD DDUU + UUDD DU DDUD 5

6 5 4 i 3 1 0 0 1 3 4 5 6 Figure : S with connecting steps. Change each letter which lies within a negative section and adjacent to a division into a flat path. (Fig. 4) + UD D DUD + UUDD DD D DUD 3. Reverse the remaining letters in the negative sections. (Fig. 5) + UD D UDD + UUDD DD D UDU 6

0 10 Figure 3: U-D path 0 10 Figure 4: Intermediate path 4. U-D-F Paths to U-D Paths 1. Identify the flat paths and group them in pairs from left to right. (Fig. 5) UD[D UDD] UUDD[DD][D UDU. Reverse the letters contained between each pair of flat paths. (Fig. 4) UD[D DUD] UUDD[DD][D DUD 3. Change the first flat path of each pair to a downward path and the second one to an upward path. (Fig. 3) UD[DDUU]UUDD[DU][DDUD Since there exists an invertible function that converts between U-D paths and U-D-F paths, we have a bijection. If the U-D path terminates at the point (, i) where 0 then the corresponding U-D-F path also terminates at (, i). However, an U-D path which ends at the point (, i) with<0correspondstoau-d-fpaththat 7

0 10 Figure 5: U-D-F path ends at the point (, i 1). If instead we begin with a U-D-F path that ends at (, i) such that + i 0 mod, then the corresponding U-D path also terminates at the point (, i). Similarly, a U-D-F path which terminates at (, i) such that + i( 1 mod ) is transformed into a U-D path that ends at the point (, i 1). 5 Counting U-D-F Paths Theorem 5.1. Let represent the length of the U-D-F path and i represent the height at which the path terminates. Then the number of such U-D-F paths, denoted N 0i (), is given by ( ) N 0i () = [ +i+1, (4) ] where [ ] is the greatest integer function. Proof. Since there exists a bijection between the U-D-F paths and the U-D paths as described in section 4, there are the same number of U-D-F paths as there are corresponding U-D paths. { N 0,i () if + i 0 mod N 0i () = N 0, i 1 () if + i 1 mod. Then by Lemma 3.1,we have {( ) +i N 0i () = ) ( i 1 if + i 0 mod if + i 1 mod. The property ( ) ( n r = n n r) is employed to simplify the expression. 8

For + i 1 mod, ( ) ( ) ( ) N 0i () = i 1 = i 1 = +i+1. Since { [ + i +1 +i ]= if + i 0 mod +i+1 if + i 1 mod, then in general we have ( ) N 0i () = [ +i+1. ] 5.1 Counting U-D-F Paths Starting from (0,m) In an M/M/1 queueing system, we might wish to now the probability of having i customers in the system if we start with m customers at time 0 when the arrival rate λ equals the service rate µ. LetN mi (j) bethenumber of paths from (0,m)to(j, i). The analog to Theorem.1 is the following. Theorem 5.. With the conditions above, assume λ = µ. Let p mi (t) be the probability of having i customers in the system at time t if there are m customers at time 0. Then p mi (t) = (λ + µ) e (λ+µ)t =i! N mi (). (5) The count of the number of paths N mi () uses the same folding at -1/ as was used previously. For example suppose we consider paths of length = 6 starting from (0,m)form =. The the counts of the U-D paths are N 0, 4 (6) N0, (6) N0, (6) N0, (6) N0,4 (6) N0,6 (6) N0,8 (6) 1 6 15 0 15 6 1 Folding over i = 1/, the U-D-F counts become N 0,0 (6) N 0,1 (6) N 0, (6) N 0,3 (6) N 0,4 (6) N 0,6 (6) N 0,8 (6) 15 6 0 1 15 6 1 Thus we get our binomial counts, but in a strange order! The analog of Theorem 5.1 is the following. 9

Theorem 5.3. Consider all U-D-F paths from (0,m) to (, i). Then the number of such U-D-F paths, denoted N mi (), is given by N mi () = {( ) +i m if + i m 0 mod ) (6) if + i m 1 mod. ( +i+m+1 6 Conclusion and Acnowledgment We have presented expressions for the transient probabilities for an M/M/1 queueing system. For the case when λ = µ, the expressions allowed for considerable simplification. These expressions appear to be slightly different in appearance from the Bessel function versions. Numerical wor confirms that these new expressions give the same values as the Bessel functions function versions. Further, the simplicity of the analysis presented here is unmatched in any other presentation. The λ = µ case is an important case. It gives good approximations for systems for which λ is close to µ. Since only transient probabilities are considered, the standard stability condition λ < µ is not needed. However, the interest in heavy traffic models (λ is near µ with λ<µ) maes our study more useful. This research was partially funded through research grants of both authors from NSERC Natural Sciences and Engineering Research Council (of Canada). References [1] D.G. Champernowne. (1956) An elementary method of solution of the queueing problem with a single server and continuous parameter. [] L. Kleinroc (1975) Queueing Systems, Volume 1. John Wiley and Sons. [3] L. Taacs (1967) Combinatorial Methods in the Theory of Stochastic Processes. John Wiley and Sons. 10