Announcements. Queueing Systems: Lecture 1. Lecture Outline. Topics in Queueing Theory

Similar documents
B. Maddah ENMG 622 ENMG /27/07

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

First come, first served (FCFS) Batch

CS/ECE 715 Spring 2004 Homework 5 (Due date: March 16)

Simulation of Discrete Event Systems

A queueing system can be described as customers arriving for service, waiting for service if it is not immediate, and if having waited for service,

Reliability and Queueing

TCOM 501: Networking Theory & Fundamentals. Lecture 3 January 29, 2003 Prof. Yannis A. Korilis

TUFTS UNIVERSITY DEPARTMENT OF CIVIL AND ENVIRONMENTAL ENGINEERING ES 152 ENGINEERING SYSTEMS Spring Lesson 14. Queue System Theory

On Poisson Bulk Arrival Queue: M / M /2/ N with. Balking, Reneging and Heterogeneous servers

Generalized Semi- Markov Processes (GSMP)

SINGLE-CHANNEL QUEUING PROBLEMS APPROACH

Queueing Systems: Lecture 3. Amedeo R. Odoni October 18, Announcements

Control chart for number of customers in the system of M [X] / M / 1 Queueing system

4.6 M/M/s/s Loss Queueing Model

Birth-Death Processes. Outline. EEC 686/785 Modeling & Performance Evaluation of Computer Systems. Relationship Among Stochastic Processes.

Chapter 13: Tests of Hypothesis Section 13.1 Introduction

Topic 5 [434 marks] (i) Find the range of values of n for which. (ii) Write down the value of x dx in terms of n, when it does exist.

CEE 522 Autumn Uncertainty Concepts for Geotechnical Engineering

Introduction to probability Stochastic Process Queuing systems. TELE4642: Week2

Weight Moving Average = n

Castiel, Supernatural, Season 6, Episode 18

Queueing Theory II. Summary. M/M/1 Output process Networks of Queue Method of Stages. General Distributions

B. Maddah ENMG 622 ENMG /20/09

Sigma notation. 2.1 Introduction

Queueing theory and Replacement model

Queueing Theory (Part 3)

1 Introduction to reducing variance in Monte Carlo simulations


ECE 308 Discrete-Time Signals and Systems

Analysis of a queueing model with service threshold

CHAPTER 10 INFINITE SEQUENCES AND SERIES

Optimization Methods MIT 2.098/6.255/ Final exam

6.3 Testing Series With Positive Terms

Chapter 3. Strong convergence. 3.1 Definition of almost sure convergence

ECE 8527: Introduction to Machine Learning and Pattern Recognition Midterm # 1. Vaishali Amin Fall, 2015

Approximations and more PMFs and PDFs

INTRODUCTORY MATHEMATICAL ANALYSIS

This is an introductory course in Analysis of Variance and Design of Experiments.

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 19 11/17/2008 LAWS OF LARGE NUMBERS II THE STRONG LAW OF LARGE NUMBERS

FLUID LIMIT FOR CUMULATIVE IDLE TIME IN MULTIPHASE QUEUES. Akademijos 4, LT-08663, Vilnius, LITHUANIA 1,2 Vilnius University

ECE-S352 Introduction to Digital Signal Processing Lecture 3A Direct Solution of Difference Equations

Chapter 11 Output Analysis for a Single Model. Banks, Carson, Nelson & Nicol Discrete-Event System Simulation

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

Chapter 8: Estimating with Confidence

If we want to add up the area of four rectangles, we could find the area of each rectangle and then write this sum symbolically as:

MATH 320: Probability and Statistics 9. Estimation and Testing of Parameters. Readings: Pruim, Chapter 4

Modeling and Performance Analysis with Discrete-Event Simulation

Kinetics of Complex Reactions

( θ. sup θ Θ f X (x θ) = L. sup Pr (Λ (X) < c) = α. x : Λ (x) = sup θ H 0. sup θ Θ f X (x θ) = ) < c. NH : θ 1 = θ 2 against AH : θ 1 θ 2

Integer Programming (IP)

Ma 530 Infinite Series I

Lecture 6 Chi Square Distribution (χ 2 ) and Least Squares Fitting

Increasing timing capacity using packet coloring

Summary: CORRELATION & LINEAR REGRESSION. GC. Students are advised to refer to lecture notes for the GC operations to obtain scatter diagram.

Chapter 4. Fourier Series

lim za n n = z lim a n n.

