Lecture 4 Notes (Little s Theorem)

Similar documents
Basic definitions and relations

The Arcsine Distribution

EXERCISES FOR SECTION 1.5

23.5. Half-Range Series. Introduction. Prerequisites. Learning Outcomes

Lecture 2-1 Kinematics in One Dimension Displacement, Velocity and Acceleration Everything in the world is moving. Nothing stays still.

T L. t=1. Proof of Lemma 1. Using the marginal cost accounting in Equation(4) and standard arguments. t )+Π RB. t )+K 1(Q RB

Continuous Time Markov Chain (Markov Process)

Essential Microeconomics : OPTIMAL CONTROL 1. Consider the following class of optimization problems

Linear Response Theory: The connection between QFT and experiments

Expert Advice for Amateurs

1. VELOCITY AND ACCELERATION

Reserves measures have an economic component eg. what could be extracted at current prices?

Vehicle Arrival Models : Headway

Designing Information Devices and Systems I Spring 2019 Lecture Notes Note 17

Biol. 356 Lab 8. Mortality, Recruitment, and Migration Rates

3.1.3 INTRODUCTION TO DYNAMIC OPTIMIZATION: DISCRETE TIME PROBLEMS. A. The Hamiltonian and First-Order Conditions in a Finite Time Horizon

Reading from Young & Freedman: For this topic, read sections 25.4 & 25.5, the introduction to chapter 26 and sections 26.1 to 26.2 & 26.4.

MATH 4330/5330, Fourier Analysis Section 6, Proof of Fourier s Theorem for Pointwise Convergence

10. State Space Methods

Stationary Distribution. Design and Analysis of Algorithms Andrei Bulatov

5. Stochastic processes (1)

Hamilton- J acobi Equation: Weak S olution We continue the study of the Hamilton-Jacobi equation:

2. Nonlinear Conservation Law Equations

Guest Lectures for Dr. MacFarlane s EE3350 Part Deux

ENV 6015 Solution to Mixing Problem Set

Physics 235 Chapter 2. Chapter 2 Newtonian Mechanics Single Particle

This document was generated at 1:04 PM, 09/10/13 Copyright 2013 Richard T. Woodward. 4. End points and transversality conditions AGEC

Simulation-Solving Dynamic Models ABE 5646 Week 2, Spring 2010

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

Hamilton- J acobi Equation: Explicit Formulas In this lecture we try to apply the method of characteristics to the Hamilton-Jacobi equation: u t

Section 7.4 Modeling Changing Amplitude and Midline

Lecture 4 Kinetics of a particle Part 3: Impulse and Momentum

EE 315 Notes. Gürdal Arslan CLASS 1. (Sections ) What is a signal?

Math 334 Fall 2011 Homework 11 Solutions

KEY. Math 334 Midterm I Fall 2008 sections 001 and 003 Instructor: Scott Glasgow

Module 4: Time Response of discrete time systems Lecture Note 2

Math 2142 Exam 1 Review Problems. x 2 + f (0) 3! for the 3rd Taylor polynomial at x = 0. To calculate the various quantities:

In this chapter the model of free motion under gravity is extended to objects projected at an angle. When you have completed it, you should

Notes for Lecture 17-18

control properties under both Gaussian and burst noise conditions. In the ~isappointing in comparison with convolutional code systems designed

5.1 - Logarithms and Their Properties

International Journal of Scientific & Engineering Research, Volume 4, Issue 10, October ISSN

Chapter 12: Velocity, acceleration, and forces

Solutions Problem Set 3 Macro II (14.452)

18 Biological models with discrete time

This document was generated at 7:34 PM, 07/27/09 Copyright 2009 Richard T. Woodward

Ground Rules. PC1221 Fundamentals of Physics I. Kinematics. Position. Lectures 3 and 4 Motion in One Dimension. A/Prof Tay Seng Chuan

Solutions for Assignment 2

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Solutions to Assignment 1

ACE 562 Fall Lecture 8: The Simple Linear Regression Model: R 2, Reporting the Results and Prediction. by Professor Scott H.

Section 3.5 Nonhomogeneous Equations; Method of Undetermined Coefficients

4.5 Constant Acceleration

KINEMATICS IN ONE DIMENSION

Comments on Window-Constrained Scheduling

IMPLICIT AND INVERSE FUNCTION THEOREMS PAUL SCHRIMPF 1 OCTOBER 25, 2013

E β t log (C t ) + M t M t 1. = Y t + B t 1 P t. B t 0 (3) v t = P tc t M t Question 1. Find the FOC s for an optimum in the agent s problem.

Some Basic Information about M-S-D Systems

INTRODUCTION TO MACHINE LEARNING 3RD EDITION

Second Law. first draft 9/23/04, second Sept Oct 2005 minor changes 2006, used spell check, expanded example

Chapter 2. First Order Scalar Equations

Chapter 7: Solving Trig Equations

SOLUTIONS TO ECE 3084

Predator - Prey Model Trajectories and the nonlinear conservation law

Ordinary dierential equations

Stochastic models and their distributions

Seminar 4: Hotelling 2

Let us start with a two dimensional case. We consider a vector ( x,

dt = C exp (3 ln t 4 ). t 4 W = C exp ( ln(4 t) 3) = C(4 t) 3.

WEEK-3 Recitation PHYS 131. of the projectile s velocity remains constant throughout the motion, since the acceleration a x

Chapter 15 Lasers, Laser Spectroscopy, and Photochemistry

ODEs II, Lecture 1: Homogeneous Linear Systems - I. Mike Raugh 1. March 8, 2004

On Measuring Pro-Poor Growth. 1. On Various Ways of Measuring Pro-Poor Growth: A Short Review of the Literature

Hybrid Control and Switched Systems. Lecture #3 What can go wrong? Trajectories of hybrid systems

Math 10B: Mock Mid II. April 13, 2016

15. Vector Valued Functions

Position, Velocity, and Acceleration

u(x) = e x 2 y + 2 ) Integrate and solve for x (1 + x)y + y = cos x Answer: Divide both sides by 1 + x and solve for y. y = x y + cos x

Economics 8105 Macroeconomic Theory Recitation 6

) were both constant and we brought them from under the integral.

