B. Maddah ENMG 622 ENMG /20/09

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

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,

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

Queueing theory and Replacement model

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

Construction of Control Chart for Random Queue Length for (M / M / c): ( / FCFS) Queueing Model Using Skewness

First come, first served (FCFS) Batch

Queueing Theory (Part 3)

Modeling and Performance Analysis with Discrete-Event Simulation

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

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

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

SINGLE-CHANNEL QUEUING PROBLEMS APPROACH

Optimal design of N-Policy batch arrival queueing system with server's single vacation, setup time, second optional service and break down

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

The beta density, Bayes, Laplace, and Pólya

Discrete Mathematics and Probability Theory Summer 2014 James Cook Note 15

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?

Simulation of Discrete Event Systems

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

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

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

Output Analysis (2, Chapters 10 &11 Law)

4.6 M/M/s/s Loss Queueing Model

Digital Signal Processing. Homework 2 Solution. Due Monday 4 October Following the method on page 38, the difference equation

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

Class #25 Wednesday, April 19, 2018

THE MEASUREMENT OF THE SPEED OF THE LIGHT

Introduction to probability Stochastic Process Queuing systems. TELE4642: Week2

Infinite Series. Definition. An infinite series is an expression of the form. Where the numbers u k are called the terms of the series.

Induction: Solutions

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

Performance Evaluation of Weighted Fair Queuing System Using Matrix Geometric Method

1 Introduction to reducing variance in Monte Carlo simulations

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

Reliability and Queueing

Discrete Mathematics and Probability Theory Spring 2012 Alistair Sinclair Note 15

Math 155 (Lecture 3)

PRACTICE PROBLEMS FOR THE FINAL

6.3 Testing Series With Positive Terms

is also known as the general term of the sequence

What is a Hypothesis? Hypothesis is a statement about a population parameter developed for the purpose of testing.

Problem Set 4 Due Oct, 12

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

Chapter 6 Sampling Distributions

Final Review for MATH 3510

NUMERICAL METHODS FOR SOLVING EQUATIONS

Section 11.8: Power Series


Math 176 Calculus Sec. 5.1: Areas and Distances (Using Finite Sums)

Agreement of CI and HT. Lecture 13 - Tests of Proportions. Example - Waiting Times

AP Statistics Review Ch. 8

Discrete Mathematics for CS Spring 2005 Clancy/Wagner Notes 21. Some Important Distributions

Math Third Midterm Exam November 17, 2010

Introduction to Signals and Systems, Part V: Lecture Summary

STOCHASTIC NETWORKS EXAMPLE SHEET 2 SOLUTIONS

ε > 0 N N n N a n < ε. Now notice that a n = a n.

Optimally Sparse SVMs

ELEC1200: A System View of Communications: from Signals to Packets Lecture 3

Recurrence Relations

ADVANCED SOFTWARE ENGINEERING

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

10.2 Infinite Series Contemporary Calculus 1

SEQUENCES AND SERIES

Math 105: Review for Final Exam, Part II - SOLUTIONS

For example suppose we divide the interval [0,2] into 5 equal subintervals of length

Ch3 Discrete Time Fourier Transform

Analysis Of Single Server Queueing System With Batch Service. Under Multiple Vacations With Loss And Feedback

Infinite Sequences and Series

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

PH 425 Quantum Measurement and Spin Winter SPINS Lab 1

Chapter 8 Hypothesis Testing

Section 6.4: Series. Section 6.4 Series 413

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER / Statistics

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

(b) What is the probability that a particle reaches the upper boundary n before the lower boundary m?

Bernoulli Numbers. n(n+1) = n(n+1)(2n+1) = n(n 1) 2

Limit Theorems. Convergence in Probability. Let X be the number of heads observed in n tosses. Then, E[X] = np and Var[X] = np(1-p).

ENGI 4421 Confidence Intervals (Two Samples) Page 12-01

FIR Filter Design: Part II

Posted-Price, Sealed-Bid Auctions

( ) = p and P( i = b) = q.

Computing the output response of LTI Systems.

Frequentist Inference

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

BIOS 4110: Introduction to Biostatistics. Breheny. Lab #9

Application to Random Graphs

