1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Chapter Queueing Notation
Queueing Theory: Recap
Queueing Model 박희경.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
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.
Queueing Theory: Part I
Queueing Theory Chapter 17.
Lecture 11 Queueing Models. 2 Queueing System  Queueing System:  A system in which items (or customers) arrive at a station, wait in a line (or queue),
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
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.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?

Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Introduction to Queuing Theory
Queueing Theory Queueing theory definitions (Bose) “the basic phenomenon of queueing arises whenever a shared facility needs to be accessed for.
M EAN -V ALUE A NALYSIS Manijeh Keshtgary O VERVIEW Analysis of Open Queueing Networks Mean-Value Analysis 2.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
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.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
Introduction to Operations Research
Queueing Analysis of Production Systems (Factory Physics)
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
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.
Chapter 6 Queueing Models
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.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
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.
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Birth-Death Process Birth – arrival of a customer to the system
Queueing Theory Carey Williamson Department of Computer Science
Queuing models Basic definitions, assumptions, and identities
System Performance: Queuing
Queuing models Basic definitions, assumptions, and identities
TexPoint fonts used in EMF.
Queuing Networks Mean Value Analysis
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
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:

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

2 Queueing Theory Basics H 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)

3 Queue-based Models H 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 H Typical diagram: Customer Arrivals Departures Buffer Server

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

5 Caveats and Assumptions H In many cases, using a queuing 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 (also known as FIFO: First-In-First-Out) H Note: important role of memoryless property!

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

7 Queue Notation H 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, …} H Examples: M/M/1, M/G/1, M/M/c/c

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

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

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

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

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

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

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

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

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

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

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

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