3. Z Transform. Recall that the Fourier transform (FT) of a DT signal xn [ ] is ( ) [ ] = In order for the FT to exist in the finite magnitude sense,

ENGI Series Page 6-01

Most text will write ordinary derivatives using either Leibniz notation 2 3. y + 5y= e and y y. xx tt t

The z-transform. 7.1 Introduction. 7.2 The z-transform Derivation of the z-transform: x[n] = z n LTI system, h[n] z = re j

Ma 530 Introduction to Power Series

Chapter 10: Power Series

Mark Lundstrom Spring SOLUTIONS: ECE 305 Homework: Week 5. Mark Lundstrom Purdue University

The statistical pattern of the arrival can be indicated through the probability distribution of the number of the arrivals in an interval.

NOTES ON DISTRIBUTIONS

Convergence of a queueing system in heavy traffic with general patience-time distributions

There is no straightforward approach for choosing the warmup period l.

The Poisson Distribution

PC5215 Numerical Recipes with Applications - Review Problems

MCT242: Electronic Instrumentation Lecture 2: Instrumentation Definitions

Sequences, Mathematical Induction, and Recursion. CSE 2353 Discrete Computational Structures Spring 2018

Course 4: Preparation for Calculus Unit 1: Families of Functions

Sequences A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

M/M/1 queueing system with server start up, unreliable server and balking

c. Explain the basic Newsvendor model. Why is it useful for SC models? e. What additional research do you believe will be helpful in this area?

ECO 312 Fall 2013 Chris Sims LIKELIHOOD, POSTERIORS, DIAGNOSING NON-NORMALITY

A sequence of numbers is a function whose domain is the positive integers. We can see that the sequence

Math 312 Lecture Notes One Dimensional Maps

Expectation and Variance of a random variable

0, otherwise. EX = E(X 1 + X n ) = EX j = np and. Var(X j ) = np(1 p). Var(X) = Var(X X n ) =

Machine Learning Brett Bernstein

: Transforms and Partial Differential Equations

4. Basic probability theory

ADVANCED SOFTWARE ENGINEERING

Statistical Inference (Chapter 10) Statistical inference = learn about a population based on the information provided by a sample.

Session 5. (1) Principal component analysis and Karhunen-Loève transformation

Properties and Hypothesis Testing

A Feedback Retrial Queuing System with Starting Failures and Single Vacation

AMS 216 Stochastic Differential Equations Lecture 02 Copyright by Hongyun Wang, UCSC ( ( )) 2 = E X 2 ( ( )) 2

ECONOMIC OPERATION OF POWER SYSTEMS

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

SECTION 1.5 : SUMMATION NOTATION + WORK WITH SEQUENCES

PBW 654 Applied Statistics - I Urban Operations Research

If a subset E of R contains no open interval, is it of zero measure? For instance, is the set of irrationals in [0, 1] is of measure zero?

Discrete Mathematics and Probability Theory Spring 2016 Rao and Walrand Note 19

4.1 Sigma Notation and Riemann Sums

NANYANG TECHNOLOGICAL UNIVERSITY SYLLABUS FOR ENTRANCE EXAMINATION FOR INTERNATIONAL STUDENTS AO-LEVEL MATHEMATICS

2C09 Design for seismic and climate changes

STOCHASTIC NETWORKS EXAMPLE SHEET 2 SOLUTIONS

Transcription:

Aoucemets Queueig Systems: Lecture Amedeo R. Odoi October 4, 2006 PS #3 out this afteroo Due: October 9 (graded by 0/23) Office hours Odoi: Mo. 2:30-4:30 - Wed. 2:30-4:30 o Oct. 8 (No office hrs 0/6) _ Or sed me a message Quiz #: October 25, ope book, i class Old quiz problems ad solutios: posted o 0/9 Topics i Queueig Theory Itroductio to Queues Little s Law Markovia Birth-ad-Death Queues The M/M/ ad Other Markovia Variatios The M/G/ Queue ad Extesios Priority Queues Some Useful Bouds ogestio Pricig Queueig Networks; State Represetatios Dyamic Behavior of Queues Lecture Outlie Itroductio to queueig s oceptual represetatio of queueig s odes for queueig models Termiology ad otatio Little s Law ad basic relatioships Birth-ad-death models The M/M/ queueig Referece: hapter 4, pp. 82-203

