Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Queueing Model 박희경.
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
System Performance & Scalability i206 Fall 2010 John Chuang.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
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.
Modeling and Analysis of Manufacturing Systems Session 2 QUEUEING MODELS January 2001.
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)
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
CS533 Modeling and Performance Evaluation of Network and Computer Systems Queuing Theory (Chapter 30-31)
CSE 550 Computer Network Design Dr. Mohammed H. Sqalli COE, KFUPM Spring 2012 (Term 112)
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.

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
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
 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.
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
Queueing Analysis of Production Systems (Factory Physics)
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.
Introduction to Queueing Theory
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
TexPoint fonts used in EMF.
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.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
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.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
Internet Applications: Performance Metrics and performance-related concepts E0397 – Lecture 2 10/8/2010.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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)
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.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Queueing Theory. The study of queues – why they form, how they can be evaluated, and how they can be optimized. Building blocks – arrival process and.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
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.
Lecture 14 – Queuing Networks
B.Ramamurthy Appendix A
Queueing Theory Carey Williamson Department of Computer Science
Introduction Notation Little’s Law aka Little’s Result
Queuing models Basic definitions, assumptions, and identities
IV-2 Manufacturing Systems modeling
Queuing models Basic definitions, assumptions, and identities
Variability 8/24/04 Paul A. Jensen
Queueing networks.
Lecture 14 – Queuing Networks
Queuing Networks Mean Value Analysis
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
CSE 550 Computer Network Design
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.
LECTURE 09 QUEUEING THEORY PART3
Course Description Queuing Analysis This queuing course
Presentation transcript:

Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think time Non-linear results as saturation approaches Warnings References

What problem are we solving? Describe a system’s mean Throughput Response time Capacity Predict Changes in these quantities when system characteristics change See Stallings, Figure 1

Stallings, Figure 1

One queue arrivalsdepartures waitingserving = a job Server See Stallings, Figure 2

Stallings, Figure 2, Table 2

Basic assumptions One kind of job Inter-arrival times are independent of system state Service times are independent of system state No jobs lost because of buffer overflow Stability: λ < 1 / Ts In a network, no parallel processing of a given job visit ratios are independent of system state

Queuing definitions A / S / m / B / K / SD A = Inter-arrival time distribution S = Service time distribution m = Number of servers B = Number of buffers (system capacity) K = Population size SD = service discipline Usually specify just the first three: M/M/1

Usual assumptions A is often the Exponential distribution S is often Exponential or constant B is often infinite (all the buffer space you need) K is often infinite SD is often FCFS (first come, first served)

Exponential distribution Also known as “memoryless” Expected time to the next arrival is always the same, regardless of previous arrivals When the interarrival times are independent, identically-distributed, and the distribution is exponential, the arrival process is called a “Poisson” process

Poisson processes Popular because they are tractable to analyze You can merge several Poisson streams and get a Poisson stream You can split a Poisson stream and get Poisson streams Poisson arrivals to a single queue with exponential service times => departures are Poisson with same rate Same is true of departures from a M/M/m queue

Basic formulas: Stallings, Table 3b Assumptions Poisson arrivals No dispatching preference based on service times FIFO dispatching No items discarded from queue

Basic multi-server formulas

Expected response time For a single M/M/1 queue, expected residence (response) time is 1/(μ-λ), where μ is the server’s maximum output rate (1/Ts) λ is the mean arrival rate Example: Disk can process 100 accesses/sec Access requests arrive at 20/sec Expected response time is 1/(100-20) = sec/access

Example: near saturation 80% utilization Disk can do 100 accesses/sec Access requests arrive at 80/sec Expected response time: 1/(100-80) = 0.05 sec 90% utilization Expected response time: 1/(100-90) = 0.1 sec 95% utilization Expected response time: 1/(100-95) = 0.2 sec 99% utilization Expected response time: 1/(100-99) = 1 sec

Nearing saturation (M/M/1)

Operational law Little’s Law r= λ T r Example: T r = 0.3 sec average residence in the system λ = 10 transactions / sec r = 3 average transactions in the system

Queuing network Queue 1Queue 2 Queue 3

Jackson’s theorem Assuming Each node in the network provides an independent service Poisson arrivals Once served at a node, an item goes immediately to another node, or out of the system Then Each node is an independent queuing system Each node’s input is Poisson Mean delays at each node may be added to compute system delays

Queuing network example Servlet History data Order data T r = 50 msec T r = 60 msec T r = 80 msec λ = 12 jobs/sec P = 0.4 P = 0.6 Average system residence time= 0.4 * (50+60) * (50+80) (Jackson’s theorem)= 122 msec Average jobs in system= 12 * = (Little’s Law)

An example in a spreadsheet

Think time “think time” between transactions request a transaction Think time can have a huge effect on the arrival rate for a system.

Main Reference Queuing Analysis, William Stallings Cached copy on the resource page: nalysis.pdf