Al-Imam Mohammad Ibn Saud University

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
Queueing Model 박희경.
Model Antrian By : Render, ect. Outline  Characteristics of a Waiting-Line System.  Arrival characteristics.  Waiting-Line characteristics.  Service.
System Performance & Scalability i206 Fall 2010 John Chuang.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
RAIDs Performance Prediction based on Fuzzy Queue Theory Carlos Campos Bracho ECE 510 Project Prof. Dr. Duncan Elliot.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Waiting Line Management
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.
Queueing Theory.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
QUEUING MODELS Queuing theory is the analysis of waiting lines It can be used to: –Determine the # checkout stands to have open at a store –Determine the.

Introduction to Queuing Theory
Queueing Theory Queueing theory definitions (Bose) “the basic phenomenon of queueing arises whenever a shared facility needs to be accessed for.
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  …
Queueing Theory [Bose] “The basic phenomenon of queueing arises whenever a shared facility needs to be accessed for service by a large number of jobs or.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
1 Chapter 16 Applications of Queuing Theory Prepared by: Ashraf Soliman Abuhamad Supervisor by : Dr. Sana’a Wafa Al-Sayegh University of Palestine Faculty.
Introduction to Queuing Theory
Management of Waiting Lines McGraw-Hill/Irwin Copyright © 2012 by The McGraw-Hill Companies, Inc. All rights reserved.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
 Birth Death Processes  M/M/1 Queue  M/M/m Queue  M/M/m/B Queue with Finite Buffers  Results for other Queueing systems 2.
Introduction to Operations Research
Introduction to Queueing Theory
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
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
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.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
CS352 - Introduction to Queuing Theory Rutgers University.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Chapter 6 Queueing Models
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.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
Management of Waiting Lines Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent.
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.
Simple Queueing Theory: Page 5.1 CPE Systems Modelling & Simulation Techniques Topic 5: Simple Queueing Theory  Queueing Models  Kendall notation.
Queuing Theory Simulation & Modeling.
McGraw-Hill/Irwin Copyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 18 Management of Waiting Lines.
CPE 619 Introduction to Queuing Theory
WAITING LINES AND SIMULATION
“QUEUING THEORY”.
Lecture 2.7. Queuing Theory
Al-Imam Mohammad Ibn Saud University
Queueing Theory What is a queue? Examples of queues:
Chapter 9: Queuing Models
Queueing Theory.
CSCI1600: Embedded and Real Time Software
CPSC 531: System Modeling and Simulation
Queueing Theory Carey Williamson Department of Computer Science
Introduction Notation Little’s Law aka Little’s Result
Queuing models Basic definitions, assumptions, and identities
System Performance: Queuing
Queuing models Basic definitions, assumptions, and identities
TexPoint fonts used in EMF.
Mitchell Jareo MAT4340 – Operations Research Dr. Bauldry
Queueing Theory 2008.
Carey Williamson Department of Computer Science University of Calgary
Queueing Theory Frank Y. S. Lin Information Management Dept.
Course Description Queuing Analysis This queuing course
Presentation transcript:

Al-Imam Mohammad Ibn Saud University CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008

Goals for Today Understand the Queuing Model and its applications Understand how to describe a Queue Model Lean the most important queuing models (Part 02) Single Queue Multiple Queues Multiple Servers

Course Outline The Queuing Model and Definitions Application of Queuing Theory Little’s Law Queuing System Notation Stationary Analysis of Elementary Queueing Systems M/M/1 M/M/m M/M/1/K …

The Queuing Model Queuing System Queue Server Use Queuing models to Click for Queue Simulator Queue Server Queuing System Use Queuing models to Describe the behavior of queuing systems Evaluate system performance A Queue System is characterized by Queue (Buffer): with a finite or infinite size The state of the system is described by the Queue Size Server: with a given processing speed Events: Arrival (birth) or Departure (death) with given rates

