Queueing Theory. The study of queues – why they form, how they can be evaluated, and how they can be optimized. Building blocks – arrival process and.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Chapter Queueing Notation
Cheng-Fu Chou, CMLab, CSIE, NTU Basic Queueing Theory (I) Cheng-Fu Chou.
Queueing Model 박희경.
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
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.
Queuing Systems Chapter 17.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
1 Queuing Theory 2 Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or.
Waiting Line Management
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),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
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.
Queuing Theory. Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or queue)
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.

___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Introduction to Queuing Theory
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
Queuing Theory Summary of results. 2 Notations Typical performance characteristics of queuing models are: L : Ave. number of customers in the system L.
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
Queueing Analysis of Production Systems (Factory Physics)
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
1 Queuing Analysis Overview What is queuing analysis? - to study how people behave in waiting in line so that we could provide a solution with minimizing.
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.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
The production inventory problem What is the expected inventory level? What is expected backorder level? What is the expected total cost? What is the optimal.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
CS352 - Introduction to Queuing Theory Rutgers University.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Chapter 1 Introduction. “Wait-in-line” is a common phenomenon in everywhere. Reason: Demand is more than service. “How long must a customer wait?” or.
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.
1 Ardavan Asef-Vaziri Sep-09Operations Management: Waiting Lines3 Example: The arrival rate to a GAP store is 6 customers per hour and has Poisson distribution.
Chapter 6 Queueing Models
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Waiting Line Theory Akhid Yulianto, SE, MSc (log).
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.
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.
CS 4594 Broadband Intro to Queuing Theory. Kendall Notation Kendall notation: [Kendal 1951] A/B/c/k/m/Z A = arrival probability distribution (most often.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
QUEUING THEORY 1.  - means the number of arrivals per second   - service rate of a device  T - mean service time for each arrival   = ( ) Utilization,
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
Chapter 1 Introduction.
Queueing Theory What is a queue? Examples of queues:
Chapter 6 Queuing Models.
Introduction Notation Little’s Law aka Little’s Result
Queuing models Basic definitions, assumptions, and identities
System Performance: Queuing
Queuing models Basic definitions, assumptions, and identities
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
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:

Queueing Theory

The study of queues – why they form, how they can be evaluated, and how they can be optimized. Building blocks – arrival process and a service process.

Arrival process – individually/in groups, independent/correlated, single source/multiple sources, infinite/finite population, limited/unlimited capacity. Service process – single/multiple servers, single/multiple stages, individually/in groups, independent/correlated, service discipline (FCFS/priority). Some characteristics of arrival and service processes

GX/GY/k/NGX/GY/k/N A Common notation G : distribution of inter- arrival times X : distribution of arrival batch (group) size G : distribution of service times Y : distribution of service batch size k : number of servers N : maximum number of customers allowed

Common examples M / M /1 M / G /1 M / M / k M / M /1/ N M X / M / 1 GI / M /1 M / M / k/k

Fundamental quantities L : expected number of customers in the system, L = E ( n ). L Q : expected number of customers waiting in queue. W : expected time a customer spends in the system. W Q : expected time a customer spends waiting in queue E [ S ]: expected time customer spends in service. : customer arrival rate, = lim t  ∞ N ( t )/ t, where N ( t ) is the number of arrivals up to time t.

Fundamental relationships L = L Q + N s W = W Q + E(S) L = W L Q = W Q N s = E(S) The relationship L = W is often referred to as Little’s law.

t 1 t 2 t 3 t 4 t 5 t 6 t 7 T Number in system A heuristic proof

L = [1( t 2 - t 1 )+2( t 3 - t 2 )+1( t 4 - t 3 )+2( t 5 - t 4 )+3( t 6 - t 5 )+2( t 7 - t 6 )+1(T- t 7 )]/ T = (area under curve)/ T = (T+ t 7 + t 6 - t 5 - t 4 + t 3 - t 2 - t 1 )/ T W = [( t 3 - t 1 )+( t 6 - t 2 )+( t 7 - t 4 )+(T- t 5 )]/4 = (T+ t 7 + t 6 - t 5 - t 4 + t 3 - t 2 - t 1 )/4 = (area under curve)/ N(T)

L = (area under curve)/ T, W = (area under curve)/ N(T)  LT = WN ( T )  L = WN ( T )/T Since as T  ∞, N ( T )/ T , L = W as T  ∞. A similar heuristic proof can be used to show L Q = W Q and N s = E(S).

For a single server queue:

Case 1 Customers arrive at regular & constant intervals Service times are constant Arrival rate < service rate ( <  ) W Q = 0 W = W Q + E(S) = E(S) L = W = E(S) L Q = W Q = 0  E(S) TH (output/throughput rate) = Why do queues form?

Case 2 Customers arrive at regular & constant intervals Service times are constant Arrival rate > service rate ( >  ) W Q = ∞ W = W Q + E(S) = ∞ L = W = ∞ L Q = W Q = ∞  > 1 (but utilization is actually 1) TH (output/throughput rate) =  Why do queues form?

Case 3 Customers arrive at regular & constant intervals Service times are not constant Arrival rate < service rate ( <  ) Example: Inter-arrival time = 8 min  Average service time = 6 min

 = 6/8 = 0.75 TH = 1/8 parts/min = 7.5 parts/hour W Q = ? L q = ?

Conclusion 1: If customers arrive at a faster rate than the service rate, the system becomes instable and infinitely large queues will form. Conclusion 2: In the presence of variability, customers will generally wait for processing and a queue in front of the processing unit will build up.

In managing queueing systems, we must alway strive to reduce variability while allowing for enough capacity

Measuring Variability

The M/M/1 queue

Example Example: Customers arrive according to a Poisson process with rate of 1 per every 12 minutes and that the service time is exponential at a rate of one service per 8 minutes. What is L and W ? What happens if arrival rate increases by 20%? If there is a waiting cost of $2 per minute a customer spends in the system, what is the total cost per minute incurred in both cases?

Example A 20% increase in arrival rate leads to a 100% increase in number of customers!

The M/M/1/N queue

Example: A service facility with a finite queue size of N has service rate  and an arrival rate. Each customer that is served generates $ A. Service rate can be increased. However, there is a cost $c  per unit time for operating a facility with rate . What is the optimal choice of  ?

The G/G/1 queue If (1) < , (2) the distributions of customer service time and inter-arrival times are stationary, and (3) customers are served on a first come, first served (FCFS) basis, then average waiting time in the queue can be approximated as follows: waiting time in a M/M/1 queue

The G/G/m queue When there are m parallel servers, then average waiting time can be approximated as follows:

Examples m = 1 C A = C S = 1  = 1 Case 1:  = 0.50  W = 2, L = 1 Case 2:  = 0.66  W = 3, L = 1.98 Case 3:  = 0.75  W = 4, L = 3 Case 4:  = 0.80  W = 5, L = 4 Case 5:  = 0.90  W = 10, L = 9 Case 6:  = 0.95  W = 20, L = 19 Case 7:  = 0.99  W = 100, L = 99

Examples m = 1 C A = 1  = 1  = 0.8 Case 1: c S = 0  W = 3, L = 2.4 Case 2: c S = 0.5  W = 4, L = 3.2 Case 1: c S = 1  W = 5, L = 4 Case 1: c S = 1.5  W = 6, L = 4.8 Case 1: c S = 2  W = 7, L = 5.6

Network of Queues Two servers in series Customers arrive to server 1 according to a Poisson process with rate Service times are exponentially distributed at servers 1 and 2 with rates  1 and  2, respectively There is always enough waiting room between the two servers

Server 1 alone is simply an M/M/1 queue. Then If server 2 alone is also an M/M/1 queue (this is actually true), then If the number of customers at servers 1 and 2 are independent (this is also true), then

The results generalize to k servers in series. Each server behaves like an M/M/1 queue and number of customers at each server are independent of the number of customers at other servers.