Basic Queueing Theory
|
|
|
- Ariel Boone
- 10 years ago
- Views:
Transcription
1 Basic Queueing Theory Dr. János Sztrik University of Debrecen, Faculty of Informatics
2 Reviewers: Dr. József Bíró Doctor of the Hungarian Academy of Sciences, Full Professor Budapest University of Technology and Economics Dr. Zalán Heszberger PhD, Associate Professor Budapest University of Technology and Economics 2
3 This book is dedicated to my wife without whom this work could have been finished much earlier. If anything can go wrong, it will. If you change queues, the one you have left will start to move faster than the one you are in now. Your queue always goes the slowest. Whatever queue you join, no matter how short it looks, it will always take the longest for you to get served. ( Murphy Laws on reliability and queueing ) 3
4 4
5 Contents Preface 7 I Basic Queueing Theory 9 1 Fundamental Concepts of Queueing Theory Performance Measures of Queueing Systems Kendall s Notation Basic Relations for Birth-Death Processes Queueing Softwares Infinite-Source Queueing Systems The M/M/1 Queue The M/M/1 Queue with Balking Customers Priority M/M/1 Queues The M/M/1/K Queue, Systems with Finite Capacity The M/M/ Queue The M/M/n/n Queue, Erlang-Loss System The M/M/n Queue The M/M/c/K Queue - Multiserver, Finite-Capacity Systems The M/G/1 Queue Finite-Source Systems The M/M/r/r/n Queue, Engset-Loss System The M/M/1/n/n Queue Heterogeneous Queues The M/ M/1/n/n/P S Queue The M/M/r/n/n Queue The M/M/r/K/n Queue The M/G/1/n/n/P S Queue The G/M/r/n/n/F IF O Queue II Exercises Infinite-Source Systems 119 5
6 5 Finite-Source Systems 137 III Queueing Theory Formulas Relationships Notations and Definitions Relationships between random variables Basic Queueing Theory Formulas M/M/1 Formulas M/M/1/K Formulas M/M/c Formulas M/M/2 Formulas M/M/c/c Formulas M/M/c/K Formulas M/M/ Formulas M/M/1/K/K Formulas M/G/1/K/K Formulas M/M/c/K/K Formulas D/D/c/K/K Formulas M/G/1 Formulas GI/M/1 Formulas GI/M/c Formulas M/G/1 Priority queueing system M/G/c Processor Sharing system M/M/c Priority system Bibliography 193 6
7 Preface Modern information technologies require innovations that are based on modeling, analyzing, designing and finally implementing new systems. The whole developing process assumes a well-organized team work of experts including engineers, computer scientists, mathematicians, physicist just to mention some of them. Modern infocommunication networks are one of the most complex systems where the reliability and efficiency of the components play a very important role. For the better understanding of the dynamic behavior of the involved processes one have to deal with constructions of mathematical models which describe the stochastic service of randomly arriving requests. Queueing Theory is one of the most commonly used mathematical tool for the performance evaluation of such systems. The aim of the book is to present the basic methods, approaches in a Markovian level for the analysis of not too complicated systems. The main purpose is to understand how models could be constructed and how to analyze them. It is assumed the reader has been exposed to a first course in probability theory, however in the text I give a refresher and state the most important principles I need later on. My intention is to show what is behind the formulas and how we can derive formulas. It is also essential to know which kind of questions are reasonable and then how to answer them. My experience and advice are that if it is possible solve the same problem in different ways and compare the results. Sometimes very nice closed-form, analytic solutions are obtained but the main problem is that we cannot compute them for higher values of the involved variables. In this case the algorithmic or asymptotic approaches could be very useful. My intention is to find the balance between the mathematical and practitioner needs. I feel that a satisfactory middle ground has been established for understanding and applying these tools to practical systems. I hope that after understanding this book the reader will be able to create his owns formulas if needed. It should be underlined that most of the models are based on the assumption that the involved random variables are exponentially distributed and independent of each other. We must confess that this assumption is artificial since in practice the exponential distribution is not so frequent. However, the mathematical models based on the memoryless property of the exponential distribution greatly simplifies the solution methods resulting in computable formulas. By using these relatively simple formulas one can easily foresee the effect of a given parameter on the performance measure and hence the trends can be forecast. Clearly, instead of the exponential distribution one can use other distributions but in that case the mathematical models will be much more complicated. The analytic 7
8 results can help us in validating the results obtained by stochastic simulation. This approach is quite general when analytic expressions cannot be expected. In this case not only the model construction but also the statistical analysis of the output is important. The primary purpose of the book is to show how to create simple models for practical problems that is why the general theory of stochastic processes is omitted. It uses only the most important concepts and sometimes states theorem without proofs, but each time the related references are cited. I must confess that the style of the following books greatly influenced me, even if they are in different level and more comprehensive than this material: Allen [2], Jain [41], Kleinrock [48], Kobayashi and Mark [51], Stewart [74], Tijms [91], Trivedi [94]. This book is intended not only for students of computer science, engineering, operation research, mathematics but also those who study at business, management and planning departments, too. It covers more than one semester and has been tested by graduate students at Debrecen University over the years. It gives a very detailed analysis of the involved queueing systems by giving density function, distribution function, generating function, Laplace-transform, respectively. Furthermore, Java-applets are provided to calculate the main performance measures immediately by using the pdf version of the book in a WWW environment. Of course these applets can be run if one reads the printed version. I have attempted to provide examples for the better understanding and a collection of exercises with detailed solution helps the reader in deepening her/his knowledge. I am convinced that the book covers the basic topics in stochastic modeling of practical problems and it supports students in all over the world. I am indebted to Professors József Bíró and Zalán Heszberger for their review, comments and suggestions which greatly improved the quality of the book. I am also very grateful to Tamás Török, Zoltán Nagy and Ferenc Veres for their help in editing.. All comments and suggestions are welcome at: [email protected] Debrecen, János Sztrik 8
9 Part I Basic Queueing Theory 9
10
11 Chapter 1 Fundamental Concepts of Queueing Theory Queueing theory deals with one of the most unpleasant experiences of life, waiting. Queueing is quite common in many fields, for example, in telephone exchange, in a supermarket, at a petrol station, at computer systems, etc. I have mentioned the telephone exchange first because the first problems of queueing theory was raised by calls and Erlang was the first who treated congestion problems in the beginning of 20th century, see Erlang [21, 22]. His works inspired engineers, mathematicians to deal with queueing problems using probabilistic methods. Queueing theory became a field of applied probability and many of its results have been used in operations research, computer science, telecommunication, traffic engineering, reliability theory, just to mention some. It should be emphasized that is a living branch of science where the experts publish a lot of papers and books. The easiest way is to verify this statement one should use the Google Scholar for queueing related items. A Queueing Theory Homepage has been created where readers are informed about relevant sources, for example books, softwares, conferences, journals, etc. I highly recommend to visit it at There is only a few books and lectures notes published in Hungarian language, I would mention the work of Györfi and Páli [33], Jereb and Telek [43], Kleinrock [48], Lakatos and Szeidl, Telek [55] and Sztrik [84, 83, 82, 81]. However, it should be noted that the Hungarian engineers and mathematicians have effectively contributed to the research and applications. First of all we have to mention Lajos Takács who wrote his pioneer and famous book about queueing theory [88]. Other researchers are J. Tomkó, M. Arató, L. Györfi, A. Benczúr, L. Lakatos, L. Szeidl, L. Jereb, M. Telek, J. Bíró, T. Do, and J. Sztrik. The Library of Faculty of Informatics, University of Debrecen, Hungary offer a valuable collection of queueing and performance modeling related books in English, and Russian, too. Please visit: I may draw your attention to the books of Takagi [85, 86, 87] where a rich collection of references is provided. 11
12 1.1 Performance Measures of Queueing Systems To characterize a queueing system we have to identify the probabilistic properties of the incoming flow of requests, service times and service disciplines. The arrival process can be characterized by the distribution of the interarrival times of the customers, denoted by A(t), that is A(t) P ( interarrival time < t). In queueing theory these interarrival times are usually assumed to be independent and identically distributed random variables. The other random variable is the service time, sometimes it is called service request, work. Its distribution function is denoted by B(x), that is B(x) P ( service time < x). The service times, and interarrival times are commonly supposed to be independent random variables. The structure of service and service discipline tell us the number of servers, the capacity of the system, that is the maximum number of customers staying in the system including the ones being under service. The service discipline determines the rule according to the next customer is selected. The most commonly used laws are FIFO - First In First Out: who comes earlier leaves earlier LIFO - Last Come First Out: who comes later leaves earlier RS - Random Service: the customer is selected randomly Priority. The aim of all investigations in queueing theory is to get the main performance measures of the system which are the probabilistic properties ( distribution function, density function, mean, variance ) of the following random variables: number of customers in the system, number of waiting customers, utilization of the server/s, response time of a customer, waiting time of a customer, idle time of the server, busy time of a server. Of course, the answers heavily depends on the assumptions concerning the distribution of interarrival times, service times, number of servers, capacity and service discipline. It is quite rare, except for elementary or Markovian systems, that the distributions can be computed. Usually their mean or transforms can be calculated. For simplicity consider first a single-server system Let ϱ, called traffic intensity, be defined as mean service time ϱ mean interarrival time. Assuming an infinity population system with arrival intensity λ, which is reciprocal of the mean interarrival time, and let the mean service denote by 1/µ. Then we have ϱ arrival intensity mean service time λ µ. 12
13 If ϱ > 1 then the systems is overloaded since the requests arrive faster than as the are served. It shows that more server are needed. Let χ(a) denote the characteristic function of event A, that is { 1, if A occurs, χ(a) 0, if A does not, furthermore let N(t) 0 denote the event that at time T the server is idle, that is no customer in the system. Then the utilization of the server during time T is defined by 1 T T 0 χ (N(t) 0) dt, where T is a long interval of time. As T we get the utilization of the server denoted by U s and the following relations holds with probability 1 1 T U s lim χ (N(t) 0) dt 1 P 0 T T 0 Eδ Eδ + Ei, where P 0 is the steady-state probability that the server is idle Eδ, Ei denote the mean busy period, mean idle period of the server, respectively. This formula is a special case of the relationship valid for continuous-time Markov chains and proved in Tomkó [93]. Theorem 1 Let X(t) be an ergodic Markov chain, and A is a subset of its state space. Then with probability 1 ( 1 T ) lim χ(x(t) A)dt m(a) P i T T m(a) + m(a), i A 0 where m(a) and m(a) denote the mean sojourn time of the chain in A and A during a cycle,respectively. The ergodic ( stationary, steady-state ) distribution of X(t) is denoted by P i. In an m-server system the mean number of arrivals to a given server during time T is λt/m given that the arrivals are uniformly distributed over the servers. Thus the utilization of a given server is U s λ mµ. The other important measure of the system is the throughput of the system which is defined as the mean number of requests serviced during a time unit. In an m-server system the mean number of completed services is mϱµ and thus throughput mu s µ. 13
14 However, if we consider now the customers for a tagged customer the waiting and response times are more important than the measures defined above. Let us define by W j, T j the waiting, response time of the jth customer, respectively. Clearly the waiting time is the time a customer spends in the queue waiting for service, and response time is the time a customer spends in the system, that is T j W j + S j, where S j denotes its service time. Of course, W j and T j are random variables and their mean, denoted by W j and T j, are appropriate for measuring the efficiency of the system. It is not easy in general to obtain their distribution function. Other characteristic of the system is the queue length, and the number of customers in the system. Let the random variables Q(t), N(t) denote the number of customers in the queue, in the system at time t, respectively. Clearly, in an m-server system we have Q(t) max{0, N(t) m}. The primary aim is to get their distributions, but it is not always possible, many times we have only their mean values or their generating function. 1.2 Kendall s Notation Before starting the investigations of elementary queueing systems let us introduce a notation originated by Kendall to describe a queueing system. Let us denote a system by A / B / m / K / n/ D, where A: distribution function of the interarrival times, B: distribution function of the service times, m: number of servers, K: capacity of the system, the maximum number of customers in the system including the one being serviced, n: population size, number of sources of customers, D: service discipline. Exponentially distributed random variables are notated by M, meaning Markovain or memoryless. Furthermore, if the population size and the capacity is infinite, the service discipline is 14
15 FIFO, then they are omitted. Hence M/M/1 denotes a system with Poisson arrivals, exponentially distributed service times and a single server. M/G/m denotes an m-server system with Poisson arrivals and generally distributed service times. M/M/r/K/n stands for a system where the customers arrive from a finite-source with n elements where they stay for an exponentially distributed time, the service times are exponentially distributed, the service is carried out according to the request s arrival by r severs, and the system capacity is K. 1.3 Basic Relations for Birth-Death Processes Since birth-death processes play a very important role in modeling elementary queueing systems let us consider some useful relationships for them. Clearly, arrivals mean birth and services mean death. As we have seen earlier the steady-state distribution for birth-death processes can be obtained in a very nice closed-form, that is (1.1) P i λ 0 λ i 1 µ 1 µ i P 0, i 1, 2,, P i1 λ 0 λ i 1 µ 1 µ i. Let us consider the distributions at the moments of arrivals, departures, respectively, because we shall use them later on. Let N a, N d denote the state of the process at the instant of births, deaths, respectively, and let Π k P (N a k), D k P (N d k), k 0, 1, 2,... stand for their distributions. By applying the Bayes s theorem it is easy to see that (1.2) Π k lim h 0 (λ k h + o(h))p k j0 (λ jh + o(h))p j λ k P k j0 λ jp j. Similarly (µ k+1 h + o(h))p (1.3) D k lim k+1 h 0 j1 (µ µ k+1p k+1 jh + o(h))p j j1 µ. jp j Since P k+1 λ k µ k+1 P k, k 0, 1,..., thus (1.4) D k λ kp k i0 λ Π k, k 0, 1,.... ip i 15
16 In words, the above relation states that the steady-state distributions at the moments of births and deaths are the same. It should be underlined, that it does not mean that it is equal to the steady-state distribution at a random point as we will see later on. Further essential observation is that in steady-state the mean birth rate is equal to the mean death rate. This can be seen as follows (1.5) λ λ i P i µ i+1 P i+1 µ k P k µ. i0 i0 k1 1.4 Queueing Softwares To solve practical problems the first step is to identify the appropriate queueing system and then to calculate the performance measures. Of course the level of modeling heavily depends on the assumptions. It is recommended to start with a simple system and then if the results do not fit to the problem continue with a more complicated one. Various software packages help the interested readers in different level. The following links worths a visit For practical oriented teaching courses we also have developed a collection of Java-applets calculating the performance measures not only for elementary but for more advanced queueing systems. It is available at For simulation purposes I recommend If the preprepared systems are not suitable for your problem then you have to create your queueing system and then the creation starts and the primary aim of the present book is to help this process. For further readings the interested reader is referred to the following books: Allen [2], Bose [9], Daigle [18], Gnedenko and Kovalenko [31], Gnedenko, Belyayev and Solovyev [29], Gross and Harris [32], Jain [41], Jereb and Telek [43], Kleinrock [48], Kobayashi [50, 51], Kulkarni [54], Nelson [59], Stewart [74], Sztrik [81], Tijms [91], Trivedi [94]. The present book has used some parts of Allen [2], Gross and Harris [32], Kleinrock [48], Kobayashi [50], Sztrik [81], Tijms [91], Trivedi [94]. 16
17 Chapter 2 Infinite-Source Queueing Systems Queueing systems can be classified according to the cardinality of their sources, namely finite-source and infinite-source models. In finite-source models the arrival intensity of the request depends on the state of the system which makes the calculations more complicated. In the case of infinite-source models, the arrivals are independent of the number of customers in the system resulting a mathematically tractable model. In queueing networks each node is a queueing system which can be connected to each other in various way. The main aim of this chapter is to know how these nodes operate. 2.1 The M/M/1 Queue An M/M/1 queueing system is the simplest non-trivial queue where the requests arrive according to a Poisson process with rate λ, that is the interarrival times are independent, exponentially distributed random variables with parameter λ. The service times are also assumed to be independent and exponentially distributed with parameter µ. Furthermore, all the involved random variables are supposed to be independent of each other. Let N(t) denote the number of customers in the system at time t and we shall say that the system is at state k if N(t) k. Since all the involved random variables are exponentially distributed, consequently they have the memoryless property, N(t) is a continuous-time Markov chain with state space 0, 1,. In the next step let us investigate the transition probabilities during time h. It is easy to see that P k,k+1 (h) (λh + o(h)) (1 (µh + o(h)) + + (λh + o(h)) k (µh + o(h)) k 1, k2 k 0, 1, 2,.... By using the independence assumption the first term is the probability that during h one customer has arrived and no service has been finished. The summation term is the probability that during h at least 2 customers has arrived and at the same time at least 1 17
18 has been serviced. It is not difficult to verify the second term is o(h) due to the property of the Poisson process. Thus P k,k+1 (h) λh + o(h). Similarly, the transition probability from state k into state k 1 during h can be written as P k,k 1 (h) (µh + o(h)) (1 (λh + o(h)) + + (λh + o(h)) k 1 (µh + o(h)) k k2 µh + o(h). Furthermore, for non-neighboring states we have P k,j o(h), k j 2. In summary, the introduced random process N(t) is a birth-death process with rates λ k λ, k 0, 1, 2,..., µ k µ, k 1, 2, 3... That is all the birth rates are λ, and all the death rates are µ. As we notated the system capacity is infinite and the service discipline is FIFO. To get the steady-state distribution let us substitute these rates into formula (1.1) obtained for general birth-death processes. Thus we obtain k 1 P k P 0 i0 λ µ P 0 ( ) k λ, k 0. µ By using the normalization condition we can see that this geometric sum is convergent iff λ/µ < 1 and P 0 ( 1 + k1 ( ) ) k 1 λ 1 λ µ µ 1 ϱ where ϱ λ µ. Thus P k (1 ϱ)ϱ k, k 0, 1, 2,..., which is a modified geometric distribution with success parameter 1 ϱ. In the following we calculate the the main performance measures of the system Mean number of customers in the system N kp k (1 ϱ)ϱ kϱ k 1 k0 k1 18
19 (1 ϱ)ϱ k1 dϱ k dϱ (1 ϱ)ϱ d ( ) 1 ϱ dϱ 1 ϱ 1 ϱ. Variance ( V ar(n) (k N) 2 P k k ϱ ) 2 P k 1 ϱ k0 k0 ( ) 2 ϱ k 2 P k + 2k ϱ 1 ϱ 1 ϱ P k k0 k0 ϱ 2 k(k 1)P k + (1 ϱ) + ϱ ( ϱ 2 1 ϱ 2 1 ϱ k0 (1 ϱ)ϱ 2 d2 ϱ k + ϱ ( ) 2 ϱ dϱ 2 1 ϱ 1 ϱ k0 2ϱ2 (1 ϱ) + ϱ ( ) 2 ϱ 2 1 ϱ ϱ 1 ϱ (1 ϱ). 2 ) 2 Mean number of waiting customers, mean queue length Q (k 1)P k k1 kp k k1 P k N (1 P 0 ) N ϱ k1 ϱ2 1 ϱ. Variance V ar(q) k1 (k 1) 2 P k Q 2 ϱ2 (1 + ϱ ϱ 2 ) (1 ϱ) 2. Server utilization U s 1 P 0 λ µ ϱ. By using Theorem 1 it is easy to see that P 0 1 λ 1 + Eδ, λ where Eδ a is the mean busy period length of the server, 1 is the mean idle time of λ the server. Since the server is idle until a new request arrives which is exponentially distributed with parameter λ. Hence and thus 1 ϱ 1 λ 1 + Eδ, λ Eδ 1 ϱ λ 1 ϱ 1 λ N 1 µ λ. 19
20 In the next few lines we show how this performance measure can be obtained in a different way. To do so we need the following notations. Let E(ν A ), E(ν D ) denote the mean number of customers that have arrived, departed during the mean busy period of the server, respectively. Furthermore, let E(ν S ) denote the mean number of customers that have arrived during a mean service time. Clearly and thus after substitution we get Consequently E(ν D ) E(δ)µ, E(ν S ) λ µ, E(ν A ) E(δ)λ, E(ν A ) + 1 E(ν D ), E(δ) 1 µ λ. E(ν D ) E(δ)µ 1 1 ϱ E(ν A ) E(ν S )E(ν D ) λ 1 µ 1 ϱ ϱ 1 ϱ E(ν A ) E(δ)λ ϱ 1 ϱ. Distribution of the response time of a customer Before investigating the response we show that in any queueing system where the arrivals are Poisson distributed P k (t) Π k (t), where P k (t) denotes the probability that at time t the system is a in state k, and Π k (t) denotes the probability that an arriving customers find the system in state k at time t. Let A(t, t + t) denote the event that an arrival occurs in the interval (t, t + t). Then Π k (t) : lim P (N(t) k A(t, t + t)), t 0 Applying the definition of the conditional probability we have P (N(t) k, A(t, t + t)) Π k (t) lim t 0 P (A(t, t + t)) 20
21 lim t 0 P (A(t, t + t) N(t) k) P (N(t) k). P (A(t, t + t)) However, in the case of a Poisson process event A(t, t + t) does not depends on the number of customers in the system at time t and even the time t is irrespective thus we obtain P (A(t, t + t) N(t) k) P (A(t, t + t)), hence for birth-death processes we have Π k (t) P (N(t) k). That is the probability that an arriving customer find the system in state k is equal to the probability that the system is in state k. In stationary case applying formula (1.2) with substitutions λ i λ, i 0, 1,... we have the same result. If a customer arrives it finds the server idle with probability P 0 hence the waiting time is 0. Assume, upon arrival a tagged customer, the system is in state n. This means that the request has to wait until the residual service time of the customer being serviced plus the service times of the customers in the queue. As we assumed the service is carried out according to the arrivals of the requests. Since the service times are exponentially distributed the remaining service time has the same distribution as the original service time. Hence the waiting time of the tagged customer is Erlang distributed with parameters (n, µ) and the response time is Erlang distributed with (n + 1, µ). Just to remind you the density function of an Erlang distribution with parameters (n, µ) is f n (x) µ(µx)n 1 (n 1)! e µx, x 0. Hence applying the theorem of total probability for the density function of the response time we have f T (x) (1 ϱ)ϱ n (µx)n µe µx µ(1 ϱ)e µx (ϱµx) n n! n! n0 n0 Its distribution function is µ(1 ϱ)e µ(1 ϱ)x. F T (x) 1 e µ(1 ϱ)x. That is the response time is exponentially distributed with parameter µ(1 ϱ) µ λ. Hence the expectation and variance of the response time are T 1 µ(1 ϱ), V ar(t ) ( 1 µ(1 ϱ) )2. 21
22 Furthermore T 1 µ(1 ϱ) 1 µ λ Eδ. Distribution of the waiting time Let f W (x) denote the density function of the waiting time. Similarly to the above considerations for x > 0 we have Thus Hence f W (x) n1 The mean waiting time is (µx) n 1 (n 1)! µe µx ϱ n (1 ϱ) (1 ϱ)ϱµ (1 ϱ)ϱµe µ(1 ϱ)x. (µxϱ) k e µx k! k0 f W (0) 1 ϱ, if x 0, f W (x) ϱ(1 ϱ)µe µ(1 ϱ)x, if x > 0. F W (x) 1 ϱ + ϱ ( 1 e µ(1 ϱ)x) 1 ϱe µ(1 ϱ)x. W 0 xf W (x)dx ϱ µ(1 ϱ) ϱeδ N 1 µ. Since T W + S, in addition W and S are independent we get thus V ar(t ) 1 (µ(1 ρ)) 2 V ar(w ) + 1 µ 2, V ar(w ) 1 (µ(1 ρ)) 1 2ρ ρ2 2 µ 2 (µ(1 ρ)) ρ 2 2 (µ(1 ρ)) ρ 2 2 (µ(1 ρ)), 2 that is exactly E(W 2 ) (EW ) 2. Notice that 1 (2.1) λt λ µ(1 ϱ) ϱ 1 ϱ N. Furthermore ϱ (2.2) λw λ µ(1 ϱ) ϱ2 1 ϱ Q. Relations (2.1), (2.2) are called Little formulas or Little theorem, or Little law which remain valid under more general conditions. 22
23 Let us examine the states of an M/M/1 system at the departure instants of the customers. Our aim is to calculate the distribution of the departure times of the customers. As it was proved in (1.3) at departures the distribution is D k λ kp k i0 λ ip i. In the case of Poisson arrivals λ k λ, k 0, 1,..., hence D k P k. Now we are able to calculate the Laplace-transform of the interdeparture time d. Conditioning on the state of the server at the departure instants, by using the theorem of total Laplace-transform we have L d (s) ϱ µ µ + s + (1 ϱ) λ λ + s µ µ + s, since if the server is idle for the next departure a request should arrive first. Hence L d (s) µϱ(λ + s) + (1 ϱ)λµ (λ + s)(µ + s) λµϱ + λs + λµ λµϱ (λ + s)(µ + s) λ(s + µ) (λ + s)(µ + s) λ λ + s, which shows that the distribution is exponential with parameter λ and not with µ as one might expect. The independence follows from the memoryless property of the exponential distributions and from their independence. This means that the departure process is a Poisson process with rate λ. This observation is very important to investigate tandem queues, that is when several simple M/M/1 queueing systems as nodes are connected in serial to each other. Thus at each node the arrival process is a Poisson process with parameter λ and the nodes operate independently of each other. Hence if the service times have parameter µ i at the ith node then introducing traffic intensity ϱ i λ µ i all the performance measures for a given node could be calculated. Consequently, the mean number of customers in tha network is the sum of the mean number of customers in the nodes. Similarly, the mean waiting and response times for the network can be calculated as the sum of the related measures in the nodes. Now, let us show how the density function d can be obtained directly without using tha Laplace-transforms. By applying the theorem of total probability we have ( λµ f d (x) ϱµe µx + (1 ϱ) λ µ e µx + λµ ) µ λ e λx λe µx + µ λ ( λµ µ µ λ e λx λµ ) µ λ e µx λe µx + λe λx λe µx λe λx. 23
24 Now let us consider an M/G/1 system and we are interested in under which service time distribution the interdeparture time is exponentially distributed with parameterλ. First prove that the utilization of the system is U S ϱ λe(s). As it is understandable for any stationary stable G/G/1 queueing system the mean number of departures during the mean busy period length of the server is one more than the mean number of arrivals during the mean busy period length of the server. That is E(δ) E(S) 1 + E(δ) E(τ), where E(τ) denotes the mean interarrival times. Hence where ϱ E(S) E(τ). Clearly E(τ) + E(δ) E(δ) E(τ) E(S) E(δ) E(τ)E(S) E(τ) E(S) E(S) 1 1 ϱ, U S E(δ) E(τ) + E(δ) E(S) 1 1 ϱ E(τ) + E(S) 1 ϱ ϱ 1 ϱ 1 + ϱ 1 ϱ ϱ < 1. Thus the utilization for an M/G/1 system is ϱ. It should be noted that an M/G/1 system D k P k, that is why our question can be formulated as ( ) λ λ + s ϱl λ S(s) + (1 ϱ) λ + s L λ(1 ϱ) S(s) L S (s) ϱ + λ + s L S (s) λ2 E(S) + sλe(s) + λ λ 2 E(S) λ(1 + se(s)) L S (s), λ + s λ + s thus L S (s) se(s), which is the Laplace-transform of an exponential distribution with mean E(S). In summary, only exponentially distributed service times assures that Poisson arrivals involves Poisson departures with the same parameters. Java applets for direct calculations can be found at Example 1 Let us consider a small post office in a village where on the average 70 customers arrive according to a Poisson process during a day. Let us assume that the service times are exponentially distributed with rate 10 clients per hour and the office operates 10 hours daily. Find the mean queue length, and the probability that the number of waiting customer is greater than 2. What is the mean waiting time and the probability that the waiting time is greater than 20 minutes? 24
25 Solution: Let the time unit be an hour. Then λ 7, µ 10, ρ 7 10 P N ρ 1 ρ 7 3 Q N ρ P (n > 3) 1 P (n 3) 1 P 0 P 1 P 2 P ρ (1 ρ)(ρ + ρ 2 + ρ 3 ) ρ ( W > 1 3 W N µ hour 14 minutes 30 ) ( ) 1 1 F W e e The M/M/1 Queue with Balking Customers Let us consider a modification of an M/M/1 system in which customers are discouraged when more and more requests are present at their arrivals. Let us denote by b k the probability that a customers joints to the systems provided there are k customers in the system at the moment of his arrival. It is easy to see, that the number of customers in the system is a birth-death process with birth rates λ k λ b k, k 0, 1,... Clearly, there are various candidates for b k but we have to find such probabilities which result not too complicated formulas for the main performance measures. Keeping in mind this criteria let us consider the following Thus b k 1, k 0, 1,... k + 1 P k ρk k! P 0, k 0, 1,..., and then using the normalization condition we get P k ρk k! e ρ, k 0, 1,... The stability condition is E ρ <, that is we do not need the condition ρ < 1 as in an M/M/1 system. Notice that the number of customers follows a Poisson law with parameter ρ and we can expect that the performnace measures can be obtained in a simple way. Performance measures 25
26 hence Thus U S 1 P 0 1 e ρ, U S E(δ) 1 + E(δ), λ E(δ) 1 λ U S 1 U S 1 λ 1 e ρ e ρ. N ρ, V ar(n) ρ Q N U S ρ (1 e ρ ) ρ + e ρ 1. E(Q 2 ) (k 1) 2 P k k 2 P k 2 kp k + k1 k1 k1 k1 E(N 2 ) 2N + U S ρ + ρ 2 2ρ + U S ρ 2 ρ + 1 e ρ. V ar(q) E(Q 2 ) (E(Q)) 2 ρ 2 ρ + 1 e ρ (ρ + e ρ 1) 2 ρ 2 ρ + 1 e ρ ρ 2 e 2ρ 1 2ρe ρ + 2ρ + 2e ρ ρ e 2ρ + e ρ 2ρe ρ ρ e ρ (e ρ + 2ρ 1). P k To get the distribution of the response and waiting times we have to know the distribution of the system at the instant when an arriving customer joins to the system. By applying the Bayes s rule it is not difficult to see that Π k Notice, that this time λ P k+1 k λ i + 1 P i i0 ρ k+1 (k+1)! e ρ i0 ρ i+1 (i + 1)! e ρ P k+1 1 e ρ. Let us first determine T and then W. Π k P k. By the law of total expectations we have k + 1 T µ Π k 1 (k + 1)P k+1 µ 1 e ρ k0 k0 W T 1 µ 1 ( ) ρ + e ρ 1. µ 1 e ρ 26 1 µ(1 e ρ ) N ρ µ(1 e ρ ).
27 As we have proved in formula (1.5) λ λ k P k µ k P k µp k µ(1 e ρ ), k0 k1 k1 thus λ T µ(1 e ρ ) ρ µ(1 e ρ ) ρ N, λ W µ(1 e ρ ) ρ + e ρ 1 µ(1 e ρ ) ρ + e ρ 1 Q which is the Little formula for this system. To find the distribution of T and W we have to use the same approach as we did earlier, namely f T (x) f T (x k) Π k k0 λe (ρ+µx) 1 e ρ k0 µ(µx) k e µx k0 (µxρ) k k!(k + 1)!, k! ρ k+1 e ρ (k + 1)! 1 e ρ which is difficult to calculate. We have the same problems with f W (x), too. However, the Laplace-transforms L T (s) and L W (s) can be obtained and the hence the higher moments can be derived. Namely L T (s) L T (s k)π k k0 e ρ 1 e ρ k0 L W (s) L T (s) µ + s µ. ( µρ µ + s ( ) k+1 ρ µ k+1 (k+1)! e ρ µ + s 1 e ρ k0 ) k+1 1 ( ) (k + 1)! e ρ e µρ 1 e ρ µ+s 1. Find T by the help of L T (s) to check the formula. It is easy to see that L T (s) e ρ µρ e µ+s 1 e ρ ( µρ(µ + s) 2 ) L T (0) e ρ 1 e ρ eρ ρ µ ρ µ(1 e ρ ). Hence T ρ µ(1 e ρ ), 27
28 as we have obtained earlier. W can be verified similarly. To get V ar(t ) and V ar(w ) we can use the Laplace-transform method. As we have seen Thus therefore L T (s) L T (s) L T (s) ( ) e ρ e λ 1 e ρ µ+s 1. e ρ 1 e ρ e λ µ+s ( 1)λ(µ + s) 2, e ρ 1 e ( (e ) ) λ ρ µ+s ( 1)λ(µ + s) λ(µ + s) 3 e λ µ+s. Hence L T (0) e ρ 1 e ρ ( (e ρ ρ ) ) 2 + 2ρ µ µ 2 eρ 1 µ ρ2 + 2ρ 2 1 e. ρ Consequently V ar(t ) 1 ( µ ρ2 + 2ρ 2 1 e ρ ρ µ(1 e ρ ) (ρ2 + 2ρ) (1 e ρ ) ρ 2 µ 2 (1 e ρ ) 2 ρ2 + 2ρ ρ 2 e ρ 2ρe ρ ρ 2 µ 2 (1 e ρ ) 2 ) 2 2ρ ρ2 e ρ 2ρe ρ µ 2 (1 e ρ ) 2 ρ(2 (ρ + 2)e ρ ) µ 2 (1 e ρ ) 2. However, W and T can be considered as a random sum, too. That is V ar(w ) E(N a ) 1 µ 2 + V ar(n a) E(N a ) kπ k k1 1 1 e ρ k1 kp k+1 1 e ρ ( (k + 1)P k+1 k0 1 1 e ρ ( ρ + e ρ 1 ). ( ) µ µ (E(N a) + V ar(n 2 a )). ) P k+1 k0 Since V ar(n a ) E(N 2 a) (E(N a )) 2 28
29 first we have to calculate E(N 2 a), that is E(N 2 a) k 2 Π k k1 1 1 e ρ 1 1 e ρ k1 k 2 P k+1 1 e ρ ( (k + 1) 2 2k 1 ) P k+1 k0 ( (k + 1) 2 P k+1 2 kp k+1 k0 k0 ) P k+1 k0 1 ( ρ + ρ 2 2 ( ρ + e ρ 1 ) ( 1 e ρ)) 1 e ρ 1 ( ρ 2 ρ e ρ + 1 ). 1 e ρ Therefore 1 ( V ar(n a ) ρ 2 ρ e ρ + 1 ) ( ) e ρ 1 e (ρ + ρ e ρ 1) ( ) 2 1 ((1 e ρ ) ( ρ 2 ρ e ρ + 1 ) ( ρ + e ρ 1 ) ) 2 1 e ρ ( ) 2 1 (ρ 2 ρ e ρ + 1 ρ 2 e ρ + ρe ρ + e 2ρ e ρ 1 e ρ Finally Thus V ar(w ) ρ 2 e 2ρ 1 2ρe ρ + 2ρ 2e ρ ) ρ e ρ (ρ 2 + ρ) (1 e ρ ) 2. ( ) 2 ( 1 1 µ 1 e (ρ + ρ e ρ 1) + ρ e ρ (ρ 2 + ρ) (1 e ρ ) 2 1 (µ(1 e ρ )) 2 ((ρ + e ρ 1)(1 e ρ ) + ρ e ρ (ρ 2 + ρ)). ) V ar(t ) V ar(w ) + 1 µ 2 ( ) 2 1 V ar(t ) (ρ + e ρ 1)(1 e ρ ) + ρ e ρ (ρ 2 + ρ) + (1 e ρ ) 2 ) µ(1 e ρ ) (1 e ρ )(ρ + e ρ e ρ ) + ρ e ρ (ρ 2 + ρ) (µ(1 e ρ )) 2 2ρ 2ρe ρ ρ 2 e ρ (µ(1 e ρ ) 2 which is the same we have obtained earlier. 29
30 2.3 Priority M/M/1 Queues In the following let us consider an M/M/1 systems with priorities. This means that we have two classes of customers. Each type of requests arrive according to a Poisson process with parameter λ 1, and λ 2, respectively and the processes are supposed to be independent of each other. The service times for each class are assumed to be exponentially distributed with parameter µ. The system is stable if ρ 1 + ρ 2 < 1, where ρ i λ i /µ, i 1, 2. Let us assume that class 1 has priority over class 2. This section is devoted to the investigation of preemptive and non-preemptive systems and some mean values are calculated. Preemptive Priority According to the discipline the service of a customer belonging to class 2 is never carried out if there is customer belonging to class 1 in the system. In other words it means that class 1 preempts class 2 that is if a class 2 customer is under service when a class 1 request arrives the service stops and the service of class 1 request starts. The interrupted service is continued only if there is no class 1 customer in the system. Let N i denote the number of class i customers in the system and let T i stand for the response time of class i requests. Our aim is to calculate E(N i ) and E(T i ) for i 1, 2. Since type 1 always preempts type 2 the service of class 1 customers is independent of the number of class 2 customers. Thus we have (2.3) E(T 1 ) 1/µ 1 ρ 1, E(N 1 ) ρ 1 1 ρ 1. Since for all customers the service time is exponentially distributed with the same parameter, the number of customers does not depends on the order of service. Hence for the total number of customers in an M/M/1 we get (2.4) E(N 1 ) + E(N 2 ) ρ 1 + ρ 2 1 ρ 1 ρ 2, and then inserting (2.3) we obtain E(N 2 ) ρ 1 + ρ 2 1 ρ 1 ρ 2 ρ 1 1 ρ 1 and using the Little s law we have E(T 2 ) E(N 2) λ 2 ρ 2 (1 ρ 1 )(1 ρ 1 ρ 2 ), 1/µ (1 ρ 1 )(1 ρ 1 ρ 2 ). Example 2 Let us compare what is the difference if preemptive priority discipline is applied instead of FIFO. 30
31 Let λ 1 0.5, λ and µ 1. In FIFO case we get E(T ) 4.0, E(W ) 3.0, E(N) 3.0 and in priority case we obtain E(T 1 ) 2.0, E(W 1 ) 1.0, E(N 1 ) 1.0 E(T 2 ) 8.0, E(W 2 ) 6.0, E(N 2 ) 2.0 Non-preemptive Priority The only difference between the two disciplines is that in the case the arrival of a class 1 customer does not interrupt the service of type 2 request. That is why sometimes this discipline is call HOL ( Head Of the Line ). Of course after finishing the service of class 1 starts. By using the law of total expectations the mean response time for class 1 can be obtained as E(T 1 ) E(N 1 ) 1 µ + 1 µ + ρ 1 2 µ. The last term shows the situation when an arriving class 1 customer find the server busy servicing a class 2 customer. Since the service time is exponentially distributed the residual service time has the same distribution as the original one. Furthermore, because of the Poisson arrivals the distribution at arrival moments is the same as at random moments, that is the probability that the server is busy with class 2 customer is ρ 2. By using the Little s law E(N 1 ) λ 1 E(T 1 ), after substitution we get E(T 1 ) (1 + ρ 2)/µ 1 ρ 1, E(N 1 ) (1 + ρ 2)ρ 1 1 ρ 1. To get the means for class 2 the same procedure can be performed as in the previous case. That is using (2.4) after substitution we obtain and then applying the Little s law we have E(N 2 ) (1 ρ 1(1 ρ 1 ρ 2 ))ρ 2 (1 ρ 1 )(1 ρ 1 ρ 2 ), E(T 2 ) (1 ρ 1(1 ρ 1 ρ 2 ))/µ (1 ρ 1 )(1 ρ 1 ρ 2 ). 31
32 Example 3 Now let us compare the difference between the two priority disciplines. Let λ 1 0.5, λ and µ 1, then E(T 1 ) 2.5, E(W 1 ) 1.5, E(N 1 ) 1.25 E(T 2 ) 7.0, E(W 2 ) 6.0, E(N 2 ) 1.75 Of course knowing the mean response time and mean number of customers in the system the mean waiting time and the mean number of waiting customers can be obtained in the usual way. Java applets for direct calculations can be found at The M/M/1/K Queue, Systems with Finite Capacity Let K be the capacity of an M/M/1 system, that is the maximum number of customers in the system including the one under service. It is easy to see that the nu,ber of customers in the systems is a birth-death process with rates λ k λ, k 0,..., K 1 és µ k µ, k 1,..., K. For the steady-state distribution we have that is P k ρk, k 0,..., K, K ρ i i0 1 P 0 1, ρ 1 K+1 K ρ i 1 ρ, ρ 1. 1 ρ K+1 i0 It sholud be noted that the system is stable for any ρ > 0 when K is fixed. However, if K the the stability condition is ρ < 1 since the distribution of M/M/1/K converges to the distribution of M/M/1. It can be verified analytically since ρ K 0 then P 0 1 ρ. Similarly to an M/M/1 systems after reasonable modifications the performance measures can be computed as U S 1 P 0, U S E(δ) 1 λ 1 U S 32
33 N K kρ k P 0 ρp 0 k1 ρp 0 ( K k1 K kρ k 1 k1 ρ k ) ρp 0 ( ρ 1 ρk 1 ρ ) ρp 0 ( ρ ρ K+1 1 ρ (( 1 (K + 1)ρ K) (1 ρ) + ρ ρ K+1) ρp 0 (1 ρ) 2 ρp ( 0 1 (K + 1)ρ K ρ + (K + 1)ρ K+1 + ρ ρ K+1) (1 ρ) 2 ρp ( 0 1 (K + 1)ρ K + Kρ K+1) (1 ρ) 2 ρ ( 1 (K + 1)ρ K + Kρ K+1). (1 ρ)(1 ρ K+1 ) ) Q K (k 1)P k k1 K K kp k P k N U S k1 k1 To obtain the distribution of the response and waiting time we have to know the distribution of the system at the moment when the tagged customer enters into to system. It should be underlined that the customer should enter into the system and it is not the same as an arriving customer. An arriving customer can join the system or can be lost because the system is full. By using the Bayes theorem it is easy to see that Π k λp k K 1 i0 λp i P k 1 P K. Similarly to the investigations we carried out in an M/M/1 system the mean and the density function of the response time can be obtained by the help of the law of total means and law of total probability, respectively. For the expectation we have T K 1 k0 K 1 k + 1 µ Π k k0 K 1 1 λ(1 P K ) k0 k + 1 µ ρ k P 0 1 P k (k + 1)P k+1 33 N λ(1 P K ).
34 Consequently W T 1 µ N λ(1 P K ) 1 µ. We would like to show that the Little s law is valid in this case and the same time we can check the correctness of the formula. It can easily be seen that the average arrival rate into the system is λ λ(1 P K ) and thus N λ T λ(1 P K ) λ(1 P K ) N. Similarly ( N λ W λ λ(1 P K ) 1 ) µ N λ µ N ρ(1 P K ) N U S Q, since λ µ µu S. Now let us find the density function of the response and waiting times By using the theorem of total probability we have f T (x) K 1 k0 µ (µx)k k! and thus for the distribution function we get K 1 x e µx P k 1 P K, F T (x) µ (µt)k e µt dt k! 1 P K k0 0 ( ) K 1 k (µx) i 1 e µx P k i! 1 P k0 i0 K ( K 1 k ) (µx) i 1 e µx P k. i! 1 P K k0 i0 Thes formulas are more complicated due to the finite summation as in the case of an M/M/1 system, but it is not difficult to see that in the limiting case as K we have f T (x) µ(1 ρ)e µ(1 ρ)x. 34 P k
35 For the density and distribution function of the waiting time we obtain f W (0) P 0 1 P K K 1 f W (x) µ (µx)k 1 P k (k 1)! e µx, x > 0 1 P K k1 ( ) F W (x) P K 1 k 1 0 (µx) i + 1 e µx P k 1 P K i! 1 P k1 i0 K ( K 1 k 1 ) (µx) i 1 e µx P k. i! 1 P K k1 i0 These formulas can be calculated very easily by a computer. As we can see the probability P K plays an important role in the calculations. Notice that it is exactly the probability that an arriving customer find the system full that is it lost. It is called blocking or lost probability and denoted by P B. Its correctness can be proved by the help of the Bayes s rule, namely P B λp K P K. K λp k k0 If we would like to show the dependence on K and ρ it can be denoted by P B (K, ρ) ρk. K ρ k k0 Notice that P B (K, ρ) K 1 k0 ρρ K 1 ρ k + ρρ K 1 ρp B (K 1, ρ) 1 + ρp B (K 1, ρ). Starting with the initial value P B (1, ρ) ρ the probability of loss can be computed recursively. It is obvious that this sequence tends to 0 as ρ < 1. Consequently 1 + ρ by using the recursion we can always find an K-t, for which P B (K, ρ) < P, where P is a predefined limit value for the probability of loss. To find the value of K without recursion we have to solve the inequality ρ K (1 ρ) 1 ρ K+1 < P 35
36 which is more complicated task. Alternatively can can find an approximation method, too. Use the distribution of an M/M/1 system and find the probability that in the system there are at least K customers. It is easy to see that and thus if then P B (K, ρ) < P. That is P B (K, ρ) ρk (1 ρ) 1 ρ K+1 < kk ρ K < P, K ln ρ < ln P K > ln P ln ρ. ρ k (1 ρ) ρ K, Now let us turn our attention to the Laplace-transform of the response and waiting times. First let us compute it for the response time. Similarly to the previous arguments we have L T (s) K 1 k0 ( µ µ + s ) k+1 ρ k P 0 1 P K K ( µρ P 0 ρ(1 P K ) l1 P 0 λ ρ(1 P K ) µ + s ( µp 1 0 (1 P K ) µ + s ( 1 λ µ+s ) l λ µ+s 1 λ ) K µ λ + s. The Laplace-transform of the waiting time can be obtained as L W (s) K 1 k0 P 0 1 P K ( µ µ + s ) k ρ k P 0 1 P K K 1 ( µρ ) k µ + s k0 ( ) K P λ 1 0 µ+s 1 P K 1 λ µ+s ( 1 P (µ + s) 0 1 P K 36 ( µ λ + s µ+s λ µ+s ) K ) K ),
37 which also follows from relation L T (s) L W (s) µ µ + s. By the help of the Laplace-transforms the higher moments of the involved random variables can be computed, too. Java applets for direct calculations can be found at The M/M/ Queue Similarly to the previous systems it is easy to see that the number of customers in the system, that is the process (N(t), t 0) is a birth-death process with rates λ k λ, k 0, 1,... µ k kµ, k 1, 2,.... Hence the steady-state distribution can be obtained as That is P k ϱk k! P 0, where P 1 0 P k ϱk k! e ϱ, k0 showing that N follows a Poisson law with parameter ϱ. ϱ k k! eϱ, It is easy to see that the performance measures can be computed as N ϱ, λ λ, T 1, W 0, r N, µ rµ µ U r 1 e ϱ, E(δ r ) 1 λ 1 e ϱ, E(δ e ϱ r ) 1 1 e ϱ. λ e ϱ It can be proved that these formulas remain valid for an M/G/ system as well where E(S) 1 µ. Java applets for direct calculations can be found at 37
38 2.6 The M/M/n/n Queue, Erlang-Loss System This system is the oldest and thus the most famous system in queueing theory. The origin of the traffic theory or congestion theory started by the investigation of this system and Erlang was the first who obtained his well-reputed formulas, see for example Erlang [21, 22]. By assumptions customers arrive according to a Poisson process and the service times are exponentially distributed. However, if n servers all busy when a new customer arrives it will be lost because the system is full. The most important question is what proportion of the customers is lost. The process (N(t), t 0) is said to be in state k if k servers are busy, which is the same as k customers are in the system. It is easy to see that (N(t), t 0)is a birth-death process with rates { λ, if k < n, λ k 0, if k n, µ k kµ, k 1, 2,..., n. Clearly the steady-state distribution exists since the process has a finite state space. The stationary distribution can be obtained as ( ) k λ 1 P P k 0, if k n, µ k! 0, if k > 0. Due to the normalizing condition we have ( n ( ) ) k 1 λ 1 P 0, µ k! and thus the distribution is P k i0 k0 ( ) k λ 1 µ k! n ( ) i λ 1 µ i! The most important measure of the system is P n ϱ n ϱ k k!, k n. n ϱ i i! i0 n! B(n, ρ) n ϱ k k! k0 which was introduced by Erlang and it is referred to as Erlang s B-formula, or loss formula and generally denoted by B(n, λ/µ). 38
39 By using the Bayes s rule it is easy to see that P n is the probability that an arriving customer is lost. For moderate n the probability P 0 can easily be computed. For large n and small ϱ P 0 e ϱ, and thus P k ϱk k! e ϱ, that is the Poisson distribution. For large n and large ϱ n j0 ϱ j j! eϱ. However, in this case the central limit theorem can be used, since the denominator is the sum of the first (n + 1) terms of a Poisson distribution with mean ϱ. Thus by the central limit theorem this Poisson distribution can be approximated by a normal law with mean ϱ and variance ϱ that is P n Φ(s) Φ(s 1/ ϱ) Φ(s) 1 Φ(s 1/ ϱ), Φ(s) where Φ(s) s 1 2π e x2 2 dx, and s n ϱ ϱ. Another way to calculate B(n, ρ) is to find a recursion. This can be obtained as follows B(n, p) ρ n n! n i0 ρ n ρ i i! 1 + ρ n n i0 ρ i ρ ρ n 1 n (n 1)! ρ n 1 i! + ρ n (n 1)! B(n 1, ρ) ρb(n 1, ρ) B(n 1, ρ) n + ρb(n 1, ρ). Using B(1, ρ) ρ as an initial value the probabilities B(n, ρ) can be computed for 1 + ρ any n. It is important since the direct calculation can cause a problem due to the value of the factorial. For example for n 1000, ρ 1000 the exact formula cannot be computed but the approximation and the recursion gives the value Due to the great importance of B(n, ρ) in practical problems so-called calculators have been developed which can be found at 39
40 To compare the approximations and the exact values we also have developed our own Java script which can be used at Now determine the main performance measures of this M/M/n/n system Mean number of customers in the systems, mean number of busy servers N n n jp j j0 n j0 j ϱj j! P n 1 ϱ i 0 ϱ i! P 0 ϱ(1 P n ), j0 thus the mean number of requests for a given server is ϱ n (1 P n). Utilization of a server As we have seen This case U s n i1 i n P i n n. U s ϱ n (1 P n). The mean idle period for a given server By applying the well-known relation P (the server is idle ) 1/µ e + 1/µ, where e is the mean idle time of the server. Thus hence ϱ n (1 P n) 1/µ e + 1/µ, e The mean busy period of the system Clearly thus n λ(1 P n ) 1 µ. U r 1 P 0 Eδ r 1 + Eδ, λ r Eδ r 1 P 0 λp 0 40 λ ( n i1 1 + ϱ i i! n i1 ). ϱ i i!
41 Java applets for direct calculations can be found at Example 4 In busy parking lot cars arrive according to a Poisson process one in 20 seconds and stay there in the average of 10 minutes. How many parking places are required if the probability of a loss is no to exceed 1%? Solution: Following a normal approximation P n 0.01 Φ ρ λ µ ρ n n! ( e ρ n+ 1 2 ρ ρ ) 30, P n Φ ( n+ 1 2 ρ ρ ) Φ Φ ( ) n 1 2 ρ ρ ( ) n ρ ρ Thus ( n Φ ρ ) ( n 1 Φ ρ ) 2. ρ ρ It is not difficult to verify by using the Table for the standard normal distribution that n 41. Thus the approximation value of P 41 is , and the exact value is Example 5 A telephone exchange consists of 50 lines and calls arrive according to a Poisson process, the mean interarrival time is 10 minutes. The mean service time is 5 minutes. Find the main performance measures. Solution: Using Poisson approximation where ρ λ µ 0.5 P , event for n 6 P 6 0, This means that a call is almost never lost. Mean number of busy lines can be obtain as The utilization of a line is The utilization of the system is n ρ(1 P n ) ρ 0.5, U r
42 The mean busy period of the system can be obtained as Eδ r (1 P 0) (λp 0 ) minutes Mean idle period of a line is e n λ(1 P n ) ρ λ 50 2(1 0) 0, minutes Heterogeneous Servers In the case of an M/ M/n/n system the service time distribution depends on the index of the server. That is the service time is exponentially distributed with parameter µ i for server i. An arriving customer choose randomly among the idle servers, that is each idle server is chosen with the same probability. Since the servers are heterogeneous it is not enough to to the number of busy servers but we have to identify them by their index. It means that we have to deal with general Markov-processes. Let (i 1,..., i k ) denote the indexes of the busy servers, which are the combinations of n objects taken k at a time without replacement. Thus the state space of the Markov-chain is the set of these combinations, that is (0, (i 1,..., i k ) Ck n, k 1,..., n). Let us denote by P 0 P (0), P (i 1,..., i k ) P ((i 1,..., i k )), (i 1,..., i k ) C n k, k 1,..., n the steady-state distribution of the chain which exists since the chain has a finite state space and it is irreducible. The set of steady-state balance equations can be written as (2.5) λp 0 n µ j P (j) j1 (2.6) (λ + k µ ij )P (i 1,..., i k ) j1 λ n k + 1 k P (i 1,..., i j 1, i j+1,..., i k ) j1 + j i 1,...,i k µ j P (i 1,..., i k, j ) (2.7) ( n n µ j )P (1,..., n) λ P (1,..., j 1, j + 1,..., n) j1 j1 42
43 where (i 1,..., i k, j ) denotes the ordered set i 1,..., i k, j, i 1 and i n+1 are not defined. Despite of the large number of unknowns, which is 2 n, the solution is quite simple, namely (2.8) P (i 1,..., i k ) (n k)! k ϱ ij C, j1 where ϱ j λ, j 1,..., n, P 0 n!c, which can be determined by the help of the µ i normalizing condition n P 0 + P (i 1,..., i k ) 1. k1 (i 1,...,i k ) Ck n Let us check the first equation (2.5). By substitution we have λn!c n j1 µ j λ µ j (n 1)!C n!λc. Lets us check now the third equation (2.7) ( n j1 µ j ) λ n µ 1 µ n C λ n j1 λ n 1 C µ 1 µ j 1 µ j+1 µ n ( n λ n µ j )C. µ 1 µ n Finally let us check the most complicated one, the second set of equations (2.6), namely (λ + k µ ij )(n k)! j1 which shows the equality. k ϱ ij C j1 λ k n k + 1 (n k + 1)! j1 λ k 1 C µ i1 µ ij 1 µ ij+1 µ ik + λ k+1 µ j C (n k 1)! µ i1 µ ik µ j j i 1,...,i k k µ ij λ k C (n k)! + λ λ k C (n k 1)! µ j1 i1 µ ik µ i1 µ ik j i 1,...,i k ( k ) λ k C λ k C (n k)! µ ij + λ(n k)!, µ i1 µ ik µ i1 µ ik j1 Thus the usual performance measures can be obtained as 43 j1
44 the utilization of the jth server U j can be calculated as U j n P (i 1,..., i k ), k1 j (i 1,...,i k ) and thus U j 1 µ j 1 µ j + E(e j ), where E(e j ) is the mean idle period of the jth server. Hence N n j1 U j E(e j ) 1 µ j 1 U j U j. The probability of loss is P B P (1,..., n). It should be noted that in this case the following relation also holds λ(1 P B ) n U j µ j. j1 In homogeneous case, that is when µ j µ, j 1,..., n, after substitution we have P k (i 1,...,i k ) C n k P (i 1,..., i k ) ( n )(n k)!ϱ k C ϱk ϱk n!c k k! k! P 0 that is it reduces to the Erlang s formula derived earlier. ϱ k k! n, ϱ j j1 j! It should be noted that these formulas remains valid under generally distributed service times with finite means with ρ i λe(s i ). In other words the Erlang s loss formula is robust to the distribution of the service time, it does not depend on the distribution itself but only on its mean. 2.7 The M/M/n Queue It is a variation of the classical queue assuming that the service is provided by n servers operating independently of each other. This modification is natural since if the mean arrival rate is greater than the service rate the system will not be stable, that is why the number of servers should be increased. However, in this situation we have parallel services and we are interested in the distribution of first service completion. That is why we need the following observation. 44
45 Let X i be exponentially distributed random variables with parameter µ i, (i 1, 2,..., r) and denote by Y their minimum. It is not difficult to see that Y is also exponentially distributed with parameter r µ i since i1 P (Y < x) 1 P (Y x) 1 P (X i x, i 1,..., r) 1 r i1 P (X i x) 1 e ( r i1 µ i)x. Similarly to the earlier investigations, it can easily be verified that the number of customers in the system is a birth-death process with the following transition probabilities P k,k 1 (h) (1 (λh + o(h))) (µ k h + o(h)) + o(h) µ k h + o(h), P k,k+1 (h) (λh + o(h)) (1 (µ k h + o(h))) + o(h) λh + o(h), where kµ, for 0 k n, µ k min(kµ, nµ) nµ, for n < k. It is understandable that the stability condition is λ/nµ < 1. To obtain the distribution P k we have to distinguish two cases according to as µ k depends on k. Thus if k < n, then we get Similarly, if k n, then we have In summary where n 1 P k P 0 k 1 P k P 0 i0 i0 λ (i + 1)µ P 0 k 1 λ (i + 1)µ jn ρ P k 0 k! P k P a k n n 0 n! λ nµ P 0 ( ) k λ 1 µ k!., for k n,, for k > n, a λ nµ ρ n < 1. k1 ( ) k λ 1 µ n!n. k n This a is exactly the utilization of a given server. Furthermore ( n 1 ρ k ) 1 P k! + ρ k 1, n! n k n 45 kn
46 and thus P 0 ( n 1 k0 ρ k k! + ρn n! ) a Since the arrivals follow a Poisson law the the distribution of the system at arrival instants equals to the distribution at random moments, hence the probability that an arriving customer has to wait is that is it can be written as P (waiting) P (waiting) n 1 k0 ρ n 1 n! 1 a ρ k k! + ρn n! P k kn 1 1 a kn n 1 k0 ρ k 1 P 0 n! n. k n ρ n n n! n ρ ρ k k! + ρn n n!(n ρ) C(n, ρ). This probability is frequently used in different practical problems, for example in telephone systems, call centers, just to mention some of them. It is also a very famous formula which is referred to as Erlang s C formula,or Erlang s delay formula and it is denoted by C(n, λ/µ). The main performance measures of the systems can be obtained as follows For the mean queue length we have Q (k n)p k kn jp n+j j0 j0 j ( ) λ n+j µ P n!n j 0 ( λ n ( λ µ) j a j µ P 0 P 0 n! n! j0 ) n ( λ µ P 0 n! ) n a j0 ( da j λ n µ) da P 0 a d n! da a (1 a) ρ C(n, ρ). 2 n ρ a j j0 For the mean number of busy servers we obtain n 1 n kp k + ρ k0 ( n 2 k0 ρ ρ k n 2 ρ np k P 0 (ρ k k! + ρn (n 1)! kn k0 k! + ρn 1 (n 1)! + ρn 1 (n 1)! ( n 1 ) k0 ρ k k! + ρn n! 1 1 a 46 ) 1 1 a ( ) ) 1 1 a 1 P 0 P 0 ρ 1 p 0 P 0 ρ.
47 For the mean number of customers in the system we get N n 1 kp k kp k + k0 k0 ρ + ρ C(n, ρ), n ρ (k n)p k + kn np k n + Q which is understandable since a customer is either in the queue or in service. Let us denote by S-gal the mean number of idle servers. Then it is easy to see that kn n n S, S n λ µ, thus hence N n S + Q, N n Q S. Distribution of the waiting time An arriving customer has to wait if at his arrival the number of customers in the system is at least n. In this case the time while a customer is serviced is exponentially distributed with parameter nµ, consequently if there n + j customers in the system the waiting time is Erlang distributed with parameters (j + 1, nµ). By applying the theorem of total probability for the density function of the waiting time we have f W (x) j0 Substituting the distribution we get ( λ µ f W (x) P 0 n! j0 P ( λ n 0 µ) n! ( λ n µ) j+1 xj P n+j (nµ) j! e nµx. ) n a j j+1 xj (nµ) j! e nµx nµe nµx j0 P 0 nµe (nµ λ)x ( n! λ n µ) (anµx) j P 0 nµe nµ(1 a)x ( n! λ n µ) 1 P 0 nµ(1 a)e nµ(1 a)x n! 1 a P (waiting)nµ(1 a)e nµ(1 a)x. 47 j!
48 Hence for the complement of the distribution function we obtain P (W > x) f W (u)du P (waiting)e nµ(1 a)x x C(n, ρ) e µ(n ρ)x. Therefore the distribution function can be written as F W (x) 1 P (waiting) + P (waiting) ( 1 e nµ(1 a)x) 1 P (waiting)e nµ(1 a)x 1 C(n, ρ) e µ(n ρ)x. Consequently the mean waiting time can be calculated as W xf W (x)dx 0 ( λ µ) n n! 1 P 0 (1 a) 2 nµ 1 C(n, ρ). µ(n ρ) Distribution of the response time The service immediately starts if at arrival the number of customer in the system is than n. However, if the arriving customer has to wait then the response time is the sum of this waiting and service times. By applying the law of total probability for the density function of the response time we get As we have proved f T (x) P (no waiting)µe µx + f W +S (x) f W (x) P (waiting)e nµ(1 a)x nµ(1 a). Thus f W +S (z) z f W (x)µe µ(z x) dx z P (waiting)nµ(1 a)µ 0 e nµ(1 a)x e µ(z x) dx Therefore n! P 1 0 nµ(1 a)µe zµ (1 a) ρn ρn 0 z 0 e µ(n 1 λ/µ)x dx n! P 1 0nµ ( n 1 λ/µ e µz 1 e µ(n 1 λ/µ)z). f T (x) ( 1 ( ) n ) λ P 0 µe µx + µ n!(1 a) 48
49 + µe µx (1 ( λ µ) n n! nµp 0 1 n 1 λ/µ e µx ( 1 e µ(n 1 λ/µ)x) ( λ ) np0 ( λ n µ µ) n!(1 a) + 1 ( np )) 0 1 e µ(n 1 λ/µ)x n! n 1 λ/µ µe µx (1 + ( λ ) np0 µ n!(1 a) ) 1 (n λ/µ)e µ(n 1 λ/µ)x. n 1 λ/µ Consequently for the complement of the distribution function of the response time we have P (T > x) x f T (y)dy x ( λ ) np0 ) µe µy µ 1 + (µe µy µ(n λ/µ)e µ(n λ/µ)y dy n!(1 a) n 1 λ/µ e µx + ( ) n λ 1 ( P 0 e µx e µ(n λ/µ)x) µ n!(1 a)(n 1 λ/µ) e µx (1 + ( λ ) np0 µ n!(1 a) Thus the distribution function can be written as ) 1 e µ(n 1 λ/µ)x. n 1 λ/µ F T (x) 1 P (T > x). In addition for the mean response time we obtain T as it was expected. 0 xf T (x)dx 1 µ + 1 ( λ n µ) 1 P 0 nµ n! (1 a) 1 2 µ + W, In stationary case the mean number of arriving customer should be equal to the mean number of departing customers, so the mean number of customer in the system is equal to the mumber of customers arrived during a mean response time. That is λt N Q + n, in addition λw Q. 49
50 These are the Little s formulas, that can be proved by simple calculations. As we have seen Since thus that is because λ µ ρ. ρ n N ρ + P 0 n!(1 a) a. 2 T 1 µ + 1 ( λ n µ) 1 P 0 nµ n! (1 a), 2 λt λ µ + ρn n! P a 0 (1 a), 2 N λt, Furthermore since Q λw, n ρ. Overall utilization of the servers The utilization of a single server is U s n 1 k1 can be obtained as k n P k + P k n n a. kn Hence the overall utilization can be written as U n nu s n. The mean busy period of the system can be computed as The system is said to be idle if the is no customer in the system, otherwise the system is busy. Let Eδ r denote the mean busy period of the system. Then the utilization of the system is thus U r 1 P 0 Eδ r 1 + Eδ, λ r Eδ r 1 P 0 λp 0. If the individual servers are considered then we assume that a given server becomes busy earlier if it became idle earlier. Hence if j < n customers are in the system then the number of idle servers is n j. 50
51 Let as consider a given server. On the condition that at the instant when it became idle the number of customers in the system was j its mean idle time is The probability of this situation is e j n j λ. a j P j n 1. P i Then applying the law of total expectations for its mean idle period we have n 1 e a j e j j0 n 1 j0 i0 (n j)p j λ n 1 i0 P i S λp (e), where P (e) denotes the probability that an arriving customer find an idle server. Since thus where Eδ denotes it busy period. U s a Eδ e + Eδ, ae (1 a)eδ, Hence Eδ a S 1 a λp (e). In the case of n 1 it reduces to thus which was obtained earlier. S 1 a, P (e) P 0 1 a, a λ µ, Eδ 1 µ λ, In the following we are going to show what is the connection between these two famous Erlang s formulas. Namely, first we prove how the delay formula can be expressed by the help of loss formula, that is C ( m, λ ) ( λ µ )m µ m! 1 1 λ mµ m 1 k0 1 ( λ µ )k + ( λ µ )m 1 k! m! 1 λ mµ m 1 k0 ( λ µ )m m! ( λ µ )m (1 λ ) + ( λ µ )m m! mµ m! B(m, λ ) λ µ (1 B(m, λ ))(1 λ ) + B(m, λ ) B(m, ) µ 1 λ (1 B(m, λ )). µ mµ µ mµ µ 51
52 As we have seen in the previous investigations the delay probability C(n, ρ), plays an important role in determining the main performance measures. Notice that the above formula can be rewritten as C(n, ρ) nb(n, ρ) n ρ + ρb(n, ρ), moreover it can be proved that there exists a recursion for it, namely C(n, ρ) starting with the value C(1, ρ) ρ. ρ(n 1 ρ) C(n 1, ρ) (n 1)(n ρ) ρc(n 1, ρ), If the quality of service parameter is C(n, ρ) then it is easy to see that there exists an olyan n α, for which C(n α, ρ) < α. This n α can easily be calculated by a computer using the above recursion. Let us show another method for calculating this value. As we have seen earlier the probability of loss can be approximated as ( ) n ρ ϕ ρ B(n, ρ) ( ). ρφ n ρ ρ Let k n ρ ρ, thus n ρ + ρk. Hence C(n, ρ) nb(n, ρ) n ρ + ρb(n, ρ) ρ ϕ(k) φ(k) ) ρ (k + ϕ(k) φ(k) (ρ + k ρ) ϕ(k) ρφ(k) ρ + k k ρ + ρ ϕ(k) ρφ(k) ) 1. ( 1 + k φ(k) ϕ(k) That is if we would like to find such an n α for which C(n α, ρ) < α, then we have to solve the following equation which can be rewritten as ( ) 1 φ(k α ) 1 + k α α ϕ(k α ) φ(k α ) k α ϕ(k α ) 1 α α If k α is given then n α ρ + k α ρ. 52
53 It should be noted that the search for k α is independent of the value of ρ and n thus it can be calculated for various values of α. For example, if α 0.8, 0.5, 0.2, 0.1, then the corresponding k α -as are , , 1.062, The formula n α ρ + k α ρ is called as square-root staffing rule. As we can see in the following Table it gives a very good approximation, see Tijms [91]. Table 2.1: Exact and approximated values of n α 0.5 α 0.2 α 0.1 exact approximation exact approximation exact approximation ρ ρ ρ ρ ρ ρ ρ ρ Let us see an example for illustration. Let us consider two service centers which operate separately. Then using this rule overall we have to use 2(ρ + k α ρ) servers. However, if we have a joint queue to get the same service level we should use 2ρ + k α 2ρ servers. The reduction is (2 2)k α ρ, that is the reason that the joint queue is used in practice. C(n, ρ) is of great importance in practical problems hence so-called calculators have been developed and can be used at the link Java applets for direct calculations can be found at Example 6 Consider a service center with 4 servers where λ 6, µ 2. Find the performance measures of the system. Solution: P , Q 1.528, N 4.528, S 1, n 3, P (W > 0) P (n 4) C(4, 3) 0.509, W time unit, T time unit, 53
54 U n 3, e 0.35 time unit, Eδ 1.05 time unit, 4 Eδ r 4.2 time unit, U r Example 7 Find the number of runways in an airport such a way the the probability of waiting of an airplane should not exceed 0.1. The arrivals are supposed to be Poisson distributed with rate λ 27 per hour and the service times are exponentially distributed with a mean of 2 minutes. Solution: First use the same time unit for the rates, let us compute in hours. Hence µ 30 and for stability we need λ < 1 which results n > 1. nµ Denote by P i (W > 0) the probability of waiting for i runways. By applying the corresponding formulas we get P 2 (W > 0) 0.278, P 3 (W > 0) 0.070, P 4 (W > 0) Hence the solution is n 3. In this case P and W hour, Q Example 8 Consider a fast food shop where to the customers arrive according to a Poisson law one customer in 6 seconds on the average. The service time is exponentially distributed with 20 seconds mean. Assuming that the maintenance cost of a server is 100 Hungarian Forint and the waiting cost is the same find the optimal value of the server which minimizes the mean cost per hour. Solution: Q λw W E(T C) 100 n W 1 λ µ thus n 4. Computing for the values n 4, 5, 6, 7, 8 we have found that the minimum is achieved at n 5. This case the performance measures are W 3.9second, P (e) 0.66, P (W ) 0.34, Eδ 29.7second, e 14.9second, Q 0.65, n 2.5, N 3.15, S 2.5, E(T C) 565 HUF/hour. 54
55 2.8 The M/M/c/K Queue - Multiserver, Finite-Capacity Systems This queue is a variation of a multiserver system and only maximum K customers are allowed to stay in the system. As earlier the number of customers in the system is a birth-deat process with appropriate rates and for the steady-state distribution we have λ n P n!µ n 0, for 0 n c P n λ n P c n c c!µ n 0, for c n K. From the normalizing condition for P 0 we have P 0 ( c 1 n0 λ n n!µ + K n To simplify this expression let ρ λ µ, a ρ c. Then Thus K nc ρ n c n c c! ρc c! P 0 [ [ ρ c c! K a n c nc c 1 1 a K c a n0 nc ρ c c! ρ c c! ρ c (K c + 1) + c 1 c! ) λ n 1. c n c c!µ n 1 a K c+1 1 a, if a 1 (K c + 1), if a 1. ] ρ n 1, if a 1 n! n0 ] ρ n 1, if a 1. n! The main performance measures can be obtained as follows Mean queue length Q K (n c)p n nc+1 P 0ρ c a c! P 0ρ c a c! K λ n (n c) c n c c!µ P n 0 P 0ρ c c! nc+1 K (n c)a n c 1 P 0ρ c K c a c! nc+1 i1 ( ) d 1 a K c+1 da 1 a ia i 1 P 0ρ c a c! K (n c) ρn c nc+1 ( K c d da c n c ) a i i0 which results Q P 0ρ c a c!(1 a) 2 [1 ak c+1 (1 a)(k c + 1)a K c ] 55
56 In particular, if a 1 then the L Hopital s rule should be applied twice. Mean number of customers in the system It is easy to see that and since we get λ λ(1 P K ) µc N Q + c N Q + ρ(1 P K ). Mean response and waiting times The mean times can be obtained by applying the Little s law, that is T W N λ(1 P K ) Q λ(1 P K ) In the case of an M/M/1/K system these formulas are simplified to Q P 0 P n Distribution at the arrival instants By applying the Bayes s rule we have { 1 a, (a 1) 1 a K+1, (a 1) 1 K+1 { (1 a)a n, (a 1) 1 a K+1, (a 1) 1 K+1 { a a(kak +1) 1 a K(K 1) 2(K+1) 1 a K+1, (a 1), (a 1) N Q + (1 P 0 ). Π n P ( there are n customers in the system a customer is about to enter into the system ) { } [λ t + o( t)]pn lim t 0 K 1 n0 [λ t + o( t)]p n { } [λ + o( t)/ t]pn lim t 0 λp n λ K 1 n0 P n K 1 n0 [λ + o( t)/ t]p n P n 1 P K, (n K 1). Obviously in the case of an M/M/c/ system Π n P n since P K tends to 0. 56
57 Distribution of the waiting time As in the previous parts for F W (t) the theorem of total probability is applied resulting Since K 1 t cµ(cµx) n c F W (t) F W (0) + Π n e cµx dx nc 0 (n c)! K 1 ) cµ(cµx) F W (0) + Π n (1 n c e cµx dx. (n c)! t nc λ(λx) m e λx dx m! t m (λt) i e λt i0 applying substitutions m n c, λ cµ we have t cµ(cµx) n c n c e cµx dx (n c)! i0 i! (cµt) i e cµt, i! thus F W (t) F W (0) + 1 K 1 nc K 1 nc Π n n c Π n i0 K 1 nc n c Π n i0 (cµt) i e cµt. i! (cµt) i e cµt i! The Laplace-transform of the waiting and response times can be derived similarly, by using the law of total Laplace-transforms. Java applets for direct calculations can be found at The M/G/1 Queue So far systems with exponentially distributed serviced times have been treated. We must admit that it is a restriction since in many practical problems these times are not exponentially distributed. It means that the investigation of queueing systems with generally distributed service times is natural. It is not the aim of this book to give a detailed analysis of this important system I concentrate only on the mean value approach and some practice oriented theorems are stated without proofs. A simple proof for the Little s law is also given. 57
58 Little s Law As a first step for the investigations let us give a simple proof for the Little s theorem, Little s law, Little s formula, which states a relation between the mean number of customers in the systems, mean arrival rate and the mean response time. Similar version can be stated for the mean queue length, mean arrival rate and mean waiting time. Let α(t) denote the number of customers arrived into the system in a time interval (0, t), and let δ(t) denote the number of departed customers in (0, t). Supposing that N(0) 0, the number of customert in the system at time t is N(t) α(t) δ(t). Let the mean arrival rate into the system during (0, t) be defined as λ t : α(t). t Let γ(t) denote the overall sojourn times of the customers until t and let T t be defined as the mean sojourn time for a request. Clearly T t γ(t) α(t). Finally, let N t denote the mean number of customers in the system during in the interval (0, t), that is N t γ(t). t From these relations we have N t λ t Tt. Supposing that the following limits exist we get λ lim t λt, N λ T, T lim t Tt. which is called Little s law. Similar version is Q λ W. The Embedded Markov Chain As before let N(t) denote the number of customers in the system at time t. As time evolves the state changes and we can see that changes to neighboring states occur, up and down, that is from state k either to k + 1 or to k 1. Since we have a single server the number of k k + 1 type transitions may differ by at most one from the number of k + 1 k type transitions. So if the system operate for a long time the relative frequencies should be the same. It means that in stationary case the distributions at the arrival instants and the departure instants should be the same. More formally, Π k D k. 58
59 For further purposes we need the following statements Statement 1 For Poisson arrivals P (N (t) k) P (an arrival at time t finds k customers in the system ). Statement 2 If in any system N (t) changes its states by one then if either one of the following limiting distribution exists, so does the other and they are equal. Π k : lim t (an arrival at time t finds k customers in the system ), D k : lim t (a departure at time t leaves k customers behind ), Π k D k. Thus for an M/G/1 system Π k P k D k, that is in stationary case these 3 types of distributions are the same. Due to their importance we prove them. Les us consider first Statement 1. Introduce the following notation P k (t) : P (N (t) k), Π k (t) : P (an arriving customer at instant t finds k customers in the system ). Let A(t, t + t) be the event that one arrival occurs in the interval (t, t + t). Then Π k (t) lim P (N (t) k A(t, t + t)). t 0 By the definition of the conditional probability we have P (N (t) k, A(t, t + t)) Π k (t) lim t 0 P (A(t, t + t)) lim t 0 P (A(t, t + t) N (t) k) P (N(t) k). P (A(t, t + t)) Due to the memoryless property of the exponential distribution event A(t, t + t) does not depend on the number of customers in the systems and even on t itself thus P (A(t, t + t) N (t) k) P (A(t, t + t)), hence that is Π k (t) lim P (N(t) k), t 0 Π k (t) P k (t). This holds for the limiting distribution as well, namely Π k lim t Π k (t) lim t P k (t) P k. 59
60 Let us prove Statement 2 by the help of Statement 1. Let ˆR k (t) denote the number of arrivals into the system when it is in state k during the time interval (0, t) and let ˆD k (t) denote the number of departures that leave the system behind in state k during (0, t). Clearly (2.9) ˆR k (t) ˆD k (t) 1. Furthermore if the total number of departures is denoted by D (t), and the total number of arrivals is denoted by R (t) then D (t) R (t) + N (0) N (t). The distribution at the departure instants can be written as D k lim t ˆDk (t) D (t). It is easy to see that the after simple algebra we have ˆD k (t) D (t) ˆR k (t) + ˆD k (t) ˆR k (t) R (t) + N (0) N (t). Since N (0) is finite and N (t) is also finite due to the stationarity from (2.9) and ˆR (t), with probability one follows that D k lim t ˆDk (t) D (t) lim t ˆR k (t) R (t) Π k. Consequently, by using Statement 1 the equality of the three probabilities follows. Mean Value Approach Let S denote the service time and let R denote the residual ( remaining) service time. Then it can easily be seen that E(W ) (E(R) + (k 1)E(S)) Π k k1 ( ) E(R)P k + (k 1)P k E(S) E(R)ρ + E(Q)E(S), k1 k1 where E(R) denotes the mean residual time. By applying the Little s law we have and thus E(Q) λe(w ), (2.10) E(W ) ρe(r) 1 ρ 60
61 known as Pollaczek-Khintchine mean value formula. In subsection 2.9 we will show that (2.11) E(R) E(S2 ) 2E(S), which can be written as (2.12) E(R) E(S2 ) 2E(S) V ar(s) + E2 (S) 2E(S) 1 2 (C2 S + 1)E(S), where CS 2 is the squared coefficient of the service time S. It should be noted that mean residual service time depends on the first two moments of the service time. Thus for the mean waiting time we have E(W ) ρe(r) 1 ρ ρ 2(1 ρ) (C2 S + 1)E(S). By using the Little s law for the mean queue length we get E(Q) ρ2 1 ρ CS Clearly, the mean response time and the mean number of customers in the systems can be expressed as E(T ) ρ 1 ρ E(N) ρ + CS E(S) + E(S), 2 ρ2 1 ρ CS 2 + 1, 2 which are also referred to as Pollaczek-Khintchine mean value formulas. Example 9 For an exponential distribution CS 2 1, and thus E(R) E(S) which is evident from the memoryless property of the exponential distribution. In this case we get E(W ) ρ ρ2 E(S), E(Q) 1 ρ 1 ρ, E(T ) 1 ρ E(S), E(N) 1 ρ 1 ρ. Example 10 In the case of deterministic service time CS 2 Consequently we have 0, thus E(R) E(S)/2. E(W ) ρ E(S) 1 ρ 2, E(Q) ρ 2 2(1 ρ) E(T ) 1 E(S) ρ 2 + E(S), E(N) ρ + 1 ρ 2 2(1 ρ). 61
62 For an M/G/1 system we have proved that Π k D k P k, k 0, 1,... therefore the generating function of the number of customers in the system is equal to the generating function of the number of customers at departure instant. Furthermore, it is clear that the number of customers at departure instants is equal the number customers arrived during the response time. In summary we have D k P k 0 (λx) k e λx f T (x)dx. k! Thus the corresponding generating function can be obtained as G N (z) k0 z k 0 k0 0 0 (λx) k e λx f T (x)dx k! (λxz) k e λx f T (x)dx k! e λ(1 z)x f T (x)dx L T (λ(1 z)), that is it can be expressed by the help of the Laplace-transform of the response time T. By applying the properties of the generating function and the Laplace-transform we have G (k) N (1) E(N(N 1)... (N( k + 1))) ( 1)k L (k) T (0)λk λ k E(T k ). In particular, the first derivative results to the Little s law, that is N λt, and hence this formula can be considered as the generalization of the Little s law for an M/G/1 queueing systems. By the help of this relation the higher moments of N can be obtained, thus the variance can be calculated if the second moment of T is known. Residual Service Time Let us suppose that the tagged customer arrives when the server is busy and denote the total service time of the request in service by X, that is a special interval. Let f X (x) denote the density function of X. The key observation to find f X (x) is that it is more likely that the tagged customer arrives in a longer service time than in a short one. Thus the probability that X is of length x should be proportional to the length x as well as the frequency of such service times, which is f S (x) dx. Thus we may write P (x X x + dx) f X (x)dx Cxf S (x)dx, 62
63 where C is a constant to normalize this density. That is thus C 1 x0 xf S (x)dx E(S), f X (x) xf S(x) E(S). E(X) 0 xf X (x) dx 1 E(S) 0 x 2 f S (x) dx E(S2 ) E(S). Since the tagged customers arrives randomly in service time S hence the mean residual can be obtained as E(R) E(X) E(S2 ) 2 2E(S) Example 11 Let the service time be Erlang distributed with parameters (n, µ) then thus hence E(S) n µ, V ar(s) n µ 2, E(S 2 ) V ar(s) + E 2 (S) E(R) 1 + n 2µ. n(1 + n) µ 2 It is easy to see that using this approach the the density function the residual service time can be calculated. Given that the tagged customer arrives in a service time of length x, the arrival moment will be a random point within this service time, that is it will be uniformly distributed within the service time interval (0, x). Thus we have P (x X x + dx, y R y + dy) dy x f X(x)dx, qquad0 y x. After substitution for f X (x) and integrating over x we get the desired density function of the residual service time, that is Hence f R (y) 1 F S(y). E(S) Thus E(R) 0 xf R (x)dx 0 E(R) E(S2 ) 2E(S). x 1 F S(x) dx, E(S) 63
64 Now let us show how to calculate this type of integrals. Let X be a nonnegative random variable with finite nth moment. Then x n f(x)dx y x n f(x)dx + x n f(x)dx, thus Since hence 0 0 y y x n f(x)dx x n f(x)dx x n f(x)dx. y 0 0 x n f(x)dx y n f(x)dx y n (1 F (y)), y y y 0 y n (1 F (y)) x n f(x)dx x n f(x)dx, therefore that is 0 lim y y n (1 F (y)) y x n f(x)dx lim x n f(x)dx, y 0 lim y yn (1 F (y)) 0. After these using integration by parts keeping in mind the above relation we get 0 x n 1 (1 F (x))dx In particular, for n 2 we obtain x n 0 E(R) E(S2 ) 2E(S) Pollaczek-Khintchine and Takács formulas n f(x)dx E(Xn ) n The following relations are commonly referred to as Pollaczek-Khintchine transform equations (1 ρ)(1 z) G N (z) L S (λ λz) L S (λ λz) z, t(1 ρ) L T (t) L S (t) t λ + λl S (t), L W (t) t(1 ρ) t λ + λl S (t), 64.
65 by the help of which, in principle, the distribution of the number of customers in the system, the density function of the response and waiting times can be obtained. Of course this time we must be able to invert the involved Laplace-transforms. Takács Recurrence Theorem E(W k ) λ 1 ρ k i1 ( ) k E(S i+1 ) i i + 1 E(W k i ) that is moments of the waiting time can be obtained in terms of lower moments of the waiting time and moments of the service time. It should be noted to get the kth moment of W the k + 1th moment of the service time should exist. Since W,S are independent and T W + S the kth moment of the response time can also be computed by E(T k ) k l0 ( ) n E(W l ) E(S k l ). l By using these formulas the following relations can be proved E(W ) λe(s2 ) 2(1 ρ) ρe(s) ( ) 1 + C 2 S, 1 ρ 2 Since E(T ) E(W ) + E(S), E(W 2 ) 2(W ) 2 + λe(s3 ) 3(1 ρ), E(T 2 ) E(W 2 ) + E(S2 ) 1 ρ, V ar(w ) E(W 2 ) (E(W )) 2, V ar(t ) V ar(w + S) V ar(w ) + V ar(s). E(N(N 1)) λ 2 E(T 2 ) after elementary but lengthly calculation we have Since V ar(n) λe(s3 ) 3(1 ρ) + E(Q 2 ) ( λe(s 2 ) 2(1 ρ) (k 1) 2 P k k1 E(N 2 ) 2N + ρ ) 2 + λ(3 2ρ)E(S2 ) + ρ(1 ρ). 2(1 ρ) k 2 P k 2 kp k + k1 k1 k1 P k 65
66 by elementary computations we can prove that ( ) V ar(q) λe(s3 ) λe(s 2 2 3(1 ρ) + ) + λe(s2 ) 2(1 ρ) 2(1 ρ). Now let us turn our attention to the Laplace-transform of the busy period of the server. Lajos Takács proved that L δ (t) L S (t + λ λl δ (t)), that is for the Laplace-transform L δ (t) a function equation should be solved ( which is usually impossible to invert ). However, by applying this equation the moments the busy period can be calculated. First determine E(δ). Using the properties of the Laplace-transform we have L δ(0) (1 λl δ(0))l S(0) E(δ) (1 + λe(δ))e(s) E(δ) E(S) 1 ρ 1 ρ λ 1 ρ which was obtained earlier by the well-known relation 1 λ E(δ) ρ. + E(δ) After elementary but lengthly calculations it can be proved that V ar(δ) V ar(s) + ρ(e(s))2 (1 ρ) 3. Now let us consider the generating function of the customers served during a busy period. It can be proved that G Nd (δ)(z) zl S (λ λg Nd (δ)(z)) which is again a functional equation but using derivations the higher moments can be computed. Thus for the mean numbers we have E(N d (δ)) 1 + λe(s)e(n d (δ)) E(N d (δ)) 1 1 ρ, 66
67 which can also be obtained by relation E(δ) E(S)E(N d (δ)) since 1 ρ λ 1 ρ E(S) E(N d(δ)) ρ E(N d (δ)) ρ(1 ρ) 1 1 ρ. It can be proved that V ar(n d (δ)) ρ(1 ρ) + λ2 E(S 2 ) (1 ρ) 3. It is interesting to note that the computation of V ar(δ), V ar(n d (δ)) does not require the existence of E(S 3 ), as it in the case of V ar(n), V ar(q), V ar(t ), V ar(w ). As it is one of the most widely used queueing system the calculation of the main performance measure is of great importance. Tis can be done by the help of our Java applets Java applets for direct calculations can be found at
68 68
69 Chapter 3 Finite-Source Systems So far we have been dealing with such queueing systems where arrivals followed a Poisson process, that is the source of customers is infinite. In this chapter we are focusing on the finite-source population models. They are also very important from practical point of view since in many situation the source is finite. Let us investigate the example of the so-called machine interference problem treated by many experts. Let us consider n machines that operates independently of each other. The operation times and service times are supposed to be independent random variables with given distribution function. After failure the broken machines are repaired by a single or multiple repairmen according to a certain discipline. Having been repaired the machine starts operating again and the whole process is repeated. This simple model has many applications in various fields, for example in manufacturing, computer science, reliability theory, management science, just to mention some of them. For a detailed references on the finite-source models and their application the interested reader is recommended to visit the following link The M/M/r/r/n Queue, Engset-Loss System As we can see depending on the system capacity r in an M/M/r/r/n a customer may find the system full. Despite of the infinite-source model where the customer is lost, in the finite-source model this request returns to the source and stay there for a exponentially distributed time. Since all the random variables are supposed to be exponentially distributed the number of customers in the system is a birth-death process with the following rates λ k (n k)λ, 0 k < r, µ k kµ, 1 k r, 69
70 hence the distribution can be obtained as ( ) n P k ρ k P 0, 0 k r, k ( ) n ρ k k P k r (, n )ρ i i i0 which is called a truncated binomial or Engset distribution. This is the distribution of a finite-source loss or Engset system. Specially, if r n that is no loss and each customer has its own server the distribution has a very nice form, namely P k ( ) n ρ k k n ( n )ρ i i ) ( ρ 1 + ρ i0 ( n k ( ) n ρ k k (1 + ρ) n ) k ( 1 ρ ) n k, 1 + ρ that is we have a binomial distribution with success parameter ip ρ 1 + ρ. That is p is the probability that a given request is in the system. It is easy to see that this distribution remains valid even for a G/G/n/n/n system since p E(S) E(S) + E(τ) ρ 1 + ρ, where ρ E(S), and E(τ) denotes the mean time a customer spends in the source. E(τ) As before it is easy to see that the performance measures are as follows Mean number of customers in the system N N r kp k, r N, U S r r N r, k0 Mean number of customers in the source m m n N Utilization of a source U t U t m n E(τ) E(τ) + 1, µ 70
71 thus U t E(τ) 1. µ 1 U t This help us to calculate the mean number of retrials of a customer from the source to enter to the system. That it we have E(N R ) λe(τ), hence the mean number of rejection is E(N R ) 1. The blocking probability, that is the probability that a customer find the system full at his arrival, by the help of the Bayes s theorem can be calculated as This can easily be verified by P B (n, r) (n r)p r(n, r) r (n i)p k (n, r) i0 P r (n 1, r). ((n r)λh + o(h))p r (n, r) P B (n, r) lim h 0 r (n r)p r(n, r) r ((n i)λh + o(h))p i (n, r) (n i)p i (n, r) i0 ( ) n (n r) ρ r r r ( n (n i) )ρ i i i0 r i0 (n 1)! r!(n 1 r)! ρr (n 1)! i!(n 1 i)! ρi i0 n! (n r) r!(n r)! ρr r n! (n i) i!(n i)! ρi ( ) n 1 ρ r r r ( P r (n 1, r). n 1 )ρ i i0 i0 i Let E(n, r, ρ) denote the blocking probability, that is E(n, r, ρ) P r (n 1, r), which is called Engset s loss formula. In the following we show a recursion for this formula, namely E(n, r, ρ) ( ) ( ) n 1 n 1 ρ r r r 1 r ( n 1 r 1 ( ) )ρ i n 1 ρ i i + i i0 n r r 1 + n r r i0 n r r ρr ( ) n 1 n r ρ r r 1 r ρe(n, r 1, ρ) (n r)ρe(n, r 1, ρ) ρe(n, r 1, ρ) r + (n r)ρe(n, r 1, ρ). 71
72 The initial value is E(n, 1, ρ) P 1 (n 1, 1) (n 1)ρ 1 + (n 1)ρ. It is clear that lim E(n, r, ρ) B(n, n, λ 0, nλ λ ρ ), where ρ λ µ which van be seen formally, too. Moreover, as (n r)ρ ρ the well-known recursion for B(n, ρ ) is obtained which also justifies the correctness of the recursion for E(n, r, ρ). In particular, if r n then it is easy to see that N n ρ 1+ρ and thus U S which was expected. In general case ρ 1 + ρ, m n 1 + ρ, U t ρ, E(τ) 1 λ, E(N R) 1, P B 0, r 1 µ rµ λ λ(n k)p k λ(n N), T 1 µ. k0 Let us consider the distribution of the system at the instant when an arriving customer enters into the system. By using the Bayes s law we have Π k lim h 0 (λ k h + o(h))p k r 1 (λ i h + o(h))p i i0 r 1 T 1 λ k P k µ r 1 k0 λ i P i i0 λ T µr 1 µ r N 1 µ λ k P k, k 0,, r 1 r 1 λ i P i i0 which Little s formula for the finite-source loss system. 72
73 3.2 The M/M/1/n/n Queue It is the traditional machine interference problem, where the broken machines has to wait and the single repairman fixes the failed machine in FIFO order. Assume the the operating times are exponentially distributed with parameter λ and the repair rate is µ. All random variables are supposed to be independent of each other. Let N(t) denote the number of customers in the system at time t, which is a birth-death process with birth rates and with death rate Thus for the distribution we have where and (n k)λ, ha 0 k n, λ k 0, ha k > n, P k P 0 µ k µ, k 1. n! (n k)! ϱk P 0 (n k + 1)ϱP k 1, n k1 ϱ λ µ, n! (n k)! ϱk n k0 1. n! (n k)! ϱk Since the state space is finite the steady-state distribution always exists but if ϱ > 1 then more repairmen is needed. For numerical calculation other forms are preferred that is why we introduce some notations. Let P (k; λ) a λ denote the Poisson distribution with parameter λ) and let Q(k; λ) denote its cumulative distribution function, that is P (k; λ) λk k! e λ, 0 k < ; First we show that Q(k; λ) P k k P (i; λ), 0 k <. i0 P (n k; R), 0 k n, Q(n; R) 73
74 where R µ λ ϱ 1. By elementary calculations we have P (n k; R) Q(n; R) ( n! µ (n k)! λ n ( n! µ i! λ i0 ) n k e µ λ ) i e µ λ n! (n k)! n i0 n! i! ( ( λ µ ) k λ µ ) n i n! (n k)! n k0 ( n! (n i)! ) k λ µ ( λ µ ) i P k. Hence a very important consequence is P 0 B(n, R). The main performance measures can be obtained as follows Utilization of the server and the throughput of the system For the utilization of the server we have U s 1 P 0 1 B(n, R). By using the cumulative distribution function this cab be written as U s Q(n 1; R). Q(n; R) For the throughput of the system we obtain λ t µu s. Mean number of customers in the system N can be calculated as N n 1 ϱ n n kp k n (n k)p k k0 k0 n (n k)ϱp k n 1 n 1 P k+1 ϱ k0 k0 n 1 ϱ (1 P 0) n U s ϱ. In other form N n RQ(n 1; R) Q(n; R) n U s ϱ. 74
75 Mean queue length, mean number of customers waiting can be derived as n n n Q (k 1)P k kp k P k n µ λ (1 P 0) (1 P 0 ) k1 k1 k1 n (1 P 0 )(1 + µ ( λ ) n ) U s. ϱ Mean number of customers in the source can be calculated as n m (n k)p k n N µ λ (1 P 0) U s ϱ. k0 Mean busy period of the server Since U s 1 P 0 Eδ 1 + Eδ, nλ thus Eδ 1 P 0 nλp 0 U s nλ(1 U s ). In computer science and reliability theory application we often need the following measure Utilization of a given source ( machine, terminal ) The utilization of the ith source is defined by Then U (i) 1 T lim χ(at time t the ith source is active)dt T T 0 U (i) P ( there is a request in the ith source). Hence the overall utilization of the sources is n U n (n k)p k m µ λ (1 P 0). k0 Thus the utilization of any source is U t µ nλ (1 P 0) m n. This can be obtained in the following way as well, n U (i) n k n P k m n, k1 since the source are homogeneous we have U t U (i). 75
76 Mean waiting time By using the result of Tomkó 1 we have Thus U t λm 1/λ 1/λ + W + 1/µ m n. n 1/λ + W + 1/µ, and ( λmw n m 1 + λ ) n U s µ ϱ which the Litle s law for the mean waiting time. Hence W Q λm 1 µ ( n 1 + ϱ U s ϱ The mean response can be obtained as T W + 1 µ 1 ( n 1 ) 1 µ 1 P 0 ϱ µ It is easy to prove that mλt N, (1 + ϱ) Q, ). ( n 1 ). U s ϱ which is the Little s law for the mean response time. Clearly we have Further relations and thus ( mλ W + 1 ) Q + mϱ µ n U s ϱ (1 + ϱ) + U s n U s ϱ N. U s 1 P 0 nϱu t mϱ, mλ µu s λ t. It should be noted that the utilization of the server plays a key role in the calculation of all the main performance measures. Distribution at the arrival instants In the following we find the steady-state distribution of the system at arrival instants and in contrary to the infinity-source model is not he same as the distribution at a random point. To show this use the Bayes s theorem, that is Π k (n) lim h 0 (λ k h + o(h))p k n 1 j0 (λ jh + o(h))p j (n 1) (n k)λ k µ 1 µ k 1 + n 1 j1 (n 1) (n j)λ j µ 1 µ j λ k P k n 1 j0 λ jp j (n 1) (n 1 k+1)λ k µ 1 µ k 1 + n 1 i1 76 n(n 1) (n k)λ k µ 1 µ k P 0 n 1 n(n 1) (n j)λ j j0 µ 1 µ j P 0 (n 1) (n 1 i+1)λ i µ 1 µ i P k (n 1)
77 irrespective to the number of servers. It should be noted that this relation shows a very important result, namely that at arrivals the distribution of the system containing n sources is not he same as its distribution at random points, but equals to the random point distribution of a system with n 1 sources. Distribution at the departure instants We are interested in the distribution of the number of customers a departing customer leaves behind in the system. This calculations are independent of the number of servers. By applying the Bayes s theorem we have (µ k+1 h + o(h))p D k (n) lim k+1 n h 0 j1 (µ µ k+1p k+1 jh + o(h))p n j j1 µ jp j 1 + n j2 (n 1) (n k)λ k µ 1 µ k (n 1) (n j+1)λ j 1 µ 1 µ j 1 µ k+1 n(n 1) (n k)λ k+1 µ 1 µ k+1 P 0 n µ j n(n 1) (n j+1)λ j j1 µ 1 µ j P 0 (n 1) (n 1 k+1)λ k µ 1 µ k 1 + n 1 i1 in the case when there is customer left in the system (n 1) (n 1 i+1)λ i µ 1 µ i P k (n 1) D 0 (n) 1 + n 1 i1 1 P (n 1) (n 1 i+1)λ i 0 (n 1) µ 1 µ i if the system becomes empty. Recursive Relations Similarly to the previous arguments it is easy to see that the density function of the response time can be obtained as Hence the mean value is n 1 f T (x) f T (x k)π k (n) k0 T (n) n 1 k0 Similarly, for the waiting time we have thus its mean is n 1 f W (x) f W (x k)π k (n) k0 W (n) n 1 k0 µ(µx) k e µx P k (n 1). k! k + 1 µ P k(n 1) 1 (N(n 1) + 1). µ n 1 k0 n 1 k0 µ(µx) k 1 (k 1)! e µx P k (n 1), k µ P k(n 1) 1 (N(n 1)), µ 77
78 which is clear. We want to verify the correctness of the formula T (n) 1 (N(n 1) + 1). µ As we have shown earlier the utilization can be expressed by the Erlang s loss formula, hence N(n) n 1 B(n, 1) ϱ. ϱ Using the well-known recursive relation we have Since thus B(n, 1 ϱ ) 1 ϱ B(n 1, 1 ϱ ) n + 1 ϱ B(n 1, 1 ϱ ) B(n 1, 1 ϱ ) nϱ + B(n 1, 1 ϱ. ). N(n 1) n 1 1 B(n 1, 1 ϱ ) ϱ ( ϱn(n 1) (n 1)ϱ 1 B n 1, 1 ) ϱ ( B n 1, 1 ) 1 + ϱn(n 1) (n 1)ϱ. ϱ After substitution we have ( B n, 1 ) 1(1 + ϱn(n 1) (n 1)ϱ) ϱ ϱ n + 1 (1 + ϱn(n 1) (n 1)ϱ) ϱ 1 + ϱn(n 1) (n 1)ϱ 1 + ϱn(n 1) (n 1)ϱ. nϱ ϱn(n 1) (n 1)ϱ 1 + ϱn(n 1) + ϱ Therefore Fnally N(n) nϱ 1 + B(n, 1) ϱ ϱ nϱ nϱ 1+ϱN(n 1)+ϱ ϱ n N(n) nϱ ϱN(n 1) (n 1)ϱ 1+ϱN(n 1)+ϱ ϱ n n 1 + ϱn(n 1) + ϱ. n 1 + ϱn(n 1) + ϱ n 1 + ϱ(n(n 1) + 1) n N(n) ϱ(n(n 1) + 1) 78 N(n) n N(n),
79 which is a recursion for the mean number of customers in the system. Now we able to prove our relation regarding the mean response time. Keeping in mind the recursive relation for N(n 1) we get T (n) 1 (N(n 1) + 1) µ λt (n) ϱ(n(n 1) + 1) λ(n N(n))T (n) N(n), N(n) n N(n) which was proved earlier. Now let us show how we can verify T (n) directly. It can easily be seen that U S (n) 1 B(n, 1 1 ϱ ) 1 B(n 1, ) ϱ n + 1B(n 1, 1) ϱ ϱ n n + 1 ϱ B(n 1, 1 ϱ ) nϱ nϱ + B(n 1, 1 ϱ ) nϱ nϱ + 1 U S (n 1), that is there is a recursion for the utilization as well. It is also very important because by using this recursion all the main performance measures can be obtained. Thus if λ, µ, n are given we can use the recursion for U S (n) and finally substitute it into the corresponding formula. Thus U S (n 1) nϱ + 1 nϱ ( U S (n) 1 + nϱ 1 1 ). U S (n) Since we proceed 1 µ N(n 1) n 1 U S(n 1), ϱ T (n) 1 µ (N(n 1) + 1) 1 µ ( n U ) S(n 1) 1 ϱ µ which shows the correctness of the formula. (n 1 + nϱ(1 1 ( n 1 U S(n 1) ϱ ϱ U S (n) ) ) 1 µ ) + 1 ( n U S (n) 1 ), ϱ In the following let us show to compute T (n), W (n), N(n) recursively. As we have seen T (n) 1 (N(n 1) + 1) µ W (n) T (n) 1 µ 1 N(n 1), µ 79
80 we have to know how N(n) can be expressed in term of T (n). It can be shown very easily, namely The initial values are N(n) λ(n N(n))T (n) λnt (n) λn(n)t (n) N(n)(1 + λt (n)) λnt (n) N(n) λnt (n) 1 + λt (n). Now the iteration proceeds as T (1) 1 µ N(1) ϱ 1 + ϱ. W (n) 1 N(n 1) µ T (n) 1 µ + W (n) N(n) λnt (n) (1 + λt )(n) that is we use a double iteration. The main advantage is that only the mean values are needed. This method is referred to as mean value analysis. In the previous section we have derived a recursion for U S (n) and thus we may expect that there is direct recursive relation for the other mean values as well since they depends on the utilization. As a next step we find a recursion for the mean number of customers in the source m(n). It si quite easy since m(n) U s(n) ρ n ρ n + 1 ρ m(n 1) n nρ + 1 U s (n 1) n nρ + 1 ρm(n 1). By using this relation for the utilization of the source can be expressed as U t (n) m(n) n 1 n 1 nρ + 1 n 1 ρu t(n 1) n 1 nρ + 1 ρm(n 1) n 1 nρ + 1 (n 1)ρU t (n 1). 80
81 For the mean number of customers in the system we have N(n) n U s(n) ρ nρ U s(n) ρ nρ nρ nρ + 1 U s (n 1) ρ n2 ρ + n nu s (n 1) 1 nρ + 1 U s (n 1) n(nρ U s(n 1)) nρ + 1 U s (n 1). Since N(n 1) n 1 U s(n 1 ρ nρ U s(n 1) ρ 1 ρ(n(n 1) + 1) nρ U s (n 1) thus after substitution we get U s (n 1) nρ ρ(n(n 1) + 1), N(n) nρ(n(n 1) + 1) 1 + ρ(n(n 1) + 1). Finally find the recursion for the mean response time. Starting with T (n) 1 µ ( n U s (n) 1 ) ρ using that T (n 1) 1 µ ( n 1 U s (n 1) 1 ) ρ µt (n 1) n 1 U s (n 1) 1 ρ µt (n 1) + 1 ρ n 1 U s (n 1) U s (n 1) (n 1)ρ λt (n 1) + 1, substituting into the recursion for U s (n) we obtain T (n) 1 nρ U s (n 1) µ ρ Obviously the missing initial values are m(1) U t (1) ϱ. 1 nλt (n 1) + 1 µ λt (n 1)
82 Distribution Function of the Response Time and Waiting Time This subsection is devoted to one of the major problems in finite-source queueing systems. To find the distribution function of the response and waiting time is not easy. As it is expected the theorem of total probability should be used. Let us determine the density function and then the distribution function. As we did many times in earlier chapters the law of total probability should be applied for the conditional density functions and the distribution at the arrival instants. So we can write n 1 f T (n, x) µ (µx)k k! k0 ( µ λ )n 1 k µ e µx (n 1 k)! e λ n 1 ( µ λ )i e µ λ i! i0 } {{ } Q(n 1, µ λ ) µ (µx + µ λ )n 1 (n 1)! e (µx+ µ λ ) Q(n 1, µ λ ) Similarly for the waiting time µp (n 1, µx + µ λ ) Q(n 1, µ λ ). n 1 f W (n, x) µ (µx)k 1 (k 1)! e µx P k (n 1) k1 µp (n 2, µx + µ λ ) Q(n 1, µ λ ). To get the distribution function we have to calculate the integral F T (n, x) x 0 n 2 i0 µ (µx)i i! e µx ( µ λ )n 2 i (n 2 i)! e µ λ f T (n, t) dt. Using the substitution y µt + µ λ, t (y µ λ ) 1 µ, dt dy 1 µ. Hence F T (n, x) µx+ µ λ µ λ y n 1 (n 1)! e y dy Q(n 1, µ λ ) Similarly for the waiting time we have [ 1 n 1 y i i0 ] µx+ µ λ y! e y Q(n 1, µ λ ) µ λ Q(n 1, µ ) 1 Q(n 1, µx + µ ) λ Q(n 1, µ ). λ λ F W (n, x) 1 Q(n 2, µx + µ λ ) Q(n 1, µ λ ). Now let us determine the distribution function by the help of the conditional distribution functions. Clearly we have to know the distribution function of the Erlang distributions, thus we can proceed as 82
83 n 1 ( F T (x) 1 k0 k (µx) j e )P µx k (n 1) j! j0 n 1 ( k (µx) j 1 e )P µx k (n 1) j! k0 j0 n 1 n 1 1 Q(k, µx)p k (n 1) 1 Q(k, µx) Q(n 1, µ ) λ k0 Meantime we have used that λ 0 k0 1 Q(n 1, µx + µ λ ) Q(n 1, µ λ ) t j j! e t dt 1 j i0 λ i i! e λ ( µ λ )n 1 k (n 1 k)! e µ λ and thus can be written as l j0 µ l j (l j)! e µ j i0 λ i i! e λ l ( 1 j0 l λ 0 ) t j µ l j j! e t dt (l j)! e µ µ l j (l j)! e µ j0 } {{ } Q(l,µ) Q(l, µ) [ 1 λ 0 l i0 (t + µ) l e (t+µ) Q(l, µ) l! ] y i λ+µ i! e y Q(l, λ + µ). µ λ+µ µ y l l! e y dy During the calculations we could see that the derivative of Q(k, t) is P (k, t), which can be used to find the density function, that is f T (x) µp (n 1, µx + µ λ ) Q(n 1, µ λ ). 83
84 Generating Function of the Customers in the System Using the definition the generating function G N (s) can be calculated as ) n k ( n µ G N (s) s k λ (n k)! P 0 k0 ( ) n k 1 n s n sρ (n k)! P 0 k0 ( ) s n e ρ(1 1 1 s) Q n, 1 ρs ( ). Q n, 1 ρ This could be derived in the following way. Let denote by F the number of customers in the source. As we have proved earlier its distribution can be obtained as the distribution of an Erlang loss system with traffic intensity 1. Since the generating function of this ρ system has been obtained we can use this fact. Thus ( 1 G N (s) E(s N ) E(s n F ) s n E(s F ) s n G F s ( ) s n e ρ(1 1 1 s) Q n, 1 ρs ( ). Q n, 1 ρ To verify the formula let us compute the mean number of customers in the system. By the property of the generating function we have ( ( )) 1 N(n) G N(n)(1) s n G F (n) s s1 ( ) ( ) 1 1 G N(n)(s) n s n 1 G F (n) + s n G F (n) ( 1s ), s s 2 thus N(n) ng F (n) (1) G F (n)(1) n 1 ρ ( ( 1 B n, 1 )) ρ ) n U S(n). ρ Laplace-transform of the Response Time and Waiting Time Solution 1 By the law of the total Laplace-transforms we have n 1 ( ) k+1 µ L T (s) P k (n 1) µ + s k0 84
85 since the conditional response time is Erlang distributed with parameters (k + 1, µ). Substituting P k (n 1) we get n 1 L T (s) k0 n 1 ( k0 ( µ µ + s ( µ µ + s ( µ µ + s ( µ ) k+1 ( µ n 1 k λ) µ + s (n 1 k)! ) k 1 ( µ+s µ ( µ+s µ ) n e µ λ ) n e µ λ ) n e s λ e µ λ Q ( n 1, µ λ ) n µ+s ( µ µ λ) n 1 k µ (n 1 k)! e λ ) n ( ) Q n 1, µ λ n 1 k0 ( µ+s µ µ λ Q ( n 1, µ+s λ Q ( n 1, µ λ ) ) n 1 k 1 (n 1 k)! ) Q ( n 1, µ λ ) µ+s e λ ) Q ( ) n 1, µ+s λ Q ( ) n 1, µ. λ Solution 2 Let us calculate L T (s) by the help of the density function. Since the denominator is a constant we have to determine the Laplace-transform of the numerator, that is L Num (s) 0 µ e µ λ ( ) µx + µ n 1 λ e (µx+ µ λ) e sx dx (n 1)! 0 µ ( ) µx + µ n 1 λ e (µ+s)x dx. (n 1)! By using the binomial theorem we get 85
86 L sz (s) µ e λ (n 1)! e µ λ n 1 k0 0 n 1 ( ) n 1 ( µ n 1 k µ (µx) k e k λ) (µ+s)x dx k0 ( µ λ) n 1 k (n 1 k)! 0 µ (µx)k e (µ+s)x dx k! n 1 ( µ n 1 k ( ) k+1 e µ λ λ) µ (n 1 k)! µ + s k0 ( ) n 1 k ( ) n n 1 µ e µ µ µ+s λ µ λ µ + s (n 1 k)! k0 ( ) n ( e µ µ λ Q n 1, µ + s ) e µ+s λ µ + s λ ( ) n ( µ Q n 1, µ + s ) e s λ. µ + s λ Since L T (s) L Num(s) Q ( ), n 1, µ λ thus L T (s) ( ) n µ e s λ µ + s Q ( ) n 1, µ+s λ Q ( ) n 1, µ. λ Solution 3 The Laplace-transform of the numerator be can obtained as L Num (s) 0 µ ( ) µx + µ n 1 λ e (µx+ µ λ) e sx dx (n 1)! Substituting t µx + µ λ we get x 1 µ ( t µ ), λ dx dt 1 µ, 86
87 and thus L Num (s) µ λ e s µ e s µ (n 1)! e t e s µ(t µ λ) 1 µ dt µ tn 1 µ λ t n 1 s µ) t (n 1)! e (1+ dt ( µ µ + s ) n 1 Substituting again y µ+s µ t dt dy µ µ+s, thus therefore L Num (s) e s λ e s λ µ λ ( µ ) n µ + s µ+s ( µ µ + s (( ) ) n s t µ λ ) n ( Q (n 1)! y n 1 (n 1)! e y dy n 1, µ + s λ e (1+ s µ) t dt. ), L T (s) L Num(s) Q ( ) n 1, µ e s λ λ ( µ µ + s ) n Q ( ) n 1, µ+s λ Q ( ) n 1, µ. λ That is all 3 solutions gives the same result. Thus, in principle the higher moments of the response time can be evaluated. Since L T (s) L W (s) µ µ+s, thus L W (s) ( ) n 1 µ e s λ µ + s Q ( ) n 1, µ+s λ Q ( ) n 1, µ. λ Java applets for direct calculations can be found at
88 Example 12 Consider 6 machines with mean lifetime of 40 hours. Let their mean repair time be 4 hours. Find the performance measures. Solution: λ 1 40 per hour, µ 1 4 per hour, ρ λ µ , n 6, P Failed machines Waiting machines P n 0, Q 0.324, U sz 0.516, W 2.51 hour, T hour e 40 hour, U g 0.86 m n U g 5.16, N Eδ hour 40 Example 13 Change the mean lifetime to 2 hours in the previous Example. Find the performance measures. 1 Solution: 2, 1 4, λ 2, n 6, P λ µ µ 0 1, which shows that a single repairman is not enough. We should increase the number of repairmen. Failed machines Waiting machines P k U s 0.999, Q 4.5, W 22.5hours, T 26.5 hours e 2 hours, U g 0.08, m 0.5, N 5.5, Eδ. All these measures demonstrate what we have expected because 1 is greater than 1. To decide how many repairmen is needed there are different criterias as we shall see in Section 3.4. To avoid this congestion we must ensure the condition λ < 1 where r is the number rµ of repairmen. 3.3 Heterogeneous Queues The results of this section have been published in the paper of Csige and Tomkó [16]. The reason of its introduction is to show the importance of the service discipline. Let us consider n heterogeneous machines with exponentially distributed operating and repair time with parameter λ k > 0 and µ k > 0, respectively for the kth machine, k 88
89 1,, n. The failures are repaired by a single repairman according to Processor Sharing, FIFO, and Preemptive Priory disciplines. All involved random variables are supposed to be independent of each other. Let N(t), denote the number of failed machines at time t. Due to the heterogeneity of the machines this information is not enough to describe the behavior of the system because we have to know which machine is under service. Thus let us introduce an N(t)- dimensional vector with components ( x 1 (t),..., x v(t) (t) ) indicating the indexes of the failed machines. Hence for N(t) > 0 using FIFO discipline machine with index x 1 (t) is under service. Under Processor Sharing discipline when all machines are serviced by a proportional service rate, that is if N(t) k then the proportion is 1/k the order of indexes (x 1 (t),..., x n (t)) is not important, but a logical treatment we order them as ( x1 (t) < x 2 (t) <... < x v(t) (t) ). In the case of Preemptive Priority assuming that the smaller index means higher priority we use the same ordering as before mentioning that in this case the machine with the first index is under service since he has the highest priority among the failed machines. Due to the exponential distributions the process X(t) (t) ( v (t) ; x 1 (t),..., x v(t) (t) ), (t 0), is a continuous-time Markov where the ordering of x 1 (t),..., x v(t) (t) depends ot the service discipline. Since X(t)(t) is a finite state Markov chain thus if the parameters λ k, µ k, (1 k n) are all positive then it is ergodic and hence the steady-state distribution exists. Of course this heavily depends on the service discipline The M/ M/1/n/n/P S Queue Let the distribution of the Markov chain be denoted by P 0 (t),, P i 1,...,i k (t). It is not difficult to see that for this distribition we have [ n ] P 0 (t) λ i P 0 (t) + i1 n µ i P i (t), i1 [ ν i1...i k + 1 k P i 1,...,i k (t) k λ ir P i1,...,i r 1,i r+1,...,i k (t) r1 ] k µ ir P i1,...,i k (t) + r1 r i 1...i k where i 1,..., i k+1 is the ordering of the indexes i 1,..., i k, r and ν i1...i k r i 1...i k λ r, k 1,..., n µ r k + 1 P i (t) 1 i 2...i k+1
90 P 1,...,n(t) n λ r P 1,...,r 1,r+1,]...,n (t) r1 The steady-state distribution which is denoted by P 0 lim t P o (t), [ 1 n P i1...i k lim t P i1...i k (t) ] n µ r P 1,...,n (t). r1 (1 i 1 < i 2 <... < i k n, 1 k n). is the solution of the following set of equations [ n ] λ i P 0 [ ν i1...i k + 1 k [ 1 n with normalizing condition i1 ] k µ ir P i1...i k r1 + r i 1...i k ] n µ r P 1,...,n r1 n µ i P i, i1 k λ ir P i1...i r 1 i r+1...i k + r1 µ r k + 1 P i, 1 i 2...i k+1 n λ r P 1...,r 1,r+1,...,n r1 P 0 + P i1...i k 1 where the summation is mean by all possible combinations of the indexes. The surprising fact is it can be obtained as P i1...i k Ck! k r1 λ ir µ ir, where C can be calculated from the normalizing condition. For the FIFO and Preemptive Priority disciplines the balance equations and the solution is rather complicated and they are omitted. The interested reader is referred to the cited paper. However for all cases the performance measures can be computed the same way. Performance Measures Utilization of the server U s E(δ) [ n ] 1 1 P 0. E(δ) + λ i i1 90
91 Utilization of the machines Let U (i) denote the utilization of machine i. Then U (i) 1 λ i 1 P (i), 1 λ i + T i where T i denotes the mean response time for machine i, that is the mean time while it is broken, and n P (i) P i1,...,i k, k1 i (i 1,...,i k ) is the probability that the ith machine is failed. Thus T i P (i) λ i (1 P (i) ), and in FIFO case for the main waiting time we have W i T i 1 µ i. Furthermore it is easy to see that the mean number of failed machines can be obtained as n N P (i). In addition i1 n ( λ ) i 1 P (i) T i i1 which is the Little s formula for heterogeneous customers. In particular, for homogeneous case we n i1 P (i) which was proved earlier. (n N)λ T N Various generalized versions of the machine interference problem with heterogeneous machines can be found in Pósafalvi and Sztrik [62, 63]. Let us see some sample numerical results for the illustration of the influence of the service disciplines on the main performance measures 91
92 Inpur parameters Machine utilizations FIFO PROC-SHARING PRIORITY n 3 λ µ λ µ λ µ Overall machine utilization n 3 λ µ λ µ λ µ Overall machine utilization n 4 λ µ λ µ λ µ λ µ Overall machine utilization Table 3.1: Numerical results 3.4 The M/M/r/n/n Queue Consider the homogeneous finite-source model with r, r n independent servers. Denoting by N(t) the number of customers in the system at time t similarly to the previous sections it can easily be seen that it is a birth-death process rates λ k (n k)λ, 0 k n 1, { kµ, 1 k r, µ k rµ, r < k n, intenzitásokkal. The steady-state distribution can be obtained as ( ) n P k ρ k P 0, 0 k r, k with normalizing condition P k k! r!r k r ( n k ) ρ k P 0, n P k 1 k0 r k n To determine P 0 we can use the following simpler recursion. 92
93 Let a kp k P 0 and using the relation for the consecutive elements of the birth-death process our procedure operates as follows Since must be satisfied thus we get Dividing both sides by P 0 we have hence Finally a 0 1, a k n k + 1 ϱa k 1, k 0 k r 1, a k n k + 1 ϱa k 1, r r k n. 1 1 P 0 n P k 1 k0 P 0 1 n k1 P 0 n P k. k1 P k P 0 1 P n k1 P k a k P 0. Let us determine the main performance measures a k. n a k, k1 Mean number of customers in the systems can be computed as N n kp k. k0 Mean queue length can be obtained by Q n (k r)p k rr P 0 r! kr+1 n kr+1 (k r)k! r k ( ) n ϱ k. k Mean number of customers in the source can be calculated by Utilization of the system is computed by m n N. U r 1 P 0. 93
94 Mean busy period of the systems can be obtained by Eδ (n) 1 P 0 nλp 0 U r nλp 0. Mean number of busy servers can be calculated by r r n r 1 n r 1 kp k + rp k kp k + r P k kp k + rp (W > 0). k1 kr+1 k1 kr k1 Furthermore r n kp k + r P k k1 kr+1 U s r r r. Mean number of idle servers S r r. Additional relation is r n n N kp k + (k r)p k + r P k Q + r Q + r S n m. k1 kr+1 kr+1 Utilization of the sources can be calculated by U t n k1 n k n P k m n. The mean waiting and response times can be derived by U t thus for the mean waiting time we have W N m Hence the mean response time is 1 λ 1 λ + W + 1 µ 1 λ 1 µ 1 µ m n, ( ) N mϱ 1. consequently we get T W + 1 µ N mλ, mλt N, which is the well-known Little s formula. Thus we get ( mλ W + 1 ) Q + r, µ 94
95 that is Show that because from this follows mλw + mϱ Q + r. r mϱ, mλw Q which is the Little s formula for the waiting time. Since where P k+1 µ j Furthermore, it is well-known that We can proceed as (n k)λ µ k+1 P k, { jµ, j r, rµ, j > r. r 1 r kp k + r k1 n P k. kr ϱm n r 1 n 1 ϱ(n k)p k ϱ(n k)p k + ϱ(n k)p k k0 k0 kr r 1 k0 λ(n k)(k + 1) (k + 1)µ r 1 n 1 (k + 1)P k+1 + r P k+1 k0 Finally we get or in another form that is kr n 1 P k + r r jp j + r j1 ϱm r, λm µr, kr n jr+1 λ(n k) P k rµ r 1 P j jp j + r j1 mean arrival rate mean service rate, which was expected because the system is in steady state. Consequently W Q mλ 95 Q rλϱ Q µr. n P j r. jr
96 Mean idle period of a server can be computed as follows. If the idle servers start their busy period in the order as they finished the previous busy period, then their activity can be written as follows. If a server becomes idle and finds other j 1 servers idle, then his busy period start at the instant of the arrival of the j th customer. Let e denote the mean idle period of the server and let e j denote the mean conditional idle period mention above. Clearly e j j λ, and e can be computed by the help of the theorem of total expectation, namely e r P r j j P (e) λ j1 S P (e)λ, where r 1 P (e) P j 1 P (W > 0), j0 is the probability that there is an idle server. Mean busy period of the servers can be calculated as follows. Since U s Eδ e + Eδ, thus That is Eδ U s 1 U s e r r 1 r e r r r r r r Eδ S P (e)λ r S m µp (e). S P (e)λ r P (e)λ Distribution Function of the Waiting and Response Time m µp (e). This subsection is devoted to the most complicated problem of this system, namely to the determination of the distribution function of the waiting and response times. First the density function is calculated and then we obtain the distribution function. You may remember that the distribution has been given in the form ( ) n ρ k P 0 k P k ( ) n k!ρ k k r!r k r P 0. 96
97 Introducing z 1, this can be written as ρ ( ) n z k P 0 k P k ( ) n k!z k k r!r k r P 0 Since thus P k Π k (n) P k (n 1), Π k (n) rr r! ( n ) k k!r r (rz) k r! P 0 n!rr (rz) n k e rz (n k)!r!(rz) n e rz P 0 rr r! P (n k, rz) P 0, k r. P (n, rz) thus P (n 1 k, rz) P 0 (n 1), ha k r,..., n 1. P (n 1, rz) It is easy to see that the probability of waiting is n 1 n 1 Π k (n) P k (n 1) P W kr Inserting z this can be rewritten as P W n 1 kr r r r! kr rr r! P 0(n 1) rr r! P (n 1 k, rz) P 0 (n 1) P (n 1, rz) n 1 r i0 P (i, rz) P (n 1, rz) Q(n 1 r, rz) P 0 (n 1). P (n 1, rz) We show that the distribution function of the waiting time can be calculated as F W (x) 1 rr Q(n 1 r, r(z + µx)) P 0 (n 1), r!p (n 1, rz) and thus F W (0) 1 rr Q(n 1 r, rz) P 0 (n 1) r!p (n 1, rz) 97
98 which is probability that an arriving customer finds idle server. For the density function we have f W (0) 1 P W, If we calculate the integral 0+ f W (x) µr rr P (n 1 r, r(z + µx)) P 0 (n 1), x > 0. r!p (n 1, rz) 0+ f W (x)dx rr P 0 (n 1) r!p (n 1, rz) f W (x)dx-t that is 0 is not considered then By the substitution y r(z + µt) we have dt dy 1 µ that is 0+ as it was expected. Thus rz 0+ µr (r(z + µt))n 1 r e r(z+µt) dt. (n 1 r)! for the integral part we get y n 1 r (n 1 r)! e y dy Q(n 1 r, rz) f W (x)dx rr Q(n 1 r, rz) P 0 (n 1) P W, r!p (n 1, rz) f W (x)dx f W (0) + f W (x)dx Let us determine the density function for x > 0. That is n 1 f W (x) kr n 1 kr rµ (rµx)k r (k r)! e rµx P k (n 1) rµ (rµx)k r rr e rµx (k r)! r! rµrr P 0 (n 1) n 1 r!p (n 1, rz) kr rµrr P 0 (n 1)e r(z+µx) r!p (n 1, rz) rµrr P 0 (n 1) r!p (n 1, rz) (rµx) k r (k r)! P (n 1 k, rz) P 0 (n 1) P (n 1, rz) n 1 r i0 (r(z + µx)) n 1 r (n 1 r)! (rz) n 1 k (n 1 k)! e r(z+µx) (rµx) i i! (rz) n 1 r i (n 1 r i)! e r(z+µx) rµrr P 0 (n 1)P (n 1 r, r(z + µx)), r!p (n 1, rz) 98
99 as we got earlier, but we have to remember that f W (0) 1 P W. Therefore P (W > x) f W (t)dt x rr P 0 (n 1) r!p (n 1, rz) rr P 0 (n 1) r!p (n 1, rz) Thus for the distribution function we have which was obtained earlier. rµ x r(z+µx) (r(z + µt))n 1 r e r(z+µt) dt (n 1 r)! y n 1 r (n 1 r)! e y dy rr P 0 (n 1)Q(n 1 r, r(z + µx)). r!p (n 1, rz) F W (x) 1 P (W > x) To verify the correctness of the formula let r 1. After substitution we get but thus P (W > x) P 0(n 1)Q(n 2, z + µx), P (n 1, z) P 0 (n 1) P (W > x) P (n 1, z) Q(n 1, z), Q(n z, z + µx). Q(n 1, z) The derivation of the distribution function of the response time is analogous. Because the calculation is rather lengthly it is omitted, but can be found in the Solution Manual for Kobayashi [50]. As it can be seen in Allen [2], Kobayashi [50], the following formulas are valid for r 2 F T (x) 1 C 1 e µx + C 2 Q(n r 1, r(z + µx)), where C C 2 Q(n r 1, rz), C 2 r r P 0 (n 1) r!(r 1)(n r 1)!P (n 1, rz). 99
100 Hence the density function can be obtained as f T (x) µc 1 e µx C 2 rµp (n r 1, r(z + µx)). It should be noted that for the normalizing constant we have the following recursion P0 1 (n) 1 + n rz P 0 1 (n 1) + n r 1 ( n 1 ) ( i 1 z z i i ), n > r, r with initial value i0 ( P0 1 (r) ) r. r 1. z Laplace-transform of the Waiting and Response Times First determine the Laplace-transform of the waiting time. It is easy to see that by using the theorem of total Laplace-transform we have n 1 ( ) k r+1 rµ L W (s) 1 P W + P k (n 1). rµ + s We calculate this formula step-by-step. Namely we can proceed as kr Then n 1 ( rµ ) k r+1 r r P 0 (n 1)P (n 1 k, rz) rµ + s r!p (n 1, rz) kr rr P 0 (n 1)e rz r!p (n 1, rz) n 1 kr ( rµ rµ + s n 1 ( rµ ) k r+1 (rz) n 1 k rµ + s (n 1 k)! kr n 1 r i0 ) k r+1 (rz) n 1 k (n 1 k)!. ( ) i+1 rµ (rz) n 1 r i rµ + s (n 1 r i)!, where i k r. Thus the last equation can be written as ( ) n r n 1 r rµ rµ + s i0 ( rµ+z λ ) n 1 r i (n 1 r i)! Finally collecting all terms we get ( rµ L W (s) 1 P W + rµ + s ( ) n r ( rµ e rµ+z λ Q n 1 r, rµ + z ). rµ + s λ ) n r r r P 0 (n 1)e rz r!p (n 1, rz) e rµ+s λ Q ( 1 P W + rr e s λ P 0 (n 1)Q ( n 1 r, rµ+s λ r!p (n 1, rz) 100 ) n 1 r, rµ + s ) λ ( ) n r rµ. rµ + s
101 To verify the correctness of the formula let r 1. Thus after inserting we have ( ) n 1 µ e s λ P 0 (n 1)Q ( ) n 2, µ+s λ L W (s) P 0 (n 1) + as we got earlier. µ + s ( P (n 1, z) µ Q(n 1, z) + µ + s ( ) n 1 ( ( z µ µ+s Q(n 1, z) ( ) n 1 µ µ+s Q(n 1, z) ( ) n 1 s e µ µ+s [( µ+s λ µ+s µ P (n 1, z) ) n 1 e s λ Q ( ) n 2, µ+s λ Q(n 1, z) )) n 1 (n 1)! ) n 1 e µ+s λ e s λ (n 1)! λ Q ( n 1, µ+s λ Q (n 1, z) ), ( e z + e s λ Q n 2, µ + s ) λ ( + e s λ Q n 2, µ + s ) ] λ Keeping in mind the relation between the waiting time and the response time and the properties of the Laplace-transform we have ( ) µ L T (s) L W (s), µ + s which is in the case of r 1 reduces to ( ) n µ e s λ Q ( ) n 1, µ+s λ L T (s). µ + s Q(n 1, z) Java applets for direct calculations can be found at Example 14 A factory possesses 20 machines having mean lifetime of 50 hours. The mean repair time is 5 hours and the repairs are carried out by 3 repairmen. Find the performance measures of the system. Solution: ρ λ µ 1 µ 1 λ By using the recursive approach we get
102 a 0 1 a a a a and so on. Hence Innen P n k1 a k P 1 a 1 P P 2 a 2 P etc The distribution can be seen in the next Table for n 20, r 3, ρ 0.1 Number of busy Number of waiting Number of idle Steady-state. K under repair machines repairmen distribution repairmen (Q) (S) (P k ) Hence the performance measures are Q 0.339, S 1.213, N Q + r S
103 Q P (W > 0) , P (e) , W hours, 58 minutes λ(n N) Eδ (n) U (n) 5 nλp U S r r Eδ m , U (n) hours, r 1.787, s , e s P (e)λ r P (e)λ U g m n T W + 1 µ hours hours 90.8 hours mean number of waiting machines K 1 Q total number of machines n mean number of idle repairmen K 2 S total number of repairmen r Let us compare these measures to the system where we have 6 machines and a single repairman. The lifetime and repair time characteristics remain the same. The result can be seen in the next Table Number of machines 6 20 Number of repairman 1 3 Number of machines per repairman Waiting coefficient for the servers K Waiting coefficient for the machines K Example 15 Let us continue the previous Example with cost structure. Assume that the waiting cost is Euro/hour and the cost for an idle repairman is 600 Euro/hour. Find the optimal number of repairmen. It should be noted that different cost functions can be constructed. Solution: The mean cost per hour as a function of r can be seen in the next Table which are calculated by the help of the distribution listed below for r 3, 4, 5, 6, 7. r P 0 P 1 P 2 P 3 P 4 P 5 P 6 P 7 P
104 The mean cost per hour is r Q S E(Cost) Euro Hence the optimal number is r 5. This simple Example shows us that there are different criteria for the optimal operation. 3.5 The M/M/r/K/n Queue This system is an combination of the finite-source systems considered in the previous sections. It is the most general system since for K r we have the Engset system treated in Section 3.1, for r 1, K n get the system analyzed in Section 3.2, for K n we obtain the system of Section 3.4. For the value r < K < n we have delay-loss system, that is customers can arrive into the system until the number of customers in the system is K 1 but then the must return to the source because the system is full. As before it is easy to see that the number of customers in the systems is a birth-death process with rates λ k (n k), 0 k < K, µ k { kµ, 1 k r, rµ, r < k K where 1 r n, r K n. It is qiute complicated system and have not been investigated, yet. The main problem is that there are no closed form formulas as before, but using computers all the performance measures can be obtained. The normalizing constant P 0 (n, r, K) should satisfies the normalizing condition K P k (n, r, K) 1. i0 As before it can easily be seen that ( ) n ρ k P 0 (n, r, K) k, 0 k < r, P k (n, r, K) ( ) n k!ρ k r!r k r P 0(n, r, K), r k K 104
105 The main performance measures can be computed as N K kp k, Q k0 K r 1 K (k r)p k, r kp k + r P k, m n N, kr k1 kr U S r r, U t n N n, λ µ µr, T N λ, W Q λ, W T 1 µ, n N n E(τ) E(τ) + T, (n N)T E(τ), N R E(τ)λ. N By using the Bayes s rule it is easy to see that for the probability of blocking we have In particular, if K n, then P B (n, r, K) (n K)P K(n, r, K) K (n i)p i (n, r, K) i0 P K (n 1, r, K). thus T λ λ(n N) µr, N λ(n N), E(τ) 1 λ, P B 0, as it was expected. Furthermore, by elementary calculations it can be seen that the normalizing constant P 0 (n, r, K) can be expressed recursively with respect to K under fixed r, n. Namely we have with initial value (P 0 (n, r, K)) 1 (P 0 (n, r, K 1)) 1 + (P 0 (n, r, r)) 1 r i0 ( ) n ρ i. i ( n ) K K!ρ K, r!r K r By using the Bayes s rule it is easy to see that the probability that an arriving customer finds k customers in the system is Π k(n, r, K) P k (n 1, r, K), k 0,, K 105
106 but the probability that a customer arriving into the systems finds k customers there is Π k (n, r, K) (n k)p k(n, r, K), k 0,..., K 1. K 1 (n i)p i (n, r, K) i0 Hence the probability of waiting and the density function of the waiting time can be expressed as P W (n, r, K) K 1 kr Π k (n, r, K) f W (0) 1 P W (n, r, K) f W (x) K 1 kr (rµ)(rµx) k r+1 e rµx Π k (n, r, K) (k r + 1)! By using the Bayes s rule it can easily be verified that Π k (n, r, K) P k(n 1, r, K) 1 P K (n 1, r, K), and analogously to the earlier arguments for the density function we obtain f W (x) µrrr P (K 1 r, rz) r!p (K 1, rz) P 0 (n 1) 1 P K (n 1, r, K). In paricular, if K n, that is all customer may enter into the system, then P K (n 1, r, K) 0 and thus we got the formulas derived before. By reasonable modifications for the distribution function we have F W (x) 1 rr Q(K 1 r, r(z + µx)) r!p (K 1, rz) The corresponding Laplace-transform can be computed as L W (s) 1 P W (n, r, K) + ( rµ ) K r r e s λ rµ + s r! 3.6 The M/G/1/n/n/P S Queue P 0 (n 1, r, K) 1 P K (n 1, r, K). Q ( ) K 1 r, rµ+s P0 (n 1, r, K) λ P (K 1, rz)(1 P K (n 1, r, K)). This system is a generalization of system M/M/1/n/n/F IF O treated in Section 3.2. The essential differences are the distribution of the service time and the service disciple. Since the service times are not exponentially distributed the number of customers as a stochastic process is not a Markov chain. In this Section we introduce the model which has been published in Yashkov [101]. 106
107 The requests arrive from a finite-source where they spend an exponentially distributed time with parameter λ. The required service time S is generally distributed random variable with ES <. Let us denote by G(x) and g(x) its distribution function, density function, respectively, assuming that (G (0 + ) 0). The service discipline is Processor Sharing, that is all customers in the service facility are being served but the rate is proportional to the number of customers in service. The method of supplementary variables is used for the description of the behavior of the system. Let us introduce the following random variables. Let ν(t) denote the number of customers in the system at time t, and for ν(t) > 0 let ξ 1 (t),..., ξ ν(t) (t) denote the elapsed service time of the requests. The stochastic process X(t) ( ν(t); ξ 1 (t),..., ξ ν(t) (t) ) is a continuous-time Markov process with discrete and continuous components which are called piecewise linear Markov process. It should be noted the many practical problems can be modeled by the help of these processes and the interested reader is referred to the book of Gnedenko Kovalenko [31]. Let P k (t, x 1,..., x k ) dx 1... dx k P (ν(t) k; x i ξ i < x i + dx i, i 1,..., k), that is P k (t, x 1,..., x k ), k 1,..., n denotes the density function that at time t there are k customers in the system and their elapsed service times are x 1,..., x k. Let δ be a small positive real number. Then for the density functions P k (t, x 1,..., x k ) we have the following set of equations P k (t; x 1,..., x k ) ( P k t δ; x 1 δ k,..., x k δ ) k 1 G (x i ) k 1 G ( ) [1 λ (n k) δ] + x i1 i δ k ( + (k + 1) P k+1 t δ; x 1 δ k,..., x k+1 δ ) k + 1 k i1 Dividing both sides by 0 1 G (x i ) 1 G ( ) G (x k+1) G [ ] x k+1 δ k+1 x i δ 1 G [ ] dx x k+1 k+1 δ k+1. k+1 k i1 [1 G (x i )] and taking the limits as δ 0, t we have the stationary equations, namely [ ] 1 k + λ (n k) q k x k (x 1,..., x k ) i i1 107
108 where 0 q k+1 (x 1,..., x k+1 ) g (x k+1 ) dx k+1, k 1,..., n 1, q k (x 1,..., x k ) lim t P k (t; x 1,..., x k ) / are called normalized density functions. Similarly, for P 0 and q n (x 1,..., x n ) we obtain λnp 0 1 n n i1 0 q 1 (x 1 ) g (x 1 ) dx 1, k [1 G (x i )] i1 x i q n (x 1,..., x n ) 0. Beside these equation we need the boundary conditions which are q 1 (0) λnp 0, q k (0, x 1,..., x k 1 ) λ (n k + 1) q k 1 (x 1,..., x k 1 ), k 1,..., n. The solution to these set of integro-differential equations is surprisingly simple, namely which can be proved by direct substitution. Consequently q k (x 1,..., x k ) P 0 λ k n!/ [(n k)!], P k (x 1,..., x k ) P 0 λ k n! (n k)! i 1,..., n. k [1 G (x i )], Let us denote by P k the steady-state probability of the number of customers in the system. Clearly we have P k i1 P k (x 1,..., x k ) dx 1... dx k P 0 n! (n k)! (λes)k. Probability P 0 can be obtained by using the normalizing condition n P i 1. Recall that it is the same as the distribution in the M/M/1/n/n system if ϱ λes. 108 i0
109 It is not difficult to see that for this M/G/1/n/n/P S system the performance measures can be calculated as n (i) N kp k thus hence (ii) U (i) k1 1 λ 1 + T n N n, λ T 1 N λ n N, λ(n N)T N which is the Little s formula. Clearly, due to the Processor Sharing discipline the response time is longer then the required service time, and there is no waiting time since each customer are being served. The difference is T E(S). It can be proved, see Cohen [14], that for an G/ G/1/n/n/P S system the steady-state probability that customers with indexes i 1,..., i k are in the system can be written as P (i 1,..., i k ) C k! k j1 ρi j, ρ i E(S i), i 1,..., n. E(τ i ) For homogeneous case we get ( ) n P k C k! ρ k. k 3.7 The G/M/r/n/n/F IF O Queue This section is devoted to a generalized version the finite-source model with multiple servers where the customers are supposed to have heterogeneous generally distributed source times and homogeneous exponentially distributed service times. They are served according to the order of their arrivals. The detailed description of this model can be found in Sztrik [77]. Customers arrive from a finite source of size n and are served by one of r (r n) servers at a service facility according to a first-come first-served (FFIFO) discipline. If there is no idle server, then a waiting line is formed and the units are delayed. The service times of the units are supposed to be identically and exponentially distributed random variables with parameter µ. After completing service, customer with index i returns to the source and stays there for a random time τ i having general distribution function F i (x) with density f i (x). All random variables are assumed to be independent of each other. 109
110 Determination of the steady-state distribution As in the previous section the modeling is more difficult since the involved random times are not all exponentially distributed and thus we have to use the method of supplementary variables. Let the random variable ν(t) denote the number of customers staying in the source at time t and let ( α 1 (t),..., α ν(t) ) indicate their indexes ordered lexicographically, that is in increasing order of their indexes. Let us denote by ( β 1 (t),..., β n ν(t) ) the indexes of the requests waiting or served at the service facility in the order of their arrival. It is not difficult to see that the process Y (t) ( ν (t) ; α 1 (t),..., α ν(t) ; β 1 (t),..., β n ν(t) ), (t 0) is not Markovian unless the distribution functions F i (x), i 1,..., n are exponential. To use the supplementary variable technique let us introduce the supplementary variable ξα i (t) to denote the elapsed source time of request with index α i, i 1,, n. Define X (t) ( ) ν (t) ; α 1 (t),..., α ν(t) ; ξα 1 (t),..., ξα ν(t) ; β 1 (t),....β n ν(t) This is a multicomponent piecewise linear Markov process. Let Vk n and Cn k denote the set of all variations and combinations of order k of the integers 1, 2,..., n, respectively, ordered lexicographically. Then the state space of process (X (t), t 0) consists of the set of points where (i 1,..., i k ; x 1,..., x k ; j 1,..., j n k ) (i 1,..., i k ) C n k, (j 1,..., j n k ) V n k, x i R +, i 0, 1,..., k, k 0, 1,..., n. Process X(t) is in state (i 1,..., i k ; x 1,..., x k ; j 1,..., j n k ) if k customers with indexes (i 1,..., i k ) have been staying in the source for times (x 1,..., x k ), respectively while the rest need service and their indexes in the order of arrival are (j 1,..., j n k ). To derive the Kolmogorov-equations we should consider the transitions that can occur in an arbitrary time interval (t, t + h). For 0 n k < r the transition probabilities are then the following P [X (t + h) (i 1,..., i k ; x 1 + h,..., x k + h; j 1,..., j n k ) X (t) (i 1,..., i k ; x 1,..., x k ; j 1,..., j n k )] k 1 F il (x l + h) (1 (n k) µh) + o (h), 1 F il (x l ) l1 P [X (t + h) (i 1,..., i k ; x 1 + h,..., x k + h; j 1,..., j n k ) 110
111 X (t) (i 1,..., j n k,..., i k; x 1,..., y,..., x k; j 1,..., j n k 1 )] f j n k (y) h 1 F jn k (y) k l1 1 F il (x l + h) 1 F il (x l ) + o (h), where (i 1,..., j n k,..., i k ) denotes the lexicographical order of indexes (i 1,..., i k, j n k ) while (x 1,..., y,..., x k ) indicates the corresponding times. For r n k n the transition probabilities can be obtained as P [X (t + h) (i 1,..., i k ; x 1 + h,..., x k + h; j 1,..., j n k ) [ P X (t) (i 1,..., i k ; x 1,..., x k ; j 1,..., j n k )] k 1 F il (x l + h) (1 rµh) + o (h), 1 F il (x l ) l1 X (t + h) (i 1,..., i k ; x 1 + h,..., x k + h; j 1,..., j n k ) X (t) (i 1,..., j n k,..., i k ; x 1,..., y,..., x k; )] j 1,..., j n k 1 f j n k (y) h 1 F jn k (y) k l1 1 F il (x l + h) 1 F il (x l ) For the distribution of X(t) introduce the following functions + o (h). Q 0;j1,...,j n (t) P (ν (t) 0; β 1 (t) j 1,..., β n (t) j n ), Q i1,...,i k ;j 1,...,j n k (x 1,..., x k ; t) P (ν (t) k; α 1 (t) i 1,..., α k (t) i k ; ξ i1 x 1,..., ξ ik x k ; β 1 (t) j 1,..., β n k (t) j n k ). Let λ i is defined by 1/λ i E(τ i ). Then we have Theorem 2 If 1/λ i <, i 1,..., n, then the process (X (t), t 0) possesses a unique limiting ( stationary, steady-state) distribution independent of the initial conditions, namely Q 0;j1,...,j n lim Q 0;j1,...,j n (t), t Q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) lim t Q i1,...,i k ;j 1,...,j n k (x 1,..., x k ; t). Notice that X(t) belongs to the class of piecewise-linear Markov processes, subject to discontinuous changes treated by Gnedenko and Kovalenko [31]. Our statement follows from a theorem on page 211 of this monograph. Since by assumption F i (x) has density function, for fixed k Theorem 2 provides the existence and uniqueness of the following limits q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) dx 1... dx k 111
112 P (ν (t) k; α 1 (t) i 1,..., α k (t) i l ; x l ξ il < x l + dx l, l 1,..., k; β 1 (t) j 1,..., β n k (t) j n k ), k 1,..., n where q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) denotes the density function of state (i 1,..., i k ; x 1,..., x k ; j 1,..., j n k ) when t. Let us introduce the so-called normed density function defined by Then we have q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) q i 1,...,i k ;j 1,...,j n k (x 1,..., x k ) (1 F i1 (x 1 ))... (1 F ik (x k )). Theorem 3 The normed density functions satisfy the following system of integro-differential equations (3.1), (3.3) with boundary conditions (3.2), (3.4) (3.1) [ x x k ] q i1,...,ik;j1,...,jn k (x 1,..., x k ) + 0 (n k) µ q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) + ) q i 1,...,j n k,...,i k ;j 1,...,j n k 1 (x 1,..., y,..., x k f jn (y) dy, (3.2) q i1,...,i k ;j 1,...,j n k (x 1,..., x l 1, 0, x l+1,..., x k ) µ V i l j 1,...,j n k q i1,...,il 1;il+1,...,ik;j1,...,jn k (x 1,..., x l 1, x l+1,..., x k ) for l 1,..., k, 0 n k < r (3.3) [ x x k ] q i1,...,ik;j1,...,jn k (x 1,..., x k ) + 0 rµ q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) + q i 1,...,j n k,...,i k ;j 1,...,j n k 1 (x 1,..., y,..., x k)f jn (y)dy (3.4) q i1,...,i k ;j 1,...,j n k (x 1,..., x l 1, 0, x l+1,..., x k ) µ V i l j 1,...,j r 1 q i1,...,il 1;il+1,...,ik;j1,...,jn k (x 1,..., x l 1, x l+1,..., x k ), for l 1,..., k, r n k < n 1 112
113 furthermore rµq 0;j1,...,j n q jn;j 1,...,j n 1 (y)f jn (y) dy. The symbol [ ] will be explained later while 0 V i l j 1,...,j s [(i l, j 1,..., j s ), (j 1, i l, j 2,..., j s ),..., (j 1,..., j s, i l )] V n s+1. Proof: Since the process (X (t), t 0) is Markovian its densities must satisfy the Kolmogorovequations. A derivation is based on the examination of the sample paths of the process during an infinitesimal interval of width h. The following relations hold + q i1,...,i k ;j 1,...,j n k (x 1 + h,..., x k + h) q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) (1 (n k) µh) k l1 1 F il (x l + h) 1 F il (x l ) + 0 k l1 1 F il (x l + h) + 1 F il (x l ) ) q i 1,...,j n k,...,i k ;j 1,...,j n k 1 (x 1,..., y..., x k f j n k (y) h dy + o (h), 1 F jn k (x l ) q i1,...,i k ;j 1,...,j n k (x 1 + h,..., x l 1 + h, 0, x l+1 + h,..., x k + h) h Similarly µh o (h) + k s1 s l 1 F is (x s + h) 1 F is (x s ) V i l j 1,...,j n k q i1,...,il 1;il+1,...,ik;j1,...,jn k (x 1,..., x l 1, x l+1,..., x k ) for 0 n k < r, l 1,..., k. q i1,...,i k ;j 1,...,j n k (x 1 + h,..., x k + h) + k l1 q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) (1 rµh) 1 F il (x l + h) 1 F il (x l ) 0 k l1 1 F il (x l + h) + 1 F il (x l ) ) q i 1,...,j n k,...,ie k ;j 1,...,j n k 1 (x 1,..., y,..., x k f j n k (y) h dy + o (h), 1 F jn k (x l ) q i1,...,i k ;j 1,...,j n k (x 1 + h,..., x l 1 + h, 0, x l+1 + h,..., x k + h) h 113
114 Finally µh o (h) + k s1 s l 1 F is (x s + h) 1 F is (x s ) V i l j 1,...,j n k q i1,...,il 1;il+1,...,ik;j1,...,jn k (x 1,..., x l 1, x l+1,..., x k ) + 0 for 0 n k < r, l 1,..., k. Q 0;j1,...,j n Q 0;j1,...,j n (1 rµh) + q jn;j 1,...,j n 1 (y) f jn (y) h dy + o (h). 1 F jn (y) Thus the statement of this theorem can easily be obtained. Dividing the left-hand side of equations by k (1 F il (x l + h)) and taking into account the definition of the normed l1 densities taking the limit as h 0 we get the desired result. In the left-hand side of (3.1)(3.3) used for the notation of the limit in the right-hand side, the usual notation for partial differential quotients has been applied. Strictly considering this is not allowed, since the existence of the individual partial differential quotient is not assured. This is why the operator is notated by [ ]. Actually this is a (1, 1,..., 1) R k directional derivative, see Cohen [14]. To determine the steady-state probabilities [ ] Q0;j1,...,j n, Q i1,...,i k ;j 1,...,j n k, (i 1,..., i k ) C n k, (j 1,..., j n k ) V N n k, k 1,..., n. we have to solve equations (3.1)(3.3) subject to the boundary conditions (3.2)(3.4). If we set Q 0;j1,...,j n c 0, q i1,...,i k ;j 1,...,j n k (x 1,..., x k ) c k, k 1,..., n, then by direct substitution it can easily be verified that they satisfy these equations with boundary conditions. Moreover these c k can be obtained by the help of c n, namely c k ( r!r n r k µ n k) 1 cn, 0 k n r, c k ( (n k)!µ n k) 1 cn, n r k n. Since these equations completely describe the system, this is the required solution. Let Q i1,...,i k ;j 1,...,j n k denote the steady-state probability that customers with indexes (i 1,..., i k ) are in the source and the order of arrivals of the rest to the service facility is (j 1,..., j n k ). Furthermore, denote by Q i1,...,i k the stationary probability that requests with indexes (i 1,..., i k ) i are staying in the source. 114
115 It can easily be seen Q i1,...,i k ;j 1,...,j n k (λ i1,..., λ ik ) 1 c k, k 1,..., n. By using the relation we obtained for c k we have Q i1,...,i k (n k)! ( ) r!r n r k µ n k 1cn λ i1,..., λ ik, Similarly (i 1,..., i k ) C n k, k 0, 1,..., n r. Q i1,...,i k ( µ n k λ i1,..., λ ik ) 1cn, (i 1,..., i k ) C n k, k n r,..., n. Let us denote by ˆQ k and ˆP l the steady-state probability of the number of customers in the source, in the service facility, respectively. Hence it is easy to see that Q i1,...,i n Q 1,...,n ˆQ n, ˆQ k ˆP n k, k 0,..., n. Furthermore c n ˆQ n (λ 1,..., λ n ), ˆQ k Q i1,...,i k, (i 1,...,i k ) C n k where ˆQ n can be obtained by the help of the normalizing condition n In the homogeneous case these formulas reduce to k0 ˆQ k 1. ˆQ k ( ) n k n! λ ˆQn, for 0 k n r, r!k!r n k r µ ˆQ k ( )( ) n k n λ ˆQn, for n r k n, k µ which is the result of the paper Bunday and Scraton [12], and for r 1 is the formulas obtained by Schatte [72]. Thus the distribution of the number of customers in the service facility is ˆP k ˆP k ( n k )( λ µ n! r!(n k)!r k r ) k ˆP0, for 0 k r, ( ) k λ ˆP0, for r k n. µ This is exactly the same result that we got for the < M/M/r/n/n > model. It should be underlined that the distribution of the number of customers in the system does not depend on the form of F i (x) but the mean 1/λ i, that is it is robust. 115
116 Performance Measures Utilization of the sources Let Q (i) denote the steady-state distribution that source i is busy with generating a new customer, that is Q (i) n k1 i (i 1,...,i k ) Ck n Hence the utilization of source i can be obtained as Utilization of the servers U (i) Q (i). Q i1,...,i k. As we have calculated earlier the utilization of a server can be derived as ( r ) U CP U 1 k r ˆP n k + r ˆP k r r, k1 kr+1 where r denotes the mean number of busy servers. Thus the overall utilization of the servers is r. Mean waiting and response times By the results of Tomkó [92] we have Q (i) (1/λ i ) ( 1/λ i + W i + 1/µ ) 1. Thus for the mean waiting time of the customer with index i we obtain W i 1 1 Q(i) 1, i 1,..., n. λ i Q (i) µ Consequently the mean response time T i of the ith request can be calculated as T i W i + 1/µ ( 1 Q (i)) ( λ i Q (i)) 1, i 1,..., n. Since n ( ) 1 Q (i) N, i1 where N denotes the mean number customers at the service facility. This can be rewritten as n λ i Ti Q (i) N, i1 which the Little s formula for the G/M/r/n/n/F IF O > queueing system. It should be noted that using the terminology of the machine interference problem U (i), W i, T i denote the utilization, mean waiting time and the mean time spent in a broken state of the ith machine. This model can be generalized such a way that the service intensities depend on the number of customers in the source, see Sztrik [79, 80]. 116
117 Part II Exercises 117
118
119 Chapter 4 Infinite-Source Systems Exercise 1 Solve the following system of equations by the help of difference equations Solution: It is easy to see that it can be rewritten as λp 0 µp 1 (λ + µ)p n λp n 1 + µp n+1, n 1. λp n 1 (λ + µ)p n + µp n+1 0, n 1, 2,... which is a 2-nd order difference equation with constant coefficient. Its general solution can be obtained in the form where x 1, x 2 are the solutions to P n c 1 x n 1 + c 2 x n 2, n 1, 2,... µx 2 (λ + µ)x + λ 0. It can easily be verified that x 1 1, x 2 ϱ and thus P n c 1 + c 2 ϱ n, n 1, 2,.... However P 1 ϱp 0, and because n0 P n 1, thus c 1 0 and c 2 P 0 1 ϱ. Exercise 2 Find the generating function of the number of customers in the system for an M/M/1 queueing system by using the steady-state balance equations. Then derive the corresponding distribution. Solution: Staring with the set of equations λp 0 µp 1 (λ + µ)p n λp n 1 + µp n+1, n 1 119
120 by multiplying both sides by s i and then adding the terms we obtain λg N (s) + µg N (s) µp 0 λsg N (s) + µ s G N(s) µ s P 0. Thus we can calculate as ( ( G N (s) λ(1 s) + µ 1 1 )) s ( ( G N (s) µ 1 1 ) ( λs 1 1 )) µ s s Since G N (1) 1, therefore That is P 0 µ λ µ ( µ 1 1 ) P 0, s ( 1 1 ) P 0, s G N (s) µ µ λs P 0. 1 ϱ. G N (s) 1 ϱ 1 sϱ, which is exactly the generating function of a modified geometric distribution with parameter (1 ϱ). It can be proved as follows, if then its generating function is P (N k) (1 ϱ)ϱ k, k 0,... G N (s) k0 s k (1 ϱ)ϱ k 1 ϱ 1 sϱ. Exercise 3 Find the generating function of the number of customers waiting in a queue for an M/M/1 queueing system. Solution: Clearly G Q (s) (P 0 + P 1 )s ϱ + ϱ s k 1 P k P 0 + k2 s k 1 P k 1 ϱ + k1 s k 1 ϱ k (1 ϱ) k1 s i (1 ϱ)ϱ i 1 ϱ + ϱg N (s) 1 ϱ(1 G N (s)). i0 For verification let us calculate the mean queue length, thus G Q(1) ϱg N(1) ϱ2 1 ϱ. 120
121 Exercise 4 Find the Laplace-transform of T and W for an M/M/1 queueing system. Solution: It is easy to see that ( µ L T (s) µ + s k0 µ (1 ϱ) µ + s ) k+1 ϱ k (1 ϱ) (1 ϱ) 1 1 µϱ µ+s µ µ + s k0 ( µϱ µ + s µ µ + s (1 ϱ) µ + s µ(1 ϱ) + s ) k µ(1 ϱ) µ(1 ϱ) + s, which was expected, since T follows an exponential distribution with parameter µ(1 ϱ). To get the Laplace-transform of W we have L W (s) k0 ( ) k µ ϱ k (1 ϱ) 1 ϱ + µ + s k1 ( ) k µ ϱ k (1 ϱ) µ + s which should be since 1 ϱ + To show this it can be calculated that L W (s) L T (s) µ + s µ ϱµ(1 ϱ) µ(1 ϱ) + s, L T (s) µ µ+s µ L T (s) L W (s) µ + s. µ(1 ϱ) µ + s µ(1 ϱ) + s µ Let us verify the result by deriving the mean values T and W. L 1 T (0) µ(1 ϱ), L W (0) ϱl ϱ T (0) µ(1 ϱ), µ(1 ϱ) 1 ϱ + ϱ µ(1 ϱ) + s. thus which was obtained earlier. T 1 µ(1 ϱ), W ϱ µ(1 ϱ), Exercise 5 Show that for an M/M/1/K queueing system. lim N(K) K ρ 1 ρ, ρ < 1 121
122 Solution: It is well-known if ρ < 1 then lim K ρk 0. Since N ρ(1 (K+1)ρK +Kρ K+1 ), it is enough to show that (1 ρ)(1 ρ K+1 ) lim K KρK 0. This can be proved by the L Hospital s rule, namely lim K lim K K ρ K K lim ρ K K 1 lnρρ K ρk lnρ 0. Exercise 6 Show that for an M/M/1/K queueing system the Laplace-transform satisfies L T (0) 1. Solution: ( L T (s) µp λ 1 0 µ+s 1 P K µ λ + s ) K L T (0) µp 0 1 ρ K 1 P K µ λ P 0 1 ρ K 1 P K 1 ρ 1 ρ 1 ρ K+1 1 ρk (1 ρ) 1 ρ K+1 1 ρk 1 ρ 1 ρ 1 ρ 1 ρ K+1 1 ρk K+1 1 ρ K+1 ρ K + ρk+1 1 ρ 1. Exercise 7 Find T by the help of the Laplace-transform for an M/M/1/K queueing system. Solution: Since ( L T (s) µp λ 1 0 µ+s 1 P K µ λ + s ) K 122
123 then L T (s) µp 0 1 P K L T (0) µp 0 1 P K K ( ) µ+s (K+1) λ 1 (1 (µ λ + s) λ ( KρK+1 1 P 0 ρ λ(1 P K )(1 ρ) 2 (µ λ + s) 2 ) 1 + ρ K 1 ρ (µ λ) 2 ( ) 1ρ (Kρ K λ(1 P K ) ρp 0(Kρ K Kρ K+1 + ρ K 1) (1 ρ) 2 1 ρp 0 ((K + 1)ρ K Kρ K+1 1) λ(1 P K ) (1 ρ) 2 N λ(1 P K ), ( ) + ρ K 1 λ µ+s ) ) K that is T which was obtained earlier. The higher moments can be calculated, too. N λ(1 P K ), Exercise 8 Consider a closed queueing network with 2 nodes containing K customers. Assume that at each node the service times are exponentially distributed with parameter µ 1 and µ 2, respectively. Find the mean performance measures at each node. Solution: It is easy to see that the nodes operate the same way and they can be considered as an M/M/1/K queueing system. Hence the performance measures can be computed by using the formulas with ρ 2 µ 1 µ 2 and ρ 1 µ 2 µ 1, respectively. Furthermore, one can easily verify that U S (1)µ 1 U S (2)µ 2, where U S (i), i 1, 2 is the utilization of the server. Exercise 9 Find the generating function for an M/M/n/n queueing system. Solution: G N (s) n k0 s k ϱk k! P 0 n (sϱ) k e sϱ P 0 e sϱ ϱ(1 s) Q(n, sϱ) e k! Q(n, ϱ). k0 123
124 To verify the formula let us calculate T. Since N G N (1), therefore take the derivative, that is we get hence which was obtained earlier. G ϱ(1 s) Q(n, ϱs) ϱp (n, ϱs) N(s) ϱe e ϱ(1 s) Q(n, ϱ) Q(n, ϱ). G N(1) ϱ ϱb(n, ϱ) ϱ(1 B(n, ϱ)), Exercise 10 Find V ar(n) for an M/M/n/n queueing system. Solution: Since V ar(n) E(N 2 ) (E(N)) 2, let us calculate first E(N 2 ). That is E(N 2 ) n k 2 P k k1 k2 n (k(k 1) + k)p k k1 i0 n k(k 1)P k + k1 n k(k 1) ϱk k! P n E(N) ϱ 2 ϱi i! P 0 + E(N) ϱ 2 (1 P n P n 1 ) + E(N) ϱ 2 ( 1 P n ( 1 + n ϱ n kp k k1 )) + E(N). Since E(N) ϱ(1 B(n, ϱ)), therefore V ar(n) ϱ 2 (1 B(n, ϱ)(1 + n ϱ )) (ϱ(1 B(n, ϱ)))2 + E(N) ϱ 2 (1 B(n, ϱ)( ϱ + n ϱ )) (ϱ(1 B(n, ϱ)))2 + E(N) ϱ 2 ϱ 2 B(n, ϱ) nϱb(n, ϱ) ϱ 2 ϱ 2 B 2 (n, ϱ) + 2ϱ 2 B(n, ϱ) + E(N) E(N) + ϱ 2 B(n, ϱ) nϱb(n, ϱ) ϱ 2 B 2 (n, ϱ) E(N) ϱb(n, ϱ)(n ϱ(1 B(n, ϱ))) E(N) ϱb(n, ϱ)(n E(N)). Exercise 11 Show that B(m, a) is a monotone decreasing sequence and its limit is 0. Solution: B(m, a) ab(m 1, a) m + ab(m 1, a) < a m, and thus it tends to 0 as m increasing. The sequence is monotone decreasing iff B(m, a) B(m 1, a) < 0, m 124
125 that is ab(m 1, a) B(m 1, a) < 0 m + ab(m 1, a) B(m 1, a)(a m ab(m 1, a)) < 0 m + ab(m 1, a) a m ab(m 1, a) < 0 B(m 1, a) > a m, a which is satisfied if a m. Since 1 B(m 1, a) 0 therefore 1 a m 0, and thus a a m,m 0, that is 0 m a. It means that B(m, a) is monotone decreasing for m which was expected since as the number of servers increases the probability of loss should decrease. Exercise 12 Find a recursion for C(m, a). Solution: Let a λ, then by the help of µ C(m, a) B(m, a) 1 a (1 B(m, a)) m we should write a recursion for C(m, a) since B(m, a) can be obtained recursively. First we show how B(m 1, a) can be expressed by the help of C(m 1, a) and then substituting into the recursion ab(m 1, a) B(m, a) m + ab(m 1, a) we get the desired formula. So let us express B(m, a) via C(m, a) that is thus C(m, a) mb(m, a) m a(1 B(m, a)) C(m, a)(m a) + C(m, a)ab(m, a) mb(m, a) B(m, a) (m a)c(m, a) m ac(m, a), which is positive since m > a is the stability condition for an M/M/m queueing system. This shows that B(m, a) < C(m, a), which was expected because of the nature of the problem. Consequently (m 1 a)c(m 1, a) B(m 1, a) m 1 ac(m 1, a), 125
126 and m 1 > a is also valid due to the stability condition. Let us first express C(m, a) by the help of B(m 1, a) then substitute. To do so C(m, a) ab(m 1,a) m+ab(m 1,a) m m a ( 1 ab(m 1,a) m+ab(m 1,a) ) amb(m 1,a) m+ab(m 1,a) m a ( m+ab(m 1,a) ab(m 1,a) m+ab(m 1,a) ab(m 1, a) m + ab(m 1, a) a ab(m 1, a) m a(1 B(m 1, a)). Now let us substitute C(m 1, a) into here. Let us express the numerator and denominator in a simpler form, namely Thus (m 1 a)c(m 1, a) NUM a m 1 ac(m 1, a) ( ) (m 1 a)c(m 1, a) DENOM m a 1 m 1 ac(m 1, a) m 1 ac(m 1, a) (m 1)C(m 1, a) + ac(m 1, a) m a m 1 ac(m 1, a) (m 1)(1 C(m 1, a)) m a m 1 ac(m 1, a) m(m 1) mac(m 1, a) a(m 1)(1 C(m 1, a)) m 1 ac(m 1, a) m(m 1) a(m 1) ac(m 1, a) m 1 ac(m 1, a) (m 1)(m a) ac(m 1, a). m 1 ac(m 1, a) C(m, a) a(m 1 a)c(m 1, a) (m 1)(m a) ac(m 1, a), and the initial value is C(1) a. Thus the probability of waiting can be computed recursively. It is important because the main performance measures depends on this value. Now, let us show that C(m, a) is a monotone decreasing sequence and tends to 0 as m, increases which is expected. It is not difficult to see that ) C(m, a) < a(m 1 a)c(m 1, a) (m 1)(m a) a and if we show that then we have a(m 1 a) (m 1)(m a)a < 1, C(m, a) < C(m 1, a). 126
127 To do so it is easy to see that m 2 m ma + a a am + a + a 2 > 0 a(m 1 a) < (m 1)(m a) a m 2 (1 + 2a)m + a + a 2 > 0 m 1, a ± (1 + 2a) 2 4(a 2 + a) 2 m 1, a ± 1 + 4a 2 + 4a 4a 2 4a 2 m 1, a ± 1 2 that is if m > a + 1 then the values of the parabola are positive. However, this condition is satisfied since the stability condition is m 1 > a. Furthermore, since B(m, a) C(m, a) 1 a (1 B(m, a)) m therefore lim m C(m, a) 0, which was expected. This can be proved by direct calculations, since and from C(m, ϱ) ϱm m m! m ϱ P 0(m) lim P 0(m) e ϱ, m ϱ m m lim m m! m ϱ 0, the limit is 0. It is clear because there is no waiting in an infinite-server system. Exercise 13 Verify that the distribution function of the response time for a M/M/r queueing system in the case of r 1 reduces to the formula obtained for an M/M/1 system. Solution: ( P (T > x) e µx 1 + C(n, ϱ) 1 ) e µ(r 1 ϱ)x e (1 µx + ϱ 1 ) eµϱx r 1 ϱ ϱ e µx (1 1 + e µϱx ) e µ(1 ϱ)x. Thus F T (x) 1 e µ(1 ϱ)x. Exercise 14 Show that lim z 1 G N (z) 1 for an M/G/1 queueing system. 127
128 Solution: lim G z 1 N(z) lim (1 ρ)l S (λ λz) z 1 z 1 z L S (λ λz) 0 0, therefor the L Hospital s rule is applied. It is easy to see that and thus lim z 1 z 1 z L S (λ λz) lim z λl S (λ λz) 1 ρ, lim G z 1 N(z) lim (1 ρ)l S (λ λz) lim z 1 z 1 z z L S (λ λz) 1 ρ 1 ρ 1. Exercise 15 Show that if the residual service time in an M/G/1 queueing system is denoted by R then its Laplace-transform can be obtained as L R (t) 1 L S(t) t E(S). Solution: L R (t) Using integration by parts we have L R (t) [ e tx Verify the limit lim t 0 L R (t) 1. It is easy to see that t 0 ] 1 F S (x) + E(S) 0 e tx 1 F S(x) dx. E(S) e tx 1 L S (t) lim L R (t) lim t 0 t te(s) therefore apply the L Hospital s rule. Thus L S lim L R (t) lim (t) t 0 t 0 E(S) 0 t ( f(x)) E(S) 0 0, E(S) E(S) 1. dx 1 L S(t). te(s) Exercise 16 By the help of L R (t) prove that if S Exp(µ), then R Exp(µ). 128
129 Solution: L R (t) 1 L S(t) te(s) 1 µ µ+t t µ µ µ + t, thus R Exp(µ). Exercise 17 By the help of the formulas for an M/G/1 system derive the corresponding formulas for an M/M/1 system. Solution: In this case L S (t) µ µ + t, therefore the Laplace-transform of the response time is t(1 ρ) L T (t) L S (t) t λ + λl S (t) µ t(1 ρ) µ + t t λ + λµ µ+t µ t(1 ρ)(µ + t) µ + t µt + t 2 λµ λt + λµ t(µ λ) t(t + µ λ) µ λ µ(1 ρ) t + µ λ µ(1 ρ) + t, that is T Exp(µ(1 ρ)), as we have seen earlier. For the generating function of the number of customers in the system we have (1 ρ)(1 z) G N (z) L S (λ λz) L S (λ λz) z µ (1 ρ)(1 z) µ λ λz + µ z λ λz+µ µ (1 ρ)(1 z)(λ λz + µ) λ λz + µ µ λz + λz 2 µz µ(1 ρ)(1 z) µ(1 z) λz(1 z) as we proved in the case of an M/M/1 system. µ(1 ρ) µ λz 1 ρ 1 ρz, 129
130 For the mean waiting and response times we get W ρe(s) 1 ρ 1 + C2 S ρ 2 T W + 1 µ 1 ( ) ρ µ 1 ρ + 1 µ(1 ρ) µ(1 ρ). ρ µ(1 ρ), To calculate the variance we need ( ) 2 E(W 2 ) 2(W ) 2 + λe(s3 ) 3(1 ρ) 2 ρ + λ 3! µ 3 µ(1 ρ) 3(1 ρ) ρ 2 2 µ 2 (1 ρ) + 2λ 2 µ 3 (1 ρ) 2µρ2 + 2λ(1 ρ) µ 3 (1 ρ) 2 2λρ + 2λ 2λρ µ 3 (1 ρ) 2 2λ µ 3 (1 ρ) 2, thus V ar(w ) ( ) 2 2λ µ 3 (1 ρ) ρ 2 µ(1 ρ) 2λ µρ2 2λ λρ (2 ρ)ρ µ 3 (1 ρ) 2 µ 3 (1 ρ) 2 µ 2 (1 ρ), 2 as we have seen earlier. Furthermore V ar(t ) V ar(w ) + V ar(s) 2ρ ρ ρ + ρ 2 µ 2 (1 ρ) 2 (2 ρ)ρ µ 2 (1 ρ) + 2 ( 1 µ ( 1 µ 2 (1 ρ) 2 ) 2 1 µ(1 ρ) )
131 The variance of the number of customers in the system is V ar(n) λ3 E(S 3 ) 3(1 ρ) + as we have seen earlier. Finally λ3 3! µ 3 3(1 ρ) + 2λ 3 µ 3 (1 ρ) + ( ) λ 2 E(S 2 2 ) + λ2 (3 2ρ)E(S 2 ) + ρ(1 ρ) 2(1 ρ) 2(1 ρ) ( ) λ µ 2 + λ2 (3 2ρ) 2 µ 2 + ρ(1 ρ) 2(1 ρ) 2(1 ρ) ( ) ρ ρ2 (3 2ρ) + ρ(1 ρ) 1 ρ 1 ρ 2ρ3 1 ρ + ρ 4 (1 ρ) + ρ2 (3 2ρ) + ρ(1 ρ) 2 1 ρ 2ρ3 (1 ρ) + ρ 4 + ρ 2 (1 ρ)(3 2ρ) (1 ρ) 2 + ρ(1 ρ)3 (1 ρ) 2 2ρ3 2ρ 4 + ρ 4 + 3ρ 2 2ρ 3 3ρ 3 + 2ρ 4 + ρ + 3ρ 3 3ρ 2 ρ 4 (1 ρ) 2 ρ (1 ρ), 2 V ar(q) λ3 E(S 3 ) 3(1 ρ) + λ3 3! µ 3 3(1 ρ) + ( ) λ 2 E(S 2 2 ) + λ2 E(S 2 ) 2(1 ρ) 2(1 ρ) ( ) λ µ 2 + λ2 2 µ 2 2(1 ρ) 2(1 ρ) 2ρ3 1 ρ + ρ 4 (1 ρ) + ρ2 2 1 ρ 2(1 ρ)ρ3 + ρ 4 + ρ 2 (1 ρ) (1 ρ) 2 2ρ3 2ρ 4 + ρ 4 + ρ 2 ρ 3 (1 ρ) 2 ρ3 ρ 4 + ρ 2 (1 ρ) 2 ρ2 (1 + ρ ρ 2 ) (1 ρ) 2. These verifications help us to see if these complicated formulas reduces to the simple ones. Exercise 18 Based on the transform equation find N-t. 1 z G N (z) L S (λ λz)(1 ρ) L S (λ λz) z Solution: It is well-known that N G N (1), that is why we have to calculate the derivative at the 131
132 1 z right hand side. However, the term L S takes an indetermined value at z 1 hence (λ λz) z the L Hospital s rule is used. Let us first define a function. f(z) L S(λ λz) z 1 z Hence one can see that Applying the expansion procedure we have L N (z) (1 ρ) L S(λ λz). f(z) L S (λ λz) 1 + f(z) 1 + k1 Thus f(1) 1 ρ and f (1) λ2 E(S 2 ) 2. After these calculations we get and hence k1 ( 1) k E(S k ) (λ λz) k k! ( 1) k E(S k ) (λ λz) k z k! 1 z 1 λe(s) + λ 2 E(S2 )(1 z) L N(z) (1 ρ)f(z)l S (λ λz)( λ) L S(λ λz) f (z) (f(z)) 2 N G N(1) (1 ρ)f(1)λe(s) + λ2e(s2 ) 2 (1 ρ) 2 ) ( (1 ρ) which was obtained in a different way. (1 ρ)ρ + λ2 E(S 2 ) 2 (1 ρ) 2 ρ + λ2 E(S 2 ) 2(1 ρ) ρ + ρ2 1 ρ 1 + C2 S 2, Exercise 19 Find V ar(w ) by the help of L W (s) 132 s(1 ρ) s λ+λl S (s).
133 Solution: Let us define a function f(s) s λ + λl S(s), s which is after expansion can be written as 1 λ s + λ s L S(s) 1 λ s + λ s ( 1) i E(Si ) s i i! Therefore Hence Consequently, because we have Thus Similarly f (s) λe(s2 ) 2 f (2) (s) 2λE(S3 ) 3! i0 1 λe(s) + λe(s2 ) 2 2λE(S3 ) 3! s λe(s3 ) s ! s + 3λE(S4 ) s , 4! + 3 2λE(S4 ) s ! f(0) 1 ρ, f (0) λe(s2 ), 2 f (0) λe(s3 ). 3 L W (s) 1 ρ f(s) L W (s) (1 ρ) f (s) (f(s)) 2, L W (s) (1 ρ) f (s)(f(s)) 2 2f(s)(f (s)) 2 (f(s)) 4. E(W ) L W (0) (1 ρ) f (0) (f(0)) (1 ρ) λe(s2) 2 2 (1 ρ) 2 λe(s2 ) 2(1 ρ) ρe(s) 1 ρ 1 + C2 S. 2 E(W 2 ) L W (0) (1 ρ) f (0)(f(0)) 2 2f(0)(f (0)) 2 (f(0)) 4 ( ) ( ) 2 (1 ρ)(1 ρ) 2 λe(s3 ) 2(1 ρ) λe(s 2 ) 3 2 (1 ρ) 4 2(E(W )) 2 + λe(s3 ) 3(1 ρ). 133
134 Thus V ar(w ) E(W 2 ) (E(W )) 2 2(E(W )) 2 + λe(s3 ) (E(W ))2 3(1 ρ) (E(W )) 2 + λe(s3 ) 3(1 ρ). Finally V ar(t ) V ar(w + S) V ar(w ) + V ar(s). Exercise 20 By using the Laplace-transform show that E(R k ) E(Sk+1 ) (k + 1)E(S). Solution: As we have seen earlier L R (s) 1 L S(s), se(s) and it is well-known that Thus for L R (s) we get L S (s) i0 i0 L (i) S (0) i! s i ( 1) i E(S i ) s i. i! Therefore k1 L R (s) 1 + ( 1) k E(R k )s k. k! k1 ( 1) k L R (s) 1 + E(R k )s k 1 L S(s) k! se(s) k1 ( ) ( 1) k E(S k )s k k! k1 se(s) ( 1) k E(S k+1 ) (k + 1)!E(S) ( 1) k E(Sk + 1) sk 1 + k! (k + 1)E(S) sk. k1 134
135 Consequently E(R k ) E(Sk+1 ), k 1, 2,... (k + 1)E(S) Exercise 21 Find the generating function of the number of customers arrived during a service time for an M/G/1 system. Solution: By applying the theorem of total probability we have P (ν A (S) k) Hence its generating function can be written as G νa (S)(z) z k (λx) k e λx f S (x) dx k! 0 0 e zλx e λx f S (x) dx 0 (λx) k e λx f S (x) dx. k! 0 0 (zλx) k e λx f S (x) dx k! k0 e λx(1 z) f S (x) dx L S (λ(1 z)). 135
136 136
137 Chapter 5 Finite-Source Systems Exercise 22 If P (k, λ) λk k! e λ and Q(k, λ) k important formula i0 k P (k j, a 1 )Q(j, a 2 ) Q(k, a 1 + a 2 ). j0 λ i i! e λ, then show the following Solution: It is well-known that therefore Q(n, a) a P (n, y) dy, k P (k j, a 1 )Q(j, a 2 ) j0 k j0 a k j 1 (k j)! e a 1 j i0 a i 2 i! e a 2 k j0 a k j 1 (k j)! e a 1 a 2 y j j! e y dy a 2 (y + a 1 ) k e (a1+y) dy k! where we introduced the substitution t y + a 1. a 1 +a 2 t k k! e t dt Q(k, a 1 +a 2 ), Exercise 23 Find the mean response time for an M/M/1/n/n queueing system by using the Laplace-transform. Solution: It is well-known that T L T (0), that is why let us calculate L T (0). [ ( ) n µ L Q ( )] n 1, µ+s T (s) e s λ λ µ + s Q ( ) n 1, µ λ (( ) n ) µ e s λ Q ( ) n 1, µ+s ( ) n ( ( )) λ µ Q n 1, µ+s µ + s Q ( ) n 1, µ + e s λ λ µ + s Q ( ) n 1, µ. λ λ 137
138 Thus and hence Since L T (o) n µ + 1 λ 1 ( λ B n 1, µ ) n λ µ + 1 λ U S(n 1), T (n) n µ U S(n 1). λ T (n) 1 (N(n 1) + 1) µ 1 ( n 1 U ) S(n 1) + 1 µ ρ n µ U S(n 1), λ which was obtained earlier. The higher moments of T (n) can be obtained and hence further measured can be calculated. Similarly, the moments of W (n) can be derived. Exercise 24 Find the mean response time, denoted by T A, for an M/M/1/n/n system by using the density function approach. Solution: z. µ λ T 1 Q(n 1, z) e z Q(n 1, z) 0 0 xµ (µx + z)n 1 e (µx+z) dx (n 1)! n 1 (µx) k xµ k! k0 e z n 1 z n 1 k Q(n 1, z) (n 1 k)! k0 z n 1 k (n 1 k)! e µx dx e z n 1 z n 1 k Q(n 1, z) (n 1 k)! k + 1 µ k0 1 n 1 (k + 1) µ 1 µ k0 n 1 k0 z n 1 k (n 1 k)! e z Q(n 1, z) 0 xµ (µx)k e µx dx k! k + 1 µ P k(n 1) 1 (N(n 1) + 1). µ The mean waiting time can be obtained similarly, starting the summation from 1 and taking a Erlang distribution with one phase less. 138
139 Exercise 25 Find V ar(n) for an M/M/1/n/n system. Solution: Let us denote by F the number of customers in the source. Hence F + N n, and thus V ar(n) V ar(f ). As we have proved the distribution of F equals to the distribution of an M/M/n/n system with traffic intensity z 1 we have ρ V ar(n) 1 ρ ( ( 1 B U S ρ 1 U S ρ n, 1 )) 1ρ ( ρ B n, 1 ρ ( n U ) S. ρ ) ( n 1 ( ( 1 B n, 1 ))) ρ ρ If the number of sources is denoted then this formula can be written as V ar(n(n)) U s(n) 1 U ( s(n) n U ) s(n). ρ ρ ρ This result helps us to determine V ar(t (n))-t and V ar(w (n))-t. Since W (n) can be consider as a random sum, where the summands are the exponentially distributed service times with parameter µ, and the counting process is the number of customers in the system at the arrival instant of a customer, denoted by N (n) A, we can use the formula obtained for the variance of a random sum, namely where V ar(w (n)) E(N (n) A ) 1 µ + 1 (n) V ar(n 2 µ 2 A ) 1 N(n 1) µ + 1 V ar(n(n 1)) 2 µ 2 N(n 1) n 1 U s(n 1) ρ V ar(n(n 1)) U s(n 1) ρ Similarly, since T (n) W (n) + S, then 1 (N(n 1) + V ar(n(n 1))), µ 2 1 U s(n 1) ρ V ar(t (n)) V ar(w (n)) + 1 µ 2. ( n 1 U ) s(n 1). ρ 139
140 140
141 Part III Queueing Theory Formulas 141
142
143 Chapter 6 Relationships 6.1 Notations and Definitions Table 1. Basic Queueing Theory Notations and Definitions a Server utilization. a i Utilization of component i in a queueing network. A[t] Distribution function of interarrival time. A[t] P [τ t] b Random variable describing the busy period for a server B[c, ρ] Erlang s B formula. Probability all servers busy in M/M/c/c system. Also called Erlang s loss formula. c Number of servers in in a service facility. C[c, ρ] Erlang s C formula. Probability all servers busy in M/M/c/c system. Also called Erlang s delay formula CX 2 Squared coefficient of a variation of a positive random variable, CX 2 V ar[x] E[X]. 2 D Symbol for constant (deterministic) interarrival or service time. E k Symbol for Erlang-k distribution of interarrival or service time. E[Q Q > 0] Expected (mean or average) queue length of nonempty queues. E[W W > 0] Expected queueing time. FCFS First Come First Served queue discipline. FIFO First In First Out queue discipline. Identical with FCFS. F T (t) The distribution function of T, F T (t) P [T < t]. F W (t) The distribution function of W, F W (t) P [W < t]. G Symbol for general probability distribution of service time. Independence usually assumed. GI Symbol for general independent interarrival time distribution. H 2 Symbol for two-stage hyperexponential distribution. Can be generalized to k stages. K Maximum number of customers allowed in queueing system. Also size of population in finite population models. 143
144 λ λ λ T ln ) N s LCFS LIFO M Table 1. Basic Queueing Theory Notations and Definitions (continued) Mean arrival rate of customers into the system. Actual mean arrival rate into the system, for which some arrivals arc turned away, e.q., the M/M/c/c system. Mean throughput of a computer system measured in transactions or interactions per unit time. Natural logarithm function (log to base e). Expected steady state number of customers receiving service, E[N s ]. Last Come First Served queue discipline. Last In First Out queue discipline. Identical with LCFS. Symbol for exponential interarrival or service time. µ Mean service rate per server, that is, the mean rate of service completions while the server is busy. µ a, µ b Parameters of the two-stage hyperexponential distribution of it? for the M/H 2 /1 system. N N[t] N N b N s [t] N s O Expected steady state number of customers in the queueing system, E[N]. Random variable describing the number of customers in the system at time t. Random variable describing the steady state number of customers in the system. Random variable describing the number of customers served by a server in one busy period. Random variable describing the number of customers receiving service at time t. Random variable describing the steady state number of customers in the service facility. Operating time of a machine in a machine repair queueing model. The time a machine remains in operation afler repair before repair is again necessary. P n [t] Probability there arc n customers in the system at time t. P n Steady state probability that there are n customer in the system. PRI Symbol for priority queueing discipline. PS Symbol for processor sharing queueing discipline. p i A parameter of a hypoexponential random variable. π a, π b Parameters of the distribution function of w for the M/H 2 /1 queueing system. π X [r] The rth percentile for random variable X. Q Random variable describing the steady state number of customers in the queue. 144
145 Table 1. Basic Queueing Theory Notations and Definitions (continued) Q[t] Random variable describing the number of customers in the queue at time t. ρ ρ λs The traffic intensity or offered load. The international unit of this is erlang, named for A.K. Erlang, a queueing theory pioneer RSS Symbol for queueing discipline "random selection for service". S Random variable describing the service time. E[S] 1. µ S Expected customer service time, E[S] 1. µ SIRO Symbol for service in random order, which is identical to RSS. It means each customer in queue has the same probability of being served next. T Random variable describing the total time a customer spends in the queueing system, T W + S. T Expected steady state time a customer spends in the system, T E[T ] W + S. τ Random variable describing interarrival time. E[τ] 1. λ W Random variable describing the time a customer spends in the queue before service begins. W Random variable describing time a customer who must queue spends in the queue before receiving service. Also called conditional queueing time. W Expected steady state time a customer spends in the queue, W E[W ] T S. 6.2 Relationships between random variables Table 2. Relationships between Random Variables a N Q + N s N λ T N s λ S Q λ W ρ E[S] λs E[τ] T W + S T W + S Server utilization. The probability any particular server is busy. Number of customers in steady state system. Mean number of customers in steady state system. This formula is often called Little s law. Mean number of customers receiving service in steady state system. This formula sometimes called Little s law. Mean number in steady state queue. Also called Little s law. Traffic intensity in erlangs. Total waiting time in the system. Mean total waiting time in steady state system. 145
146 146
147 Chapter 7 Basic Queueing Theory Formulas 7.1 M/M/1 Formulas Table 3. M/M/1 Queueing System ρ λs, P n P [N n] (1 ρ)ρ n, n 0, 1,.... P [N n] ρ n, n 0, 1,.... N E[N] λ T Q λw ρ 1 ρ, V ar(n) ρ (1 ρ). 2 ρ2 1 ρ, V ar(q) ρ2 (1 + ρ ρ 2 ). (1 ρ) 2 E[Q Q > 0] 1 1 ρ, V ar[q Q > 0] ρ (1 ρ) 2. ( ) t F T (t) P [T t] 1 exp, P [T > t] exp T T E[T ] S 1 ρ 1 µ(1 ρ), V ar(t ) T 2. ( t ( ) 100 π T [r] T ln, π T [90] T ln 10, π T [95] T ln r ( ) t F T (t) P [W t] 1 ρ exp, P [W > t] ρ exp T W ρs (2 ρ)ρs2, V ar(w ). 1 ρ (1 ρ) 2 T ). ( t T ). 147
148 { ( ) } 100ρ π W [r] max T ln, r π W [90] max{t ln(10ρ), 0}, π W [95] max{t ln(20ρ), 0}
149 7.2 M/M/1/K Formulas Table 4. M/M/1/K Queueing System P n (1 ρ)ρ n (1 ρ K+1 ) 1 K + 1 if λ µ if λ µ n 0, 1,..., K, where ρ λs. λ (1 P K )λ, N Mean arrival rate into system. ρ[1 (K + 1)ρ K + Kρ K+1 ] (1 ρ)(1 ρ K+1 ) K 2 ha λ µ ha λ µ. Q N (1 P 0 ), Π n P n, n 0, 1,..., K 1. 1 P K F T (t) 1 where K 1 n0 Q[n; µt] e µt Π n Q[n; µt], n (µt) k. k! k0 T N λ, W Q λ. F T (t) 1 K 2 n0 E[W W > 0] Π n+1 Q[n; µt]. W 1 P 0, a (1 P K )ρ
150 7.3 M/M/c Formulas Table 5. M/M/c Queueing System ρ λs, a ρ c P 0 P n [ c 1 ] 1 ρ n n! + ρ c c!(1 a) n0 P [N n] ρ n n! P 0, if n c ρ n c!c n c P 0, if n c. [ c 1 ] ρ k P 0 k! + ρ c c!(1 a) kn c!(1 a)p [N c] ρ c. if n < c, [ ] a c a n c P 0 P [N c]a n c if n c c!(1 a) Q λ W ρp [N c] c(1 a), where P [N c] C[c, ρ] ρ c c! (1 ρ. c 1 c ) ρ n n! + ρc c! n0 V ar(q) ac[c, ρ][1 + a ac[c, ρ]] (1 a) 2. N λ T Q + ρ. V ar(n) V ar(q) + ρ(1 + P [N c]). W [0] 1 P [N c], F T (t) 1 P [N c] exp[ cµt(1 a)], W P [N c]s c(1 a). 150
151 Table 5. M/M/c Queueing System (continued) V ar(w ) π W [r] max{0, [2 C[c, ρ]]c[c, ρ]s2. c 2 (1 a) 2 S c(1 a) ln ( 100C[c, ρ] 100 r ) }. S π W [90] max{0, ln(10c[c, ρ])}. c(1 a) S π W [95] max{0, ln(20c[c, ρ])}. c(1 a) ( ) ct(1 a) W W P [W t W > 0] 1 exp, t > 0. S E[W W > 0] E[W S ] c(1 a). V ar([w W > 0] ( ) 2 S. c(1 a) 1 + C 1 e µt + C 2 e cµt(1 a) if ρ c 1 F T (t) 1 {1 + C[c, ρ]µt}e µt if ρ c 1 where C 1 and C 2 P [N c] 1 c(1 a) 1, P [N c] c(1 a) 1. T W + S. 2P [N c][1 c 2 (1 a) 2 ]S 2 + 2S 2 if ρ c 1 E[T 2 ] (ρ + 1 c)c 2 (1 a) 2 2{2P [N c] + 1}S 2 if ρ c 1 V ar(t ) E[T 2 ] T 2. π T [90] T + 1.3D(T ), π T [95] T + 2D(T ) (estimates due to James Martin)
152 7.4 M/M/2 Formulas Table 6. M/M/2 Queueing System ρ λs, a ρ 2 P 0 1 a 1 + a. P n 2P 0 a n, n 1, 2, 3,... P [N n] 2an, n 1, 2, a Q λw 2a3 1 a 2, P [N 2] C[2, ρ] is the probability that ail arriving customer must queue for service. P [N 2] is given by P [N 2] C[2, ρ] 2a2 1 + a. V ar(q) 2a3 [(1 + a) 2 2a 3 ] (1 a 2 ) 2. N λ T Q + ρ 2a 1 a 2. V ar(n) V ar(q) + 2a(1 + a + 2a2 ). 1 + a W [0] 1 + a 2a a F T (t) 1 2a2 exp[ 2µt(1 a)] 1 + a W a2 S 1 a 2. V ar(w ) a2 (1 + a a 2 )S 2 (1 a 2 ) 2. ( ) S π W [r] max{0, 2(1 a) ln 200a 2 }. (100 r)(1 + a) 152
153 Table 6. M/M/2 Queueing System (continued) ( ) S 20a 2 π W [90] max{0, 2(1 a) ln }. ( 1 + a ) S 40a 2 π W [95] max{0, 2(1 a) ln }. 1 + a ( ) 2t(1 a) W W P [W t W > 0] 1 exp, t > 0. S E[W W > 0] E[W S ] 2(1 a). ( ) 2 S V ar[w W > 0]. 2(1 a) 1 a 2a a 2 2a 2 e µt + 1 a 2a 2 e 2µt(1 a) where ρ 1 F T (t) 1 {1 + µt 3 }e µt where ρ 1 T W + S S 1 a. 2 E[T 2 ] V ar(t ) E[T 2 ] T 2. a 2 [1 4(1 a) 2 ]S 2 (2a 1)(1 a)(1 a 2 ) + 2S2 if ρ S2 if ρ 1 π T [90] T + 1.3D(T ), π T [95] T + 2D(T ) 153
154 7.5 M/M/c/c Formulas Table 7. M/M/c/c Queueing System (M/M/c loss) ρ λs P n ρ n n! 1 + ρ + ρ2 2! ρc c! n 0, 1,..., c. The probability that all servers are busy, P c is called Erlang s B formula, B[c, ρ], and thus B[c, ρ] ρ c c! 1 + ρ + ρ2 2! ρc c!. λ λ(1 B[c, ρ]) Is the average arrival rate of customers who actually enter the system. Thus, the true server utilization, a, is given by a λ S c. N λ S. T N λ S. ( ) t F T (t) 1 exp. S All of the formulas except the last one arc true for the M/G/c/c queueing system. For this system we have F T (t) F S (t)
155 7.6 M/M/c/K Formulas Table 8. M/M/c/K Queueing System ρ λs. P 0 [ c n0 ρ n n! + ρc c! K c n1 ( ) ] n 1 ρ. c ρ n P n n! P 0 if n 1, 2,..., c, ρ n ( ρ ) n c P0 if n c + 1,..., K. c! c The average arrival rate of customers who actually enter the system is λ λ(1 P K ). The actual mean server utilization, a, is given by: a λ S c. Q ρc rp 0 c!(1 r) 2 [ 1 + (K c)r K c+1 (K c + 1)r K c], where r ρ c. ( c 1 c 1 N Q + E[N s ] Q + np n + c 1 P n ). By Little s Law n0 n0 W Q λ, T N λ. Π n P n 1 P K, n 0, 1, 2,..., K 1, 155
156 Table 8. M/M/c/K Queueing System (continued) where Π n is the probability that an arriving customer who enters the system finds n customers already there. E[W W > 0] W. c 1 1 Π n n
157 7.7 M/M/ Formulas Table 9. M/M/ Queueing System ρ λs. P n ρn n! e ρ, n 0, 1,.... Since N has a Poisson distribution, N ρ and V ar(n) ρ. By Little s Law T N λ S. Since there is no queueing for service, W Q 0, and F T (t) P [T t] F S (t) P [S t] That is, T has the same distribution as S. All the above formulas arc true for the M/G/ system, also
158 7.8 M/M/1/K/K Formulas Table 10. M/M/1/K/K Queueing System The mean operating time per machine (sometimes called the the mean time to failure, MTTF) is E[O] 1 α. The mean repair time per machine by one repairman is S 1 µ. The probability, P 0, that no machines arc out of service is given by [ K ( ) k ] 1 K! S P 0 B[K, z], (K k)! E[O] k0 where B[, ] is Erlang s B formula and z E[O] S. Then, P n, the probability that n machines arc out of service, is given by K! P n (K n)! z n P 0, n 0, 1,..., K, The formula for P n can also be written in the form P n z K n (K n)!, n 0, 1,..., K. K z k k! k0 a 1 P 0. λ a S. T K λ E[O]. N λ T. W T S. 158
159 Table 10. M/M/1/K/K Queueing System (continued) Π n (K n)p n K N z K n 1 (K n 1)!, n 0, 1, 2,..., K 1, K 1 z k k! k0 where Π n is the probability that a machine that breaks down finds n machines in the repair facility. F T (t) P [T t] 1 where Q(n; x) e x n k0 x k k!. F T (t) P [W t] 1 E[W W > 0] W 1 Π 0. Q(K 1; z + tµ), t 0, Q(K 1; z) Q(K 2; z + tµ), t 0, Q(K 1; z) 159
160 7.9 M/G/1/K/K Formulas Table 11. M/G/1/K/K Queueing System The mean operating time per machine (sometimes called the the mean time to failure, MTTF) is E[O] 1 α. The mean repair time per machine by one repairman is S 1 µ. The probability, P 0, that no machines arc out of service is given by P 0 where [ 1 + KS E[O] K 1 n0 ( ] 1 K 1 )B n, n 1 n 0, B n n ) n 1, 2,..., K 1. i1 ( 1 S [iα] S [iα] and S [θ] is the Laplace-Stieltjes transform of s. a 1 P 0. λ a S. T K λ E[O]. N λ T. W T S. Q λ W
161 7.10 M/M/c/K/K Formulas Table 12. M/M/c/K/K Queueing System The mean operating time per machine (sometimes called the the mean time to failure, MTTF) is E[O] 1 α. The mean repair time per machine by one repairman is S 1 µ. The probability, P 0, that no machines are out of service is given by P 0 where [ c k0 z E[O] S. ( ) K z k + k K kc+1 ( ] 1 k! K )z k, c!c k c k Then,P n, the probability that n machines are out of service is given by { ( K ) P n n z n ( P 0 n 0, 1,..., c, n! K c!c n) z n P n c 0 n c + 1,..., K. Q W λ K (n c)p n. nc+1 Q(E[O] + S) K Q. K E[O] + W + S. T K λ E[O]. N λ T. 161
162 Table 12. M/M/c/K/K Queueing System (continued) Π n (K n)p n K N, where Π n is the probability that a machine which breaks down finds n inoperable machines already in the repair facility. We denote Π n by Π n [K] to emphasize the fact that there are K machines. It can be shown that Π n [K] P n [K 1], n 0, 1,..., K 1. P n [K 1] cc c! where, of course, p(k n 1; cz) P 0 [K 1], p(k 1; cz) p(k; α) αk k! e α. F T (t) P [W t] 1 cc Q(K c 1; cz)p 0 [K 1], t 0, c!p(k 1; cz) where Q(k; α) e α k n0 α n n!. Q(K c 1; c(z + tµ)) F T (t) P [T t] 1 C 1 exp( t/s) + C 2, Q(K c 1; cz) t 0, where C C 2 ďż s C 2 c c Q(K c 1; cz) c!(c 1)(K c 1)!p(K 1; cz) P 0[K 1]. The probability that a machine that breaks down must wait for repair is given by D K 1 nc c 1 Π n 1 Π n. E[W W > 0] W D. n
163 7.11 D/D/c/K/K Formulas Table 13. D/D/c/K/K Queueing System The mean operating time per machine (sometimes called the the mean time to failure, MTTF) is E[O] 1 α. The mean repair time per machine by one repairman is S 1 µ. a min{1, where K c(1 + z) }, z E[O] S. λ caµ ca S. T K λ E[O]. N λ T. W T S. Q λ W. The equations for this model are derived in "A straightforward model of computer performance prediction" by John W. Boyse es David R. Warn in ACM Comput. Surveys, 7(2), (June 1972)
164 7.12 M/G/1 Formulas Table 14. M/G/1 Queueing System The z-transform of N, the steady-state number of customers in the system is given by: G N (z) n0 P n z n (1 ρ)(1 z)s [λ(1 z)] S, [λ(1 z)] z where S is the Laplace-Stieltjes transform of the servide time S. The Laplace-Stieltjes transforms of T and W are given by W [θ] (1 ρ)θs [θ] θ λ + λs [θ], ďż s W [θ] (1 ρ)θ θ λ + λs [θ]. Each of the three transforms above is called the Pollaczek-Khintchine transform equation by various authors. The probability, P 0, of no customers in the system has the simple and intuitive equation P 0 1 ρ, where the server utilization ρ λs. The probability that the server is busy is P [N 1] ρ. W λe[s2 ] 2(1 ρ) ρs 1 ρ Q λw. ( V ar(q) λ3 E[S 3 ] λ 2 3(1 ρ) + E[S 2 ] 2(1 ρ) E[W W > 0] S 1 ρ ( ) 1 + C 2 S (Pollaczek formula). 2 ( 1 + C 2 S 2 E[W 2 ] 2W 2 + λe[s3 ] 3(1 ρ). V ar(w ) E[W 2 ] W 2. T W + S. N λ T Q + ρ. ) 2 + λ2 E[S 2 ] 2(1 ρ). ). ( ) V ar(n) λ3 E[S 3 ] λ 2 3(1 ρ) + E[S 2 2 ] + λ2 (3 2ρ)E[S 2 ] + ρ(1 ρ). 2(1 ρ) 2(1 ρ) E[T 2 ] E[W 2 ] + E[S2 ] 1 ρ. 164
165 Table 14. M/G/1 Queueing System (continued) V ar(t ) E[T 2 ] T 2. π T [90] T + 1.3D(T ), π T [95] T + 2D(T ). 165
166 Table 15. M/H 2 /1 Queueing System The z-transform of the steady-state number in the system, N, is given by G N (z) P n z n z 1 C 1 z 1 z + C z 2 2 z 2 z, n0 where z 1 and z 2 are the roots of the next equation a 1 a 2 z 2 (a 1 + a 2 + a 1 a 2 )z a 1 + a 2 a 0, where a λs, a i λ µ i, i 1, 2, C 1 (z 1 1)(1 az 2 ) z 1 z 2, and C 2 (z 2 1)(1 az 1 ) z 2 z 1. From G N (z) we get P n C 1 z n 1 + C 2 z n 2, n 0, 1,.... Specifically, P 0 1 a. z1 n+1 P [N n] C 1 z 1 1 C 2 Additionally, P [N 1] a. z n+1 2 z 2 1. F T (t) P [W t] 1 C 5 e ρt C 6 e bt, t 0, where ρ ζ 1, b ζ 2, ζ 1, ζ 2 are the solutions of the θ 2 + (µ 1 + µ 2 λ)θ + µ 1 µ 2 (1 a) 0, equation, 166
167 Table 15. M/H 2 /1 Queueing System (continued) C 5 λ(1 a)ζ 1 + a(1 a)µ 1 µ 2 ρ(ζ 1 ζ 2 ) and C 6 λ(1 a)ζ 2 + a(1 a)µ 1 µ 2. ρ(ζ 2 ζ 1 ) W λe[s2 ] 2(1 a) as 1 a E[W W > 0] S 1 a E[W 2 ] 2W 2 + λe[s3 ] 3(1 a). ( ) 1 + C 2 S. (Pollaczek-formula) 2 ( ) 1 + C 2 S. 2 In this formula we substitute E[S 3 ] 6p 1 µ p 2, µ 3 2 then V ar(w ) E[W 2 ] W 2. F T (t) P [T t] 1 π a e µat π b e µ bt, t 0, where π a C 1 z 1 z 1 1, π b C 2 z 2 z 2 1, 167
168 Table 15. M/H 2 /1 Queueing System (continued) µ a λ(z 1 1), and µ b λ(z 2 1). T W + S. E[T 2 ] E[W 2 ] + E[S2 ] 1 a, where of course E[S 2 ] 2p 1 µ p 2. µ 2 2 V ar(t ) E[T 2 ] T 2. C 2 T E[T 2 ] T 2 1. Q λ W a2 1 a ( ) 1 + C 2 S. 2 ( ) V ar(q) λ3 E[S 3 ] λ 2 3(1 a) + E[S 2 2 ] + λ2 E[S 2 ] 2(1 a) 2(1 a). N λt Q + a. ( ) V ar(n) λ3 E[S 3 ] λ 2 3(1 a) + E[S 2 2 ] + λ2 (3 2a)E[S 2 ] + a(1 a). 2(1 a) 2(1 a) 168
169 Table 16. M/Gamma/1 Queueing System Since S has Gamma-distribution E[S n ] Since β(β + 1)... (β + n 1) α n, n 1, 2,.... C 2 S 1 β, so E[S 2 ] S 2 (1 + C 2 S), E[S 3 ] S 3 (1 + C 2 S)(1 + 2C 2 S), and E[s n ] S n n 1 (1 + kcs), 2 n 1, 2,.... This time k1 W λe[s2 ] 2(1 a) as 1 a Q λ W, V ar(q) a2 (1 + CS 2) 2(1 a) E[W W > 0] S 1 a ( ) 1 + C 2 S, 2 [ 1 + a2 (1 + CS 2) 2(1 a) ( ) 1 + C 2 S, 2 E[W 2 ] 2W 2 + as2 (1 + CS 2)(1 + 2C2 S ), 3(1 a) V ar(w ) E[W 2 ] W 2, T W + S, N λ T Q + a, V ar(n) a3 (1 + C 2 S )(1 + 2C2 S ) 3(1 a) E[T 2 ] E[W 2 ] + S2 (1 + CS 2). 1 a V ar(t ) E[T 2 ] T 2. π T [90] T + 1.3D(T ), π T [95] T + 2D(T ) a(1 + 2C2 S ) ], 3 ( a 2 (1 + CS 2) ) 2 + a2 (3 2a)(1 + CS 2) + a(1 a). 2(1 a) 2(1 a) 169
170 Table 17. M/E k /1 Queueing System Mivel S Since S has Erlang -k distribution, hence E[S n ] ( ) ( ) ( n 1 ) S n, n 1, 2,.... k k k so ( E[S 2 ] S ), k and ( E[s 3 ] S ) ( ). k k This time W λe[s2 ] 2(1 a) as 1 a Q λ W. [ V ar(q) a2 (1 + k) 1 + a2 (1 + k) 2k(1 a) 2k(1 a) E[W W > 0] S 1 a ( ) k. (Pollaczek s formula) 2 ( k 2 ). E[W 2 ] 2W 2 + as2 (k + 1)(k + 2). 3k 2 (1 a) V ar(w ) E[W 2 ] W 2. T W + S, N λ T Q + a. V ar(n) a3 (k + 1)(k + 2) 3k 2 (1 a) E[T 2 ] E[W 2 ] + S2 (1 + 1) k. 1 a V ar(t ) E[T 2 ] T 2. + ] 2a(k + 2) +. 3k π T [90] T + 1.3D(T ), π T [95] T + 2D(T ). ( a 2 (1 + 1) ) 2 k + a2 (3 2a)(1 + 1) k + a(1 a). 2(1 a) 2(1 a) 170
171 Table 18. M/D/1 Queueing System Since S has a constant distribution E[S n ] S n, n 1, 2,..., so G N (z) (1 a)(1 z) 1 ze a(1 z). We suppose that ze a(1 z) < 1, we can expand G N (z) in the geometric series [ g N (z) (1 a)(1 z) ] ze a(1 z) j. j0 This thime we can show that, P 1 (1 a)(e a 1), and n ( 1) n j (ja) n j 1 (ja + n j)e ja P n (1 a) (n j)! j1 n 2, 3,.... Additionally k 1 ( ) t (k 1)S F T (t) P n + P k, S n0 where (k 1)S t ks, k 1, 2,
172 Table 18. M/D/1 Queueing System (continued) So, W [0] P 0. W as 2(1 a). F W [W W > 0] E[W 2 ] 2W 2 + S 2(1 a). as2 3(1 a). V ar(w ) E[W 2 ] W 2. Q λw V ar(q) a 2 2(1 a). a 3 3(1 a) + [ a 2 2(1 a) ] 2 + a 2 2(1 a). 0 if t < S, F T (t) k 1 ( ) t ks P n + P k S if t S. n0 where ks t < (k + 1)S, k 1, 2,.... T W + S. E[T 2 ] E[W 2 ] + S2 1 a. V ar(t ) E[T 2 ] T 2. N λ T Q + a. V ar(n) ( ) a 3 a 2 2 3(1 a) + + a2 (3 2a) + a(1 a). 2(1 a) 2(1 a) 172
173 7.13 GI/M/1 Formulas Table 19. GI/M/1 Queueing System The steady-state probability that an arriving customer will find the system empty, is the unique solution of the equation 1 Π 0 A [µπ 0 ] such that 0 < Π 0 < 1, where A [Θ] is the Laplace-Stieltjes transform of r. The steady-state number of customers in the system, N has the distribution {P n }, where P 0 P [N 0] 1 a, P n aπ 0 (1 Π 0 ) n 1, n 1, 2,..., tovďż bbďż N a, and V ar(n) a(2 Π 0 a). Π Π Q (1 Π 0)a Π 0. V ar(q) a(1 Π 0)(2 Π 0 a(1 Π 0 )). Π 2 0 E[Q Q > 0] 1 Π 0. T S Π 0. F T (t) P [T t] 1 exp( t/t ). [ ] 100 Π T [r] T ln. 100 r Π T [90] T ln 10, Π T [95] T ln 20. W (1 Π 0 ) S Π 0. ( ) 2 S V ar(w ) (1 Π 2 0). Π 0 F T (t) P [W t] 1 (1 Π 0 ) exp( t/t ). { ( )} 100(1 Π0 ) Π W [r] max 0, T ln. 100 r W, the queueing time for those who must, has the same distribution as T. 173
174 Table 20. Π 0 versus a for GI/M/1 Queueing System 1 a E 2 E 3 U D H 2 H At the first H 2 distribution p 1 0.4, µ 1 0.5λ, µ 2 3λ. At the second H 2 distribution p , µ 1 2p 1 λ, ďż s µ 2 2p 2 λ. 174
175 7.14 GI/M/c Formulas Table 21. GI/M/c Queueing System Let Π n, n 0, 1, 2,... be the steady state number of customers that an arriving customer finds in the system. Then c 1 ( 1) i n( i n) Ui, n 0, 1,..., c 2, in Π n Dω n c, n c 1, c,..., where ω is the unique solution of the equation ω A [cµ(1 ω)] such that 0 < ω < 1, where A [θ] is the Laplas-Stieltjes transform of r, g j A [jµ], j 1, 2,..., c, 1, j 0, C j j ( g i, j 1, 2,..., c, i1 1 g i ) [ ( 1 c c j) D 1 ω + C j (1 g j ) and U n DC n c jn+1 j1 ( c j) C j (1 g j ) ( ) ] 1 c(1 gj ) j) c(1 ω) j ( ) c(1 gj ) j), n 0, 1,..., c 1. c(1 ω) j 175
176 Table 21. GI/M/c Queueing System (continued) F T (t) P [W t] 1 P [W > 0]e cµ(1 ω)t, t 0, where P [W > 0] If c(1 ω) 1, then D 1 ω. W DS c(1 ω). E[W W > 0] S 2 c(1 ω). F T (t) P [ω t] 1 + (G 1)e µt Ge cµ(1 ω)t, t 0, where G D (1 ω)[1 c(1 ω)]. When c(1 ω) 1, then F T (t) P [ω t] 1 We also have [ 1 + Dµt ] e µt, t 0. 1 ω T W + S. P 0 1 λs c 1 c λs ( 1 Π j 1 j 1 ). c j1 P n { λsπn 1 n, n 1, 2,..., c 1, λsπ n 1 c, n c, c + 1,
177 7.15 M/G/1 Priority queueing system Table 22. M/G/1 Queueing System (classes, no priority) There are n customer classes. Customers from class i arrive in a Poisson pattern with mean arrival rate λ i, i 1, 2,..., n. Each class has its own general service time with E[S i ] 1/µ i, E[S 2 i ], E[S 3 i ]. All customers served on a FCFS basis with no consideration for class. The total arrival stream to the system has a Poisson arrival pattern with λ λ 1 + λ λ n. The first three moments of service time arc given by S λ 1 λ E[S 1] + λ 2 λ E[S 2] λ n λ E[S n], E[S 2 ] λ 1 λ E[S2 1] + λ 2 λ E[S2 2] λ n λ E[S2 n], and E[S 3 ] λ 1 λ E[S3 1] + λ 2 λ E[S3 2] λ n λ E[S3 n], By Pollaczek s formula, W λe[s2 ] 2(1 a). The mean time in the system for each class is given by T i W + E[S i ], i 1, 2,..., n. The overall mean customer time in the system, T λ 1 λ T 1 + λ 2 λ T λ n λ T n. The variance of the waiting time V ar(w ) λe[s3 ] 3(1 a) + λ2 (E[S 2 ]) 2 4(1 a) 2. The variance of T is given by V ar(t i ) V ar(w ) + V ar(s i ), i 1, 2,..., n. The second moment of T by class is E[T 2 i ] V ar(t i ) + T 2 i, i 1, 2,..., n. 177
178 Table 22. M/G/1 Queueing System (classes, no priority) (continued) Thus, the overall second moment of T is given by E[T 2 ] λ 1 λ E[T 2 1 ] + λ 2 λ E[T 2 2 ] λ n λ E[T 2 n], and V ar(t ) E[T 2 ] T
179 Table 23. M/G/1 Nonpreemptive (HOL) Queueing System There are n priority classes with each class having a Poisson arrival pattern with mean arrival rate λ i. Each customer has the same exponential service time requirement. Then the overall arrival pattern is Poiisson with mean: λ λ 1 + λ λ n. The server utilization S λ 1 λ E[S 1] + λ 2 λ E[S 2] λ n λ E[S n], E[S 2 ] λ 1 λ E[S2 1] + λ 2 λ E[S2 2] λ n λ E[S2 n], and E[S 3 ] λ 1 λ E[S3 1] + λ 2 λ E[S3 2] λ n λ E[S3 n], Let ρ j λ 1 E[S 1 ] + λ 2 E[S 2 ] λ j E[S j ], j 1, 2,..., n, and notice that ρ n ρ λs. The mean times in the queues: W j E[W j ] λe[s 2 ] 2(1 ρ j 1 )(1 ρ j ), j 1, 2,..., n, ρ
180 Table 23. M/G/1 Nonpreemptive (HOL) Queueing System (continued) The mean queue lengths are Q j λ j W j, j 1, 2,..., n. The unified time in the queue W λ 1 λ E[W 1] + λ 2 λ E[W 2] λ n λ E[W n]. The mean times of staying in the system T j E[T j ] E[W j ] + E[S j ], j 1, 2,..., n, and the average of the customers staying at the system is N j λ j T j, j 1, 2,..., n. The total time in the system T W + S. The total queue length Q λ W, and the average of the customers staying at the system N λ T. The variance of the total time stayed in the system by class λe[s 3 ] V ar(t j ) V ar(s j ) + 3(1 ρ j 1 ) 2 (1 ρ j ) ( ) λe[s 2 ] 2 j λ i E[Si 2 ] λe[s 2 ] i1 + 4(1 ρ j 1 ) 2 (1 ρ j ) 2 λe[s 2 ] j 1 λ i E[Si 2 ] i1 +, j 1, 2,..., n. 2(1 ρ j 1 ) 3 (1 ρ j ) 180
181 Table 23. M/G/1 Nonpreemptive (HOL) Queueing System (continued) The variance of the total time stayed in the system V ar(t ) λ 1 λ [V ar(t 1) + T 2 1] + λ 2 λ [V ar(t 2) + T 2 2] λ n λ [V ar(t n) + T 2 n] T 2. The variance of the waiting time by class V ar(w j ) V ar(t j ) V ar(s j ), j 1, 2,..., n. We know that E[W 2 j ] V ar(w j ) + W 2 j, j 1, 2,..., n, so E[W 2 ] λ 1 λ E[W 2 1 ] + λ 2 λ E[W 2 2 ] λ n λ E[W 2 n]. Finally V ar(w ) E[W 2 ] W
182 Table 24. M/G/1 absolute priority Queueing System There are n customer classes. Class 1 customers receive the most favorable treatment; class n customers receive the least favorable treatment. Customers from class i arrive in a Poisson pattern with mean arrival rate λ i,t 1, 2,..., n. Each class has its own general service time with E[S i ] 1/µ i, and finite second and third moments E[S 2 i ], E[S 3 i ]. The priority system is preemptive resume, which means that if a customer of class j is receiving service when a customer of class i < j arrives, the arriving customer preempts the server and the customer who was preempted returns to the head of the line for class j customers. The preempted customer resumes service at the point of interruption upon reentering the service facility. The total arrival stream to the system has a Poisson arrival pattern with λ λ 1 + λ λ n. The first three moment of service time are given by: S λ 1 λ E[S 1] + λ 2 λ E[S 2] λ n λ E[S n], E[S 2 ] λ 1 λ E[S2 1] + λ 2 λ E[S2 2] λ n λ E[S2 n], E[S 3 ] λ 1 λ E[S3 1] + λ 2 λ E[S3 2] λ n λ E[S3 n]. Let ρ j λ 1 E[S 1 ] + λ 2 E[S 2 ] λ j E[S j ], j 1, 2,..., n, and notice that ρ n ρ λs. The mean time in the system for each class is T j E[T j ] 1 1 ρ j 1 E[S j] + j λ i E[Si 2 ] 2(1 ρ j ), i1 ρ 0 0, j 1, 2,..., n. 182
183 Table 24. M/G/1 absolute priority Queueing System (continued) Waiting times W j E[T j ] E[S j ], j 1, 2,..., n. The mean length of the queue number j: Q j λ j W j, j 1, 2,..., n. The total waiting time, W, is given by: W λ 1 λ E[W 1] + λ 2 λ E[W 2] λ n λ E[W n]. The mean number of customers staying in the system for each class is N j λ j W j, j 1, 2,..., n. The mean total time is T λ 1 λ T 1 + λ 2 λ T λ n λ T n W + S. The mean number of customers waiting in the queue is Q λ W, and the average number of customers staying in the system N λ T. 183
184 Table 24. M/G/1 absolute priority Queueing System (continued) The variance of the total time of staying in the system for each class is V ar(t j ) V ar(s j) (1 ρ j 1 ) 2 + E[S j ] j 1 i1 λ i E[S 2 i ] (1 ρ j 1 ) 3 ( j j ) 2 λ i E[Si 3 ] λ i E[Si 2 ] i1 + 3(1 ρ j 1 ) 2 (1 ρ j ) + i1 4(1 ρ j 1 ) 2 (1 ρ j ) 2 ( j ) ( j 1 ) λ i E[Si 2 ] λ i E[Si 2 ] i1 i1 +, ρ 2(1 ρ j 1 ) 3 0 0, j 1, 2,..., n. (1 ρ j ) The overall variance V ar(t ) λ 1 λ [V ar(t 1) + T 2 1] + λ 2 λ [V ar(t 2) + T 2 2] λ n λ [V ar(t n) + T 2 n] T 2. The variance of waiting times for each class is V ar(w j ) V ar(t j ) V ar(s j ), j 1, 2,..., n. Because, E[W 2 j ] V ar(w j ) + W 2 j, j 1, 2,..., n, so E[W 2 ] λ 1 λ E[W 2 1 ] + λ 2 λ E[W 2 2 ] λ n λ E[W 2 n]. Finally V ar(w ) E[W 2 ] W
185 7.16 M/G/c Processor Sharing system Table 25. M/G/1 processor sharing Queueing System The Poisson arrival stream has an average arrival rate of λ and the average service rate is µ. The service time distribution is general with the restriction that its Laplace transform is rational, with the denominator having degree at least one higher than the numerator. Equivalently. the service time, s, is Coxian. The priority system is processorsharing, which means that if a customer arrives when there are already n 1 customers in the system, the arriving customer (and all the others) receive service at the average rate µ/n. Then P n ρ n (1 ρ), n 0, 1,..., where ρ λ/µ. We also have N ρ t, E[T S t] 1 ρ 1 ρ, and T S 1 ρ. Finally E[W S t] ρt ρs, and W 1 ρ 1 ρ. Table 26. M/G/c processor sharing Queueing System The Poisson arrival stream has an average arrival rate of λ. The service time distribution is general with the restriction that its Laplace transform is rational, with the denominator having degree at least one higher than the numerator. Equivalently, the service time, s, is Coxian. The priority system is processor-sharing, which works as follows. When the number of customers in the service center, is less than c, then each customers is served simultaneously by one server; that is, each receives service at the rate µ. When N > c. each customer simultaneously receives service at the rate cµ/n. We find that just as for the M/G/l processor-sharing system. 185
186 7.17 M/M/c Priority system Table 27. M/M/c relative priority (HOL) Queueing System There are n priority classes with each class having a Poisson arrival pattern with mean arrival rate λ i. Each customer has the same exponential service time requirement. Then the overall arrival pattern is Poisson with mean λ λ 1 +λ λ n. The server utilization a λs c W W1 λ cµ, C[c, ρ]s c(1 λ 1 S/c), and thes equations are also true: W j [ ( c 1 C[c, ρ]s ) ] [ λ i /c 1 S j 1 i1 W j W j + S, j 1, 2,..., n. Q j λ j W j, j 1, 2,..., n. N j λ j T j, j 1, 2,..., n. W λ 1 λ + λ 2 λ λ n λ. Q λ W. T W + S. N λ T. ( S j i1 ) ], j 2,..., n. λ i /c 186
187 Bibliography [1] Adan, I., and Resing, J. Queueing Theory. [2] Allen, A. O. Probability, statistics, and queueing theory with computer science applications, 2nd ed. Academic Press, Inc., Boston, MA, [3] Anisimov, V., Zakusilo, O., and Donchenko, V. Elements of queueing theory and asymptotic analysis of systems. Visha Skola, Kiev, [4] Artalejo, J., and Gómez-Corral, A. Retrial queueing systems. Springer, Berlin, [5] Asztalos, D. Finite source queueing systems and their applications to computer systems ( in Hungarian ). Alkalmazott Matemaika Lapok (1979), [6] Asztalos, D. Optimal control of finite source priority queues with computer system applications. Computers & Mathematics with Applications 6 (1980), [7] Begain, K., Bolch, G., and Herold, H. Practical perfromance modeling, Application of the MOSEL language. Wiley & Sons, New York, [8] Bolch, G., Greiner, S., de Meer, H., and Trivedi, K. Queueing networks and Markov chains, 2nd ed. Wiley & Sons, New York, [9] Bose, S. An introduction to queueing systems. Kluwer Academic/Plenum Publishers, New York, [10] Breuer, L., and Baum, D. An introduction to queueing theory and matrixanalytic methods. Springer, [11] Brockmeyer, E., Halstrom, H., and Jensen, A. The life and works of a.k. erlang. Academy of Technical Sciences, Copenhagen (1948). [12] Bunday, B., and Scraton, R. The G/M/r machine interference model. European Journal of Operational Research 4 (1980), [13] Chee-Hock, N., and Boon-He, S. Queueing modelling fundamentals, 2nd ed. Wiley & Son, Chichester,
188 [14] Cohen, J. The multiple phase service network with generalized processor sharing. Acta Informatica 12 (1979), [15] Cooper, R. Introduction to Queueing Theory, 3-rd Edition. CEE Press, Washington, [16] Csige, L., and Tomkó, J. Machine interference problem with exponential distributions ( in Hungarian ). Alkalmazott Matematikai Lapok (1982), [17] Daigle, J. Queueing theory with applications to packet telecommunication. Springer, New York, [18] Daigle, J. N. Queueing theory for telecommunications. Addison-Wesley, Reading, MA, [19] Dattatreya, G. Performance analysis of queuing and computer networks. CRC Press, Boca Raton, [20] Dshalalow, J. H. Frontiers in queueing : Models and applications in science and engineering. CRC Press., Boca Raton, [21] Erlang, A. The theory of probabilities and telephone conversations. Nyt Tidsskrift for Matematik B 20 (1909), [22] Erlang, A. Solution of some problems in the theory of probabilities of significance in automatic telephone exchanges. The Post Office Electrical Engineers Journal 10 (1918), [23] Falin, G., and Templeton, J. Retrial queues. Chapman and Hall, London, [24] Fazekas, I. Theory of probability ( in Hungarian ). Kossuth Egyetemi Kiadó, Debrecen, [25] Franken, P., Konig, D., and Arndt, U. Schmidt, V. Queues and point processes. Academie Verlag, Berlin, [26] Gebali, F. Analysis of computer and communication networks. Springer, New York, [27] Gelenbe, E., and Mitrani, I. Analysis and synthesis of computer systems. Academic Press, London, [28] Gelenbe, E., and Pujolle, G. Introduction to queueing networks. Wiley & Sons, Chichester, [29] Gnedenko, B., Belyayev, J., and Solovyev, A. Mathematical methods of reliability theory ( in Hungarian ). Műszaki Könyvkiadó, Budapest, [30] Gnedenko, B., Belyayev, Y., and Solovyev, A. Mathematical methods of reliability theory. Academic Press, New York, London,
189 [31] Gnedenko, B., and Kovalenko, I. Introduction to queueing theory. Birkhaeuser, Boston, MA, [32] Gross, D., Shortle, J., Thompson, J., and Harris, C. Fundamentals of queueing theory, 4th edition. John Wiley & Sons, New York, [33] Györfi, L., and Páli, I. Queueing theory in informatics systems (in Hungarian). Műegyetemi Kiadó, Budapest, [34] Haghighi, A., and Mishev, D. Queueing models in industry and business. Nova Science Publishers, Inc., New York, [35] Hall, R. W. Queueing methods for services and manufacturing. Prentice Hall, Englewood Cliffs, NJ, [36] Haribaskaran, G. Probability, queueing theory and reliability engineering. Laxmi Publications, Bangalore, [37] Haverkort, B. Performance of computer communication systems: A model-based approach. Wiley & Sons, New York, [38] Hlynka, M. Queueing Theory Page. [39] Ivcsenko, G., Kastanov, V., and Kovalenko, I. Theory of queueing systems. Nauka, Moscow, [40] Iversen, V. Teletraffic Engineering Handbook. ITC in Cooperation with ITU-D SG2, [41] Jain, R. The art of computer systems performance analysis. Wiley & Sons, New York, [42] Jaiswal, N. Priority queues. Academic Press, New York, [43] Jereb, L., and Telek, M. Queueing systems ( in Hungarian ). teaching material, BME Department of Telecommunication. telek/notes/sokfelh.pdf. [44] Karlin, S., and Taylor, H. Stochastic process ( in Hungarian ). Gondolat Kiadó, Budapest, [45] Karlin, S., and Taylor, H. An introduction to stochastic modeling. Harcourt, New York, [46] Khintchine, A. Mathematical methods in the theory of queueing. Hafner, New York, [47] Kleinrock, L. Queueing systems. Vol. I. Theory. John Wiley & Sons, New York,
190 [48] Kleinrock, L. Queueing systems. Vol. I. Theory ( in Hungarian ). Műszaki Kiadó, Budapest, [49] Kleinrock, L. Queueing systems. Vol. II: Computer applications. John Wiley & Sons, New York, [50] Kobayashi, H. Modeling and Analysis: An Introduction to System Performance Evaluation Methodology. Addison-Wesley, Reading, MA, [51] Kobayashi, H., and Mark, B. System modeling and analysis: Foundations of system performance evaluation. Pearson Education Inc., Upper Sadle River, [52] Korolyuk, V., and Korolyuk, V. Stochastic models of systems. Kluwer Academic Publishers, Dordrecht, London, [53] Kovalenko, I., Pegg, P., and Kuznetzov, N. Mathematical theory of reliability of time dependent systems with practical applications. Wiley & Sons, New York, [54] Kulkarni, V. Modeling, analysis, design, and control of stochastic systems. Springer, New York, [55] Lakatos, L., Szeidl, L., and Telek, M. Algorithms in informatics, Vol. II (in Hungarian). ELTE Eötvös Kiadó, 2005, ch. Queueing theory ( in Hungarian ), pp [56] Lavenberg, S., e. Computer performance modeling handbook. Academic Press, New York, [57] Lefebvre, M. Basic probability theory with applications. Springer, [58] Mieghem, P. Performance analysis of communications networks and systems. Cambridge University Press, Cambridge, [59] Nelson, R. Probability, stochastic processes, and queueing theory, The mathematics of computer performance modeling. Springer-Verlag, New York, [60] Ovcharov, L., and Wentzel, E. Applied Problems in Probability Theory. Mir Publishers, Moscow, [61] Prékopa, A. Probability theory ( in Hungarian ). Műszaki Könyvkiadó, Budapest, [62] Pósafalvi, A., and Sztrik, J. On the heterogeneous machine interference with limited server s availability. European Journal of Operational Research 28 (1987), [63] Pósafalvi, A., and Sztrik, J. A numerical approach to the repairman problem with two different types of machines. Journal of Operational Reseach Society 40 (1989),
191 [64] Ravichandran, N. Stochastic Methods in Reliability Theory. John Wiley and Sons, [65] Reimann, J. Probability theory and statistics for engineers ( in Hungarian). Tankönyvkiadó, Budapest, [66] Rényi, A. Probability theory ( in Hungarian ). Tankönyvkiadó, Budapest, [67] Ross, S. M. Introduction to Probability Models. Academic Press, Boston, [68] Saaty, T. Elements of queueing theory with applications. Dover Publications, Inc., New York, [69] Saaty, T. Elements of Queueing Theory with Applications. McGraw-Hill, [70] Sahner, R., Trivedi, K., and Puliafito, A. Performance and reliability analysis of computer systems An example-based approach using the SHARPE software package. Kluwer Academic Publisher, Boston, M.A., [71] Sauer, C., and Chandy, K. Computer systems performance modelling. Prentice Hall, Englewood Cliffs, N.J., [72] Schatte, P. On the finite population G]/M/l queue and its application to multiprogrammed computers. Journal of lnformation Processing and Cybernetics 16 (1980), [73] Stewart, W. Introduction to the numerical solution of Markov chains. Princeton University Press, Princeton, [74] Stewart, W. Probability, Markov chains, queues, and simulation. Princeton University Press, Princeton, [75] Stidham, S. Optimal design of queueing systems. CRC Press/Taylor & Francis, [76] Syski, R. Introduction to Congestion Theory in Telephone Systems, 2nd Edition. North Holland, [77] Sztrik, J. On the finite-source G/m/r queues. European Journal of Operational Research 20 (1985), [78] Sztrik, J. On the n/g/m/1 queue and Erlang s loss formulas. Serdica 12 (1986), [79] Sztrik, J. On the G/M/r/F IF O machine interference model with statedependent speeds. Journal of Operational Researc Society 39 (1988), [80] Sztrik, J. Some contribution to the machine interference problem with heterogeneous machines. Journal of Information Processing and Cybernetics 24 (1988),
192 [81] Sztrik, J. An introduction to queueing theory and its applications (in Hungarian). Kossuth Egyetemi Kiadó, Debrecen, [82] Sztrik, J. A key to queueing theory with applications (in Hungarian). Kossuth Egyetemi Kiadó, Debrecen, [83] Sztrik, J. Practical queueing theory. Teaching material, Debrecen University Egyetem,Faculty if Informatics, [84] Sztrik, J. Performance modeling of informatics systems ( in Hungarian ). EKF Líceum Kiadó, Eger, [85] Takagi, H. Queueing analysis. A foundation of performance evaluation. Volume 1: Vacation and priority systems, part 1. North-Holland, Amsterdam, [86] Takagi, H. Queueing analysis. A foundation of performance evaluation. Volume 2: Finite Systems. North-Holland, Amsterdam, [87] Takagi, H. Queueing analysis. A foundation of performance evaluation. Volume 3: Discrete-Time Systems. North-Holland, Amsterdam, [88] Takács, L. Introduction to the theory of queues. Oxford University Press, New York, [89] Takács, L. Combinatorial Methods in the Theory of Stochastic Processes. John Wiley & Sons, [90] Tijms, H. Stochastic Modelling and Analysis: A Computational Approach. Wiley & Sons, New York, [91] Tijms, H. A first course in stochastic models. Wiley & Son, Chichester, [92] Tomkó, J. On sojourn times for semi-markov processes. Proceeding of the 14th European Meeting of Statisticians, Wroclaw (1981). [93] Tomkó, J. Sojourn time problems for Markov chains ( in Hungarian ). Alkalmazott Matematikai Lapok (1982), [94] Trivedi, K. Probability and Statistics with Reliability, Queuing, and Computer Science Applications, 2-nd edition. Wiley & Son, New York, [95] Ushakov, I. A., and Harrison, R. A. Handbook of reliability engineering. Transl. from the Russian. Updated ed. John Wiley & Sons, New York, NY, [96] van Hoorn, M. Algorithms and approximations for queueing systems. Centrum voor Wiskunde en Informatica, Amsterdam, [97] Virtamo, J. Queueing Theory
193 [98] Wentzel, E., and Ovcharov, L. Applied problems in probabbility theory. Mir Publisher, Moscow, [99] White, J. Analysis of queueing systems. Academic Press, New York, [100] Wolf, R. Stochastic Modeling and the Theory of Queues. Prentice-Hall, [101] Yashkov, S. Processor-sharing queues: some progress in analysis. Queueing Systems: Theory and Applications 2 (1987),
Queueing Systems. Ivo Adan and Jacques Resing
Queueing Systems Ivo Adan and Jacques Resing Department of Mathematics and Computing Science Eindhoven University of Technology P.O. Box 513, 5600 MB Eindhoven, The Netherlands March 26, 2015 Contents
Stochastic Processes and Queueing Theory used in Cloud Computer Performance Simulations
56 Stochastic Processes and Queueing Theory used in Cloud Computer Performance Simulations Stochastic Processes and Queueing Theory used in Cloud Computer Performance Simulations Florin-Cătălin ENACHE
M/M/1 and M/M/m Queueing Systems
M/M/ and M/M/m Queueing Systems M. Veeraraghavan; March 20, 2004. Preliminaries. Kendall s notation: G/G/n/k queue G: General - can be any distribution. First letter: Arrival process; M: memoryless - exponential
IEOR 6711: Stochastic Models, I Fall 2012, Professor Whitt, Final Exam SOLUTIONS
IEOR 6711: Stochastic Models, I Fall 2012, Professor Whitt, Final Exam SOLUTIONS There are four questions, each with several parts. 1. Customers Coming to an Automatic Teller Machine (ATM) (30 points)
Performance Analysis of a Telephone System with both Patient and Impatient Customers
Performance Analysis of a Telephone System with both Patient and Impatient Customers Yiqiang Quennel Zhao Department of Mathematics and Statistics University of Winnipeg Winnipeg, Manitoba Canada R3B 2E9
The Joint Distribution of Server State and Queue Length of M/M/1/1 Retrial Queue with Abandonment and Feedback
The Joint Distribution of Server State and Queue Length of M/M/1/1 Retrial Queue with Abandonment and Feedback Hamada Alshaer Université Pierre et Marie Curie - Lip 6 7515 Paris, France [email protected]
The Exponential Distribution
21 The Exponential Distribution From Discrete-Time to Continuous-Time: In Chapter 6 of the text we will be considering Markov processes in continuous time. In a sense, we already have a very good understanding
Fluid Approximation of a Priority Call Center With Time-Varying Arrivals
Fluid Approximation of a Priority Call Center With Time-Varying Arrivals Ahmad D. Ridley, Ph.D. William Massey, Ph.D. Michael Fu, Ph.D. In this paper, we model a call center as a preemptive-resume priority
Load Balancing and Switch Scheduling
EE384Y Project Final Report Load Balancing and Switch Scheduling Xiangheng Liu Department of Electrical Engineering Stanford University, Stanford CA 94305 Email: [email protected] Abstract Load
Introduction to Queueing Theory and Stochastic Teletraffic Models
Introduction to Queueing Theory and Stochastic Teletraffic Models Moshe Zukerman EE Department, City University of Hong Kong Copyright M. Zukerman c 2000 2015 Preface The aim of this textbook is to provide
ENGINEERING SOLUTION OF A BASIC CALL-CENTER MODEL
ENGINEERING SOLUTION OF A BASIC CALL-CENTER MODEL by Ward Whitt Department of Industrial Engineering and Operations Research Columbia University, New York, NY 10027 Abstract An algorithm is developed to
4 The M/M/1 queue. 4.1 Time-dependent behaviour
4 The M/M/1 queue In this chapter we will analyze the model with exponential interarrival times with mean 1/λ, exponential service times with mean 1/µ and a single server. Customers are served in order
Hydrodynamic Limits of Randomized Load Balancing Networks
Hydrodynamic Limits of Randomized Load Balancing Networks Kavita Ramanan and Mohammadreza Aghajani Brown University Stochastic Networks and Stochastic Geometry a conference in honour of François Baccelli
Simple Markovian Queueing Systems
Chapter 4 Simple Markovian Queueing Systems Poisson arrivals and exponential service make queueing models Markovian that are easy to analyze and get usable results. Historically, these are also the models
Response Times in an Accident and Emergency Service Unit. Apurva Udeshi [email protected]
IMPERIAL COLLEGE, LONDON Department of Computing Response Times in an Accident and Emergency Service Unit Apurva Udeshi [email protected] Supervisor: Professor Peter Harrison Second Marker: Dr. William
9.2 Summation Notation
9. Summation Notation 66 9. Summation Notation In the previous section, we introduced sequences and now we shall present notation and theorems concerning the sum of terms of a sequence. We begin with a
Pull versus Push Mechanism in Large Distributed Networks: Closed Form Results
Pull versus Push Mechanism in Large Distributed Networks: Closed Form Results Wouter Minnebo, Benny Van Houdt Dept. Mathematics and Computer Science University of Antwerp - iminds Antwerp, Belgium Wouter
Discrete-Event Simulation
Discrete-Event Simulation Prateek Sharma Abstract: Simulation can be regarded as the emulation of the behavior of a real-world system over an interval of time. The process of simulation relies upon the
Supplement to Call Centers with Delay Information: Models and Insights
Supplement to Call Centers with Delay Information: Models and Insights Oualid Jouini 1 Zeynep Akşin 2 Yves Dallery 1 1 Laboratoire Genie Industriel, Ecole Centrale Paris, Grande Voie des Vignes, 92290
QUEUING THEORY. 1. Introduction
QUEUING THEORY RYAN BERRY Abstract. This paper defines the building blocks of and derives basic queuing systems. It begins with a review of some probability theory and then defines processes used to analyze
Chapter 1. Introduction
Chapter 1 Introduction 1.1. Motivation Network performance analysis, and the underlying queueing theory, was born at the beginning of the 20th Century when two Scandinavian engineers, Erlang 1 and Engset
LECTURE 16. Readings: Section 5.1. Lecture outline. Random processes Definition of the Bernoulli process Basic properties of the Bernoulli process
LECTURE 16 Readings: Section 5.1 Lecture outline Random processes Definition of the Bernoulli process Basic properties of the Bernoulli process Number of successes Distribution of interarrival times The
Analysis of a Production/Inventory System with Multiple Retailers
Analysis of a Production/Inventory System with Multiple Retailers Ann M. Noblesse 1, Robert N. Boute 1,2, Marc R. Lambrecht 1, Benny Van Houdt 3 1 Research Center for Operations Management, University
The Analysis of Dynamical Queueing Systems (Background)
The Analysis of Dynamical Queueing Systems (Background) Technological innovations are creating new types of communication systems. During the 20 th century, we saw the evolution of electronic communication
How To Balance In A Distributed System
6 IEEE TRANSACTIONS ON PARALLEL AND DISTRIBUTED SYSTEMS, VOL. 11, NO. 1, JANUARY 2000 How Useful Is Old Information? Michael Mitzenmacher AbstractÐWe consider the problem of load balancing in dynamic distributed
Modeling and Analysis of Information Technology Systems
Modeling and Analysis of Information Technology Systems Dr. János Sztrik University of Debrecen, Faculty of Informatics Reviewers: Dr. József Bíró Doctor of the Hungarian Academy of Sciences, Full Professor
How To Model Cloud Computing
Performance analysis of Cloud Computing Centers Hamzeh Khazaei 1, Jelena Mišić 2, and Vojislav B. Mišić 2 1 University of Manitoba, Winnipeg, Manitoba, Canada, [email protected], WWW home page: http://www.cs.umanitoba.ca/~hamzehk
On the mathematical theory of splitting and Russian roulette
On the mathematical theory of splitting and Russian roulette techniques St.Petersburg State University, Russia 1. Introduction Splitting is an universal and potentially very powerful technique for increasing
Network Design Performance Evaluation, and Simulation #6
Network Design Performance Evaluation, and Simulation #6 1 Network Design Problem Goal Given QoS metric, e.g., Average delay Loss probability Characterization of the traffic, e.g., Average interarrival
Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab
Monte Carlo Simulation: IEOR E4703 Fall 2004 c 2004 by Martin Haugh Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab 1 Overview of Monte Carlo Simulation 1.1 Why use simulation?
Q UEUING ANALYSIS. William Stallings
Q UEUING ANALYSIS William Stallings WHY QUEUING ANALYSIS?...2 QUEUING MODELS...3 The Single-Server Queue...3 Queue Parameters...4 The Multiserver Queue...5 Basic Queuing Relationships...5 Assumptions...5
Tenth Problem Assignment
EECS 40 Due on April 6, 007 PROBLEM (8 points) Dave is taking a multiple-choice exam. You may assume that the number of questions is infinite. Simultaneously, but independently, his conscious and subconscious
Drop Call Probability in Established Cellular Networks: from data Analysis to Modelling
Drop Call Probability in Established Cellular Networks: from data Analysis to Modelling G. Boggia, P. Camarda, A. D Alconzo, A. De Biasi and M. Siviero DEE - Politecnico di Bari, Via E. Orabona, 4-7125
Multi-service Load Balancing in a Heterogeneous Network with Vertical Handover
1 Multi-service Load Balancing in a Heterogeneous Network with Vertical Handover Jie Xu, Member, IEEE, Yuming Jiang, Member, IEEE, and Andrew Perkis, Member, IEEE Abstract In this paper we investigate
Homework set 4 - Solutions
Homework set 4 - Solutions Math 495 Renato Feres Problems R for continuous time Markov chains The sequence of random variables of a Markov chain may represent the states of a random system recorded at
Important Probability Distributions OPRE 6301
Important Probability Distributions OPRE 6301 Important Distributions... Certain probability distributions occur with such regularity in real-life applications that they have been given their own names.
THE CENTRAL LIMIT THEOREM TORONTO
THE CENTRAL LIMIT THEOREM DANIEL RÜDT UNIVERSITY OF TORONTO MARCH, 2010 Contents 1 Introduction 1 2 Mathematical Background 3 3 The Central Limit Theorem 4 4 Examples 4 4.1 Roulette......................................
Simple Queuing Theory Tools You Can Use in Healthcare
Simple Queuing Theory Tools You Can Use in Healthcare Jeff Johnson Management Engineering Project Director North Colorado Medical Center Abstract Much has been written about queuing theory and its powerful
Scheduling Policies, Batch Sizes, and Manufacturing Lead Times
To appear in IIE Transactions Scheduling Policies, Batch Sizes, and Manufacturing Lead Times Saifallah Benjaafar and Mehdi Sheikhzadeh Department of Mechanical Engineering University of Minnesota Minneapolis,
TRAFFIC ENGINEERING OF DISTRIBUTED CALL CENTERS: NOT AS STRAIGHT FORWARD AS IT MAY SEEM. M. J. Fischer D. A. Garbin A. Gharakhanian D. M.
TRAFFIC ENGINEERING OF DISTRIBUTED CALL CENTERS: NOT AS STRAIGHT FORWARD AS IT MAY SEEM M. J. Fischer D. A. Garbin A. Gharakhanian D. M. Masi January 1999 Mitretek Systems 7525 Colshire Drive McLean, VA
1 Short Introduction to Time Series
ECONOMICS 7344, Spring 202 Bent E. Sørensen January 24, 202 Short Introduction to Time Series A time series is a collection of stochastic variables x,.., x t,.., x T indexed by an integer value t. The
Periodic Capacity Management under a Lead Time Performance Constraint
Periodic Capacity Management under a Lead Time Performance Constraint N.C. Buyukkaramikli 1,2 J.W.M. Bertrand 1 H.P.G. van Ooijen 1 1- TU/e IE&IS 2- EURANDOM INTRODUCTION Using Lead time to attract customers
Basic Queuing Relationships
Queueing Theory Basic Queuing Relationships Resident items Waiting items Residence time Single server Utilisation System Utilisation Little s formulae are the most important equation in queuing theory
6.263/16.37: Lectures 5 & 6 Introduction to Queueing Theory
6.263/16.37: Lectures 5 & 6 Introduction to Queueing Theory Massachusetts Institute of Technology Slide 1 Packet Switched Networks Messages broken into Packets that are routed To their destination PS PS
Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur
Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur Module No. #01 Lecture No. #15 Special Distributions-VI Today, I am going to introduce
CALL CENTER PERFORMANCE EVALUATION USING QUEUEING NETWORK AND SIMULATION
CALL CENTER PERFORMANCE EVALUATION USING QUEUEING NETWORK AND SIMULATION MA 597 Assignment K.Anjaneyulu, Roll no: 06212303 1. Introduction A call center may be defined as a service unit where a group of
MULTICHANNEL QUEUING SYSTEMS WITH BALKING AND REGENERATIVE INPUT FLOW
Tkachenko Andrey MULTICHANNEL QUEUING SYSTEMS WITH BALKING AND REGENERATIVE INPUT FLOW BASIC RESEARCH PROGRAM WORKING PAPERS SERIES: SCIENCE, TECHNOLOGY AND INNOVATION WP BRP 14/STI/2013 This Working Paper
UNIT 2 QUEUING THEORY
UNIT 2 QUEUING THEORY LESSON 24 Learning Objective: Apply formulae to find solution that will predict the behaviour of the single server model II. Apply formulae to find solution that will predict the
1: B asic S imu lati on Modeling
Network Simulation Chapter 1: Basic Simulation Modeling Prof. Dr. Jürgen Jasperneite 1 Contents The Nature of Simulation Systems, Models and Simulation Discrete Event Simulation Simulation of a Single-Server
Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis
Basic Multiplexing models? Supermarket?? Computer Networks - Vassilis Tsaoussidis Schedule Where does statistical multiplexing differ from TDM and FDM Why are buffers necessary - what is their tradeoff,
Lectures 5-6: Taylor Series
Math 1d Instructor: Padraic Bartlett Lectures 5-: Taylor Series Weeks 5- Caltech 213 1 Taylor Polynomials and Series As we saw in week 4, power series are remarkably nice objects to work with. In particular,
Optimal Dynamic Resource Allocation in Multi-Class Queueing Networks
Imperial College London Department of Computing Optimal Dynamic Resource Allocation in Multi-Class Queueing Networks MEng Individual Project Report Diagoras Nicolaides Supervisor: Dr William Knottenbelt
Fixed and Market Pricing for Cloud Services
NetEcon'212 1569559961 Fixed and Market Pricing for Cloud Services Vineet Abhishek Ian A. Kash Peter Key University of Illinois at Urbana-Champaign Microsoft Research Cambridge Microsoft Research Cambridge
Introduction to Probability
Introduction to Probability EE 179, Lecture 15, Handout #24 Probability theory gives a mathematical characterization for experiments with random outcomes. coin toss life of lightbulb binary data sequence
e.g. arrival of a customer to a service station or breakdown of a component in some system.
Poisson process Events occur at random instants of time at an average rate of λ events per second. e.g. arrival of a customer to a service station or breakdown of a component in some system. Let N(t) be
Further Topics in Actuarial Mathematics: Premium Reserves. Matthew Mikola
Further Topics in Actuarial Mathematics: Premium Reserves Matthew Mikola April 26, 2007 Contents 1 Introduction 1 1.1 Expected Loss...................................... 2 1.2 An Overview of the Project...............................
SPARE PARTS INVENTORY SYSTEMS UNDER AN INCREASING FAILURE RATE DEMAND INTERVAL DISTRIBUTION
SPARE PARS INVENORY SYSEMS UNDER AN INCREASING FAILURE RAE DEMAND INERVAL DISRIBUION Safa Saidane 1, M. Zied Babai 2, M. Salah Aguir 3, Ouajdi Korbaa 4 1 National School of Computer Sciences (unisia),
LOOKING FOR A GOOD TIME TO BET
LOOKING FOR A GOOD TIME TO BET LAURENT SERLET Abstract. Suppose that the cards of a well shuffled deck of cards are turned up one after another. At any time-but once only- you may bet that the next card
Exponential Approximation of Multi-Skill Call Centers Architecture
Exponential Approximation of Multi-Skill Call Centers Architecture Ger Koole and Jérôme Talim Vrije Universiteit - Division of Mathematics and Computer Science De Boelelaan 1081 a - 1081 HV Amsterdam -
Nonparametric adaptive age replacement with a one-cycle criterion
Nonparametric adaptive age replacement with a one-cycle criterion P. Coolen-Schrijner, F.P.A. Coolen Department of Mathematical Sciences University of Durham, Durham, DH1 3LE, UK e-mail: [email protected]
Sums of Independent Random Variables
Chapter 7 Sums of Independent Random Variables 7.1 Sums of Discrete Random Variables In this chapter we turn to the important question of determining the distribution of a sum of independent random variables
QNAT. A Graphical Queuing Network Analysis Tool for General Open and Closed Queuing Networks. Sanjay K. Bose
QNAT A Graphical Queuing Network Analysis Tool for General Open and Closed Queuing Networks Sanjay K. Bose QNAT developed at - Dept. Elect. Engg., I.I.T., Kanpur, INDIA by - Sanjay K. Bose [email protected]
An example of a computable
An example of a computable absolutely normal number Verónica Becher Santiago Figueira Abstract The first example of an absolutely normal number was given by Sierpinski in 96, twenty years before the concept
Math 526: Brownian Motion Notes
Math 526: Brownian Motion Notes Definition. Mike Ludkovski, 27, all rights reserved. A stochastic process (X t ) is called Brownian motion if:. The map t X t (ω) is continuous for every ω. 2. (X t X t
CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma
CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma Please Note: The references at the end are given for extra reading if you are interested in exploring these ideas further. You are
Queueing Networks. Page n. Queueing Networks
Queueing Networks Simonetta Balsamo, Andrea Marin Università Ca Foscari di Venezia Dipartimento di Informatica, Venezia, Italy School on Formal Methods 2007: Performance Evaluation Bertinoro, 28/5/2007
ECON20310 LECTURE SYNOPSIS REAL BUSINESS CYCLE
ECON20310 LECTURE SYNOPSIS REAL BUSINESS CYCLE YUAN TIAN This synopsis is designed merely for keep a record of the materials covered in lectures. Please refer to your own lecture notes for all proofs.
ARBITRAGE-FREE OPTION PRICING MODELS. Denis Bell. University of North Florida
ARBITRAGE-FREE OPTION PRICING MODELS Denis Bell University of North Florida Modelling Stock Prices Example American Express In mathematical finance, it is customary to model a stock price by an (Ito) stochatic
Models for Distributed, Large Scale Data Cleaning
Models for Distributed, Large Scale Data Cleaning Vincent J. Maccio, Fei Chiang, and Douglas G. Down McMaster University Hamilton, Ontario, Canada {macciov,fchiang,downd}@mcmaster.ca Abstract. Poor data
Software Performance and Scalability
Software Performance and Scalability A Quantitative Approach Henry H. Liu ^ IEEE )computer society WILEY A JOHN WILEY & SONS, INC., PUBLICATION Contents PREFACE ACKNOWLEDGMENTS xv xxi Introduction 1 Performance
Master s Theory Exam Spring 2006
Spring 2006 This exam contains 7 questions. You should attempt them all. Each question is divided into parts to help lead you through the material. You should attempt to complete as much of each problem
Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay
Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay Lecture - 17 Shannon-Fano-Elias Coding and Introduction to Arithmetic Coding
1. Repetition probability theory and transforms
1. Repetition probability theory and transforms 1.1. A prisoner is kept in a cell with three doors. Through one of them he can get out of the prison. The other one leads to a tunnel: through this he is
Process simulation. Enn Õunapuu [email protected]
Process simulation Enn Õunapuu [email protected] Content Problem How? Example Simulation Definition Modeling and simulation functionality allows for preexecution what-if modeling and simulation. Postexecution
Random access protocols for channel access. Markov chains and their stability. Laurent Massoulié.
Random access protocols for channel access Markov chains and their stability [email protected] Aloha: the first random access protocol for channel access [Abramson, Hawaii 70] Goal: allow machines
A Uniform Asymptotic Estimate for Discounted Aggregate Claims with Subexponential Tails
12th International Congress on Insurance: Mathematics and Economics July 16-18, 2008 A Uniform Asymptotic Estimate for Discounted Aggregate Claims with Subexponential Tails XUEMIAO HAO (Based on a joint
Deployment of express checkout lines at supermarkets
Deployment of express checkout lines at supermarkets Maarten Schimmel Research paper Business Analytics April, 213 Supervisor: René Bekker Faculty of Sciences VU University Amsterdam De Boelelaan 181 181
Lectures on Stochastic Processes. William G. Faris
Lectures on Stochastic Processes William G. Faris November 8, 2001 2 Contents 1 Random walk 7 1.1 Symmetric simple random walk................... 7 1.2 Simple random walk......................... 9 1.3
The Relation between Two Present Value Formulae
James Ciecka, Gary Skoog, and Gerald Martin. 009. The Relation between Two Present Value Formulae. Journal of Legal Economics 15(): pp. 61-74. The Relation between Two Present Value Formulae James E. Ciecka,
An On-Line Algorithm for Checkpoint Placement
An On-Line Algorithm for Checkpoint Placement Avi Ziv IBM Israel, Science and Technology Center MATAM - Advanced Technology Center Haifa 3905, Israel [email protected] Jehoshua Bruck California Institute
Vilnius University. Faculty of Mathematics and Informatics. Gintautas Bareikis
Vilnius University Faculty of Mathematics and Informatics Gintautas Bareikis CONTENT Chapter 1. SIMPLE AND COMPOUND INTEREST 1.1 Simple interest......................................................................
