#11 QUEUEING THEORY Systems 303 - Fall 2000 Instructor: Peter M. Hahn

Slides:



Advertisements
Similar presentations
Exponential and Poisson Chapter 5 Material. 2 Poisson Distribution [Discrete] Poisson distribution describes many random processes quite well and is mathematically.
Advertisements

Exponential Distribution
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
TCOM 501: Networking Theory & Fundamentals
Continuous Time Markov Chains and Basic Queueing Theory
Queuing Theory For Dummies
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/10/20151.
Probability Distributions
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Performance analysis for high speed switches Lecture 6.
Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.
#9 SIMULATION OUTPUT ANALYSIS Systems Fall 2000 Instructor: Peter M. Hahn
1 Queuing Theory 2 Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or.
Queueing Theory: Part I
Data Communication and Networks Lecture 13 Performance December 9, 2004 Joseph Conron Computer Science Department New York University
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Queuing Theory. Queuing theory is the study of waiting in lines or queues. Server Pool of potential customers Rear of queue Front of queue Line (or queue)
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Lecture 4 Mathematical and Statistical Models in Simulation.
11/5/2003Probability and Statistics for Teachers, Math 507, Lecture 10 1 UNIFORM AND EXPONENTIAL RANDOM VARIABLES Sections
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
Simulation Output Analysis
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Generalized Semi-Markov Processes (GSMP)
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Anshul Kumar, CSE IITD CSL718 : Main Memory CPU-Cache-Main Memory Performance 9th Mar, 2006.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
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.
1 Queuing Models Dr. Mahmoud Alrefaei 2 Introduction Each one of us has spent a great deal of time waiting in lines. One example in the Cafeteria. Other.
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.
Modeling and Analysis of Computer Networks
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Traffic Flow Fundamentals
SIMULATION OF A SINGLE-SERVER QUEUEING SYSTEM
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 25 Simulation.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
M/M/1 Queues Customers arrive according to a Poisson process with rate. There is only one server. Service time is exponential with rate  j-1 jj+1...
Modeling and simulation of systems Introduction to queuing theory Slovak University of Technology Faculty of Material Science and Technology in Trnava.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
Sampling and estimation Petter Mostad
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
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.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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.
CDA6530: Performance Models of Computers and Networks Chapter 8: Statistical Simulation ---- Discrete Event Simulation (DES) TexPoint fonts used in EMF.
 Recall your experience when you take an elevator.  Think about usually how long it takes for the elevator to arrive.  Most likely, the experience.
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.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics B: Michael Baron. Probability and Statistics for Computer Scientists,
Models of Traffic Flow 1.
Single-Server Queue Model
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Variability 8/24/04 Paul A. Jensen
Single-Server Queue Model
Presentation transcript:

#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn

QUEUEING THEORY For simple service/manufacturing situations one can analyze steady-state system performance An important facilitator is the governing Poisson process model for arrivals and for service times We present a difference-equation analytical approach And therewith generate the probability distribution of system occupancy for the M/M/1 server queue The resulting steady-state M/M/1 occupancy probabilities are entirely independent of time This probability distribution permits us to calculate desired service performance measures

THE DISTRIBUTION OF ARRIVALS Given N arrivals randomly distributed in [0,T]. The RV X is the number of arrivals in a small interval  0  T The N arrivals are IID uniformly over [0,T] X is therefore governed by a binomial distribution with p=  /T, q=(T-  )/T and N=number of arrivals

THE DISTRIBUTION OF ARRIVALS Keeping m constant and letting T  ∞ and N  ∞, the binomial distribution becomes a Poisson distribution with m=  N/T= , i.e., It turns out that the probability of an arrival in a given interval  is independent of what happens before or after . Can you explain why? The distribution of arrivals has the same shape no matter what the size of  (remember T  ∞)

THE DISTRIBUTION OF ARRIVALS Let Y = the time from a specified time t 0 until the first arrival occurs But, the event Y > y is equivalent to the event ‘no call has arrived in time interval [t 0, t 0 +y]. Thus, This is the exponential distribution about which we talked so much

THE CONCEPT OF A SERVER A server starts a service operation upon an arrival It cannot start another service operation until the previous operation is finished Arrivals during an operation must wait in queue (or buffer) until all operations are completed Time for the operation is usually a random variable Two rules govern the server –The average rate at which operations can be completed  must be higher than or equal to the average arrival rate –Instantaneous arrival rate may be higher than 

SERVICE PERFORMANCE MEASURE Service delay T(n) is the measure of greatest interest where T(n) = average service time + average waiting time in queue of length n: n is the number of arrivals that must be serviced before the one in question The above expression is somewhat pessimistic, since expected time for the entity being serviced at the moment of arrival of the entity in question is only 0.5/ . But convention says to use 1/ .

THE CONCEPT OF A SERVER Queues are characterized by A/B/C where –A is the arrival distribution –B is the service distribution –C is the number of independent servers servicing the queue An additional element is the service discipline (e.g., FIFO, FILO, priority, etc.) since n depends on this Maximum queue length and queue interdependence are also factors but are seldom considered in theory A=M stands for Poisson process arrivals B=M stands for Poisson process service completions (i.e., exponentially distributed service times)

ANALYSIS OF M/M/1 SYSTEMS The Poisson assumptions are good for a great variety of transactions in business and manufacturing For this analysis, queue length is not restricted Consider a small time interval ∆t during which arrivals and service completions may take place Later ∆t . The following table holds for M/M/1 systems:

M/M/1 SERVER SYSTEMS

Therefore, during ∆t the probability of more than 1 arrival or more than 1 departure becomes insignificantly small Thus, if the queue holds n at the end of ∆t, then at the start of ∆t there could have been no more than n+1 nor fewer than n-1 in the queue The probability of n in queue at time t+∆t may then be written in terms of probabilities of queue content at time t Recall that ∆t to ∆t events are independent

M/M/1 SERVER SYSTEMS

It can be argued that for small  t, p n (t+  t) approaches p n (t) This can be seen by observing that the first term on the r.h.s. of the last equation is much larger than the second two terms It is much more likely that in a small interval no change takes place than that some change takes place

M/M/1 SERVER SYSTEMS Thus, letting p n (t+  t) —› p n (t) This final equation governs the process of arrivals and service completions affecting n

M/M/1 INITIAL CONDITIONS –No system reduction poss. with an empty system –System occupancy probability must sum to unity

SOLVING M/M/1 SYS. RECURSIVELY

M/M/1 SYSTEM SECOND CONDITION

RESULTS OF M/M/1 ANALYSIS We have thus produced a complete distribution of system occupancy for the M/M/1 server system We have also proven that M/M/1 occupancy probabilities are entirely independent of time This assures us that the random process that governs M/M/1 system occupancy is strictly stationary Similar analyses can be performed for other, more complex queuing models From the above discrete probability distribution, we can now calculate certain desired service performance measures

M/M/1 AVERAGE OCCUPANCY

M/M/1 AVERAGE SERVICE DELAY From slide 7

M/M/1 SYSTEM OVERFLOW (n > N)

HOMEWORK #11 Read Sections in B,C,N&N Inter-arrival and service times at a copier are exponentially distributed. The average copying job takes 3 minutes. There are on the average 12 copying jobs arriving per hour. No job quits the queue. a) Calculate the probabilities for 1, 2, 3, and (4 or more) jobs at the copier b) What is the percent time that the copier is occupied? c) With a different person occupied with each job, how many people are tied up on the average in copying? d) What is the average time for a copying job? e) What is the average waiting time for the copier?