Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.

Slides:



Advertisements
Similar presentations
Introduction to Queuing Theory
Advertisements

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)
Lecture 13 – Continuous-Time Markov Chains
Previously Optimization Probability Review Inventory Models Markov Decision Processes.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
Waiting Lines and Queuing Theory Models
© The McGraw-Hill Companies, Inc., Technical Note 6 Waiting Line Management.
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
1 Analysis Of Queues For this session, the learning objectives are:  Learn the fundamental structure of a queueing system.  Learn what needs to be specified.
Queueing Theory: Part I
Waiting Line Management
Queueing Theory Chapter 17.
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),
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queueing Network Model. Single Class Model Open - Infinite stream of arriving customers Closed - Finite population eg Intranet users Indistinguishable.
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.
Lecture 4 Mathematical and Statistical Models in Simulation.
Chapter 9: Queuing Models
Lecture 14 – Queuing Systems

___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Introduction to Queuing Theory
Queueing Theory I. Summary Little’s Law Queueing System Notation Stationary Analysis of Elementary Queueing Systems  M/M/1  M/M/m  M/M/1/K  …
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
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
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
Introduction to Operations Research
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
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.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
SIMULATION EXAMPLES QUEUEING SYSTEMS.
CS352 - Introduction to Queuing Theory Rutgers University.
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.
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.
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.
SIMULATION EXAMPLES. Monte-Carlo (Static) Simulation Estimating profit on a sale promotion Estimating profit on a sale promotion Estimating profit on.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
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,
WAITING LINES AND SIMULATION
Al-Imam Mohammad Ibn Saud University
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved
Queueing Theory What is a queue? Examples of queues:
Chapter 9: Queuing Models
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Introduction Notation Little’s Law aka Little’s Result
System Performance: Queuing
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Variability 8/24/04 Paul A. Jensen
COMP60611 Fundamentals of Parallel and Distributed Systems
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
COMP60621 Designing for Parallelism
Queueing Theory 2008.
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.
Course Description Queuing Analysis This queuing course
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting for repair Communications network

Queueing Theory Basic components of a queue: customers Input source Queue Service (calling population) mechanism

Queueing Theory Queueing System Characteristics Input source: population size (assumed infinite) customer generation pattern (assumed Poisson w rate or equivalently, exponential with an inter-arrival time ) arrival behavior (balking, blocking) Queue: queue size (finite or infinite) queue discipline (assumed FIFO, other include random, LIFO, priority, etc..)

Queueing Theory Service mechanism: number of servers service time and distribution (exponential is most common)

Queueing Theory Naming convention: a / b / c / d / e / f a – distribution of inter-arrival times b – distribution of service time c – number of servers Where M – exponential distribution (Markovian) D – degenerate distribution (constant times) E k – Erlang distribution (with shape k) G = general distribuiton Ex. M/M/1 or M/G/1

Queueing Theory Naming convention cont.: a / b / c / d / e / f d – capacity of the system (default – infinite) e – size of the calling population (default – infinite) f – queue discipline Where FIFO – first in, first out LIFO – last in, first out Random – random selection Ex. M/D/1/inf./20/LIFO

Queueing Theory Terminology and Notation: State of system – number of customers in the queueing system, N(t) Queue length – number of customer waiting in the queue - state of system minus number being served P n (t) – probability exactly n customers in system at time t. [p i ] s – number of servers [c] n – mean arrival rate (expected arrivals per unit time) when n customers already in system  n – mean service rate for overall system (expected number of customers completing service per unit time) when n customers are in the system.  – utilization factor (=  s , in general)

Queueing Theory Terminology and Notation: L = expected number of customers in queueing system = L q = expected queue length = W = expected waiting time in system (includes service time) W q = expected waiting time in queue

Queueing Theory Little’s Law: W = L / and W q = L q / Note: if n are not equal, then = W = W q + 1/  when  is constant.

Role of Exponential Distribution Property 1: f T (t) is a strictly decreasing function of t (t > 0). P[0 P[t < T < t + ] P[0 < T < 1/2  ] =.393 P[1/2  < T < 3/2  ] =.383 Property 2: lack of memory. P[T > t + | T > ] = P[T > t] f T (t) =  e -  t for t > = 0 F T = 1 - e -  t E(T) = 1/  V (T) = 1/  2  fT(t)fT(t) t Let T be a random variable representing the inter-arrival time between events.

Role of Exponential Distribution Property 3: the minimum of several independent exponential random variables has an exponential distribution. Let T 1, T 2,…. T n be distributed exponential with parameters  1,  2,…,  n and let U = min{T 1, T 2,…. T n } then: U is exponential with rate parameter  = Property 4: Relationship to Poisson distribution. Let the time between events be distributed exponentially with Parameter . Then the number of times, X(t), this event occurs over some time t has a Poisson distribution with rate  t: P[X(t) = n] = (  t) n e -  t /n!

Role of Exponential Distribution Property 5: For all positive values of t, P[T t] for small.  can be thought of as the mean rate of occurrence. Property 6: Unaffected by aggregation or dis-aggregation. Suppose a system has multiple input streams (arrivals of customers) with rate 1, 2,… n, then the system as a whole has An input stream with a rate =

Break for Exercise