Queuing CEE 320 Anne Goodchild.

Slides:



Advertisements
Similar presentations
Lab Assignment 1 COP 4600: Operating Systems Principles Dr. Sumi Helal Professor Computer & Information Science & Engineering Department University of.
Advertisements

CEE 320 Winter 2006 Route Choice CEE 320 Steve Muench.
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.
Final Exam Tuesday, December 9 2:30 – 4:20 pm 121 Raitt Hall Open book
Chap. 20, page 1051 Queuing Theory Arrival process Service process Queue Discipline Method to join queue IE 417, Chap 20, Jan 99.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
#11 QUEUEING THEORY Systems Fall 2000 Instructor: Peter M. Hahn
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Queuing Systems Chapter 17.
CEE 320 Fall 2008 Trip Generation and Mode Choice CEE 320 Anne Goodchild.
Queuing and Transportation
Simulation with ArenaChapter 2 – Fundamental Simulation Concepts Discrete Event “Hand” Simulation of a GI/GI/1 Queue.
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.
CEE 320 Fall 2008 Queuing CEE 320 Anne Goodchild.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 14-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 14.
CEE 320 Spring 2007 Queuing CEE 320 Steve Muench.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
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?
Signalized Intersections
Traffic Concepts CEE 320 Steve Muench.
Graduate Program in Engineering and Technology Management
Queuing Theory (Waiting Line Models)
CEE 320 Fall 2008 Course Logistics HW7 due today (9 total) Midterm next Friday (Wednesday review) Signalized Intersections (Chapter 7 of text) Last material.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Asst. Prof. Dr. Mongkut Piantanakulchai
OREGON TECH CIV475 Lindgren1 CIV 475 Traffic Engineering Mannering / Kilareski Chapter 5 Queuing Theory.
Introduction to Operations Research
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.
CEE 320 Winter 2006 Trip Generation and Mode Choice CEE 320 Steve Muench.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
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.
Queuing Theory. Introduction Queuing is the study of waiting lines, or queues. The objective of queuing analysis is to design systems that enable organizations.
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.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Traffic Flow Fundamentals
Queueing System Provide a mean to estimate important measures of Highway Performance Travel time Speed Affects Roadway Design Required left-turn bay length.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Hcm 2010: BASIC CONCEPTS praveen edara, ph.d., p.e., PTOE
Maciej Stasiak, Mariusz Głąbowski Arkadiusz Wiśniewski, Piotr Zwierzykowski Model of the Nodes in the Packet Network Chapter 10.
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.
1 CEE 8207 Summer 2013 L#6 Queue. 2 Queueing System Provide a mean to estimate important measures of Highway Performance  Travel time  Speed Affects.
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.
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.
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.
Traffic Flow Characteristics. Dr. Attaullah Shah
1 BIS 3106: Business Process Management (BPM) Lecture Nine: Quantitative Process Analysis (2) Makerere University School of Computing and Informatics Technology.
Models of Traffic Flow 1.
Trip Generation and Mode Choice
Internet Queuing Delay Introduction
Demo on Queuing Concepts
Internet Queuing Delay Introduction
Delays Deterministic Stochastic Assumes “error free” type case
System Performance: Queuing
Queuing Analysis Two analytical techniques can be employed to study queuing processes: Shock wave analysis Demand-capacity process is deterministic Suited.
Delays Deterministic Stochastic Assumes “error free” type case
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
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.
Presentation transcript:

Queuing CEE 320 Anne Goodchild

Outline Fundamentals Poisson Distribution Notation Applications Analysis Graphical Numerical Example

Fundamentals of Queuing Theory Microscopic traffic flow Different analysis than theory of traffic flow Intervals between vehicles is important Rate of arrivals is important Arrivals Departures Service rate

Activated Upstream of bottleneck/server Downstream Arrivals Departures Server/bottleneck Direction of flow

Not Activated Arrivals Departures server

Flow Analysis Bottleneck active Service rate is capacity Downstream flow is determined by bottleneck service rate Arrival rate > departure rate Queue present

Flow Analysis Bottle neck not active Arrival rate < departure rate No queue present Service rate = arrival rate Downstream flow equals upstream flow

http://trafficlab.ce.gatech.edu/freewayapp/RoadApplet.html

Fundamentals of Queuing Theory Arrivals Arrival rate (veh/sec) Uniform Poisson Time between arrivals (sec) Constant Negative exponential Service Service rate Service times

Queue Discipline First In First Out (FIFO) Last In First Out (LIFO) prevalent in traffic engineering Last In First Out (LIFO)

Queue Analysis – Graphical D/D/1 Queue Departure Rate Delay of nth arriving vehicle Arrival Rate Total vehicle delay Maximum queue Vehicles Maximum delay Won’t really ask you to do this – it’s basically an exercise in geometry Queue at time, t1 t1 Time Where is capacity?

Poisson Distribution Good for modeling random events Count distribution Uses discrete values Different than a continuous distribution P(n) = probability of exactly n vehicles arriving over time t n number of vehicles arriving over time t λ average arrival rate t duration of time over which vehicles are counted

