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.

Slides:



Advertisements
Similar presentations
Lecture 5 This lecture is about: Introduction to Queuing Theory Queuing Theory Notation Bertsekas/Gallager: Section 3.3 Kleinrock (Book I) Basics of Markov.
Advertisements

Introduction to Queuing Theory
Exponential Distribution
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
TCOM 501: Networking Theory & Fundamentals
Lecture 13 – Continuous-Time Markov Chains
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.
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
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Queueing Theory: Part I
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),
Queuing. Elements of Waiting Lines  Population –Source of customers Infinite or finite.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
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?
Lecture 14 – Queuing Systems

___________________________________________________________________________ Operations Research  Jan Fábry Waiting Line Models.
Lecture 7  Poisson Processes (a reminder)  Some simple facts about Poisson processes  The Birth/Death Processes in General  Differential-Difference.
Exponential Distribution & Poisson Process
1 Exponential Distribution & Poisson Process Memorylessness & other exponential distribution properties; Poisson process and compound P.P.’s.
Introduction to Queuing Theory
Introduction to Management Science
Waiting Line Models ___________________________________________________________________________ Quantitative Methods of Management  Jan Fábry.
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Queueing Analysis of Production Systems (Factory Physics)
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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Spreadsheet Models for Managers: Session 12 12/1 Copyright © Richard Brenner Spreadsheet Models for Managers Session 12 Service Systems Single-Server.
CS433 Modeling and Simulation Lecture 12 Queueing Theory Dr. Anis Koubâa 03 May 2008 Al-Imam Mohammad Ibn Saud University.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
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...
QUEUING THEORY.
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.
 Recall your experience when you take an elevator.  Think about usually how long it takes for the elevator to arrive.  Most likely, the experience.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 17 Queueing Theory.
Queueing Fundamentals for Network Design Application ECE/CSC 777: Telecommunications Network Design Fall, 2013, Rudra Dutta.
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.
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,
QUEUING THOERY. To describe a queuing system, an input process and an output process must be specified. Examples of input and output processes are: SituationInput.
Abu Bashar Queuing Theory. What is queuing ?? Queues or waiting lines arise when the demand for a service facility exceeds the capacity of that facility,
Exponential Distribution & Poisson Process
Queueing Theory What is a queue? Examples of queues:
Internet Queuing Delay Introduction
Introduction Notation Little’s Law aka Little’s Result
Queuing Theory.
TexPoint fonts used in EMF.
Introduction to Queueing Theory
Lecture 13 – Queuing Systems
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:

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 examples of queues are –Printer queue –Customers in front of a cashier –Calls waiting for answer by a technical support

3 What makes up a queue? The System: A collection of objects under study. –It is important to define the system boundaries. The Entities: The people, organisms, or objects that enter the system requiring some kind of service. The Servers: The people, organisms, or machines that perform the service required. The Queue: An accumulation of entities that have entered the system but have not been served.

4 Types of Queues Single Stage

5 Multiple Stage - Manufacturing Plant

6 Multi-channel Single Stage - Bank

7 Parallel Single Stage - Supermarket

8 Customer Discrimination – Bus station

9 Converging Arrivals - Walk-in and Drive-thru

10 Queue Discipline First Come First Served - FCFS –Most customer queues. Last Come First Served - LCFS –Packages, Elevator. Served in Random Order - SIRO –Entering Buses Priority Service –Multi-processing on a computer. –Emergency room.

11 What factors affect system performance The Arrivals Process. –The time between any two successive arrivals –Does this depend on the number of people in the system? –Finite populations. The Service Process. –The time taken to perform the service. –Does this depend on the number of people in the system? The number of servers operating in system.

12 Measuring System Performance The total time an “entity” spends in the system (Denoted by W) The time an “entity spends in the queue. ( Denoted by W q ) The number of “entities” in the system. ( Denoted by L ) The number of “entities” in the queue. ( Denoted by L q )

