Queueing Models and Ergodicity. 2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models.

Slides:



Advertisements
Similar presentations
Chapter 13 Queueing Models
Advertisements

Introduction to Queuing Theory
Modeling & Simulation. System Models and Simulation Framework for Modeling and Simulation The framework defines the entities and their Relationships that.
Chapter Queueing Notation
Copyright © 2005 Department of Computer Science CPSC 641 Winter PERFORMANCE EVALUATION Often in Computer Science you need to: – demonstrate that.
Review of Probability Distributions
TCOM 501: Networking Theory & Fundamentals
Lecture 13 – Continuous-Time Markov Chains
Queuing Models Basic Concepts
048866: Packet Switch Architectures Dr. Isaac Keslassy Electrical Engineering, Technion Review.
Queueing Theory (2). Home Work 12-9 and Due Day: October 31 (Monday) 2005.
Queuing Systems Chapter 17.
EMGT 501 Fall 2005 Midterm Exam SOLUTIONS.
Single queue modeling. Basic definitions for performance predictions The performance of a system that gives services could be seen from two different.
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.
Lecture 9 Output Analysis for a Single Model. 2  Output analysis is the examination of data generated by a simulation.  Its purpose is to predict the.
Queueing Theory: Part I
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 PERFORMANCE EVALUATION H Often in Computer Science you need to: – demonstrate that a new concept, technique, or algorithm is feasible –demonstrate that.
Queueing Theory lSpecification of a Queue mSource Finite Infinite mArrival Process mService Time Distribution mMaximum Queueing System Capacity mNumber.
Queueing Theory.
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
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)
Fall 2010 CSC 446/546 Part 5: Queueing Models. Fall 2010 CSC 446/546 Agenda 1.The Purpose 2.Characteristics of Queues Systems 3.Queueing Notations 4.Long-Run.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Lab 01 Fundamentals SE 405 Discrete Event Simulation
Waiting Line Analysis for Service Improvement
Lecture 14 – Queuing Systems
Introduction to Queuing Theory
Queueing Theory Specification of a Queue Source Arrival Process
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  …
Altiok / Melamed Simulation Modeling and Analysis with Arena Chapter 8 1 SIMULATION MODELING AND ANALYSIS WITH ARENA T. Altiok and B. Melamed Chapter 8.
Network Analysis A brief introduction on queues, delays, and tokens Lin Gu, Computer Networking: A Top Down Approach 6 th edition. Jim Kurose.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 Slide © 2001 South-Western College Publishing/Thomson Learning Anderson Sweeney Williams Anderson Sweeney Williams Slides Prepared by JOHN LOUCKS QUANTITATIVE.
Introduction to Operations Research
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Introduction to Queueing Theory
Statistical Applications Binominal and Poisson’s Probability distributions E ( x ) =  =  xf ( x )
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.
Waiting Lines and Queuing Models. Queuing Theory  The study of the behavior of waiting lines Importance to business There is a tradeoff between faster.
Modeling and Analysis of Computer Networks
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.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
1 OUTPUT ANALYSIS FOR SIMULATIONS. 2 Introduction Analysis of One System Terminating vs. Steady-State Simulations Analysis of Terminating Simulations.
CS352 - Introduction to Queuing Theory Rutgers University.
Copyright 2006 John Wiley & Sons, Inc. Beni Asllani University of Tennessee at Chattanooga Waiting Line Analysis for Service Improvement Operations Management.
Chapter 6 Queueing Models Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
1 1 Slide © 2011 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
1 1 Slide © 2009 South-Western, a part of Cengage Learning Slides by John Loucks St. Edward’s University.
OPERATING SYSTEMS CS 3530 Summer 2014 Systems and Models Chapter 03.
Discrete Time Markov Chains
Chapter 6 Queueing Models
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.
© 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.
Discrete Time Markov Chains (A Brief Overview)
Al-Imam Mohammad Ibn Saud University
Chapter 6 Queueing Models
Chapter 6 Queuing Models.
Lecture 13 – Queuing Systems
Discrete Event “Hand” Simulation of a GI/GI/1 Queue
SIMULATION EXAMPLES QUEUEING SYSTEMS.
Presentation transcript:

Queueing Models and Ergodicity

2 Purpose Simulation is often used in the analysis of queueing models. A simple but typical queueing model: Queueing models provide the analyst with a powerful tool for designing and evaluating the performance of queueing systems. Typical measures of system performance:  Server utilization, length of waiting lines, and delays of customers  For relatively simple systems, compute mathematically  For realistic models of complex systems, simulation is usually required.

3 Outline Ergodicity Meanings and relationships of important performance measures, Estimation of mean measures of performance. Effect of varying input parameters,

4 Ergodicity You should remember the term Ergodic Markov chain (or class) from IE 325 For a finite state Markov chain, this means that is irreducible and aperiodic (all states are recurrent and aperiodic). For an ergodic Markov chain, the steady-state probabilities exist and the steady-state probability of a state is equal to the long-run proportion of time the process is in that state. If the chain is not ergodic, steady-state probabilities may not exist, but long-run averages (such as proportion of time in a state) still exist (But these may depend on the initial state)

