Performance Evaluation of Queuing Systems

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

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

Introduction to queuing theory

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

QUEUING SYSTEM. Yetunde Folajimi, PhD

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

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

Introduction to Markov Chains, Queuing Theory, and Network Performance

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

Continuous Time Processes

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

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

Introduction to Queueing Theory

PBW 654 Applied Statistics - I Urban Operations Research

6 Solving Queueing Models

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

Queues and Queueing Networks

Lecture 20: Reversible Processes and Queues

Queueing. Chapter Continuous Time Markov Chains 2 CHAPTER 5. QUEUEING

Computer Systems Modelling

Introduction to Queueing Theory

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

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

Performance Modelling of Computer Systems

Introduction to queuing theory

Queuing Theory. Using the Math. Management Science

Introduction to Queueing Theory

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

Part II: continuous time Markov chain (CTMC)

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

Non Markovian Queues (contd.)

Classical Queueing Models.

Základy teorie front

Time Reversibility and Burke s Theorem

Systems Simulation Chapter 6: Queuing Models

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

Queueing Theory and Simulation. Introduction

Birth-Death Processes

CS 798: Homework Assignment 3 (Queueing Theory)

Statistics 150: Spring 2007

Chapter 1. Introduction. 1.1 Stochastic process

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

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

Figure 10.1: Recording when the event E occurs

Performance analysis of queueing systems with resequencing

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

Analysis of A Single Queue

Chapter 3 Balance equations, birth-death processes, continuous Markov Chains

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Chapter 2 Queueing Theory and Simulation

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

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

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

Link Models for Circuit Switching

Introduction to Queuing Networks Solutions to Problem Sheet 3

MARKOV PROCESSES. Valerio Di Valerio

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

Data analysis and stochastic modeling

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

Advanced Computer Networks Lecture 3. Models of Queuing

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

Elementary queueing system

Computer Networks More general queuing systems

Link Models for Packet Switching

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

Part I Stochastic variables and Markov chains

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

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

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

Markov processes and queueing networks

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

Introduction to Queuing Theory. Mathematical Modelling

Readings: Finish Section 5.2

Little s result. T = average sojourn time (time spent) in the system N = average number of customers in the system. Little s result says that

Queueing Networks G. Rubino INRIA / IRISA, Rennes, France

Derivation of Formulas by Queueing Theory

Simple queueing models

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

Name of the Student:

Classification of Queuing Models

Page 0 of 5 Final Examination Name. Closed book. 120 minutes. Cover page plus five pages of exam.

IEOR 6711, HMWK 5, Professor Sigman

Slides 9: Queuing Models

Analysis of Software Artifacts

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

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

Chapter 5: Special Types of Queuing Models

Continuous-Time Markov Chain

λ λ λ In-class problems

16:330:543 Communication Networks I Midterm Exam November 7, 2005

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

Homework 1 - SOLUTION

COMP9334 Capacity Planning for Computer Systems and Networks

Review of Queuing Models

CS418 Operating Systems

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

Chapter 11. Performance Modeling

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

The effect of probabilities of departure with time in a bank

Stochastic Models in Computer Science A Tutorial

Transcription:

Performance Evaluation of Queuing Systems Introduction to Queuing Systems System Performance Measures & Little s Law Equilibrium Solution of Birth-Death Processes Analysis of Single-Station Queuing Systems Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 1/1

Single Station Queuing Systems Single station queuing models are useful for performance evaluation of many devices, sub-systems and communications nodes that make up communications networks. We introduce the different types of queuing systems that are possible and then present Birth-Death models that allow us to compute performance measures, such as mean queue length and delay, for such systems. Queuing System Models In a single station queuing model, the queuing system consists of a buffer for queuing customers and one or more identical servers. The queue may be of zero, finite or infinite size. 1 Arriving Customers Queue m Departing Customers Servers Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 2/1

Queuing Systems A server may only serve one customer (packet, call, request, etc.) at a time and so, at any given time, it is either busy or idle. A customer represents some unit of work that keeps a server busy for some amount of time - (e.g. transmission of a packet of some length, carrying of a call for some amount of time, processing of a request, etc.). If all servers in the system are busy when a new customer arrives then the customer joins the queue, if there is remaining space in the queue. When a customer finishes service, it departs the system and a new customer is selected from the queue (if there are any waiting) to begin its service. There are two sources of randomness in such a system: 1 customers arrive at random times, that is, the inter-arrival-time of customers is described by a random variable. 2 the amount of time required to service a customer is random, that is, the service time is described by a random variable. It is often assumed that arrivals are independent events and that the service times of different customers are also independent. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 3/1

