Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.

Slides:



Advertisements
Similar presentations
Lecture 10 Queueing Theory. There are a few basic elements common to almost all queueing theory application. Customers arrive, they wait for service in.
Advertisements

Chapter Queueing Notation
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
Continuous Time Markov Chains and Basic Queueing Theory
Lecture 13 – Continuous-Time Markov Chains
1 IOE/MFG 543 Chapter 11: Stochastic single machine models with release dates.
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Performance analysis for high speed switches Lecture 6.
Queuing Systems Chapter 17.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
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 Queueing Theory H Plan: –Introduce basics of Queueing Theory –Define notation and terminology used –Discuss properties of queuing models –Show examples.
Rensselaer Polytechnic Institute © Shivkumar Kalvanaraman & © Biplab Sikdar1 ECSE-4730: Computer Communication Networks (CCN) Network Layer Performance.
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)
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
Introduction to Queuing Theory. 2 Queuing theory definitions  (Kleinrock) “We study the phenomena of standing, waiting, and serving, and we call this.
Lecture 14 – Queuing Systems

Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
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  …
Queuing Theory Summary of results. 2 Notations Typical performance characteristics of queuing models are: L : Ave. number of customers in the system L.
Introduction to Queuing Theory
Copyright ©: Nahrstedt, Angrave, Abdelzaher, Caccamo1 Queueing Systems.
Queuing models Basic definitions, assumptions, and identities Operational laws Little’s law Queuing networks and Jackson’s theorem The importance of think.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
Chapter 2 Machine Interference Model Long Run Analysis Deterministic Model Markov Model.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
NETE4631:Capacity Planning (2)- Lecture 10 Suronapee Phoomvuthisarn, Ph.D. /
Introduction to Queueing Theory
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.
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.
1 Chapters 8 Overview of Queuing Analysis. Chapter 8 Overview of Queuing Analysis 2 Projected vs. Actual Response Time.
yahoo.com SUT-System Level Performance Models yahoo.com SUT-System Level Performance Models8-1 chapter11 Single Queue Systems.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Queuing Theory and Traffic Analysis Based on Slides by Richard Martin.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Chapter 20 Queuing Theory to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
CS352 - Introduction to Queuing Theory Rutgers University.
Network Design and Analysis-----Wang Wenjie Queueing Theory II: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Chapter 2 Probability, Statistics and Traffic Theories
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.
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.
© 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.
Managerial Decision Making Chapter 13 Queuing Models.
Lecture on Markov Chain
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Introduction Notation Little’s Law aka Little’s Result
System Performance: Queuing
TexPoint fonts used in EMF.
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
Presentation transcript:

Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter 8

Kendall’s Notation for Queuing Systems A/B/X/Y/Z: A = interarrival time distribution B = service time distribution G = general (i.e., not specified); M = Markovian (exponential); D = deterministic X = number of parallel service channels Y = limit on system pop. (in queue + in service); default is Z = queue discipline; default is FCFS (first come first served) Others are LCFS, random, priority Chapter 8

Other Notation Random variables: X(t) = Number of customers in the system at time t S = Service time of an arbitrary customer W* = Amount of time an arbitrary customer spends in the system WQ* = Amount of time an arbitrary customer spends waiting for service Often we are most interested in the averages or expectations: Chapter 8

Little’s Formula is the time spent in the system by the nth customer. Assume these system times are uniformly finite and let be the customer average time spent in the system. Also, let be the time average number of jobs in the system. Then under very general conditions, where la is the arrival rate. This is usually written L = laW. The mean number of customers in the system is proportional to the mean time in the system! Chapter 8

Heuristic Proof of Little’s Formula A(t) B(t) = cum. area between curves D(t) T Two ways to compute Mean time in system in (0,T): Mean number in system in (0,T): Then Chapter 8

Other Little’s Formulae In queue: In service: and their implications… Expected number of busy servers Expected number of idle servers Single server utilization Single server prob. of empty system Chapter 8

Observation Times an = Proportion of arriving customers that find n in the system dn = Proportion of departing customers that leave behind n in the system If customers arrive one at a time and are served one at a time then But these proportions may not match the limiting probability of having n in the system (long run proportion of time that n are in the system) However, if arrivals follow a Poisson process then This is known as PASTA (Poisson Arrivals See Time Averages) Chapter 8

M/M/1 Model Single server, Poisson arrivals (rate ), exponential service times (rate ) CTMC (birth-death) model: Chapter 8

M/M/1 Steady-State Probabilities Level-crossing equations: Solve for Pn in terms of P0 Then use the facts that and substitute to get Chapter 8

M/M/1 Performance Measures Steady-state expected number of customers in the system Mean time in system Mean time in queue Mean number in queue Chapter 8

M/M/1 Performance Measures Distribution of time in system (FCFS) Exponential with parameter (1-) Reversibility: Departure process is Poisson with rate  Chapter 8

Finite Capacity: M/M/1/N Model Single server, exponential service times (rate ) Poisson arrivals (rate ) as long as there are  N in the system CTMC (birth-death) model: Chapter 8

M/M/1/N Steady-State Probabilities Level-crossing equations: Solve for Pn in terms of P0 Then use the facts that to get Chapter 8