5 Ergodicity Using simulation, we can calculate any long-run average by following a single sample path for a stochastic system If we have an analytical model for the queueing system under consideration, we would get the same result from the simulation if we could prolong the simulation until infinity. But since that would take an infinite amount of time, we stop somewhere and obtain an estimate for the long-run average. If the system is ergodic, estimates for the long-run averages computed using time averages would be estimates for probabilistic expectations as well. All the queueing systems we have studied are ergodic, thus we can use either time-averages or probabilistic expectations.

6 Queueing Notation Primary performance measures of queueing systems:  P n : steady-state probability of having n customers in system,  P n (t): probability of n customers in system at time t,  : arrival rate,  e :effective arrival rate,   :service rate of one server,   :server utilization,  A n :interarrival time between customers n-1 and n,  S n :service time of the nth arriving customer,  W n :total time spent in system by the nth arriving customer,  W n Q :total time spent in the waiting line by customer n,  L(t):the number of customers in system at time t,  L Q (t):the number of customers in queue at time t,  L:long-run time-average number of customers in system,  L Q :long-run time-average number of customers in queue,  w:long-run average time spent in system per customer,  w Q :long-run average time spent in queue per customer.

7 Time-Average Number in System L Consider a queueing system over a period of time T,  Let T i denote the total time during [0,T] in which the system contained exactly i customers, the time-weighted-average number in a system is defined by:  Consider the total area under the function is L(t), then,  The long-run time-average # in system, with probability 1:

8 Time-Average Number in System L  The time-weighted-average number in queue is:  G/G/1/N/K example: consider the results from the queueing system (N > 4, K > 3).

9 Average Time Spent in System Per Customer w The average time spent in system per customer, called the average system time, is: where W 1, W 2, …, W N are the individual times that each of the N customers spend in the system during [0,T].  For stable systems:  For the queue alone:  G/G/1/N/K example (cont.): the average system time is

10 The Conservation Equation Conservation equation (a.k.a. Little’s law)  Holds for almost all queueing systems or subsystems (regardless of the number of servers, the queue discipline, or other special circumstances).  G/G/1/N/K example (cont.): On average, one arrival every 4 time units and each arrival spends 4.6 time units in the system. Hence, at an arbitrary point in time, there is (1/4)(4.6) = 1.15 customers present on average. Arrival rate Average System time Average # in system

11 Questions Does Little’s Law hold for finite-run averages as well? Can you do the same analysis (given interarrival times and service times) for 2 or more servers?

12 Server Utilization Definition: the proportion of time that a server is busy.  Observed server utilization,, is defined over a specified time interval [0,T].  Long-run server utilization is .  For systems with long-run stability:

13 Server Utilization For G/G/1/∞/∞ queues:  Any single-server queueing system with average arrival rate customers per time unit, where average service time E(S) = 1/  time units, infinite queue capacity and calling population.  Conservation equation, L = W, can be applied.  For a stable system, the departure rate from the server, must be equal to.  The average number of customers in the server is:

14 Server Utilization  In general, for a single-server queue: For a single-server stable queue: For an unstable queue (  ), long-run server utilization is 1.

15 Server Utilization For G/G/c/∞/∞ queues:  A system with c identical servers in parallel.  If an arriving customer finds more than one server idle, the customer chooses a server without favoring any particular server.  For systems in statistical equilibrium, the average number of busy servers, L s, is: L s, = E(s) = .  The long-run average server utilization is:

16 Server Utilization and System Performance Example: A physician who schedules patients every 10 minutes and spends S i minutes with the i th patient:  Arrivals are deterministic, A 1 = A 2 = … = -1 = 10.  Services are stochastic, E(S i ) = 9.3 min and V(S 0 ) = 0.81 min 2.  On average, the physician's utilization =  = 0.93 < 1.  Consider the system is simulated with service times: S 1 = 9, S 2 = 12, S 3 = 9, S 4 = 9, S 5 = 9, …. The system becomes:  The occurrence of a relatively long service time (S 2 = 12) causes a waiting line to form temporarily.

17 Costs in Queueing Problems Costs can be associated with various aspects of the waiting line or servers:  System incurs a cost for each customer in the queue, say at a rate of $10 per hour per customer. The average cost per customer is: If customers per hour arrive (on average), the average cost per hour is:  Server may also impose costs on the system, if a group of c parallel servers (1  c  ∞) have utilization r, each server imposes a cost of $5 per hour while busy. The total server cost is: $5*c  W j Q is the time customer j spends in queue

18 Summary Introduced basic concepts of queueing models. Show how simulation, and some times mathematical analysis, can be used to estimate the performance measures of a system. Commonly used performance measures: L, L Q, w, w Q, , and e. When simulating any system that evolves over time, analyst must decide whether to study transient behavior or steady-state behavior.  Simple formulas exist for the steady-state behavior of some queues. Simple models can be solved mathematically, and can be useful in providing a rough estimate of a performance measure.