Queuing Systems - Kendall s Notation Kendall s Notation for Queues We use the following notation to describe different types of queuing systems: A/B/m/K/p queuing discipline A is the distribution of inter-arrival times and B is the distribution of service times. The distributions A and B may be indicated as: M - Exponentially distributed inter-arrival times or service times (where the M indicates Memoryless) D - Deterministic distribution (that is, constant) G - General distribution (of unknown distribution) GI - General independent (unknown distribution but with independent arrivals and service times). For the distributions A and B above, the mean arrival rate is normally denoted as λ and the mean service time as 1/µ, that is, µ is the mean service rate. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 4/1

Queuing Systems - Kendall s Notation m indicates the number of servers in the system. K indicates the capacity of the overall system (the number of queuing places plus the number of servers). If K is not specified in the Kendall notation, then the buffering capacity (queue length) is taken as infinite. p indicates the number in the population of customers that may arrive to the system, that is, the number of users of the system. If p is not specified in the notation, then the population is taken as infinite. The queuing discipline determines which customer is selected from the queue for processing when a server becomes available. Examples of different queuing disciplines are: F CF S - First-Come-First-Served - If no queuing discipline is stated in the Kendall description, this one is assumed. All the systems we consider have a F CF S queuing discipline. LCF S - Last-Come-First-Served P S - Processor-Sharing: All customers are served simultaneously where processing of all customers is equally spread across all servers. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 5/1

Performance Evaluation of Queuing Systems Introduction to Queuing Systems System Performance Measures & Little s Law Equilibrium Solution of Birth-Death Processes Analysis of Single-Station Queuing Systems Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 6/1

Queuing Systems - Performance Measures We now introduce some notation for the performance measures of interest in queuing systems. Number of Customers in the System: In steady-state, the expected value of the state distribution vector {π k } gives the mean number of customers in the system. We will find a solution for the stationary distribution {π k } for continuous-time Birth-Death processes (queuing systems) later in this section. Given {π k }, many of the other performance measures of interest may be derived. Utilisation (ρ): For a queuing system with a single server, utilisation ρ is the fraction of time the server is busy. When there is no limit on the capacity of the system, then ρ = mean service time arrival rate = mean inter-arrival time service rate = λ µ. The utilization ρ when there are multiple servers, is the mean fraction of busy servers. Since mµ is the overall service rate, in this case we have ρ = λ mµ. For a stable (ergodic) system, the condition for stability is ρ < 1. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 7/1

Queuing Systems - Performance Measures Throughput (λ): The throughput for a queuing system with infinite capacity is the mean number of customers processed in a unit of time, i.e. the departure rate. Since the departure rate is equal to the arrival rate (and assuming ρ < 1), the throughput is λ = m ρ µ. For a queuing system with finite capacity, there can be loss in the systems, and so the throughput can be less than the arrival rate. In this case, throughput is often denoted differently (e.g. as S) to distinguish it from the arrival rate λ. Response Time (T ): (or sojourn time) is the total time a customer spends in the system. Waiting Time (W ): is the time a job spends in the queue waiting to be serviced. Therefor, response time is the sum of the waiting time and the service time for a customer. T and W are, in general, random variables, so the expected values ( T and W ) are often used and we may write: T = W + 1 µ. Number of Customers in the System (N): Again N is a random variable and its expected value N is often of interest: N = k=1 k π k Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 8/1

Little s Law The mean number of customers in the system N and the mean response time T can be related using one of the most important theorems of queuing theory, Little s Law: N = λ T We outline a proof of the Little s theorem as follows: Let α(t) the number of arrivals in the time interval (0, t) Let δ(t) the number of departures in the time interval (0, t) 9 8 7 6 5 4 3 2 1 0 Number of Customers á(t) Time t ä(t) N(t) Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 9/1

