1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.

Slides:



Advertisements
Similar presentations
Chapter 13 Queueing Models
Advertisements

Introduction to Queuing Theory
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
TCOM 501: Networking Theory & Fundamentals
Continuous Time Markov Chains and Basic Queueing Theory
Lecture 13 – Continuous-Time Markov Chains
Queueing Theory: Recap
Queueing Model 박희경.
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Queuing Systems Chapter 17.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory: Part I
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Chapter 9: Queuing Models
Lecture 14 – Queuing Systems

Introduction to Queuing Theory
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Introduction to Queueing Theory
18 Management of Waiting Lines.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Modeling and Analysis of Computer Networks
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Queuing Systems (2). Queueing Models (Henry C. Co)2 Queuing Analysis Cost of service capacity Cost of customers waiting Cost Service capacity Total.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
Waiting Lines and Queuing Theory Models
QUEUING THEORY.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Chapter 6 Queueing Models
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
Queuing Theory.  Queuing Theory deals with systems of the following type:  Typically we are interested in how much queuing occurs or in the delays at.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
OPERATIONS MANAGEMENT INTEGRATING MANUFACTURING AND SERVICES FIFTH EDITION Mark M. Davis Janelle Heineke Copyright ©2005, The McGraw-Hill Companies, Inc.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Demo on Queuing Concepts
Queueing Theory Carey Williamson Department of Computer Science
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
Carey Williamson Department of Computer Science University of Calgary
Waiting Line Models Waiting takes place in virtually every productive process or service. Since the time spent by people and things waiting in line is.
Course Description Queuing Analysis This queuing course
Presentation transcript:

1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time Markov chain; –Continuous-time Markov chain; –Birth-death process; Some typical and often-used distributions –Exponential Distribution; –Poisson Distribution; M/M/1 Little’s Law Brief review of M/M/s, M/G/1, M/D/1 Some additional discussions.

2 Queuing Systems Core components of the modelCore components of the model –Arrival process –Buffer (the so-called queue) Infinite or finite; –Service process single or parallel servers –Service discipline (FIFO, random)

3 Kendall Notation for Queuing Systems (1951) a/b/s/e/p/d a, specifies the arrival process b, specifies the service process s, is the number of parallel servers in the system e, (usually  ) is buffer size (i.e. maximum number of customers allowed in system) p, (usually  ) is size of customer population d, is the service discipline (FIFO, LIFO, etc.)

4

5 Queuing model parameters = average rate of customer arrivals (no. of customers/unit time)  = average rate of customer service by a server (no. of customers/unit time) (1/  = average service time) s = number of servers (channels) in the system If > s , then... If < s , then... The queuing systems is in steady state when the rate of departures from the system equals the rate of arrivals.

6 Queuing Performance measures L q = average number of customers in queue W q = average waiting time in queue (until service starts) L = average number of customers in system = L q + (average number being served) W = average time a customer spends in system = W q + 1/   = utilization factor = /(s  ) = busy time per unit time for each server = fraction of time a server is busy (on average) P n = the probability (or fraction of time) that exactly n customers are in the system P zn = the probability (or fraction of time) that at least n customers are in the system PW = P zs = the probability that a customer must wait for service (or the fraction of customers who must wait at least some time in the queue)

7 Customer Arrival Characteristics Size of the Customer Population –infinite or finite assume infinite when rate of customer arrival unaffected by number of customers in system if potential number of customers are limited (e.g. Xerox machines), then if all machines are broken, no more new customer arrivals Composition of the Customer Population –homogeneous or heterogeneous (e.g., the d.s. of interarrivals) Customer behaviour –well-behaved (waits until serviced after joining queue) –balk (leaves queue without joining) –renege (joins queue, but leaves before service when wait too long)

8 Customer Arrival Process Interarrival times - the times between successive customer arrivals. A large majority of the arrival patterns in real queuing systems appear to be generated by what is called a Poisson Process, in which the time between successive arrivals is exponentially distributed.

9 Service Characteristics For each category of customer it is necessary to describe the service process. This is usually expressed as a probability distribution for service times. System configuration –number, type and configuration of servers –queue capacity Queue Discipline –FIFO (first in, first out) –LIFO (last in, first out) –priority –random

10 Markov Process The probabilistic future of the process depends only on the current state and not upon the history of the process. In other words, the entire history of the process is summarized in the current state. Markov chain: A Markov process with discrete state space  discrete-time Markov chain and continuous-time Markov chain: focus of our further discussions.

11 Discrete-Time Markov chain

12 Discrete-Time Markov chain (cont’d) A matrix that satisfies the above properties is called a stochastic matrix.

13 Discrete-Time Markov chain (cont’d) The Chapman-Kolomogorov Equation:

14 Discrete-Time Markov chain (cont’d) Apparently, The matrix form:

15 Discrete-Time Markov chain (cont’d) Therefore, by solving the system of linear equations defined by: Where: We get the system invariant measure or stable d.f. It is not discussed in this course the conditions under which the above results hold. For ones who are interested, pls. refer to corresponding papers or books where detailed discussions or analysis are made.