Queues A Geeric Queueig System Queueig theory is the brach of operatios research cocered with waitig lies (delays/cogestio) A queueig cosists of a user source, a queue ad a service facility with oe or more idetical parallel servers A queueig etwork is a set of itercoected queueig s Fudametal parameters of a queueig : - Demad rate - apacity (service rate) - Demad iter-arrival times - Service times - Queue capacity ad disciplie (fiite vs. ifiite; FIFO/FFS, SIRO, LIFO, priorities) - Myriad details (feedback effects, balkig, jockeyig, etc.) Arrival poit at the Source of users/ customers Size of user source Arrivals process Queue Queue disciplie ad Queue capacity Service process Servers Number of servers Departure poit from the Queueig etwork cosistig of five queueig s I Queueig Queueig 2 Poit where users make a choice Queueig 4 Queueig 3 Poit where users merge + Queueig 5 Out Applicatios of Queueig Theory Some familiar queues: _ Airport check-i; aircraft i a holdig patter _ Automated Teller Machies (ATMs) _ Fast food restaurats _ Phoe ceter s lies _ Urba itersectio _ Toll booths _ Spatially distributed urba s ad services Level-of-service (LOS) stadards Ecoomic aalyses ivolvig trade-offs amog operatig costs, capital ivestmets ad LOS ogestio pricig

The Airside as a Queueig Network Queueig Models a Be Essetial i Aalysis of apital Ivestmets ost Total cost Optimal cost ost of buildig the capacity ost of losses due to waitig Optimal capacity Airport apacity Stregths ad Weakesses of Queueig Theory Queueig models ecessarily ivolve approximatios ad simplificatio of reality Results give a sese of order of magitude, chages relative to a baselie, promisig directios i which to move losed-form results essetially limited to steady state coditios ad derived primarily (but ot solely) for birth-ad-death s ad phase s Some useful bouds for more geeral s at steady state Numerical solutios icreasigly viable for dyamic s Huge umber of importat applicatios A ode for Queueig Models: A/B/m Distributio of service time Number of servers Queueig System / / S Queue ustomers S Service S facility S Distributio of iterarrival time Some stadard code letters for A ad B: _ M: Negative expoetial (M stads for memoryless) _ D: Determiistic _ E k :kth-order Erlag distributio _ G: Geeral distributio

Termiology ad Notatio Number i : umber of customers i queueig Number i queue or Queue legth : umber of customers waitig for service Total time i ad waitig time N(t) = umber of customers i queueig at time t P (t) = probability that N(t) is equal to at time t λ : mea arrival rate of ew customers whe N(t) = μ : mea (total) service rate whe N(t) = Termiology ad Notatio (2) Trasiet state: state of at t is iflueced by the state of the at t = 0 Steady state: state of the is idepedet of iitial state of the m: umber of servers (parallel service chaels) If λ ad the service rate per busy server are costats λ ad μ, respectively, the λ =λ, μ = mi (μ, mμ); i that case: _ Expected iter-arrival time = /λ _ Expected service time = /μ Some Expected Values of Iterest at Steady State Little s Law Give: _ λ = arrival rate _ μ = service rate per service chael Ukows: _ L = expected umber of users i queueig _ L q = expected umber of users i queue _ W = expected time i queueig per user (W = E(w)) _ W q = expected waitig time i queue per user (W q = E(w q )) 4 ukows We eed 4 equatios Number of users A(t): cumulative arrivals to the (t): cumulative service completios i the A(t) N(t) (t) t T T T N ( t) A T N ( t) 0 ( ) 0 L T = = = λt WT T T A ( T ) Time

Relatioships amog L, L q, W, W q Four ukows: L, W, L q, W q Need 4 equatios. We have the followig 3 equatios: _ L = λw (Little s law) _ L q = λw q _ W = W q + μ If we ca fid ay oe of the four expected values, we ca determie the three others The determiatio of L (or other) may be hard or easy depedig o the type of queueig at had L = P (P :probability that customers are i the ) =0 Birth-ad-Death Queueig Systems. m parallel, idetical servers. 2. Ifiite queue capacity (for ow). 3. Wheever users are i (i queue plus i service) arrivals are Poisso at rate of λ per uit of time. 4. Wheever users are i, service completios are Poisso at rate of μ per uit of time. 5. FFS disciplie (for ow). Time: t users The Fudametal Relatioship μ Δt λ Δt -(λ + μ )Δt Time: t+δt + users users - users P (t) = Prob [ users i at time t] P (t + Δt) = P + (t) μ + Δt + P (t) λ Δt + P (t) [ (μ + λ ) Δt] The differetial equatios that determie the state probabilities P (t + Δt) = P + (t) μ + Δt + P (t) λ Δt + P (t) [ (μ + λ ) Δt] After a simple maipulatio: dp (t) = (λ + μ ) P (t) + λ P (t) + μ + P + (t) () () applies whe =, 2, 3,.; whe = 0, we have: dp 0 (t) = λ0 P 0 (t) + μ P (t) (2) The of equatios () ad (2) is kow as the hapma-kolmogorov equatios for a birth-ad-death

