QUEUING SYSTEM. Yetunde Folajimi, PhD

Similar documents
Introduction to Queueing Theory

Introduction to Queueing Theory

Introduction to Queueing Theory

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

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 "

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

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

Queuing Theory. Using the Math. Management Science

Systems Simulation Chapter 6: Queuing Models

BIRTH DEATH PROCESSES AND QUEUEING SYSTEMS

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

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

Introduction to Markov Chains, Queuing Theory, and Network Performance

Data analysis and stochastic modeling

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

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

Non Markovian Queues (contd.)

Analysis of A Single Queue

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

Introduction to queuing theory

Chapter 11. Performance Modeling

7 Variance Reduction Techniques

Queues and Queueing Networks

Základy teorie front II

Chapter 5: Special Types of Queuing Models

PBW 654 Applied Statistics - I Urban Operations Research

Lecture 20: Reversible Processes and Queues

Introduction to Queuing Theory. Mathematical Modelling

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

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

Chapter 11. Performance Modeling

Queueing Theory and Simulation. Introduction

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

Figure 10.1: Recording when the event E occurs

Computer Networks More general queuing systems

Classification of Queuing Models

Elementary queueing system

Základy teorie front

Part II: continuous time Markov chain (CTMC)

Readings: Finish Section 5.2

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

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

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

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

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

CS 798: Homework Assignment 3 (Queueing Theory)

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

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

Chapter 2 Queueing Theory and Simulation

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

Introduction to queuing theory

Slides 9: Queuing Models

Queueing Theory (Part 4)

4.7 Finite Population Source Model

System with a Server Subject to Breakdowns

Link Models for Circuit Switching

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

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

Link Models for Packet Switching

Chapter 1. Introduction. 1.1 Stochastic process

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

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

Analysis of Software Artifacts

Probability and Statistics Concepts

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

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

Introduction to Queuing Networks Solutions to Problem Sheet 3

Computer Systems Modelling

LECTURE #6 BIRTH-DEATH PROCESS

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

6 Solving Queueing Models

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

Continuous Time Processes

Exercises Stochastic Performance Modelling. Hamilton Institute, Summer 2010

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

Performance Modelling of Computer Systems

Name of the Student:

Part I Stochastic variables and Markov chains

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

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

Stochastic Models of Manufacturing Systems

Basic Queueing Theory

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

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

Advanced Computer Networks Lecture 3. Models of Queuing

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

Stochastic process. X, a series of random variables indexed by t

Statistics 150: Spring 2007

Solutions to Homework Discrete Stochastic Processes MIT, Spring 2011

Stability and Rare Events in Stochastic Models Sergey Foss Heriot-Watt University, Edinburgh and Institute of Mathematics, Novosibirsk

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.

INDEX. production, see Applications, manufacturing

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

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

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

Review of Queuing Models

Markov processes and queueing networks

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

Simple queueing models

Transcription:

QUEUING SYSTEM Yetunde Folajimi, PhD

Part 2

Queuing Models Queueing models are constructed so that queue lengths and waiting times can be predicted They help us to understand and quantify the effect of variability in the arrival and service processes Also called waiting line models. Categories: single server queuing model Finite queue length, infinite queue length Multiple server queuing model Finite queue length, infinite queue length

Single server and multiple server with finite/infinite queue length Single server finite queue length model... Threshold Multiple server infinite queue length model

Finite and infinite population models Infinite population model No limit to the population size E.g. anybody can come for doctor s service in an hospital. Finite population model Finite Population model There is restriction on the population size E.g. a factory with thirty machines and a dedicated maintenance team infinite population situation are more common than finite population situations

Poisson Distribution and Exponential distribution Poisson process describes the distribution of the number of customers arriving in a fixed interval of time length, t. i.e. a process in which events occur continuously and independently at a constant average rate Exponential Distribution is the probability distribution that describes the time between events in a Poisson process, Given a Poisson Process, the following have an Exponential Distribution: the time until the first event the time from now until the next occurrence of an event the time interval between two successive events The following has a Poisson Distribution: the number of events in a given time period

Distribution of Arrival and Service Most times, arrivals follow a Poisson/ Markovian distribution Arrival rate = per hour (λ/h) Service times are exponential Service time = µ per hour (µ/h) Note: For efficiency of queuing system, λ/µ < 1, particularly for infinite queue length models.

Kendall's Notation for Classification of Queue Types proposed by D. G. Kendall (1953) and exists in several modifications The most comprehensive classification uses 6 symbols and are described by: A/B/s/q/c/p where: A The arrival pattern (distribution of intervals between arrivals). B is the service pattern (distribution of service time or duration). s Number of servers q c p The queuing discipline (FIFO, LIFO,...). Omitted for FIFO or if not specified. System capacity or maximum total number of customers which can be accommodated in system. The value is omitted for unlimited queues The population size (number of possible customers). This is omitted for open systems or infinite poplulation