Little s Law We define N(t) as the stochastic process representing the number in the system at time t, where N(t) = α(t) δ(t). Let γ(t) = the total time all customers have spent in the system up to time t = the area between the two graphs α(t) and δ(t). Let λ t = the average arrival rate during interval (0, t). λ t α(t) t (1) Let T t = the average total time spent by a customer in the system over the interval (0, t) T t = γ(t) (2) α(t) Let N t = the average number of customers in the system (during interval (0, t)) N t = γ(t) t (3) Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 10/1

Little s Law Equations (1),(2) and (3) can be combined: γ(t) t Let λ = Lim t λ t and T = Lim t Tt N will then also exist giving N = λ T. = α(t) t N t = λ t Tt. γ(t) α(t) The above result does not depend on the inter-arrival or service time distributions or on the number of servers in the system. Also, the law applies to any arbitrary boundary around part of the system, for example if only the queue is being considered then N q = λ W, where N q is the average number of customers in the queue and W is the average time spent waiting in the queue. If only the server is being considered then: N s = λ µ. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 11/1

Performance Evaluation of Queuing Systems Introduction to Queuing Systems System Performance Measures & Little s Law Equilibrium Solution of Birth-Death Processes Analysis of Single-Station Queuing Systems Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 12/1

Birth-Death Systems in Equilibrium We may model many different types of queuing systems by applying our continuous-time Birth-Death (Markov chain) analysis methods. Calculation of the performance measures of interest depends on resolution of the stationary distribution of the states of the process, {π k }. We have previously resolved the transient solution of the Birth-Death system for the simple case of the Poisson process. We now turn to the equilibrium solution and, given that the equations are more straight-forwards, we may find a general solution to {π k } in terms of the birth and death coefficients. Recall that the stationary distribution of an ergodic, homogeneous, continuous-time Markov chain is given by the solution to the system of linear equations: coupled with the normalisation condition: 0 = πq (4) π1 T = i S π i = 1 Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 13/1

Birth-Death Systems in Equilibrium From our definition of a Birth-Death process, recall that the matrix of transition rates Q takes the form: λ 0 λ 0 0 0... µ 1 (λ 1 + µ 1 ) λ 1 0... Q = 0 µ 2 (λ 2 + µ 2 ) λ 2... 0 0 µ 3 (λ 3 + µ 3 ).......... And so, equation (4) gives the set of linear equations: 0 = (λ k + µ k )π k + λ k 1 π k 1 + µ k+1 π k+1 k 1 (5) 0 = λ 0 π 0 + µ 1 π 1 k = 0 (6) So as to eliminate the equation for k = 0, we put λ 1 = λ 2 = λ 3 =... = 0 µ 0 = µ 1 = µ 2 =... = 0 Since a negative number of customers in the system is not possible, we have π 1 = π 2 = π 3 =... = 0. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 14/1

Birth-Death Systems in Equilibrium Thus, equations (5) and (6) can be combined to give the equilibrium equation: 0 = (λ k + µ k )π k + λ k 1 π k 1 + µ k+1 π k+1 k =... 2, 1, 0, 1, 2,... (7) We find a solution for π k as follows: Solving for π 1 π 1 = λ 0 µ 1 π 0 Solving for π 2 0 = (λ 1 + µ 1 )π 1 + λ 0 π 0 + µ 2 π 2 0 = (λ 1 + µ 1 ) λ 0 µ 1 π 0 + λ 0 π 0 + µ 2 π 2 0 = λ 1λ 0 µ 1 π 0 λ 0 π 0 + λ 0 π 0 + µ 2 π 2 π 2 = λ 0λ 1 µ 1 µ 2 π 0 Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 15/1

Birth-Death Systems in Equilibrium Continuing in this way: π k = λ 0λ 1... λ k 1 µ 1 µ 2... µ k π 0 Thus the equilibrium probabilities may be expressed as: k 1 λ i π k = π 0 k = 0, 1, 2,... (8) µ i+1 i=0 And using the conservation (normalisation) equation, and noting that an empty product is equal to 1: 1 π 0 = [k 1 λ ] i 1 + µ i+1 k=1 i=0 (9) Equations (8) and (9) give the general equilibrium (stationary) solution of the Birth-Death process. We may model different types of queuing systems (as previously described by the Kendall notation) simply by setting particular sets of values for the coefficients λ i, µ i. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 16/1

Performance Evaluation of Queuing Systems Introduction to Queuing Systems System Performance Measures & Little s Law Equilibrium Solution of Birth-Death Processes Analysis of Single-Station Queuing Systems Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 17/1