Exmple Questions for the Examination for 4041 OPTICAL COMMUNICATION ENGINEERING

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Electrical Engineering and Computer Science. BACKGROUND EXAM September 30, 2004.

Randomized Algorithms I, Spring 2018, Department of Computer Science, University of Helsinki Homework 1: Solutions (Discussed January 25, 2018)

1. By using truth tables prove that, for all statements P and Q, the statement

MATH CALCULUS II Objectives and Notes for Test 4

Calculus 2 TAYLOR SERIES CONVERGENCE AND TAYLOR REMAINDER

6.003 Homework #3 Solutions

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 22

Roberto s Notes on Series Chapter 2: Convergence tests Section 7. Alternating series

ANOTHER PROOF FOR FERMAT S LAST THEOREM 1. INTRODUCTION

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

Transcription:

B. Maddah ENMG 6 ENMG 5 5//9 Queueig Theory () Distributio of waitig time i M/M/ Let T q be the waitig time i queue of a ustomer. The it a be show that, ( ) t { q > } =. T t e Let T be the total time of a ustomer i the system (i queue plus i servie). The, it a be show i a similar way that T t e ( ) t { > } =. Example I the bak of Example, what is the probability that the waitig time of a ustomer exeeds hours? {T q > t} = e ()t =.9e =.. What is the probability that a ustomer speds more tha 3 hours i the bak? {T > t} = e ()t = e 3 =.5. Example 3 Cosider a Iterfae Message roessor (IM). The paket size i bits is expoetially distributed with mea / bits/paket. The apaity of the ommuiatio hael is C bits/se. akets arrive at radom (i.e. expoetial iter

arrival times) with arrival rate pakets/se. Fid the queueig delay for pakets at the IM. Model this as a M/M/ with arrival rate pakets/se ad servie rate C/(/) = C pakets/se. The, the mea delay per paket is W q = /( C ). Example 4 (Dediated vs. shared haels). Two omputers are oeted by a 64 kbps lie. There are eight parallel sessios usig the lie. Eah sessio geerates oisso traffi with a mea of pakets/se. The paket legths are expoetially distributed with mea of bits. The system desigers must hoose betwee givig eah sessio a dediated 8 kbps piee of badwidth or havig all pakets ompete for a sigle 64 kbps shared hael. Whih alterative gives better respose time (i.e. W)? We eed to ompare two alterative M/M/ models. The first model has four haels eah operatig as a M/M/ with = pakets/se ad = 8/ = 4 pakets/se. Therefore, W = / ( ) = / =.5 se. The seod model has oe hael with = 8 = 6 pakets/se, ad = 64/ = 3 pakets/se. Therefore, W = / ( ) =/6 =.63 se.

The respose time i the shared system is 8 times less. This is the better alterative. (Note that both systems have the same =.5.) Why this result? I the dediated system, some haels ould be idle, while other haels have log queues. This does ot happe i the shared system. The M/M/ queue This is a queue with a oisso arrival proess with rate, expoetial servie times with rate ad servers. It is a geeralizatio of M/M/ with multi-servers. : The umber of ustomers i the M/M/ system L(t) is a birth death proess with =, ad, if < = if The expressio for follows sie the miimum of expoetial rvs with rate is expoetial with rate. 3

The trasitio diagram for = is show below. 3 Reall that = /() is the traffi itesity. Defie a = /. This is the mea umber of busy servers. I the followig we assume <. Applyig the geeral flow balae equatio for a birth-death proess, the limitig probabilities are give by = + = m= = + + =! =! a a = + =! =! a a a = + =!! = a a = + =!! K K m a a = + =!!( ) 4

The, a, if <! = a if! The, the mea umber i queue is a a L q = ( ) = ( ) = ( ) = =!! = a a!!( ) m = m = m= m sie m = ( ) m= The, Little s law implies that the mea waitig time is Lq a a Wq = = =!( )!( )( ) I additio, the mea umber i the system is a L = Lq + a = a +!( ) Ad the mea time i the system, is a W = Wq + = +!( )( ) The probability that all servers are busy is a a + = = = =!!( ) = = a 5