The state balace equatios Birth-ad-Death System: State Trasitio Diagram We ow cosider the situatio i which the queueig λ 0 λ λ 2 λ m- λ m λ m+ has reached steady state, i.e., t is large eough to have P (t) = P, idepedet of t, or dp (t) = 0 0 2 m m+ The, () ad (2) provide the state balace equatios: μ μ 2 μ μ m μ m+ μ m+2 3 λ 0 P 0 = μ P = 0 (3) We are iterested i the characteristics of the (λ + μ ) P = λ P + μ + P + =, 2, 3,.. (4) uder equilibrium coditios ( steady state ), i.e., whe The state balace equatios ca also be writte directly the state probabilities P (t) are idepedet of t for from the state trasitio diagram large values of t a write balace equatios ad obtai closed form expressios for P, L, W, L q, W q Solvig.. M/M/: Observig State Trasitio Diagram from Two Poits Solvig (3) ad (4), we have: From poit : λp 0 = μp (λ + μ)p = λp 0 + μp 2 (λ + μ)p = λp + μp + P = λ 0 P0 ; P 2 = λ P = λ λ 0 P0 etc. μ μ 2 μ 2 μ λ λ λ λ λ λ λ ad, i geeral, 0 2 - + λ λ 2... λ λ 0 μ μ μ μ μ μ μ P = P 0 = K P 0 μ μ... μ 2 μ But, we also have: = P = P 0 ( + K ) =0 = Givig, P 0 = + K = From poit 2: oditio for steady state: K < = λp 0 = μp P μp2 λ λ λ λ λ λ λ 0 2 - + μ λ = λ P μp = + μ μ μ μ μ μ

M/M/: Derivatio of P 0 ad P M/M/: Derivatio of L, W, W q, ad L q Step : P = λ P 0, P 2 = λ 2 P 0, L, P = λ μ μ μ Step 2: P =, P 0 λ = P = =0 =0 μ 0 P 0 λ =0 μ Step 3: ρ = λ, the λ = ρ = ρ = (Q ρ < ) μ =0 μ =0 ρ ρ Step 4: P 0 = ρ =0 = ρ ad P = ρ ( ρ) L = P = ρ ( ρ) = ( ρ) ρ = ( ρ)ρ ρ =0 =0 =0 = = ( ρ)ρ d ρ = ( ρ)ρ d dρ =0 dρ ρ λ = ( ρ)ρ ρ μ λ = = = ( ρ) 2 ( ρ) λ μ λ μ L λ W = = = λ μ λ λ μ λ λ W q = W = = μ μ λ μ μ(μ λ) λ λ 2 L q = λw q = λ = μ(μ λ) μ(μ λ) High Sesitivity of Delay at High Levels of Utilizatio Expected delay M/M/: A alterative, direct derivatio of L ad W For a M/M/, with FFS disciplie: apacity ρ = Demad W = ( +) P = E[ N + ] = E[N ] + = L + () =0 μ μ μ μ But from Little s theorem we also have: L = λ W (2) It follows from () ad (2) that, as before: λ L = ; W = μ λ μ λ Does the queueig disciplie matter?

Additioal importat M/M/ results The pdf for the total time i the, w, ca be computed for a M/M/ (ad FFS): f w (w) = ( ρ )μe ( ρ )μw = (μ λ )e (μ λ )w for w 0 Thus, as already show, W = /(μ -λ) = /[μ (-ρ)] The stadard deviatio of N, w, N q, w q are all proportioal to /(-ρ), just like their expected values (L, W, L q, W q, respectively) The expected legth of the busy period, E[B], is equal to /(μ -λ) M/M/: E[B], the expected legth of a busy period N t I B I B I B P 0 = B = busy period I = idle period E[legth Idle period ] E[legth Busy period ] + E[legth Idle period ] But, P 0 = ρ E[legth Idle period] = λ Therefore, E[B] = E[legth Busy period] = = μ ( ρ ) μ λ