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

Similar documents
Photo: US National Archives

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 "

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

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

Queues and Queueing Networks

PBW 654 Applied Statistics - I Urban Operations Research

Non Markovian Queues (contd.)

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

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

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

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

Slides 9: Queuing Models

Introduction to Queueing Theory with Applications to Air Transportation Systems

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

Introduction to Queueing Theory

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

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

NATCOR: Stochastic Modelling

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

Introduction to Queueing Theory

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

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

Name of the Student:

Elementary queueing system

M/G/1 and Priority Queueing

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

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

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

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.

4.7 Finite Population Source Model

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

Figure 10.1: Recording when the event E occurs

Solutions to COMP9334 Week 8 Sample Problems

Link Models for Circuit Switching

Computer Networks More general queuing systems

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

λ λ λ In-class problems

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

Chapter 1. Introduction. 1.1 Stochastic process

11 The M/G/1 system with priorities

Logistical and Transportation Planning Methods 1.203J/6.281J/13.665J/15.073J/16.76J/ESD.216J

Intro to Queueing Theory

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

Data analysis and stochastic modeling

Q = (c) Assuming that Ricoh has been working continuously for 7 days, what is the probability that it will remain working at least 8 more days?

Queuing Theory. Using the Math. Management Science

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

Simple queueing models

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

Chapter 2 Queueing Theory and Simulation

Performance Evaluation of Queuing Systems

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

Part II: continuous time Markov chain (CTMC)

Chapter 5: Special Types of Queuing Models

Review of Queuing Models

Lecture 20: Reversible Processes and Queues

Classification of Queuing Models

SOLUTIONS IEOR 3106: Second Midterm Exam, Chapters 5-6, November 8, 2012

Systems Simulation Chapter 6: Queuing Models

IOE 202: lectures 11 and 12 outline

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

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

Classical Queueing Models.

λ 2 1 = 2 = 2 2 2P 1 =4P 2 P 0 + P 1 + P 2 =1 P 0 =, P 1 =, P 2 = ρ 1 = P 1 + P 2 =, ρ 2 = P 1 + P 2 =

QUEUING SYSTEM. Yetunde Folajimi, PhD

IS 709/809: Computational Methods in IS Research Fall Exam Review

Queueing Systems: Lecture 6. Lecture Outline

Continuous Time Processes

Introduction to Queueing Theory

Exact Simulation of the Stationary Distribution of M/G/c Queues

Chapter 2. Poisson Processes. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

Readings: Finish Section 5.2

Section 1.2: A Single Server Queue

Stationary remaining service time conditional on queue length

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

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

NEW FRONTIERS IN APPLIED PROBABILITY

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

Computer Systems Modelling

Introduction to queuing theory

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

CS 798: Homework Assignment 3 (Queueing Theory)

Derivation of Formulas by Queueing Theory

Exercises Solutions. Automation IEA, LTH. Chapter 2 Manufacturing and process systems. Chapter 5 Discrete manufacturing problems

P (L d k = n). P (L(t) = n),

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

The Behavior of a Multichannel Queueing System under Three Queue Disciplines

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

Waiting Time Analysis of A Single Server Queue in an Out- Patient Clinic

Other properties of M M 1

Introduction to Markov Chains, Queuing Theory, and Network Performance

Advanced Computer Networks Lecture 3. Models of Queuing

2905 Queueing Theory and Simulation PART III: HIGHER DIMENSIONAL AND NON-MARKOVIAN QUEUES

QUEUING MODELS AND MARKOV PROCESSES

ECE 3511: Communications Networks Theory and Analysis. Fall Quarter Instructor: Prof. A. Bruce McDonald. Lecture Topic

Queueing Theory and Simulation. Introduction

Performance Modelling of Computer Systems

Basic Queueing Theory

Link Models for Packet Switching

Engineering Mathematics : Probability & Queueing Theory SUBJECT CODE : MA 2262 X find the minimum value of c.

Transcription:

Queueing Systems: Lecture 3 Amedeo R. Odoni October 18, 006 Announcements PS #3 due tomorrow by 3 PM Office hours Odoni: Wed, 10/18, :30-4:30; next week: Tue, 10/4 Quiz #1: October 5, open book, in class; options: 10-1 or 10:30-1:30 Old quiz problems and solutions: posted Thu evening along with PS #3 solutions Quiz coverage for Chapter 4: Sections 4.0 4.6 (inclusive); Prof. Barnett s lecture NOT included