Let T q be the waitig time i queue of a ustomer. The, a!( ) ( ) t { Tq > t} = e This a be show similar to the M/M/ ase. Example 5 (ehaed bak servie) I the M/M/ bak model with = 9 ustomers/hour ad = ustomers/hour. We fid that the mea waitig time is W q = 54 mis. Maagemet is osiderig addig more servers to brig the mea waitig time to less tha 5 miutes. How may more servers should be added? Try addig aother server. For this M/M/ system, a =.9 ad = a/ =.45. The, W q a a.9 = + = +.9 + =.379!!( )!(.45) = a.9 = =!( )( )!( )(.45).379 =.5 hours =.5 mis Addig oe more server ahieves the desired servie level. 6

Example 6. A airlie is plaig a ew telephoe reservatio eter. Eah aget will have a reservatios termial ad a serve a typial aller i 5 miutes, the servie time beig expoetially distributed. Calls arrive radomly ad the system has a large message bufferig system to hold alls that arrive whe o aget is free. A average of 36 alls per hour is expeted durig the peak period of the day. The desig riterio for the ew faility is that the probability a aller will fid all agets busy must ot exeed. (%). How may termials should be provided? This a be modeled as a M/M/ with = 36 alls /hour, = 6/5 = alls /hour, ad is to be determied suh that + <.. The miimum umber of termials,, eeded is oe that ahieves stability. That is, = /()< 36 /()< > 3. Try = 4, the = 36/48 =.75 ad a = 4 = 3. + 3 4 a a 3 3 3 = + = + 3 + + +!!( ) 6 4!(.75) = =.37736 4 a 3 = =.37736 =.59!( ) 4!(.75) So, four termials wo t do it. 7

Try = 5. Repeatig the same omputatios yields + =.3. Try = 6. Repeatig the same omputatios yields + =.99. So, six termials are eeded to ahieve the desired servie level. The M/M//K queue This is a sigle-server queue with oisso arrivals at rate, ad expoetial servie times with rate. However, the system a aommodate at most K ustomers (i.e., there are oly K waitig spaes). K is kow as the buffer size. E.g., o A bak that has room for at most K ustomers. o A maufaturig statio with a WI buffer of apaity K. o A all eter that a hadle at most K alls. Arrivig ustomers who fid the system full leave immediately (these are lost ustomers). ( K ) K K... 3 The umber of ustomers i the M/M//K system L(t) is a birth death proess with states,,,,,k, =, ad 8

, if = if < K K The trasitio diagram for K = 3 is show below. 3 Defie = /. Note that eeds ot to be less tha here. (why?) Applyig the geeral flow balae equatio for a birth-death proess, the limitig probabilities are give by K K K K = + = = = = K, = where K K + = ( ) /( ) if, ad = K = K + if =. = The, 9

Ad, for =,,, K, if K + =, if = K + ( ), if K + =, if = K + The probability that a ustomer is lost is K. The effetive arrival rate e is the rate of arrivals who joi the system. The, = ( ). The fratio of time the server is busy is e /. If, the mea umber i the system is e K L K ( ) ( ) = = ( ) ( ) K + K + = = K + ( K + ) = K +, K sie K = = ( ) K + K + ( ) ( K + ). If =,

K K K( K + ) K L = = = = K + ( K + ) = =. Little s law implies that the mea waitig time is W = L The mea umber i queue is e Lq = L. The mea waitig time is e W q = Lq. e Fat. e = ( K ) = ( ). Example 7 Seas Begiigs, a small mail order firm, has oe phoe operator. Calls arrive to Seas Begiigs at a oisso rate of 6 per hour, ad it takes a expoetially distributed time with mea miute to hadle a all. Whe the operator is busy, a iomig all is put o hold (with ie musi) i oe of K phoe lies Seas Begiigs. If all K lies are busy (meaig that oe all is beig hadled ad K are o hold), a aller gets a busy sigal ad alls a ompetitor (Air Ed). Seas Begiigs wats at most % of aller to

get a busy sigal. How may phoe lies should be provided? This a be modeled as a M/M//K with = = 6 / hour. The, =, ad K = / (K+). The desired servie level requires K. K+ > K =. What about mea aller delay? W q = (L e /)/ e = [Κ / /(K+)]/{[ /(K+)]} =.84 hours 5 miutes. (too log). How a this system be improved? Add more operators to brig mea delay dow while maitaiig a rejetio probability of %. Geeralize M/M//K to multi-server.