Poisson Ideas Probability of exactly 4 vehicles arriving P(n=4) Probability of less than 4 vehicles arriving P(n<4) = P(0) + P(1) + P(2) + P(3) Probability of 4 or more vehicles arriving P(n≥4) = 1 – P(n<4) = 1 - P(0) + P(1) + P(2) + P(3) Amount of time between arrival of successive vehicles

Example Graph

Example Graph

Example: Arrival Intervals

Queue Notation Popular notations: D/D/1, M/D/1, M/M/1, M/M/N Number of service channels Popular notations: D/D/1, M/D/1, M/M/1, M/M/N D = deterministic M = some distribution Arrival rate nature Departure rate nature Exponential distribution of times between vehicle arrivals = Poisson arrivals

Queuing Theory Applications D/D/1 Deterministic arrival rate and service times Not typically observed in real applications but reasonable for approximations M/D/1 General arrival rate, but service times deterministic Relevant for many applications M/M/1 or M/M/N General case for 1 or many servers

Queue times depend on variability

Queue Analysis – Numerical Steady state assumption Queue Analysis – Numerical M/D/1 Average length of queue Average time waiting in queue Average time spent in system λ = arrival rate μ = departure rate =traffic intensity

Queue Analysis – Numerical M/M/1 Average length of queue Average time waiting in queue Average time spent in system λ = arrival rate μ = departure rate =traffic intensity

Queue Analysis – Numerical M/M/N Average length of queue Average time waiting in queue Average time spent in system λ = arrival rate μ = departure rate =traffic intensity

M/M/N – More Stuff Probability of having no vehicles Probability of having n vehicles Probability of being in a queue λ = arrival rate μ = departure rate =traffic intensity

Poisson Distribution Example Vehicle arrivals at the Olympic National Park main gate are assumed Poisson distributed with an average arrival rate of 1 vehicle every 5 minutes. What is the probability of the following: Exactly 2 vehicles arrive in a 15 minute interval? Less than 2 vehicles arrive in a 15 minute interval? More than 2 vehicles arrive in a 15 minute interval? From HCM 2000

Example Calculations Exactly 2: Less than 2: P(0)=e-.2*15=0.0498, P(1)=0.1494 Less than 2 P(0) = e-(0.20)(15) = 0.0498 P(1) = 0.1494 P(0) + P(1) = 0.0498 + 0.1494 = 0.1992 More than 2 P(n>2) = 1 – (0.1992 + 0.224) = 0.5768 More than 2:

Example 1 You are entering Bank of America Arena at Hec Edmunson Pavilion to watch a basketball game. There is only one ticket line to purchase tickets. Each ticket purchase takes an average of 18 seconds. The average arrival rate is 3 persons/minute. Find the average length of queue and average waiting time in queue assuming M/M/1 queuing.

Example 1 Departure rate: μ = 18 seconds/person or 3.33 persons/minute Arrival rate: λ = 3 persons/minute ρ = 3/3.33 = 0.90 Q-bar = 0.902/(1-0.90) = 8.1 people W-bar = 3/3.33(3.33-3) = 2.73 minutes T-bar = 1/(3.33 – 3) = 3.03 minutes

Example 2 You are now in line to get into the Arena. There are 3 operating turnstiles with one ticket-taker each. On average it takes 3 seconds for a ticket-taker to process your ticket and allow entry. The average arrival rate is 40 persons/minute. Find the average length of queue, average waiting time in queue assuming M/M/N queuing.

Example 2 N = 3 Departure rate: μ = 3 seconds/person or 20 persons/minute Arrival rate: λ = 40 persons/minute ρ = 40/20 = 2.0 ρ/N = 2.0/3 = 0.667 < 1 so we can use the other equations P0 = 1/(20/0! + 21/1! + 22/2! + 23/3!(1-2/3)) = 0.1111 Q-bar = (0.1111)(24)/(3!*3)*(1/(1 – 2/3)2) = 0.88 people T-bar = (2 + 0.88)/40 = 0.072 minutes = 4.32 seconds W-bar = 0.072 – 1/20 = 0.022 minutes = 1.32 seconds

Example 3 You are now inside the Arena. They are passing out Harry the Husky doggy bags as a free giveaway. There is only one person passing these out and a line has formed behind her. It takes her exactly 6 seconds to hand out a doggy bag and the arrival rate averages 9 people/minute. Find the average length of queue, average waiting time in queue, and average time spent in the system assuming M/D/1 queuing.

Example 3 N = 1 Departure rate: μ = 6 seconds/person or 10 persons/minute Arrival rate: λ = 9 persons/minute ρ = 9/10 = 0.9 Q-bar = (0.9)2/(2(1 – 0.9)) = 4.05 people W-bar = 0.9/(2(10)(1 – 0.9)) = 0.45 minutes = 27 seconds T-bar = (2 – 0.9)/((2(10)(1 – 0.9) = 0.55 minutes = 33 seconds

Primary References Mannering, F.L.; Kilareski, W.P. and Washburn, S.S. (2003). Principles of Highway Engineering and Traffic Analysis, Third Edition (Draft). Chapter 5 Transportation Research Board. (2000). Highway Capacity Manual 2000. National Research Council, Washington, D.C.