CSE 538 Instructor: Roch Guerin – Office hours: Mon & Wed 4:00-5:00pm in Bryan 509 TA: Junjie Liu

Slides:



Advertisements
Similar presentations
Chapter 13 Queueing Models
Advertisements

Introduction to Queuing Theory
Chapter Queueing Notation
Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.
1 Chapter 8 Queueing models. 2 Delay and Queueing Main source of delay Transmission (e.g., n/R) Propagation (e.g., d/c) Retransmission (e.g., in ARQ)
M / M / 1 M - Memoryless* arrival process M - Memoryless* service time distribution 1 - One server * Memoryless / Deterministic / General Queueing System.
Queuing Theory For Dummies
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
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
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
1 Multiple class queueing networks Mean Value Analysis - Open queueing networks - Closed queueing networks.
Module 2.0: Modeling of Network Components. Queueing theory  Basics : average number of packets 1/  : mean service time per packet [s] arriving per.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2012 (Term 112)
Queueing Theory.
Chapter 9: Queuing Models

Queuing Models and Capacity Planning
___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Introduction to Queuing Theory
Eurecom, Sophia-Antipolis Thrasyvoulos Spyropoulos / Introduction to Continuous-Time Markov Chains and Queueing Theory.
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  …
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
Altiok / Melamed Simulation Modeling and Analysis with Arena Chapter 8 1 SIMULATION MODELING AND ANALYSIS WITH ARENA T. Altiok and B. Melamed Chapter 8.
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.
 Birth Death Processes  M/M/1 Queue  M/M/m Queue  M/M/m/B Queue with Finite Buffers  Results for other Queueing systems 2.