13 Measuring System Performance The percentage of time the servers are busy (Utilization time) These quantities are variable over time.

14 Poisson Process Let {N(t), t>0} be the number of customers arrive until the time t {N(t), is said to be a Poisson Process having rate, for >0, if –N(0) = 0 –N(t+s) – N(t) Does not depend on the previous history –N(t+s) – N(t) is independent of t.

15 Poisson Process The number of events in any interval of length t is Poisson distributed with mean t. That is for all s, t > 0 and n=0,1,2,...

16 Inter-Arrival Times What are inter-arrival times? T i is the time between the (i-1)-st and the i-th events. Poisson Process can be used for modeling arrival process T1T1 T2T2 T3T3 S1S1 S2S2 S3S3

17 Birth-Death Processes A birth-death process is used to model populations of entities in a system The state of the system at time t is the number of entities in the system at that time, often denoted by N(t). Births and deaths occur at a constant rate (like the Poisson process model)

18 Birth-Death Processes P i,j (t) is defined to be the probability that there are j entities in the system at time t, given that there were i entities in the system at time j-1 jj+1...

19 Birth-Death Processes The state of the system must be a non- negative integer Law 1 –A birth increases the state from j to j+1 –The variable j is called the birth rate for state j –A birth occurs between times t and t +  t with probability j  t + o(  t)

20 Birth-Death Processes Law 2 –A death decreases the state from j to j-1 –The variable  j is called the death rate for state j (note that  0 =0) –A death occurs between times t and t +  t with probability  j  t + o(  t ) Law 3 –Births and Deaths are independent

21 Birth-Death Processes Can more than one event happen between t and t +  t? Why must  0 =0? Knowledge of j and  j completely specifies a Birth-Death process.

22 Birth-Death Processes Birth-Death Processes can be used to model most M/M/... queuing systems. –An arrival is considered a “birth”. –A service completion is considered a “death”. Let P i,j (t) be the probability N(t+s)–N(s)=j given that N(s)=i (or N(t)=j given N(0)=i It turns out that for many queuing systems, P i,j (t) will approach a limit  j as t gets larger.

23 Birth-Death Processes This limit will be independent of the initial state i.  j is called the steady state or equilibrium probability of state j. –  j can be thought of as the probability that at some instant in the future there are j entities in the system. –  j can also be thought of as the fraction of time that there are j entities in the system.

24 Exponential Distribution The exponential distribution is characterized by

25 Exponential Distribution What is P(T>t) for an exponential distribution with parameter ? e - t P(T>t+s|T>s) is the probability of waiting a further time t after having already waited to time s. What is P(T>t+s|T>s) for an exponential distribution with parameter ? e - (t+s) / e - s = e - t Answer: P(T>t+s|T>s) = P(T>t) This is called the memoryless property

26 An Example of Memoryless Suppose that the amount of time one spends in a bank is exponentially distributed with mean ten minutes. –What is ? –What is the probability that a customer will spend more a quarter of an hour in the bank? You have been waiting for ten minutes already. Now what is the probability that you will spend more than a quarter of an hour in the bank? –What has a lack of memory, you or the distribution?

27 Birth-Death Processes Consider a M/M/1 queuing system. –Inter-arrival times are exponential with rate. –Service times are exponential with rate . Suppose there are j entities in the system at time t. What is the probability of an arrival in the interval (t,t +  t]? Hint: use Taylor series expansion on F(t +  t)-F(t) = 1 - e -  t =  t + o(  t)

28 Birth-Death Processes So the arrivals and service completions of a M/M/1 queue are a birth-death process with the following rate diagram 0 12 j-1 jj+1...

29 Birth-Death Processes (Balance equations) It can be shown by induction that These are called balance equations Therefore:

30 Birth-Death Processes If we define the constants then and we know that

31 Birth-Death Processes So This means that the infinite sum of the c j ’s must converge. If this sum is infinite then no steady-state distribution can exist.