M/M/1/N Performance Measures (In the unlikely event that l = m, for n = 1,…, N, Steady-state expected number of customers in the system, L, has a “messy” closed form Mean time in system but here, la is the rate of arrival into the system Chapter 8

Tandem Queue l m1 m2 If arrivals to the first server follow a Poisson process and service times are exponential, then arrivals to the second server also follow a Poisson process and the two queues behave as independent M/M/1 systems: P{n customers at server 1 and m customers at server 2} = Chapter 8

Open Network of Queues k servers, customers arrive at server k from outside the system according to a Poisson process with rate rk, independent of the other servers Upon completing service at server i, customer goes to server j with probability Pij, where For j = 1,…, k, the total arrival rate to server j is The number of customers at each server is independent and If lj < mj for all j, then P{n customers at server j} that is, each acts like an independent M/M/1 queue! Chapter 8

Closed Queuing Network m customers move among k servers Upon completing service at server i, customer goes to server j with probability Pij, where Let p be the stationary probabilities for the Markov chain describing the sequence of servers visited by a customer: Then the probability distribution of the number at each server is Chapter 8

CQN Performance Computation of the normalizing constant Cm to get the stationary distribution can be lengthy; but may be mostly interested in the throughput where lm(j) is the arrival rate to (and departure rate from) j. Arrival Theorem: In the CQN with m customers, the system as seen by arrivals to server j has the same distribution as the whole system when it contains only m-1 customers. This leads to mean value analysis to find lm(j) along with Wm(j) = the average time a customer spends at server j, and Lm(j) = the average number of customers at server j. Chapter 8

Mean Value Analysis Solve iteratively: throughput Begin with Chapter 8

M/G/1 Best combination of tractability & usefulness Assumption of Poisson arrivals may be reasonable based on Poisson approximation to binomial distribution many potential customers decide independently about arriving (arrival = “success”), each has small probability of arriving in any particular time interval Probability of arrival in a small interval is approximately proportional to the length of the interval – no bulk arrivals Amount of time since last arrival gives no indication of amount of time until the next arrival (exponential – memoryless) Chapter 8

M/G/1 Best combination of tractability & usefulness Exponential distribution is frequently a bad model for service times memorylessness large probability of very short service times with occasional very long service times May not want to use one of the “standard” distributions for service times, either in a real situation, collect data on service times and fit an empirical distribution Distributions of number of customers in the system and waiting time depend on service time distribution to be specified Chapter 8

M/G/1 Best combination of tractability & usefulness Assumption of Poisson arrivals may be reasonable based on Poisson approximation to binomial distribution many potential customers decide independently about arriving (arrival = “success”), each has small probability of arriving in any particular time interval Distributions of number of customers in the system and waiting time depend on service time distribution Chapter 8

M/G/1 Performance How many customers? How much time? S is the length of an arbitrary service time (random variable) l is the arrival rate of customers; define  = E[S] and assume it is < 1. Expected values can be found from generalizing Little’s formula from # customers in the system to amount of work in the system: An arriving customer brings S time units of work: The time average amount of work in the system (V) = l * the customer average amount of work remaining in the system Chapter 8

Work Content WQ* is the (random variable) waiting time in queue Expected amount of work per customer is If a customer’s service time is independent of own wait in queue, get average work in system Work remaining S Begin service Enter Depart Chapter 8

Mean waiting time WQ = Customer mean waiting time = average work in the system when a customer arrives From PASTA, WQ = V. Therefore, (Pollaczek-Khintchine formula) And the other measures of performance are: Chapter 8

Priority Queues Different types of customers may differ in importance. Type i customers arrive according to a Poisson process with rate li and require service times with distribution Gi, i = 1, 2. Type 1 customers have (nonpreemptive) priority: service does not begin on a type 2 customer if there is a type 1 customer waiting. If a type 1 customer arrives during a type 2 service, the service is continued to completion. What is the average wait in queue of a type i customer, Chapter 8

Two customer types w/o priority M/G/1 model with Average work in system is If the server is not allowed to be idle when the system is not empty, this quantity is the same for the system with priority. Chapter 8

Two customer types with priority Let Vi be the average amount of type i work in the system Now focus on a type 1 customer. Waiting time = amt. of type 1 work in system + amt. of type 2 work in service when this customer arrives, so in queue in service Chapter 8

Two customer types with priority But a type 2 customer has to wait for everyone ahead, plus any type 1 customers who arrive during the type 2 wait, so Chapter 8

M/M/k Model k identical machines in parallel, Poisson arrivals (rate ), exponential service times (rate ) CTMC (birth-death) model: Chapter 8

M/M/k Steady-State Probabilities Level-crossing equations: Define =/k, solve for Pn in terms of P0 Then use the facts that to get r is the utilization of each server Chapter 8

M/M/k Performance Measures Steady-state expected number of customers in the system Mean flow time Expected waiting time Expected number in the queue (k is expected number of busy servers) Chapter 8

Erlang Loss System M/M/k/k system: k servers and a capacity of k: an arrival who finds all servers busy does not enter the system (is lost) Above is called Erlang’s loss formula, and it holds for M/G/k/k as well, if Chapter 8