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 "

Similar documents
Performance Evaluation of Queuing Systems

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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

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

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

QUEUING SYSTEM. Yetunde Folajimi, PhD

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

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

Queues and Queueing Networks

Data analysis and stochastic modeling

Introduction to Queueing Theory

Classical Queueing Models.

Introduction to Queueing Theory

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

λ λ λ In-class problems

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

Introduction to queuing theory

Introduction to Markov Chains, Queuing Theory, and Network Performance

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

Elementary queueing system

Non Markovian Queues (contd.)

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

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

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

Introduction to Queueing Theory

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

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

Computer Networks More general queuing systems

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

Introduction to Queueing Theory with Applications to Air Transportation Systems

Link Models for Circuit Switching

Introduction to queuing theory

PBW 654 Applied Statistics - I Urban Operations Research

Queueing Theory and Simulation. Introduction

Part II: continuous time Markov chain (CTMC)

Chapter 1. Introduction. 1.1 Stochastic process

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

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

Solutions to COMP9334 Week 8 Sample Problems

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

Statistics 150: Spring 2007

CS 798: Homework Assignment 3 (Queueing Theory)

Link Models for Packet Switching

Chapter 2 Queueing Theory and Simulation

Contents LIST OF TABLES... LIST OF FIGURES... xvii. LIST OF LISTINGS... xxi PREFACE. ...xxiii

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

Part I Stochastic variables and Markov chains

Computer Systems Modelling

Queuing Theory. Using the Math. Management Science

Performance analysis of queueing systems with resequencing

A Queueing System with Queue Length Dependent Service Times, with Applications to Cell Discarding in ATM Networks

Performance Modelling of Computer Systems

6 Solving Queueing Models

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

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

Analysis of Software Artifacts

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

M/G/1 and Priority Queueing

Figure 10.1: Recording when the event E occurs

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

Lecture 20: Reversible Processes and Queues

J. MEDHI STOCHASTIC MODELS IN QUEUEING THEORY

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?

Stationary remaining service time conditional on queue length

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

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

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

IEOR 6711, HMWK 5, Professor Sigman

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

Readings: Finish Section 5.2

Continuous Time Processes

Homework 1 - SOLUTION

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.

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

LIMITS FOR QUEUES AS THE WAITING ROOM GROWS. Bell Communications Research AT&T Bell Laboratories Red Bank, NJ Murray Hill, NJ 07974

Intro to Queueing Theory

EE 368. Weeks 3 (Notes)

Základy teorie front

Chapter 5. Elementary Performance Analysis

Lecture Notes of Communication Network I y: part 5. Lijun Qian. Rutgers The State University of New Jersey. 94 Brett Road. Piscataway, NJ

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

Systems Simulation Chapter 6: Queuing Models

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

Review of Queuing Models

Slides 9: Queuing Models

Stochastic Models of Manufacturing Systems

Birth-Death Processes

4.7 Finite Population Source Model

COMP9334: Capacity Planning of Computer Systems and Networks

Derivation of Formulas by Queueing Theory

LECTURE #6 BIRTH-DEATH PROCESS

Multiaccess Problem. How to let distributed users (efficiently) share a single broadcast channel? How to form a queue for distributed users?

Analysis of A Single Queue

Chapter 5. Continuous-Time Markov Chains. Prof. Shun-Ren Yang Department of Computer Science, National Tsing Hua University, Taiwan

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

The Behavior of a Multichannel Queueing System under Three Queue Disciplines

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

M/M/1 Retrial Queueing System with Negative. Arrival under Erlang-K Service by Matrix. Geometric Method

Simulation of Discrete Event Systems

An M/M/1 Queue in Random Environment with Disasters

Transcription:

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 "

Little s Law a(t): the process that counts the number of arrivals up to t. d(t): the process that counts the number of departures up to t. N(t)= a(t)- d(t) a(t) d(t) N(t) Area (t) Time t Average arrival rate (up to t) " t = a(t)/t Average time each customer spends in the system T t = (t)/a(t) Average number in the system N t = (t)/t Little s Law d(t) a(t) N(t) Area (t) Time t Taking the limit as t goes to infinity Expected number of customers in the system Expected time in the system Arrival rate IN the system

Generality of Little s Law Little s Law is a pretty general result It does not depend on the arrival process distribution It does not depend on the service process distribution It does not depend on the number of servers and buffers in the system. " Aggregate Arrival rate Queueing Network Specification of Queueing Systems Customer arrival and service stochastic models Structural Parameters " Number of servers " Storage capacity Operating policies " Customer class differentiation (are all customers treated the same or do some have priority over others?) " Scheduling/Queueing policies (which customer is served next) " Admission policies (which/when customers are admitted)