Lecture Outline Remarks on Markovian queues M/E /1 example M/G/1: introduction, epochs and transition probabilities M/G/1: derivation of important expected values Numerical example Introduction to M/G/1 systems with priorities Reference: Section 4.7 Variations and extensions of birth-and-death queueing systems Huge number of extensions on the previous models Most common is arrival rates and service rates that depend on state of the system; some lead to closed-form expressions Systems which are not birth-and-death, but can be modeled by continuous time, discrete state Markov processes can also be analyzed [ phase systems ] State representation is the key (e.g. M/E k /1 or more than one state variables P.S. #3)

M/G/1: Background Poisson arrivals; rate λ General service times, S; f S (s); E[S]=1/μ; σ S Infinite queue capacity The system is NOT a continuous time Markov process (most of the time it has memory ) We can, however, identify certain instants of time ( epochs ) at which all we need to know is the number of customers in the system to determine the probability that at the next epoch there will be 0, 1,,, n customers in the system Epochs = instants immediately following the completion of a service M/G/1: Transition probabilities for system states at epochs (1) N = number of customers in the system at a random epoch, i.e., just after a service has been completed N' = number of customers in the system at the immediately following epoch R = number of new customers arriving during the service time of the first customer to be served after an epoch N' = N + R 1 if N > 0 N' = R if N = 0 Note: make sure to understand how R is defined

Epochs and the value of R N Between t1 and t, R= Between t5 and t6, R=0 t1 t t3 t4 t5 t6 t M/G/1: Transition probabilities for system states at epochs () Transition probabilities can be written in terms of the probabilities: P[number of new arrivals during a service time = r] = (λt) r e λt α r = f S (t) dt for r = 0, 1,,... 0 r! Can now draw a state transition diagram at epochs

A Critical Observation The probabilities P[N=n] of having n customers in the system at a random epoch are equal to the steady state probabilities, P n, of having n customers in the system at any random time! The PASTA property: Poisson arrivals see time averages Can use simple arguments to obtain (as for M/M/1 systems): P 0 = 1- (λ / μ) = 1- ρ and E[B] = 1/(μ λ) = 1/(1- ρ) Can also derive closed-form expressions for L, W, L q and W q Probability the Server is Busy Suppose we have been watching the system for a long time, T. ρ, the utilization ratio, is the long-run fraction of time (= the probability) the server is busy; this means, assuming the system reaches steady state: ρ = amount of time server is busy = λ T E[S] = λ E[S] = λ T T μ

Idle and Busy Periods; E[B] No. of customers Observe a large number, N, of busy periods: ρ = N E[ B] E [ B] ( N E[ B] + N / λ) ( E [ B] + 1/ λ) = ρ / λ 1 E[B] = = 1 ρ μ λ I B I B I B t Derivation of L and W: M/G/1 (assumes FCFS) T = total amount of time a randomly arriving customer j will spend in the M/G/1 system T 1 = remaining service time of customer currently in service T = the time required to serve the customers waiting ahead of j in the queue T 3 = the service time of j Clearly: T = T 1 + T + T 3 W = E[T] = E[T 1 ] + E[T ] + E[T 3 ]

Derivation of L and W: M/G/1 [] E[T 3 ] = E[S] Given that there are already n customers in the system when j arrives (and since one customer is being served while n 1 are waiting) E[T n] = (n 1) E[S], n 1 E[T n] = 0, n = 0 Thus, E[T ] = E[T n] P n = (n 1) E[S] P n = E[S] np n P n n n 1 n 1 n 1 E[T ] = E[S] L E[S] ρ Derivation of L and W: M/G/1 [3] From our random incidence result (.66): E[T n] = σ S + ( E [ S ]) 1, n 1 E[ S] E[T 1 n] = 0, n = 0 Thus, giving: E[T ] = n E[T n] P = n 1 σ S 1 1 n n + ( E [ S E[ S]]) P = σ S + ( E [ S ]) ρ E[ S]

Derivation of L and W: M/G/1 [4] So we finally have: L = λw (Little s theorem) (1) W = E[T] = E[T 1 ] + E[T ] + E[T 3 ] () and solving (1) and (), we obtain: L = ρ + ρ + λ σ (1 ρ) S (ρ < 1) 1 ρ + λ σ W = + S μ λ(1 ρ) Expected values for M/G/1 ρ + λ σ L = ρ + S (ρ < 1) (1 ρ) 1 ρ + λ σ W = + S μ λ(1 ρ ) W q = ρ + λ σ S = ρ (1 + C S ) 1 ρ = λ(1 ρ ) λ(1 ρ) μ (1 ρ) (1 + C S ) L q = ρ + λ σ (1 ρ) S σ S Note : C S = E [ S] = μ σ S

Dependence on Variability (Variance) of Service Times Expected delay ρ = 1.0 Demand Runway Example Single runway, mixed operations E[S] = 75 seconds; σ S = 5 seconds μ = 3600 / 75 = 48 per hour Assume demand is relatively constant for a sufficiently long period of time to have approximately steady-state conditions Assume Poisson process is reasonable approximation for instants when demands occur

Estimated expected queue length and expected waiting time λ (per hour) ρ L q L q W q W q (% change) (seconds) (% change) 30 0.65 0.58 69 30.3 0.6315 0.60 3.4% 71.9% 36 0.75 1.5 15 36.36 0.7575 1.31 4.8% 130 4% 4 0.875 3.40 9 4.4 0.88375 3.73 9.7% 317 8.6% 45 0.9375 7.81 65 45.45 0.946875 9.38 0.1% 743 18.9% Can also estimate PHCAP 40.9 per hour M/G/1 system with non-preemptive priorities: background r classes of customers; class 1 is highest priority, class r is lowest Poisson arrivals for each class k; rate λ k General service times, S k, for each class; f Sk (s); E[S k ]=1/μ k ; E[S k ] FIFO service for each class Infinite queue capacity for each class Define: ρ k = λ k /μ k Assume for now that: ρ = ρ 1 + ρ +.+ ρ r <1

A queueing system with r priority classes λ 1 x x 1 λ x x x λ k 1 x k-1 Service λ k k Facility λ k+1 x x x x k+1 λ r x x r