Queueing Theory Carey Williamson Department of Computer Science

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Introduction to Queuing Theory
Chapter Queueing Notation
Queueing Theory: Recap
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
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.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.

Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Introduction to Queuing Theory
M EAN -V ALUE A NALYSIS Manijeh Keshtgary O VERVIEW Analysis of Open Queueing Networks Mean-Value Analysis 2.
Introduction to Queuing Theory
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
Introduction to Operations Research
Queueing Analysis of Production Systems (Factory Physics)
Introduction to Queueing Theory
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
TexPoint fonts used in EMF.
1 Elements of Queuing Theory The queuing model –Core components; –Notation; –Parameters and performance measures –Characteristics; Markov Process –Discrete-time.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
OMG Operations Management Spring 1997 CLASS 4: THE IMPACT OF VARIABILITY Harry Groenevelt.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Introduction Definition M/M queues M/M/1 M/M/S M/M/infinity M/M/S/K.
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.
Random Variables r Random variables define a real valued function over a sample space. r The value of a random variable is determined by the outcome of.
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,
Queuing Theory Simulation & Modeling.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
Lecture 14 – Queuing Networks
CSE 538 Instructor: Roch Guerin
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Queuing Theory Queuing Theory.
CPSC 531: System Modeling and Simulation
Internet Queuing Delay Introduction
Birth-Death Process Birth – arrival of a customer to the system
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
Computer Systems Performance Evaluation
TexPoint fonts used in EMF.
COMP60611 Fundamentals of Parallel and Distributed Systems
Queuing Theory By: Brian Murphy.
Queuing Analysis Two analytical techniques can be employed to study queuing processes: Shock wave analysis Demand-capacity process is deterministic Suited.
Lecture 14 – Queuing Networks
COMP60621 Designing for Parallelism
Computer Systems Performance Evaluation
Queuing Networks Mean Value Analysis
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Queueing Theory Frank Y. S. Lin Information Management Dept.
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 Carey Williamson Department of Computer Science University of Calgary Winter 2018

Plan: Outline Introduce basics of Queueing Theory Define notation and terminology used Discuss properties of queueing models Show examples of queueing analysis: M/M/1 queue Variations on the M/G/1 queue Open queueing network models Closed queueing network models

Queueing Theory Basics Queueing theory provides a very general framework for modeling systems in which customers must line up (queue) for service (use of resource) Banks (tellers) Restaurants (tables and seats) Computer systems (CPU, disk I/O) Networks (Web server, router, WLAN)

Queueing model represents: Queue-based Models Queueing model represents: Arrival of jobs (customers) into system Service time requirements of jobs Waiting of jobs for service Departures of jobs from the system Typical diagram: Customer Arrivals Departures Server Buffer

Why Queue-based Models? In many cases, the use of a queueing model provides a quantitative way to assess system performance Expected waiting time for service Number of buffers required to limit loss of customers Response time (e.g., Web page download time) Throughput (e.g., job completions per second) Reveals key system insights (properties) Often with efficient, closed-form calculation

Caveats and Assumptions In many cases, using a queueing model has the following implicit underlying assumptions: Poisson arrival process Exponential service time distribution Single server Infinite capacity queue First-Come-First-Serve (FCFS) discipline (a.k.a. FIFO) Note: important role of memoryless property!

Advanced Queueing Models There is a tonne of published work on variations of the basic model: Correlated arrival processes General (G) service time distributions Multiple servers Vacationing servers Finite capacity systems Other scheduling disciplines (non-FIFO) We will start with the basics!

Examples: M/M/1, M/G/1, M/M/c/c Queue Notation Queues are concisely described using the Kendall notation, which specifies: Arrival process for jobs {M, D, G, …} Service time distribution {M, D, G, …} Number of servers {1, n} Storage capacity (buffers) {B, infinite} Service discipline {FIFO, PS, SRPT, …} Examples: M/M/1, M/G/1, M/M/c/c

The M/M/1 Queue Assumes Poisson arrival process, exponential service times, single server, FCFS service discipline, infinite capacity for storage, with no loss Notation: M/M/1 Markovian arrival process (Poisson) Markovian service times (exponential) Single server (FCFS, infinite capacity)

The M/M/1 Queue (cont’d) Arrival rate: λ (e.g., customers/sec) Inter-arrival times are exponentially distributed and independent with mean 1 / λ Service rate: μ (e.g., customers/sec) Service times are exponentially distributed and independent with mean 1 / μ System load: ρ = λ / μ 0 ≤ ρ ≤ 1 (also known as utilization factor) Stability criterion: ρ < 1 (single server systems)

Queue Performance Metrics N: Avg number of customers in system as a whole, including any in service Q: Avg number of customers in the queue (only), excluding any in service W: Average waiting time in queue (only) T: Avg time spent in system as a whole, including waiting time plus service time Note: Little’s Law: N = λ T

Average number of customers in the system: N = ρ / (1 – ρ) M/M/1 Queue Results Average number of customers in the system: N = ρ / (1 – ρ) Variance: Var(N) = ρ / (1 - ρ)2 Waiting time: W = ρ / (μ (1 – ρ)) Time in system: T = 1 / (μ (1 – ρ))

The M/D/1 Queue Assumes Poisson arrival process, deterministic (constant) service times, single server, FCFS service discipline, infinite capacity for storage, no loss Notation: M/D/1 Markovian arrival process (Poisson) Deterministic service times (constant) Single server (FCFS, infinite capacity)

Average number of customers: Q = ρ/(1 – ρ) – ρ2 / (2 (1 - ρ)) M/D/1 Queue Results Average number of customers: Q = ρ/(1 – ρ) – ρ2 / (2 (1 - ρ)) Waiting time: W = x ρ / (2 (1 – ρ)) where x is the mean service time Note that lower variance in service time means less queueing occurs 

The M/G/1 Queue Assumes Poisson arrival process, general service times, single server, FCFS service discipline, infinite capacity for storage, with no loss Notation: M/G/1 Markovian arrival process (Poisson) General service times (must specify F(x)) Single server (FCFS, infinite capacity)

Average number of customers: M/G/1 Queue Results Average number of customers: Q = ρ + ρ2 (1 + C2) / (2 (1 - ρ)) where C is the Coefficient of Variation (CoV) for the service-time distribution F(x) Waiting time: W = x ρ (1 + C2 ) / (2 (1 – ρ)) where x is the mean service time from distribution F(x) Note that variance of the service time distn could be higher or lower than for exponential distn!

The G/G/1 Queue Assumes general arrival process, general service times, single server, FCFS service discipline, infinite capacity for storage, with no loss Notation: G/G/1 General arrival process (specify G(x)) General service times (must specify F(x)) Single server (FCFS, infinite capacity)

Queueing Network Models So far we have been talking about a queue in isolation In a queueing network model, there can be multiple queues, connected in series or in parallel (e.g., CPU, disk, teller) Two versions: Open queueing network models Closed queueing network models

Open Queueing Network Models Assumes that arrivals occur externally from outside the system Infinite population, with a fixed arrival rate, regardless of how many are in the system Unbounded number of customers are permitted within the system Departures leave the system (forever)

Closed Queueing Network Models Assumes that there is a finite number of customers, in a self-contained world Finite population; arrival rate varies depending on how many and where Fixed number of customers (N) that recirculate in the system (forever) Can be analyzed using Mean Value Analysis (MVA), recurrence relations, and balance equations