Queueing System Notation Arrival Process M: Markovian D: Deterministic Er: Erlang G: General A/B/m/K/N Service Process M: Markovian D: Deterministic Er: Erlang G: General Number of servers m=1,2, Storage Capacity K= 1,2, (if then it is omitted) Number of customers N= 1,2, (for closed networks otherwise it is omitted) Performance Measures of Interest We are interested in steady state behavior " Even though it is possible to pursue transient results, it is a significantly more difficult task. E[S] average system time (average time spent in the system) E[W] average waiting time (average time spent waiting in queue(s)) E[X] average queue length E[U] average utilization (fraction of time that the resources are being used) E[R] average throughput (rate that customers leave the system) E[L] average customer loss (rate that customers are lost or probability that a customer is lost)

Recall the Birth-Death Chain Example 0 0 1 1 1 2 2 At steady state, we obtain 2 j-2 j-1 j j-1 j 3 j-1 j j+1 In general Making the sum equal to 1 Solution exists if M/M/1 Example Meaning: Poisson Arrivals, exponentially distributed service times, one server and infinite capacity buffer. 0 1 2 j-1 Using the birth-death result " j =" and j =, we obtain j Therefore for "/ = # <1

M/M/1 Performance Metrics Server Utilization Throughput Expected Queue Length M/M/1 Performance Metrics Average System Time Average waiting time in queue

M/M/1 Performance Metrics Examples =0.5 $[S] $[W] $[%] PASTA Property PASTA: Poisson Arrivals See Time Averages Let & j (t)= Pr{ System state X(t)= j } Let a j (t)= Pr{ Arriving customer at t finds X(t)= j } In general & j (t) " a j (t) " Suppose a D/D/1 system with interarrival times equal to 1 and service times equal to 0.5 a a a a 0 0.5 1.0 1.5 2.0 2.5 3.0 Thus & 0 (t)= 0.5 and & 1 (t)= 0.5 while a 0 (t)= 1 and a 1 (t)= 0

Theorem For a queueing system, when the arrival process is Poisson and independent of the service process then, the probability that an arriving customer finds j customers in the system is equal to the probability that the system is at state j. In other words, Proof: Arrival occurs in interval (t,#t) M/M/m Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, m identical servers and infinite capacity buffer. 1 m 0 1 2 2 3 m m m m+1 m

M/M/m Queueing System Using the general birth-death result Letting #="/(m) we get To find & 0 M/M/m Performance Metrics Server Utilization

M/M/m Performance Metrics Throughput Expected Queue Length Using Little s Law Average Waiting time in queue M/M/m Performance Metrics Queueing Probability Erlang C Formula

Example Suppose that packets arrive according to a Poisson process with rate "=1. You are given the following two options, " Install a single transmitter with transmission capacity 1 = 1.5 " Install two identical transmitters with transmission capacity 2 = 0.75 and 3 = 0.75 " Split the incoming traffic to two queues each with probability 0.5 and have 2 = 0.75 and 3 = 0.75 transmit from each queue. " 1 # " 2 " " 2 3 C 3 Example Throughput It is easy to see that all three systems have the same throughput E[R A ]= E[R B ]= E[R C ]=" Server Utilization Therefore, each server is 2/3 utilized Therefore, all transmitters are similarly loaded.

Example Probability of being idle For each transmitter Example Queue length and delay For each queue

M/M/$ Queueing System Special case of the M/M/m system with m going to $ 0 1 2 2 3 m m (m+1) m+1 Let #="/ then, the state probabilities are given by System Utilization and Throughput M/M/$ Performance Metrics Expected Number in the System Number of busy servers Using Little s Law No queueing

M/M/1/K Finite Buffer Capacity Meaning: Poisson Arrivals, exponentially distributed service times, one server and finite capacity buffer K. 0 1 Using the birth-death result " j =" and j =, we obtain 2 K-1 K Therefore for "/ = # M/M/1/K Performance Metrics Server Utilization Throughput Blocking Probability Probability that an arriving customer finds the queue full (at state K)

M/M/1/K Performance Metrics Expected Queue Length System time Net arrival rate (no losses) M/M/m/m Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, m servers and no storage capacity. 0 1 2 Using the birth-death result " j =" and j =, we obtain 2 3 (m-1) m-1 m m Therefore for "/ = #

M/M/m/m Performance Metrics Blocking Probability Erlang B Formula Probability that an arriving customer finds all servers busy (at state m) Throughput M/M/1//N Closed Queueing System Meaning: Poisson Arrivals, exponentially distributed service times, one server and the number of customers are fixed to N. Using the birth-death result, we obtain " 1 N N (N-1) (N-2) 2 0 1 2 N-1 N

M/M/1//N Closed Queueing System N 0 1 Response Time (N-1) 2 (N-2) " Time from the moment the customer entered the queue until it received service. 2 For the queue, using Little s law we get, N-1 N In the thinking part, Therefore