Queuing Theory For Dummies Jean-Yves Le Boudec 1.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
THE SYSTEM THEORY OF NETWORK CALCULUS J.-Y. Le Boudec EPFL WoNeCa, 2012 Mars 21 1.
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)
1 ELEN 602 Lecture 8 Review of Last lecture –HDLC, PPP –TDM, FDM Today’s lecture –Wavelength Division Multiplexing –Statistical Multiplexing –Preliminary.
Queuing Theory For Dummies
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
Classification of Simulation Models
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Little’s Theorem Examples Courtesy of: Dr. Abdul Waheed (previous instructor at COE)
Simulating Single server queuing models. Consider the following sequence of activities that each customer undergoes: 1.Customer arrives 2.Customer waits.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Graduate Program in Engineering and Technology Management
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
Copyright warning. COMP5348 Lecture 6: Predicting Performance Adapted with permission from presentations by Alan Fekete.
AN INTRODUCTION TO THE OPERATIONAL ANALYSIS OF QUEUING NETWORK MODELS Peter J. Denning, Jeffrey P. Buzen, The Operational Analysis of Queueing Network.
Queueing Theory [Bose] “The basic phenomenon of queueing arises whenever a shared facility needs to be accessed for service by a large number of jobs or.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
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
CSE 538 Instructor: Roch Guerin – Office hours: Mon & Wed 4:00-5:00pm in Bryan 509 TA: Junjie Liu
Introduction to Queueing Theory
TexPoint fonts used in EMF.
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Queuing Modeling and Analysis.
Queuing Networks Jean-Yves Le Boudec 1. Contents 1.The Class of Multi-Class Product Form Networks 2.The Elements of a Product-Form Network 3.The Product-Form.
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.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Nick McKeown Spring 2012 Lecture 2,3 Output Queueing EE384x Packet Switch Architectures.
Computer Networking Queueing (A Summary from Appendix A) Dr Sandra I. Woolley.
Structure of a Waiting Line System Queuing theory is the study of waiting lines Four characteristics of a queuing system: –The manner in which customers.
Dr. Anis Koubâa CS433 Modeling and Simulation
(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 Queuing Delay and Queuing Analysis. RECALL: Delays in Packet Switched (e.g. IP) Networks End-to-end delay (simplified) = End-to-end delay (simplified)
Delays  Deterministic Assumes “error free” type case Delay only when demand (known) exceeds capacity (known)  Stochastic Delay may occur any time Random.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
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.
Simulation Examples And General Principles Part 2
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.
Chapter 4 CPU Scheduling. 2 Basic Concepts Scheduling Criteria Scheduling Algorithms Multiple-Processor Scheduling Real-Time Scheduling Algorithm Evaluation.
Modeling and Simulation
Basic Concepts Maximum CPU utilization obtained with multiprogramming
Chapter 1 What is Simulation?. Fall 2001 IMSE643 Industrial Simulation What’s Simulation? Simulation – A broad collection of methods and applications.
Dan C. Marinescu Office: HEC 439 B. Office hours: M, Wd 3 – 4:30 PM.
Discrete Event Simulation
Chapter 6: CPU Scheduling
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Module 5: CPU Scheduling
3: CPU Scheduling Basic Concepts Scheduling Criteria
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Chapter 6: CPU Scheduling
Queuing Theory By: Brian Murphy.
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
Queuing Networks Mean Value Analysis
Operating System , Fall 2000 EA101 W 9:00-10:00 F 9:00-11:00
Chapter 6: CPU Scheduling
Module 5: CPU Scheduling
Chapter 6: CPU Scheduling
Table 2: Experimental results for linear ELP
Module 5: CPU Scheduling
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Queuing Theory For Dummies Jean-Yves Le Boudec 1

All You Need to Know About Queuing Theory Queuing is essential to understand the behaviour of complex computer and communication systems In depth analysis of queuing systems is hard Fortunately, the most important results are easy We will study this topic in two modules 1. simple concepts (this module) 2. queuing networks (later) 2

1. Deterministic Queuing Easy but powerful Applies to deterministic and transient analysis Example: playback buffer sizing 3

Use of Cumulative Functions 4

Solution of Playback Delay Pb 5 A(t) A’(t)D(t) time bits d(0)d(0) -  d(0) +  (D1): r(t - d(0) +  ) (D2): r (t - d(0) -  ) d(t) A.

2. Operational Laws Intuition: Say every customer pays one Fr per minute present Payoff per customer = R Rate at which we receive money = N In average λ customers per minute, N = λ R 6

Little Again Consider a simulation where you measure R and N. You use two counters responseTimeCtr and queueLengthCtr. At end of simulation, estimate R = responseTimeCtr / NbCust N = queueLengthCtr / T where NbCust = number of customers served and T=simulation duration Both responseTimeCtr=0 and queueLengthCtr=0 initially Q: When an arrival or departure event occurs, how are both counters updated ? A: queueLengthCtr += (t new - t old ). q(t old ) where q(t old ) is the number of customers in queue just before the event. responseTimeCtr += (t new - t old ). q(t old ) thus responseTimeCtr == queueLengthCtr and thus N = R. NbCust/T ; now NbCust/T is our estimator of 7

Other Operational Laws 8

The Interactive User Model 99

Network Laws 10

Bottleneck Analysis Apply the following two bounds  Example (1) (2) 17

Throughput Bounds 12

Bottlenecks 13 A

DASSA Intuition: within one busy period: to every departure we can associate one arrival with same number of customers left behind 14

3. Single Server Queue 15

16 i.e. which are event averages (vs time averages ?)

17

18

19

Non Linearity of Response Time 20

Impact of Variability 21

Optimal Sharing Compare the two in terms of Response time Capacity 22

The Processor Sharing Queue Models: processors, network links Insensitivity: whatever the service requirements: Egalitarian 23

PS versus FIFO PSFIFO 24

4. A Case Study Impact of capacity increase ? Optimal Capacity ? 25

Methodology 26

4.1. Deterministic Analysis 27

Deterministic Analysis 28

4.2 Single Queue Analysis 29 Assume no feedback loop:

4.3 Operational Analysis A refined model, with circulating users Apply Bottleneck Analysis ( = Operational Analysis ) 30 Z/(N-1) -Z 1/c waiting time

31

32

Conclusions Queuing is essential in communication and information systems M/M/1, M/GI/1, M/G/1/PS and variants have closed forms Bottleneck analysis and worst case analysis are usually very simple and often give good insights … it remains to see queuing networks 33