Echocardiography Project and Finite Fourier Series

cs/ee 143 Communication Networks

d 1 = c 1 b 2 - b 1 c 2 d 2 = c 1 b 3 - b 1 c 3

Second Order Linear Differential Equations

Errata (1 st Edition)

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

PHYSICS 220 Lecture 02 Motion, Forces, and Newton s Laws Textbook Sections

STATE-SPACE MODELLING. A mass balance across the tank gives:

V L. DT s D T s t. Figure 1: Buck-boost converter: inductor current i(t) in the continuous conduction mode.

t is a basis for the solution space to this system, then the matrix having these solutions as columns, t x 1 t, x 2 t,... x n t x 2 t...

We just finished the Erdős-Stone Theorem, and ex(n, F ) (1 1/(χ(F ) 1)) ( n

Integration Over Manifolds with Variable Coordinate Density

Effects of Coordinate Curvature on Integration

Lecture 2 October ε-approximation of 2-player zero-sum games

V AK (t) I T (t) I TRM. V AK( full area) (t) t t 1 Axial turn-on. Switching losses for Phase Control and Bi- Directionally Controlled Thyristors

Homework-8(1) P8.3-1, 3, 8, 10, 17, 21, 24, 28,29 P8.4-1, 2, 5

Electrical and current self-induction

Exponential Weighted Moving Average (EWMA) Chart Under The Assumption of Moderateness And Its 3 Control Limits

IB Physics Kinematics Worksheet

Transcription:

Lecure 4 Noes (Lile s Theorem) This lecure concerns one of he mos imporan (and simples) heorems in Queuing Theory, Lile s Theorem. More informaion can be found in he course book, Bersekas & Gallagher, secion 3.2 (noe ha here are some minor errors and noaional inconsisencies in heir version) and in Kleinrock I, secion 2.. Lile s Theorem is, in some ways, obvious. Firs we will inroduce he heorem in a handwaving manner and hen make he deails of he definiion more precise. Lile s Theorem saes: N = λt () Where N is he average number of cusomers in a queue, T is he average ime a cusomer spends queuing and λ is he average rae of arrivals o he queue. In many ways his heorem represens an obvious ruh if a lo of people are in a queue (N is large) hen hey will have long delays (T is large); if few people arrive in a queue (λ is small) hen he average number of people in he queue is small (N is small). This lecure will be spen making his inuiive idea more rigorous. Le us firs make precise he definiions of N, λ and T and hen make clear he assumpions on which he heorem ress. Le us firs make some definiions: N(τ) is he number of cusomers in he sysem a ime τ. α(τ) is he number of cusomers who arrived in he inerval [, τ]. β(τ) is he number of cusomers who have depared in he inerval [, τ]. i is he ime a which he ih cusomer arrived. T (i) is he ime spen queuing by he ih cusomer. If N is he mean value of N(τ) aken over he inerval [, ] hen i is clear ha: N = N(τ)dτ (2) Le us assume: N = lim N (3) (Noe ha his limi is no guaraneed o exis imagine, for example, a queue which keeps growing.) If he limi exiss, N is he seady sae ime average of N(τ). We nex define he average arrival rae over he ime period [, ]. λ = α() and, again, we assume ha he following limi exiss: (4) λ = lim λ (5) Finally, he average delay experienced by hose cusomers who ener he sysem a imes in [, ] is given by: T = α() i= T (i) α() (6)

And, for a hird ime, we assume ha he following limi exiss: T = lim T (7) Lile s Theorem Proof assuming FIFO 8 7 6 5 arrivals α(τ) deparures β(τ) 4 3 2 T () α(τ) T (2) β(τ) N(τ) ime τ 2 3 4 5 6 7 8 Figure : Lile s Theorem in a FIFO Sysem A firs, we will prove Lile s Theorem wih he resricive condiions ha, in addiion o he limis above exising, he queue is empy a ime (N() = ), ha queuing is FIFO and ha he queue becomes empy infiniely ofen beyond any given ime τ. Figure shows a FIFO queue which is iniially empy. We noe ha a any ime τ: N(τ) = α(τ) β(τ) (8) I is clear ha if we choose a ime when he sysem again becomes empy hen we can calculae he area of he shaded area A(): A() = N(τ)dτ (9) 2

However, equally, we can consider he shaded area o be composed of horizonal srips of heigh and widh T (i) (for he ih cusomer). In his case, we have: Seing hese equaions equal and dividing each side by gives us: α() A() = T (i) () i= N(τ)dτ = α() i= T (i) = α() α() i= T (i) α() () Therefore we have: N = λ T (2) which, if we ake he limi as ( ) becomes Lile s Theorem as required. Noe ha some of he assumpions made here are, in fac, unnecessary as we shall see. In fac, Lile s Theorem only requires he following:. The limi λ = lim α()/ exiss 2. The limi δ = lim β()/ exiss 3. The limi T = lim T exiss 4. δ = λ Lile s Theorem Proof no assuming FIFO Figure 2 shows he siuaion if we don assume FIFO. Now, i is sill clear ha he shaded area in he inerval [, ] is given by: A() = N(τ)dτ (3) even hough, in he diagram, N(τ) is no longer necessarily a coninuous verical slice of he area (consider, for example, he siuaion a ime 4 in he diagram). Now, we define he following: D() is he se of cusomers who have depared he sysem by ime. D() is he se of cusomers who are sill in he sysem a ime. The delay experienced up o ime by a cusomer sill in he sysem a ime is i. Therefore we can say: A() = i D() T (i) + i D() ( i ) (4) 3

arrivals α(τ) 5 4 3 α(τ) 2 T (2) T () ime τ 2 3 4 5 Figure 2: Lile s Theorem in a non FIFO Sysem Therefore, equaing hese and dividing by we ge N(τ)dτ = i D() T (i) + i D() ( i ) (5) Up o ime, he average arrival rae λ is given by: λ = D() + D() (6) Up o ime, he average waiing ime T is given by he oal waiing ime of all he cusomers so far over he oal number of cusomers enering he sysem so far (up o ime ): T = i D() T (i) + i D() ( i) D() + D() (7) Subsiuing hese wo equaions and our previous equaion (2) ino (5) we herefore have: N = λ T (8) which, in he limi as gives us Lile s Theorem again. 4

Probabalisic Form of Lile s Theorem Throughou his secion we will assume ha all relevan sysems are ergodic. Le us define ha a a ime he probabiliy ha here are exacly n cusomers in he sysem is p n (). (Typically, in a probabalisic siuaion we would be given, or assume, he saring condiions he disribuion given by p n () for all n). From his, we can say ha he mean number of cusomers in he sysem a ime is given by: N() = np n () (9) n= Noe ha N() and p n () depend on boh and he iniial disribuion of p() = {p (), p (), p 2 ()... }. If we assume ha he sysem converges o some seady sae disribuion hen we have: lim p n() = p n n =,,... (2) And herefore we can say ha he average number of cusomers in he sysem is: N = Now, if we assume (as before) ha his converges o a limi, we have: np n (2) n= N = lim N() (22) Similarly, le us assume ha he average delay for he kh cusomer T (k) also converges as k o a seady sae value: T = lim T (k) (23) k Now, since we assumed ergodiciy, we can say ha he ime average of he number of cusomers N is (wih probabiliy ) equal o he seady sae sae-space average N: N = lim N = lim N() = N (24) Similarly, we can say ha he ime average of cusomer delay T is equal o he seady sae sae-space average T. T = lim k k k i= Lile s heorem hen holds wih λ given by: T (i) = lim T (k) = T (25) k λ = lim E{Arrivals in inerval [, ]} (26) 5

A Simple Example Using Lile s Theorem Take, as an example, he very simple model of an eherne sysem shown in figure. Assume ha he eherne can (as is ofen he case) only ransmi a single packe a a ime (oher packes o be sen mus queue). Oupu Queue Oupu packes (rae λ) Eherne ransmis packes Res of inerne Figure 3: A very simple view of an eherne sysem. Noe ha we can apply Lile s heorem wice even in his simple siuaion. Firs, if N Q is he average number of packes queuing o leave he sysem and W is he average ime a packe spends in he queue waiing o be ransmied hen we have: N Q = λw Now, assuming no packes are ever dropped a his poin (his would ypically be he case unless he sysem is misconfigured) and he mean ransmission ime aken for he packe along his secion of eherne is X hen we have: ρ = λx where ρ is he average number of packes on he ougoing eherne secion. Since, his mus be eiher zero or one a any given ime, ρ is also he uilisaion facor he proporion of he ime which we expec he line o be busy. Anoher Simple Lile s Theorem Example Consider a windowed flow conrol sysem such as TCP. A any given ime, a mos W packes (and ACKs) can be ousanding where W is he window size. Le us assume now ha W has reached some consan maximum (in TCP, users adverise a maximum window size) W m (his is he maximum size he window will reach if no packes are los). Since he number of packes under ransmission is less han or equal o W m we can say ha if packes depar a an average rae λ and, on average, have a round rip ime of T hen W m λt This gives us an insigh ino he flow-conrol behaviour of TCP since, i is obvious from his equaion ha if delay increases (T goes up) hen λ he sending rae will come down (or he window size will be decreased). 6

If he sysem is congesed hen λ canno increase (he sysem is ransmiing a is maximum rae). If no packes are los hen he window size W will become W m and W m λt Therefore, in a congesed sae, if packe loss does no ye occur, increasing he window size simply serves o increase delay wih no advanages o hroughpu which shows he reason for seing a maximum window size. 7