Queuing theory definitions (Bose) “the basic phenomenon of queueing arises whenever a shared facility needs to be accessed for service by a large number of jobs or customers.” (Wolff) “The primary tool for studying these problems [of congestions] is known as queueing theory.” (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this study Queueing Theory." "Any system in which arrivals place demands upon a finite capacity resource may be termed a queueing system.” (Mathworld) “The study of the waiting times, lengths, and other properties of queues.” http://www2.uwindsor.ca/~hlynka/queue.html

Applications of Queuing Theory

Applications of Queuing Theory Telecommunications Computer Networks Predicting computer performance Health services (eg. control of hospital bed assignments) Airport traffic, airline ticket sales Layout of manufacturing systems.

Example application of queuing theory In many stores and banks, we can find: multiple line/multiple checkout system → a queuing system where customers wait for the next available cashier We can prove using queuing theory that : throughput improves/increases when queues are used instead of separate lines http://www.andrews.edu/~calkins/math/webtexts/prod10.htm#PD

Example application of queuing theory http://www.bsbpa.umkc.edu/classes/ashley/Chaptr14/sld006.htm

Queuing theory for studying networks View network as collections of queues FIFO data-structures Queuing theory provides probabilistic analysis of these queues Examples: Average length Average waiting time Probability queue is at a certain length Probability a packet will be lost

QNAP/Modline Example of a Queue Simulator

The Little’s Law The long-term average number of customers in a stable system N, is equal to the long-term average arrival rate, λ, multiplied by the long- term average time a customer spends in the system, T.

The Queuing Times Queue Server Queuing System Queuing Time Service Time Response Time (or Delay)

Little’s Law Expected number of customers in the system Expected time in the system Arrival rate IN the system

Generality of Little’s Law Mean number tasks in system = mean arrival rate x mean response time Little’s Law is a pretty general result It does not depend on the arrival process distribution It does not depend on the service process distribution It does not depend on the number of servers and buffers in the system. Applies to any system in equilibrium, as long as nothing in black box is creating or destroying tasks Queueing Network λ Aggregate Arrival rate

Specification of Queuing Systems

Characteristics of queuing systems Arrival Process The distribution that determines how the tasks arrives in the system. Service Process The distribution that determines the task processing time Number of Servers Total number of servers available to process the tasks

Specification of Queueing Systems Arrival/Departure Customer arrival and service stochastic models Structural Parameters Number of servers: What is the number of servers? Storage capacity: are buffer finite or infinite? Operating policies Customer class differentiation are all customers treated the same or do some have priority over others? Scheduling/Queueing policies which customer is served next Admission policies which/when customers are admitted

Kendall Notation A/B/m(/K/N/X) To specify a queue, we use the Kendall Notation. The First three parameters are typically used, unless specified A: Arrival Distribution B: Service Distribution m: Number of servers K: Storage Capacity (infinite if not specified) N: Population Size (infinite) X: Service Discipline (FCFS/FIFO) http://en.wikipedia.org/wiki/Kendall's_notation

Kendall Notation of Queueing System Arrival Process M: Markovian D: Deterministic Er: Erlang G: General Service Process M: Markovian D: Deterministic Er: Erlang G: General A/B/m/K/N/X Number of servers m=1,2,… Service Discipline FIFO, LIFO, Round Robin, … Storage Capacity K= 1,2,… (if ∞ then it is omitted) Number of customers N= 1,2,… (for closed networks, otherwise it is omitted)

Distributions M: stands for "Markovian", implying exponential distribution for service times or inter-arrival times. D: Deterministic (e.g. fixed constant) Ek: Erlang with parameter k http://en.wikipedia.org/wiki/Erlang_distribution Hk: Hyper-exponential with parameter k G: General (anything) CS352 Fall,2005

Kendall Notation Examples M/M/1 Queue Poisson arrivals (exponential inter-arrival), and exponential service, 1 server, infinite capacity and population, FCFS (FIFO) the simplest ‘realistic’ queue M/M/m Queue Same, but m servers M/D/1 Queue Poisson arrivals and CONSTANT service times, 1 server, infinite capacity and population, FIFO. G/G/3/20/1500/SPF General arrival and service distributions, 3 servers, 17 queues (20-3), 1500 total jobs, Shortest Packet First

Performance Measures

Performance Measures of Interest We are interested in steady state behavior Even though it is possible to pursue transient results, it is a significantly more difficult task. E[S]: average system (response) time (average time spent in the system) E[W]: average waiting time (average time spent waiting in queue(s)) E[X]: average queue length E[U]: average utilization (fraction of time that the resources are being used) E[R]: average throughput (rate that customers leave the system) E[L]: average customer loss (rate that customers are lost or probability that a customer is lost)

Recall the Birth-Death Chain Example λ0 1 μ1 λ1 2 μ2 λj-2 j-1 μj-1 λj-1 j μj μ3 λ2 λj μj+1 At steady state, we obtain In general Making the sum equal to 1 Solution exists if

End of Part 01