M/M/1 Queuing System In this case of an M/M/1 queuing system, the Birth-Death coefficients are: λ k = λ k = 0, 1, 2,... µ k = µ k = 1, 2, 3,... 0 1 2 k-1 k k+1 Solving with these coefficients using the general solution equation (8): k 1 λ p k = p 0 µ i=0 p k = p 0 ( λ µ) k k 0 Note the change in notation to agree with Kleinrock: p k π k Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 18/1

M/M/1 Queuing System Calculating p 0 using the normalisation equation (9): [ p 0 = 1 + p 0 = k=1 [ 1 + λ/µ 1 λ/µ p 0 = 1 λ/µ ( ) ] λ k 1 µ ] 1 Combining: p k = (1 ρ)ρ k k = 0, 1, 2,... where ρ = λ/µ Note that for stability (ergodicity) in this system: ρ < 1. To calculate N the average number of customers in the system: N = N = k p k k=0 ρ 1 ρ Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 19/1

M/M/1 Queuing System p k 1 2 3 4 5 6 7 8 k Figure: The steady state probability of k customers in the system (p k ) for a given value of ρ < 1 We can now calculate the average time spent in the system using Little s Law: T = N λ = ρ 1 1 ρ λ T = 1/µ 1 ρ Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 20/1

M/M/1 Queuing System From the definition of the system, the arrivals to the M/M/1 system form a Poisson process, that is, the inter-arrival times are exponentially distributed. We note (without proof) that the output process of the M/M/1 system is also a Poisson process, that is, the inter-departure times are also exponentially distributed, with the same parameter λ as the inter-arrival times. We further note that the combination of Poisson traffic streams is also a Poisson traffic stream (see Tutorial 2). These facts make it easy to analyse networks of connected M/M/1 systems, where the arrival process to one node is formed by the departure streams from one or more other nodes. For other types of queuing systems, it is generally not the case that the departure process is the same as the arrival process and network analysis problems then involve resolving the joint distributions of the states of multiple queuing stations (generally an intractible problem to solve exactly for a large number of nodes). Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 21/1

Queuing System with Discouraged Arrivals Consider a queuing system where arrivals are discouraged when more customers are present in the system. This may be represented using state-dependent arrival (birth) rates in the Birth-Death system: λ k = α k = 0, 1, 2,... k + 1 µ k = µ k = 1, 2, 3,... á á/2 á/3 á/( k-1) á/k á/( k+1) á/( k+2) 0 1 2 k-1 k k+1 Solving for p k and p 0 : k 1 p k = p 0 p 0 = [ i=0 1 + α/(i + 1) µ k=1 = p 0 ( α µ ) k 1 k! ( ) ] α k 1 1 = e α µ µ k! Combining gives: p k = (α/µ)k e α µ k = 0, 1, 2,... k! Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 22/1