Kendall's Notation for Classification of Queue Types The arrival patterns (A) and service patterns (B) can take any of following distribution types: M D E k G Poisson (Markovian) process with exponential distribution of intervals or service duration respectively Degenerate or Deterministic (known) arrivals and constant service duration Erlang Distribution of intervals or service duration. (k = shape parameter) General Distribution (arbitrary distribution) GI is a general (any) distribution with independent random values Notes: If G is used for A, it it sometimes written GI. c is usually infinite or a variable, as is p. If c or p are assumed to be infinite for modelling purposes, they can be omitted from the notation (which they frequently are). If p is included, c must be, to ensure that one is not confused between the two, but an infinity symbol is allowed for c

Kendall's Notation: Examples D / M / n Degenerate/deterministic distribution for the interarrival times of customers, an exponential distribution for service times of customers, and n servers. E k / E l / 1 Erlang distribution for the interarrival times of customers (with a shape parameter of k), an exponential distribution for service times of customers (with a shape parameter of l), and a single server. M / M / m / K / N Exponential distribution for the interarrival times of customers and the service times of customers, m servers, a maximum of K customers in the queueing system at once, and N potential customers in the calling population. D/M/1 Degenerate/Deterministic (known) input, one exponential server, one unlimited FIFO or unspecified queue, unlimited customer population. M/G/3/20 Poisson input, three servers with any distribution, maximum number of customers (capacity) 20, unlimited customer population. D/M/1/LIFO/10/50 Degenerate/Deterministic arrivals, one exponential server, queue is a stack of the maximum size 10, total number of customers 50.

Example: M/M/3/FIFO/20/1500 Time between successive arrivals is exponentially distributed. Service times are exponentially distributed. Three servers 20 Buffers = 3 service + I7 waiting After 20, all arriving jobs are lost Total of 1500 jobs that can be serviced. Service discipline is first-come-first-served. Defaults: Infinite buffer capacity Infinite population size F #CF S service discipline. G/G/1 = G/G/1/oo/oo/ FCFS service discipline G/G/1 = G/G/I/oo/oo}FCFS

Group Arrivals/Service Bulk arrivals/service M [x] : x represents the group size G [x] : a bulk arrival or service process with general inter-group times. Examples: M [x] /M/1 : Single server queue with bulk Poisson arrivals and exponential service times M/G [x] /m: Poisson arrival process, bulk service with general service time distribution, and m servers.

Key variables

Key variables (contd)

Key variables (contd)

Rules for all queues

Rules for all queues (contd.) 3. Number versus Time: If jobs are not lost due to insufficient buffers, Mean number of jobs in the system = Arrival rate Mean response time 4. Similarly, Mean number of jobs in the queue = Arrival rate Mean waiting time This is known as Little's law. 5. Time in System versus Time in Queue r = w + s r, w, and s are random variables. E[r] = E[w] + E[s] 6. If the service rate is independent of the number of jobs in the queue, Cov(w,s)=0 Var[r] = Var[w] + Var[s]

Little s Law

Proof of Little s Law

Application of Little s Law

Example A monitor on a disk server showed that the average time to satisfy an I/O request was 100 milliseconds. The I/O rate was about 100 requests per second. What was the mean number of requests at the disk server? Using Little's law: Mean number in the disk server = Arrival rate Response time = 100 (requests/second) (0.1 seconds) = 10 requests

Stochastic Process Process is a function of time Stochastic Process refers to Random variables, which are functions of time Example 1: n(t) = number of jobs at the CPU of a computer system Take several identical systems and observe n(t) The number n(t) is a random variable. Can find the probability distribution functions for n(t) at each possible value of t. Example 2: w(t) = waiting time in a queue

Types of Stochastic Process Discrete or Continuous State Processes Markov Processes Birth-death Processes Poisson Processes

Discrete or Continuous State Processes Discrete = Finite or Countable Number of jobs in a system n(t) = 0, 1, 2,... n(t) is a discrete state process The waiting time w(t) is a continuous state process. Stochastic Chain: discrete state stochastic process

Markov Process Future states are independent of the past and depend only on the present. Named after A. A. Markov who defined and analyzed them in 1907. Markov Chain: discrete state Markov process Markov It is not necessary to know how long the process has been in the current state State time has a memoryless (exponential) distribution M/M/m queues can be modeled using Markov processes. The time spent by a job in such a queue is a Markov process the number of jobs in the queue is a Markov chain

Birth-Death Process The discrete space Markov processes in which the transitions are restricted to neighboring states Process in state n can change only to state n+1 or n-1. Example: the number of jobs in a queue with a single server and individual arrivals (not bulk arrivals)

Poisson Process Inter-arrival time s = IID and exponential number of arrivals n over a given interval (t, t+x) has a Poisson distribution arrival = Poisson process or Poisson stream

Relationship amongst stochastic process