MIT Fun queues for MIT The importance of queues When do queues appear? –Systems in which some serving entities provide some service in a shared.
Introduction to Operations Research
Lecture 10: Queueing Theory. Queueing Analysis Jobs serviced by the system resources Jobs wait in a queue to use a busy server queueserver.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Manijeh Keshtgary. Queuing Network: model in which jobs departing from one queue arrive at another queue (or possibly the same queue)  Open and Closed.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
TexPoint fonts used in EMF.
Modeling and Analysis of Computer Networks
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
Queuing Networks Jean-Yves Le Boudec 1. Networks of Queues Stability Queuing networks are frequently used models The stability issue may, in general,
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
Computer Networking Queueing (A Summary from Appendix A) Dr Sandra I. Woolley.
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Chapter 6 Queueing Models
(C) J. M. Garrido1 Objects in a Simulation Model There are several objects in a simulation model The activate objects are instances of the classes that.
1 1 Slide Chapter 12 Waiting Line Models n The Structure of a Waiting Line System n Queuing Systems n Queuing System Input Characteristics n Queuing System.
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.
CS 4594 Broadband Intro to Queuing Theory. Kendall Notation Kendall notation: [Kendal 1951] A/B/c/k/m/Z A = arrival probability distribution (most often.
Problem #7 To support National Heart Week, the Heart Association plans to install a free blood pressure testing booth in El Con Mall for the week. Previous.
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.
Queuing Models.
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.
CPE 619 Introduction to Queuing Theory
CSE 538 Instructor: Roch Guerin
B.Ramamurthy Appendix A
Chapter 6 Queuing Models.
Queueing Theory Carey Williamson Department of Computer Science
TexPoint fonts used in EMF.
Queueing networks.
Carey Williamson Department of Computer Science University of Calgary
CSE 550 Computer Network Design
Presentation transcript:

CSE 538 Instructor: Roch Guerin – Office hours: Mon & Wed 4:00-5:00pm in Bryan 509 TA: Junjie Liu – Office hours: TBD Classes: Tuesday & Thursday 10:00-11:30am in Lopata 202 Textbook: M. Harchol-Balter, "Performance Modeling and Design of Computer Systems." Cambridge University Press (2013), ISBN: Class wiki: 1

Queueing Nomenclature Arrival rate (λ), average (mean) inter-arrival time (1/λ) Service rate (μ), average (mean) service time (1/μ) Service disciplines: – First-in-first-out (FIFO) or fist-come-first-served (FCFS) – Last-in-first-out (LIFO) – Random-in-random-out (RIRO) – Processor sharing (PS) – Work conserving (or not) Queueing system notation: A/B/c/d, e.g., M/M/1/∞ or M/M/1 – A: type of arrival process – B: service time distribution – c: number of servers – d: maximum number of jobs λ μ Arrivals Departures Server(s) Service discipline Waiting facility 2

Queueing Metrics Waiting time or queueing time or delay: T Q or W – Time spent in queue (from arrival to access to server) Response time or sojourn time or time in system: T – How long a job spends in the system from arrival to departure – Equal to waiting time + service time Number in the system: N – Number of jobs in the queue and server(s) Number in the queue: N Q – Number of jobs waiting to access server Server/device utilization or load: ρ – Fraction of time the server is busy (at least one job in it) Server/device throughput: X – Rate of (service) completions at server, i.e., jobs/sec 3

More on Utilization & Throughput Server utilization = Average # jobs in service: ρ = E[N S ] – Utilization = fraction of time server is busy ~ probability server is busy: ρ = P(N S = 1) – When server is busy: One job in server (N S = 1) – When server is not busy: Zero job in server (N S = 0) – E[N S ] = P(N S = 1)  1+ P(N S = 0)  0 = ρ  1 = ρ 4 C(τ) jobs in τ for a total service time of B(τ) = S 1 +S 2 +S 3 +…+S C-1 +S C We know – Utilization ρ ~ B(τ)/τ – Throughput X ~ C(τ)/τ So that X ~ [C(τ)/B(τ)]. [B(τ)/τ] = [C(τ)/B(τ)]. ρ, but B(τ)/C(τ) ~ E[S] = 1/μ Hence: X = ρ. μ S1S1 S2S2 S3S3 S4S4 S5S5 S6S6 S7S7 S8S8 SiSi S C-1 SCSC S C-2 τ ……

Alternative Derivation (Conditional Expectation) X = Mean rate of job completion at server = E[Rate of completion at server | server is busy]. P{server is busy} + E[Rate of completion at server | server is idle]. P{server is idle} = μ. P{server is busy} + 0 = μ. ρ 5

A Simple Throughput Example Assume λ = 1/6 and μ = 1/3 Throughput is X = ρ. Μ, but what is ρ? Rough intuition – ρ = fraction of time server is busy = (average service time)/(average time between arrivals) = (1/μ)/(1/λ) = λ/μ So X = λ, and does not depend on service rate! 6 λ μ Single server FCFS Infinite waiting facility

Single Server Stability Arrival rate of λ and service rate of μ N(t) is number of jobs in system at time t A(t) and D(t) are numbers of arrivals and departures by time t We have: E[N(t)] = E[A(t)] – E[D(t)] ≥ λt – μt = t(λ-μ) Hence we need λ < μ for the system to be stable – Service rate must exceed arrival rate… 7 λ μ Single serverInfinite waiting facility

Queueing Networks A system with multiple connected queues and servers Open networks: external arrivals and jobs eventually leave the system Closed networks: No external arrivals or departures (departure rate = arrival rate) – Batch systems and interactive systems (main difference is how fast new jobs are submitted once a job completes a “cycle”) 8

Open Networks Probabilistic routing – “Probabilities” determine where jobs go next Note that p 1,out + p 12 + p 13 = 1 Deterministic routing – Every jobs follows a fixed path, possibly visiting each server more than once 9 μ2μ2 μ3μ3 μ1μ1 r1r1 r2r2 r3r3 p 12 p 1,out p 2,out p 13 p 23 p 31 = 1 CPU Disk 1 Disk 2 λ 2x around Disks 1,2,1,2,1

Open Networks Throughput System throughput: X = Σ i r i Single server throughput X i = λ i, but what is λ i ? – λ i = r i + Σ i p ji λ j (a system of equations) – Note that the r i ’s are constrained by the fact that we need λ i < μ i 10 μ2μ2 μ3μ3 μ1μ1 r1r1 r2r2 r3r3 p 12 p 1,out p 2,out p 13 p 23 p 31 = 1

Closed Networks Fixed number of jobs “circulate” in the system – Often called the system load Interactive – A fixed number of users submit jobs – A user can only submit a new job after her previous job completes – A user has a “think time” before submitting her new job Batch – Same as interactive with a think time of 0 11 μ1μ1 μ2μ2 μ3μ3 μ1μ1 μ2μ2 μ3μ3 N “users” InteractiveBatch

Closed Networks Throughput Single server batch network – X = μ (depends on service rate!) Multiple servers – A bit more complicated. We’ll explore this later 12