M/M/m Queuing System Consider a system with unlimited buffering capacity and m servers. The Birth-Death coefficients are: λ k = λ k = 0, 1, 2,... { kµ 0 k m µ k = mµ m k 0 1 m-2 m-1 m m+1 2 (m-2) (m-1) m m m Note that, for an ergodic system For the range k m : λ mµ < 1 k 1 p k = p 0 i=0 λ (i + 1)µ = p 0 ( ) λ k 1 µ k! For the range k m : m 1 p k = p 0 i=0 k 1 λ (i + 1)µ j=m λ mµ = p 0 ( ) λ k 1 µ m! m k m Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 23/1

M/M/m Queuing System Combining we have: Where ρ = p 0 = λ mµ < 1 [ m 1 k=0 (mρ) k + k! p k = p 0 (mρ) k k! p 0 ρ k m m m! ] 1 ρ k m m = m! k=m [ m 1 k=0 k m k m (mρ) k ( (mρ) m + k! m! ) ( 1 ) ] 1 1 ρ The probability that an arrival joins the queue (is not served immediately) is: P [queuing] = ρ k m m p k = p 0 m! k=m ( ) ( ) (mρ) m 1 k=m P [queuing] = [ m 1 k=0 m! 1 ρ (mρ) k ( (mρ) m + k! m! ) ( 1 1 ρ ) ] Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 24/1

M/M/m Queuing System The above equation is known as Erlang s C Formula. As it is can be cumbersome to calculate, charts (or software) are used to find values for the probability of delay (queuing). We may also use the formula (by way of charts or software) to find the number of servers required given the maximum allowable probability of delay for a given the arrival intensity. The Erlang-C formula is charted on the next slide. The x-axis is the traffic intensity, a measure of the rate of work offered to the system. For a single server system: For an m server system: Traffic Intensity = ρ = λ 1 µ Traffic Intensity = m ρ = λ 1 µ The unit of traffic intensity is the Erlang, a dimensionless quantity. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 25/1

M/M/m Queuing System 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 n=1 n=2 n=3 0.2 n=4 n=5 0.1 0.09 0.08 0.07 0.06 0.05 n=6 n=7 n=8 0.04 0.03 0.02 0.01 0.009 0.008 0.007 0.006 0.005 0.004 0.003 0.002 n=9 n=10 n=11 n=12 n=13 n=14 n=15 n=16 n=17 n=18 n=19 n=20 0.001 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10 Erlang C - Probability of Delay (Queuing) Vs Traffic Intensity (Erlangs) Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 26/1

M/M/1/K - Limited Buffer Capacity In this case, a maximum number of customers may be queued. Assume at most K (including the customer in service). Any further arrivals (when there are K in the system) are lost. The Birth-Death coefficients are: λ k = { λ k < K 0 k K µ k = µ k = 1, 2,..., K 0 1 2 K-1 K There are only K + 1 states in the system k 1 λ p k = p 0 µ i=1 k K p k = p 0 ( λ µ) k k K p k = 0 k > K Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 27/1

M/M/1/K - Limited Buffer Capacity To solve for p 0 : p 0 = p 0 = [ 1 + K k=1 1 λ/µ 1 (λ/µ) K+1 ( ) ] 1 λ k µ Combining p 0 with the previous equation, we have: 1 λ/µ 1 (λ/µ) p k = K+1 (λ/µ)k 0 k K 0 otherwise Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 28/1

M/M/m/m Loss System In this case, there are m servers in this system and when a customer arrives it is assigned to a server or lost if all servers are busy. Subscribers Telephone Exchange m circuits Figure: Example of an M/M/m/m System The system parameters are: λ k = { λ k < m 0 k m µ k = kµ k = 1, 2,..., m Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 29/1

M/M/m/m Loss System 0 1 2 m-1 m 2 3 (m-1) m k 1 λ p k = p 0 (i + 1)µ k m i=0 { ( k p λ 1 p k = 0 µ) k! k m 0 k > m Solving for p 0 p 0 = [ m k=0 ( ) ] λ k 1 1 µ k! Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 30/1

M/M/m/m Loss System (λ/µ) k p k = k! m (λ/µ) i Of particular importance for this system is p m, the fraction of the time that all m servers are busy: (λ/µ) m p m = m! m (λ/µ) k i=0 k=0 i! k! We note that this is the same probability as the probability that an arriving customer finds the system busy and is blocked (the call blocking probability). This equation is known as Erlang s B Formula. It can be graphed as the set of functions E m (λ/µ) (figure below) for use in system performance calculations. As for the M/M/m/m chart, the x-axis is the traffic intensity = λ/µ. Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 31/1

M/M/m/m Loss System 1.0 0.9 0.8 0.7 0.6 0.5 0.4 0.3 n=1 n=2 0.2 n=3 n=4 0.1 0.09 0.08 0.07 0.06 0.05 0.04 0.03 0.02 0.01 0.009 0.008 0.007 0.006 0.005 0.004 0.003 0.002 n=5 n=6 n=7 n=8 n=9 n=10 n=11 n=12 n=13 n=14 n=15 n=16 n=17 n=18 n=19 n=20 0.001 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6 6.5 7 7.5 8 8.5 9 9.5 10 Erlang B - Probability of Blocking (Loss) Vs Traffic Intensity (Erlangs) Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 32/1

M/M/1//M System In this case there is a finite number of system users (M). The user is either arriving or already in the queue or being served. The average arrival rate for each customer is λ. M (M-1) (M-2) 2 0 1 2 M-1 M The state probabilities are: k 1 λ(m i) p k = p 0 µ i=0 ( ) λ k M! = p 0 µ (M k)! 0 k M 0 k M with p 0 = [ M k=0 ( ) ] 1 λ k M! µ (M k)! Dr Conor McArdle EE414 - Performance Evaluation of queuing Systems 33/1