16 Discrete-Time Markov chain (cont’d) The example: one-step transition matrix: one-step transition matrix: /41/41 1/2 The transition diagram: The equilibrium equation in matrix notation: The invariant measure:

17 Continuous-time Markov chain The Chapman-Kolmgorov Equation for C-M.C.:

18 Continuous-time Markov chain(cont’d)Where:

19 Continuous-time Markov chain(cont’d) By solving the following system of equations, we can get the invariant measure:

20 Continuous-time Markov chain(cont’d) It is not discussed in this course the conditions under which the above results hold. For ones who are interested, pls. refer to corresponding papers or books where detailed discussions or analysis are made.

21 Continuous-time Markov chain (cont’d) The example: the Q matrix: the Q matrix: The transition diagram: The equilibrium equation in matrix notation: The invariant measure:

22 Birth-Death Process

23 Birth-Death Process (cont’d) Then we get the differential equation:

24 Birth-Death Process (cont’d) Then we get: Or equivalently: The equilibrium equations or the balance equations of a birth and death process

25 Birth-Death Process (cont’d) The computation of p 0 relies on the fact: C<infinite

26 Exponential Distribution (Continuous random variable) Density function: for t > 0 CDF: for t  0 = 0 for t < 0 Exp. Value of T Variance of T

27 Exponential Distribution (Continuous random variable) Memoryless Property

28 Exponential Distribution

29 Poisson distribution (Discrete random variable) X  {0, 1, 2, 3, ….} X = 0, 1, 2, ….. parameter,e = Expected value of X =, Variance of X =

30 Poisson Process

31 Poisson Process (cont’d) The counting process Proof:

32 Poisson Process (cont’d) Proof (cont’d): For n>0, we have:

33 Poisson Process (cont’d) Proof (cont’d): By noting the initial condition P k (0) = 0, k>0, solving the differential equation recursively yields the desired results. This says, in particular, the mean number of events per time unit, or equivalently, the rate at which events occur, is given by E[N(t)]/ t = λ. This is why λ is called the rate of the Poisson process.

34 Poisson Process (cont’d) Proof:

35 Poisson Process (cont’d) Additional properties of Poisson Process: The inverse is also valid.

36 Catalogue of Queues Single server, Poisson arrivals –M/G/1 –M/M/1 –M/D/1 Multiple servers, Poisson arrivals –M/G/s –M/M/s –etc, etc,

37 M/M/1 In summary: 1)Arrival process is Poisson Process; 2)Departure process is Poisson Process; 3)Service discipline is FCFS;

38 M/M/1 (cont’d)

39 M/M/1 (cont’d) This parameter is often called the utilization level of the system because it tells the average load status of the system. The transition diagram:

40 M/M/1 (cont’d) L s = L q +  W s = W q + 1/ 

41 Little’s Law Relationship between the performance measures for any queue. 1. Consider one customer: wait in queue for how many people arrive during this time? = inter-arrival time 2.whereis the average service time

42 Little’s Law For each server, expected # customers in service For s servers, exp. # in services

43 MultiServer Systems with Exponential Service Times (M/M/s Systems)  = /(s  ) P n = L q = [( /  ) s  P 0 ]/[s!(1-  ) 2 ] L s = L q + /  W q = L q / W s = W q + 1/ 

44 Queuing Example Purchase two facsimile transmission (fax) machine for use of two departments. For each dept:

45 Example: Two separate queues Modelled as two separate M/M/1 queues, we get the following performance measures:

46 36/day from Design + 36/day from sales = 72items/day = M/M/2 system with = 72 items per day and  =48 items per day. Example: Common pool

47 Benefits of Pooling Servers The result for example 2 holds in general: If customers are homogeneous, then there will be less customer waiting on average if servers are pooled into one queuing system. Notice that in both systems the utilization rates are the same, so the servers do not work any harder or longer in one configuration versus the other. Instead, they work more effectively in a pooled system by coordinating their idle time so that a server is never idle while other servers have queues. As long as customers can choose which queue to enter and can switch among queues, system with s queues should behave no differently than a system with one queue.

48 M/G/1 Systems the variance of the service time =  2

49 M/D/1 Systems When the service times are a constant, so that  2 =0, we say that the service distribution is deterministic. Everything else being equal, the more variation in service times, the longer queues will be on average and the longer customers will wait on average.

50 Role of Variance in Queuing Systems Everything else being equal, the greater the randomness in arrival times and/or services times, the larger the average queue lengths and waiting times. Therefore, anything we can do to reduce variation will help to reduce customer waiting. Pacing of customer arrivals reduces waiting The psychology of queues –making the waiting time interesting (Disneyland?)

51

52 Capacity Utilization and the Exploding Queue Property The primary property of queuing systems is that average waiting and queue size increase slowly with utilization until utilization reaches approximately At this point, average waiting time and queue length increase rapidly.

53 FIN