Queueing Theory What is a queue? Examples of queues:

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)
Nur Aini Masruroh Queuing Theory. Outlines IntroductionBirth-death processSingle server modelMulti server model.
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.
Waiting Lines and Queuing Theory Models
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
Queueing Theory: Part I
Queueing Theory Chapter 17.
1 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
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.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Chapter 9: Queuing Models
Lecture 14 – Queuing Systems

Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
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  …
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Introduction to Operations Research
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.
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.
Machine interference problem: introduction
CS352 - Introduction to Queuing Theory Rutgers University.
Waiting Lines and Queuing Theory Models
QUEUING THEORY.
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
Waiting Line Theory Akhid Yulianto, SE, MSc (log).
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.
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.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queuing Models.
Mohammad Khalily Islamic Azad University.  Usually buffer size is finite  Interarrival time and service times are independent  State of the system.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All rights reserved.
Models of Traffic Flow 1.
Al-Imam Mohammad Ibn Saud University
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved
Chapter 9: Queuing Models
Lecture on Markov Chain
Birth-Death Process Birth – arrival of a customer to the system
Queuing Systems Don Sutton.
Queueing Theory Carey Williamson Department of Computer Science
Solutions Queueing Theory 1
System Performance: Queuing
TexPoint fonts used in EMF.
Variability 8/24/04 Paul A. Jensen
COMP60611 Fundamentals of Parallel and Distributed Systems
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
Lecture 13 – Queuing Systems
COMP60621 Designing for Parallelism
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Queueing Theory Frank Y. S. Lin Information Management Dept.
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
Course Description Queuing Analysis This queuing course
VIRTUE MARYLEE MUGURACHANI QUEING THEORY BIRTH and DEATH.
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 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 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) Ek – Erlang distribution (with shape k) G = general distribuiton Ex. M/M/1 or M/G/1

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 Pn(t) – probability exactly n customers in system at time t. s – number of servers ln – mean arrival rate (expected arrivals per unit time) when n customers already in system mn – mean service rate for overall system (expected number of customers completing service per unit time) when n customers are in the system. r – utilization factor (= l/sm , in general)

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

Queueing Theory Little’s Law: W = L / l and Wq = Lq / l Note: if ln are not equal, then l = l W = Wq + 1/m when m is constant.

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

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

Role of Exponential Distribution Property 5: For all positive values of t, P[T < t + | T > t] for small . a 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 l1, l2,…ln, then the system as a whole has An input stream with a rate l =

Break for Exercise

Birth-Death Process Birth – arrival of a customer to the system Death – departure of a customer from the system N(t) – random variable associated with the state of the system at time t (i.e. the number of customers, n, in the system at time t). Assumptions – customers inter-arrival times are exponential at a rate of ln and their service times are exponential at a rate of mn Queuing System Departures - mn Arrivals - ln

Rate Diagram for Birth-Death Process 1 2 n-2 n-1 n … …

Development of Balance Equations for Birth-Death Process M/M/1 System 1 2 n-2 n-1 n … …

Development of Balance Equations for Birth-Death Process M/M/s System – multiple servers 1 2 n-2 n-1 n … …

Development of Balance Equations for Birth-Death Process M/M/1/k System – finite system capacity 1 2 k-2 k-1 k …

Development of Balance Equations for Birth-Death Process M/M/1 System – finite calling system population 1 2 N-2 N-1 N …

M/G/1 Queue A system with a Poisson input, but some general distribution for service time. Only two characteristics of the service time need be known: the mean (1/m) and the variance (1/s2). P0 = 1 – r, where r = l/m Lq = L = r + Lq Wq = Lq / l W = Wq + 1 / m