Basic Queueing Theory

Similar documents
Review of Queuing Models

Queuing Theory. Using the Math. Management Science

λ λ λ In-class problems

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

Slides 9: Queuing Models

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Chapter 6 Queueing Models. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Advanced Computer Networks Lecture 3. Models of Queuing

Performance Evaluation of Queuing Systems

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 "

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

Introduction to Markov Chains, Queuing Theory, and Network Performance

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

QUEUING SYSTEM. Yetunde Folajimi, PhD

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Queuing Theory. 3. Birth-Death Process. Law of Motion Flow balance equations Steady-state probabilities: , if

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER I EXAMINATION MH4702/MAS446/MTH437 Probabilistic Methods in OR

Waiting Line Models: Queuing Theory Basics. Metodos Cuantitativos M. En C. Eduardo Bustos Farias 1

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

Lecture 20: Reversible Processes and Queues

YORK UNIVERSITY FACULTY OF ARTS DEPARTMENT OF MATHEMATICS AND STATISTICS MATH , YEAR APPLIED OPTIMIZATION (TEST #4 ) (SOLUTIONS)

Queuing Analysis. Chapter Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall

Readings: Finish Section 5.2

Computer Networks More general queuing systems

Systems Simulation Chapter 6: Queuing Models

6 Solving Queueing Models

Discrete Event and Process Oriented Simulation (2)

PBW 654 Applied Statistics - I Urban Operations Research

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

Chapter 5: Special Types of Queuing Models

QUEUING MODELS AND MARKOV PROCESSES

Introduction to Queueing Theory

ISyE 2030 Practice Test 2

A PARAMETRIC DECOMPOSITION BASED APPROACH FOR MULTI-CLASS CLOSED QUEUING NETWORKS WITH SYNCHRONIZATION STATIONS

Introduction to queuing theory

Introduction to Queueing Theory

Queueing Theory (Part 4)

Computer Systems Modelling

NATCOR: Stochastic Modelling

Introduction to queuing theory

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

Introduction to Queuing Theory. Mathematical Modelling

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

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

Classification of Queuing Models

Glossary availability cellular manufacturing closed queueing network coefficient of variation (CV) conditional probability CONWIP

Two Heterogeneous Servers Queueing-Inventory System with Sharing Finite Buffer and a Flexible Server

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

Queues and Queueing Networks

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

4.7 Finite Population Source Model

Continuous Time Processes

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

Computer Systems Modelling

Non Markovian Queues (contd.)

Quiz Queue II. III. ( ) ( ) =1.3333

CS 798: Homework Assignment 3 (Queueing Theory)

Markov Processes and Queues

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

Queuing Theory. Queuing Theory. Fatih Cavdur April 27, 2015

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science

7 Variance Reduction Techniques

Photo: US National Archives

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

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

Generation of Discrete Random variables

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

THIELE CENTRE. The M/M/1 queue with inventory, lost sale and general lead times. Mohammad Saffari, Søren Asmussen and Rasoul Haji

Buzen s algorithm. Cyclic network Extension of Jackson networks

1.225 Transportation Flow Systems Quiz (December 17, 2001; Duration: 3 hours)

Probability and Statistics Concepts

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

CSE 4201, Ch. 6. Storage Systems. Hennessy and Patterson

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

Homework 1 - SOLUTION

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

I, A BRIEF REVIEW ON INFINITE QUEUE MODEL M.

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

10.2 For the system in 10.1, find the following statistics for population 1 and 2. For populations 2, find: Lq, Ls, L, Wq, Ws, W, Wq 0 and SL.

M/M/1 Queueing systems with inventory

Richard C. Larson. March 5, Photo courtesy of Johnathan Boeke.

Session-Based Queueing Systems

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.

INDEX. production, see Applications, manufacturing

A Study on M x /G/1 Queuing System with Essential, Optional Service, Modified Vacation and Setup time

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

Class 11 Non-Parametric Models of a Service System; GI/GI/1, GI/GI/n: Exact & Approximate Analysis.

EE 368. Weeks 3 (Notes)

Design of Plant Layouts with Queueing Effects

Statistical Monitoring of Queuing Networks

IEOR 4106: Spring Solutions to Homework Assignment 7: Due on Tuesday, March 22.

Queuing Theory. The present section focuses on the standard vocabulary of Waiting Line Models.

THE HEAVY-TRAFFIC BOTTLENECK PHENOMENON IN OPEN QUEUEING NETWORKS. S. Suresh and W. Whitt AT&T Bell Laboratories Murray Hill, New Jersey 07974

Stochastic Models of Manufacturing Systems

The Performance Impact of Delay Announcements

CHAPTER 3 STOCHASTIC MODEL OF A GENERAL FEED BACK QUEUE NETWORK

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

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

Elementary queueing system

Link Models for Circuit Switching

Transcription:

After The Race The Boston Marathon is a local institution with over a century of history and tradition. The race is run on Patriot s Day, starting on the Hopkinton green and ending at the Prudential Center in Boston s Back Bay, 26.2 miles later. Key milestones along the route are Wellesley College, Heartbreak Hill, Kenmore Square and Commonwealth Avenue. In a typical year as many as ten thousand runners will participate. Planning for the race presents several logistical challenges for the race organizers. One major challenge is at the finish line. Runners as they cross the line may require a variety of services. A few will need medical attention for problems ranging from blisters and leg cramps to severe dehydration and possibly heat exhaustion. The less severe problems, like blisters, can be handled by nurse practitioners, and do not demand immediate attention. The more severe can often not wait. A runner with cramps and dehydration will need a cot and oral liquids; a runner in worse shape may need intravenous fluids and possibly even a trip to a nearby emergency room. Runners who are not in need of medical attention will need services so as to avoid the subsequent need for medical resources. At the finish runners need an area to continue to walk so that their muscles don t cramp. After a while, they will want a place to sit and rest, where they can start the process of replenishing the nutrients and liquids that their bodies lost during the race. They may often need to use rest rooms, as well as phones. Finally, they will need to retrieve their clothes from the storage vans that have traveled from Hopkinton to the Prudential center, and then to find a place to change. In 1978, 4391 runners started; there were 3872 male finishers and 186 female finishers within 4 hours of the start time, as shown below Time Window Male Finishers Female Finishers Total Finishers 2:10 2:20 33 0 33 2:20 2:30 129 0 129 2:30 2:40 316 0 316 2:40 2:50 629 5 634 2:50 3:00 942 24 966 3:00 3:10 507 22 529 3:10 3:20 475 43 518 3:20 3:30 448 33 481 3:30 3:40 217 33 250 3:40 3:50 117 15 132 3:50 4:00 59 11 70 The challenge is to design a service system to handle the runners as they finish the race. 15.763/1.269/ESD 269 1 Spring 2004

Basic Queueing Theory Notation We categorize single-stage queuing systems by a three-component descriptor, A/B/m, where A denotes the distribution of inter-arrival times, B denotes the distribution of service times, and m is the number of servers. The notation M denotes an exponential distribution (Memory-less or Markovian) and G denotes a general distribution (for i. i. d. times, we denote this by GI). When there is a maximum limit on the number of customers that can be in the system, we describe the queuing system by a four-component descriptor, A/B/m/k, for k being the limit. Assumptions and Analysis for M/M/1 queue Single server Memory-less or Markovian arrival process: At any time t, the probability of an arrival in the next instant is independent of all past history (i. e., memory-less). That is, for "small" t, the probability that the next arrival occurs in the time interval (t, t+ t) equals λ t, where λ is the arrival rate. The number of arrivals in a time interval of length τ is a Poisson random variable with mean λτ, and with variance λτ. The interarrival time between successive arrivals is an exponentially-distributed random variable with mean 1/λ, and with variance (1/λ) 2. Memory-less or Markovian service process: Suppose the service process for a job starts at time 0 and has not completed by time t. Then, for "small" t, the probability that the service completes in the time interval (t, t+ t) equals µ t, where µ is the service rate. The service time is an exponentially-distributed random variable with mean 1/µ, and with variance (1/µ) 2. 15.763/1.269/ESD 269 2 Spring 2004

An analysis of this queueing system is based on solving the "equations for motion" or probability transition equations for this system. Let Pr[n, t] denote the probability that there are n jobs or customers in the system at time t. Then the transition equations can be derived from the following general form (for small t): Pr[n, t + t] = Pr[n, t ] * (1 - λ t - µ t) + µ t * Pr[n+1, t ] + λ t * Pr[n-1, t ] Let Π(n) = Pr[n, t = ] be the steady state probability for queue lengths. Then, key results are as follows: Π(0) = 1 - ρ Π(n) = ρ n (1 - ρ) where ρ = λ/µ = the utilization level for the queue. Steady-state performance measures: L = expected number in system = ρ/(1 ρ) Q = expected number in queue (not in service) = ρ 2 /(1 ρ) W = expected waiting time in system =1/(µ λ) = [ 1/(1 ρ) ] [1/µ] D = expected waiting time in queue = λ/µ(µ λ) = [ ρ/(1 ρ) ] [1/µ] Note that L = λw, and Q = λd; i. e., Little's Law. M/M/1 model can be extended to multiple, parallel servers; to finite waiting rooms; to queue-dependent arrival or service rates. Model is useful for gross-level understanding of congestion effects, and for examining design or planning tradeoffs. 15.763/1.269/ESD 269 3 Spring 2004

Approximation for General Arrival Process, General Service Times (GI/G/1) For a GI/G/1 queue, we assume we know the mean and coefficient of variation (std. deviation/mean) for the interarrival times, and the mean and coefficient of variation for the service times ( the inter-completion time): 1/λ mean interarrival time 1/µ mean service time SCVa squared coefficient of variation for interarrival times SCVs squared coefficient of variation for service times Note: SCV = 1 for exponential random variables (as occurs in M/M/1 model) We assume that utilization is less than one: ρ = λ/µ < 1; and we assume no limit on the queue size. A useful approximation is as follows: D = expected waiting time in queue = [ ρ/(1 ρ) ] [1/µ] * (SCVa + SCVs)/2 From this approximation we get the other common performance measures: W = expected waiting time in system = D + 1/µ L = expected number in system = λw = λ * [D + 1/µ ] Q = expected number in queue (not in service) = λd = [ρ 2 /(1 ρ)] * [(SCVa + SCVs)/2 ] To model networks of queues, this model is often used as a building block, where the departure stream from one queue is the arrival stream for another. Here we need approximate the SCV for the departure stream: SCVd = (1 - ρ 2 ) SCVa + ρ 2 SCVs 15.763/1.269/ESD 269 4 Spring 2004

Assumptions and Analysis for M/G/ Queue Poisson arrivals with arrival rate λ; any distribution for service times, where τ is the mean service time; and an unlimited number of servers. The steady-state number of customers in the system (and in service) is a Poisson random variable with mean equal to λτ, and with variance equal to λτ. That is the steady-state probabilities are as follows: Pr [# in system = n] = (λτ) n * e -λτ /n! for n = 0, 1, 2,... For λτ > 20 or 30, this distribution is well approximated by a normal distribution. Assumptions and Analysis for M/G/k/k Queue Poisson arrivals with arrival rate λ; any distribution for service times, where τ is the mean service time; k servers; and a limit of at most k customers in the system at any point in time. That is, there is no waiting room, and a customer either enters service upon arrival or is lost due to the system being full (busy). The steady-state probabilities for the number of customers in the system (and in service) are as follows: λτ n ( ) Pr [ # in system = n ] = n! for n = 0, 1, 2,... k k ( λτ) i i! i=0 Pr [ # in system = k] is the "loss" probability: that is, the probability that a customer arrives and finds the system full. If the system is designed to have a very small loss probability, then the M/G/ model can be used to approximate the M/G/k/k system. 15.763/1.269/ESD 269 5 Spring 2004

Assumptions and Analysis for M/M/k Queue Poisson arrivals with arrival rate λ ; exponential service times with mean service rate µ (mean service time = 1/µ ); k servers. The system utilization is defined as ρ = λ /kµ Expected time in queue, k 1 ( kρ ) E [ D] = ( 1 kµ λ ρ ) k! π 0 k ( kρ ) 1 = ρ 1 π ( 1 ρ) 0 µ k 1 - ρ! where, π = 0 k ( k ρ ) ( ρ ) 1 k 1 i k 1 ( kρ ) + i = i!! 0 Approximation for M/G/k Queue A useful approximation is as follows: D = expected waiting time in queue = expected waiting time in queue for M/M/k queue * [(1 + SCVs)/2 ] From this approximation we can get the other common performance measures. 15.763/1.269/ESD 269 6 Spring 2004

Applications Facility planning for human service systems, e. g., hospitals Inventory management for one-for-one policies, e. g., spares provisioning. Capacity planning for telemarketing centers Fleet sizing for rail cars Crew planning for tending multiple machines (e.g., for repair, setup, loading) 15.763/1.269/ESD 269 7 Spring 2004