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.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

Capacity Setting and 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.
CS 241 Spring 2007 System Programming 1 Queuing Framework for Process Management Evaluation Lecture 20 Klara Nahrstedt.
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)
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server 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.
1.(10%) Let two independent, exponentially distributed random variables and denote the service time and the inter-arrival time of a system with parameters.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Queuing Systems Chapter 17.
Queuing and Transportation
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
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
Queuing Analysis Based on noted from Appendix A of Stallings Operating System text 6/28/20151.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
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)
Lecture 4 Mathematical and Statistical Models in Simulation.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Chapter 9: Queuing Models

___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Introduction to Queuing Theory
Introduction to Management Science
Service Systems & Queuing Chapter 12S OPS 370. Nature of Services –A
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
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. /
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 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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
Modeling and Simulation Queuing theory
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...
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Chapter 6 Queueing Models
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.
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.
COMT 4291 Queuing Analysis COMT Call/Packet Arrival Arrival Rate, Inter-arrival Time, 1/ Arrival Rate measures the number of customer arrivals.
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.
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.
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,
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Simulation of single server queuing systems
Managerial Decision Making Chapter 13 Queuing Models.
Chapter 9: Queuing Models
Internet Queuing Delay Introduction
Internet Queuing Delay Introduction
Introduction Notation Little’s Law aka Little’s Result
System Performance: Queuing
TexPoint fonts used in EMF.
Variability 8/24/04 Paul A. Jensen
Queuing Theory By: Brian Murphy.
Queuing Analysis Two analytical techniques can be employed to study queuing processes: Shock wave analysis Demand-capacity process is deterministic Suited.
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
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.
Queuing Models J. Mercy Arokia Rani Assistant Professor
Presentation transcript:

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 queue) of customers List of servers able to service the customers

3 Queuing Theory -- cont. What do we want to know about a queuing system? The average or expected wait time The percentage of customers who experience long wait times The probability that a customer must wait (The probability that all servers are busy) The average number of customers in the queue. The probability that servers are idle

4 Simulations Simulation is a method of evaluation without using methmatical models such as queuing theory. In general, a simulation is a computer- programmed model of something. The best test of an OS: the real marketplace. The next best test: create situation similar to the real world. Simulations play a key role in the development of complex system such as computer networks, databases, and OS

5 Queueing Theory Customer arrive at a queueing system randomly at time (arrival times) Poisson arrival process: the interarrival times are distributed exponentially: : constant average arrival rate = customer/unit time The # of arrivals / unit time is poisson distributed with mean = interarrival times = the time between successive arrivals t0t0 t1t1 t2t2 t3t3 t4t4 tntn

6 Example: arrival rate: one every two minutes The rate of one customer every two minutes = 0.5 customers per minute t P(t) The probability function does not tell us when customers will arrive. It does, however, provide information about the random arrival process.

7 y t (time) y = 1 P(  t) = Probability of an arbitrary interarrival time  being less than t for large for small t = 0

8 Server 1 Server C # of customers in service Service time # of customers in the queue Time spent in the queue Total time a customer spends in the queueing system Total # of customers in the queueing system Average arrival rate interarrival time N NsNs NqNq q S W 

9 The probability that exactly n customers will arrive in any time interval of length t is Let S k denotes the service time that the Kth arriving customer requires from the system. An arbitrary service time is referred to as S, and the distribution of service time is For random service with average service rate 

10 Queue Disciplines A queue discipline is the rule used for choosing the next customer from the queue to be serviced. Kendall notation A/B/c A is the interarrival time distribution B is the service time distribution c is the number of servers A and B may be –GI for general independent interarrival time –G for general service time –M for exponential interarrival or service time distribution –D for deterministic interarrival or service time distribution M/M/1 M/M/c

11 Traffic Intensity A measure of that system's ability to service its customer effectively It is useful for determining the minimum number of identical servers a system will need in order to service its customer without its queue becoming indefinitly large or having to turn customer away. Ex: E(s) = 17 sec E(  ) = 5 sec u = 17/5 = 3.4 need at least 4 servers arrival rate service rate

12 Case Studies A shared Laser printer An average of 64 requests occurring at random times during eight-hour day. Each request require an average of about 5 minutes to print. Receiving compaints from employees that they must wait nearly half an hour for their printout. 8 requests/hour  = 2/15 requests/minute 12 requests/hour  = 1/ 5 request/minute

13 Server Utilization Server utilization  is defined as the traffic intensity per server is the probability that a particular server is busy this is approximately the fraction of time that each server is in use For single-server system, u =  

14 Probability of All Server Idle When c= 1 (1 - 2/3 = 1/3)

15 Probability of All Server Busy Erlang’s C Formula: When c = 1 (2/3)

16 Expected Number of Customers The expected number of customers in the queue: When c = 1   

17 Expected Wait Time Little’s Formula Expected wait time When c = 1 (2/15)* 10 = 4/3 [(2/3)/0.2]/(1-2/3) = 10 minutes

18 90th Percentile Wait Time 90% of the customers wait less than When c = 1 ln(10*2/3)/(1/5 - 2/15) = 28.4 minutes

19 Case Study 2 Master Scheduler Computer running simulation programs requires a lot of CPU time and scheduled on a FIFO basis. Generally submit about 100 programs per day The programs require an average of about one hour of CPU time. 100 requests/day  = 100/24 = 4.2 requests/hour 1 requests/hour  = 1 request/hour

20 Example 1 The election of the President of Student Association (學生會) is just finished in Tamkang University. There are 27,000 students and the average rate of voting is 15%. The official voting period was 5 days, from 8:00 to 17:00. The association prepared only one counter for everyone to vote and each voting requires half minute to complete. Use the equation provided to analyze the condition of student getting in-line and wait for the voting. You must explain the meaning of each equation. (ln(2.5)=0.9, ln(7.5)=2, ln(15)=2.7)

21 = 27000*.15/5*9 = 90 students/hour  = 120 students/hour  = /  = 3 / 4 (Server utilization) P 0 = 1 -  = 1/4 (probability of all server idle) C = 3/4 (probability of all server busy) L q = (3/4)2 / 1 – 3/4 = 9/4 (Expected number of customers) W q = [(3/4)/120] / 1 – 3/4 = 1/40 hour (Expected wait time)  q = ln(10* 3/4) / 120 – 90 = 1/15 hour (90th percentile wait time)

22 Example 2 There are 48 programmers per day, in average, come in to use the mainframe computer in the computing center. Each programmer uses the computer for about 20 minutes. Use the equation provided to analyze the usage of the computer. You must explain the meaning of each equation.

23 = 48/24 = 2 programmer/hour  = 3 programmer/hour  = /  c = 2 / 3 (Server utilization) P 0 = 1 -  = 1 / 3 (probability of all server idle) C = 2 / 3 (probability of all server busy) L q = (2/3) 2 / 1 – 2/3 = 4 / 3 (Expected number of customers) W q = [(2/3)/3] / 1 – 2/3 = 2 / 3 hour (Expected wait time)  q = ln(10* 2/3) / 3 – 2 = 1.9 hour (90th percentile wait time)

24 Example 3 There are 36 programmers per day, in average, come in to use the mainframe computer in the computing center. Each programmer uses the computer for about 15 minutes. Use the equation provided to analyze the usage of the computer. You must explain the meaning of each equation.