1 Exponential distribution: main limitation So far, we have considered Birth and death process and its direct application To single server queues With.

Slides:



Advertisements
Similar presentations
Thrasyvoulos Spyropoulos / Eurecom, Sophia-Antipolis 1  Load-balancing problem  migrate (large) jobs from a busy server to an underloaded.
Advertisements

1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
AP Statistics Chapter 16. Discrete Random Variables A discrete random variable X has a countable number of possible values. The probability distribution.
Probability, Statistics, and Traffic Theories
ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar
Probability Densities
Mean Delay in M/G/1 Queues with Head-of-Line Priority Service and Embedded Markov Chains Wade Trappe.
TDC 369 / TDC 432 April 2, 2003 Greg Brewster. Topics Math Review Probability –Distributions –Random Variables –Expected Values.
1 Review of Probability Theory [Source: Stanford University]
OS Fall ’ 02 Performance Evaluation Operating Systems Fall 2002.
1 Performance Evaluation of Computer Networks Objectives  Introduction to Queuing Theory  Little’s Theorem  Standard Notation of Queuing Systems  Poisson.
Tch-prob1 Chapter 4. Multiple Random Variables Ex Select a student’s name from an urn. S In some random experiments, a number of different quantities.
Probability and Statistics Review
4. Review of Basic Probability and Statistics
The moment generating function of random variable X is given by Moment generating function.
2.3. Measures of Dispersion (Variation):
7/3/2015© 2007 Raymond P. Jefferis III1 Queuing Systems.
Operations Management
Probability Review ECS 152A Acknowledgement: slides from S. Kalyanaraman & B.Sikdar.
Internet Queuing Delay Introduction How many packets in the queue? How long a packet takes to go through?
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
1 Chapters 9 Self-SimilarTraffic. Chapter 9 – Self-Similar Traffic 2 Introduction- Motivation Validity of the queuing models we have studied depends on.
Simulation Output Analysis
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  …
 1  Outline  stages and topics in simulation  generation of random variates.
0 Simulation Modeling and Analysis: Input Analysis K. Salah 8 Generating Random Variates Ref: Law & Kelton, Chapter 8.
Tch-prob1 Chap 3. Random Variables The outcome of a random experiment need not be a number. However, we are usually interested in some measurement or numeric.
Probability Review Thinh Nguyen. Probability Theory Review Sample space Bayes’ Rule Independence Expectation Distributions.
CS433 Modeling and Simulation Lecture 13 Queueing Theory Dr. Anis Koubâa 03 May 2009 Al-Imam Mohammad Ibn Saud University.
K. Shum Lecture 16 Description of random variables: pdf, cdf. Expectation. Variance.
0 K. Salah 2. Review of Probability and Statistics Refs: Law & Kelton, Chapter 4.
Squared coefficient of variation
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
1 Queueing Theory Frank Y. S. Lin Information Management Dept. National Taiwan University
Queueing Theory What is a queue? Examples of queues: Grocery store checkout Fast food (McDonalds – vs- Wendy’s) Hospital Emergency rooms Machines waiting.
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
Probability & Statistics I IE 254 Summer 1999 Chapter 4  Continuous Random Variables  What is the difference between a discrete & a continuous R.V.?
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.
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Probability Review CSE430 – Operating Systems. Overview of Lecture Basic probability review Important distributions Poison Process Markov Chains Queuing.
Chapter 01 Probability and Stochastic Processes References: Wolff, Stochastic Modeling and the Theory of Queues, Chapter 1 Altiok, Performance Analysis.
Expectation. Let X denote a discrete random variable with probability function p(x) (probability density function f(x) if X is continuous) then the expected.
The M/M/ N / N Queue etc COMP5416 Advanced Network Technologies.
CSCI1600: Embedded and Real Time Software Lecture 19: Queuing Theory Steven Reiss, Fall 2015.
Review of Probability. Important Topics 1 Random Variables and Probability Distributions 2 Expected Values, Mean, and Variance 3 Two Random Variables.
AP Statistics Chapter 16. Discrete Random Variables A discrete random variable X has a countable number of possible values. The probability distribution.
Engineering Statistics ECIV 2305
Chapter 5. Continuous Random Variables. Continuous Random Variables Discrete random variables –Random variables whose set of possible values is either.
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
1 Transformation Techniques In Probability theory various transformation techniques are used to simplify the solutions for various moment calculations.
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.
1 Chapter 5 Continuous time Markov Chains Learning objectives : Introduce continuous time Markov Chain Model manufacturing systems using Markov Chain Able.
Analytical Model for Connectivity in Vehicular Ad Hoc Networks Published in IEEE TVT vol. 57, no. 6, November 2008 Authors: Saleh Yousefi, Eitan Altman,
Week 61 Poisson Processes Model for times of occurrences (“arrivals”) of rare phenomena where λ – average number of arrivals per time period. X – number.
More on Exponential Distribution, Hypo exponential distribution
Random Variable 2013.
ASV Chapters 1 - Sample Spaces and Probabilities
3.1 Expectation Expectation Example
ECE 358 Examples #1 Xuemin (Sherman) Shen Office: EIT 4155
Probability Review for Financial Engineers
Variability 8/24/04 Paul A. Jensen
Queueing Theory 2008.
Queueing Theory Frank Y. S. Lin Information Management Dept.
Erlang, Hyper-exponential, and Coxian distributions
Presentation transcript:

1 Exponential distribution: main limitation So far, we have considered Birth and death process and its direct application To single server queues With the 2 following assumptions  Inter-arrival time is exponential  Service time is exponential Problem with exponential distribution It has the memoryless property (not very good) Since, the longer you get served, => the more likely your service will complete

2 Exponential assumption: example Let us consider Queue in one of the output ports of a router Is it ok to model this queue as an M/M/1 queue?  A lot of people do, but is it correct? The implication of such a model Transmission delay of a packet is exponential?  If you are doing file transfer all packets are 1500 bytes long  The latest statistics from SANs (Storage Area Networks) 1500 bytes P bytes P 2 64 bytes P 3

3 Inter-arrival time: is it exponential? Back in the 80s When the link speeds were very small It was OK to consider packet arrival to be Poisson But as speeds picked up with the advent of SONET Because of the tremendous speed, the utilization of links No longer regular (spaced out with exponential inter-arrival) Instead, traffic is bursty (packets are grouped together)  You go thru an ON period with back to back packets  Followed by an off period  It is better to use Interrupted Poisson distribution

4 Erlang model: mixture of exponentials Erlang Realized the exponential distribution  was not an adequate modeling technique  But it is important to keep it as it leads to easy mathematics Came up with another idea Mixture of exponentials represented by the letter E  Combine several exponentials to make up a service μ Break it up into r exponentials in tandem rμrμrμrμ … rμrμ

5 Erlang model: main concept The arriving customer Takes a sequence of exponential services Instead of a single service time Breaking service time into r service times Is called E r Erlang distribution with r stages However, the r servers are equivalent to one server  Only one customer is accommodated in service at a time  Example: E 2 Why is it important? Arbitrary pdf can be represented by the Erlang model 1/2μ

6 Coxian model: main idea Idea Instead of forcing the customer to get r exponential distributions in an E r model The customer will have the choice to get 1, 2, …, r services Example C 2 : when customer completes the first phase He will move on to 2 nd phase with probability a  Or he will depart with probability b (where a+b=1) a b

7 Laplace transform X is a continuous random variable f X (x) is the probability density function of X Laplace transform of X Since,

8 Main property of Laplace transform Main property Proof: first and second moment

9 Moment generating functions Laplace transform is a special case of Moment generating function ø(t) It is called as such because of all of the moments of X  Can be obtained by successively differentiating it Laplace transform is obtained t = -s

10 Laplace transform of an exponential distribution Let X be a continuous random variable That follows the exponential distribution The Laplace transform of X is given by

11 Convolution of 2 discrete random variables Let X 1 and X 2 be discrete random variables Whose probability distributions are known  P[X 1 = x 1 ] and P[X 2 = x 2 ] Y be the sum of X 1 and X 2 What is the probability distribution of Y = X 1 + X 2 ?  P[Y = y]

12 Convolution of 2 continuous random variables Let X 1 and X 2 be 2 continuous random variables f X1 (x 1 ) and f X2 (x 2 ) are known => f X1 * (s) and f X2 * (s) are known Let Y = X 1 + X 2 What is the pdf of Y?

13 Application to Erlang model X 1 and X 2 are exponentially distributed and independent with mean 1/2μ each 1/2μ X1X1 X2X2 Y=X 1 +X 2

14 Erlang service time: first and second moment The mean of Y? The variance of Y? Exercise at home Obtain the mean and variance of E 2 from its Laplace transform

15 Squared coefficient of variation The squared coefficient of variation Gives you an insight to the dynamics of a r.v. X Tells you how bursty your source is C 2 get larger as the traffic becomes more bursty  For voice traffic for example, C 2 =18  Poisson arrivals C 2 =1 (not bursty)

16 Poisson arrivals vs. bursty arrivals Why do we care If arrival is bursty or Poisson Bursty traffic will place havoc into your buffer Example: router design % loss C2C2

17 Erlang, Hyper-exponential, and Coxian distributions Mixture of exponentials Combines a different # of exponential distributions Erlang Hyper-exponential Coxian μ μμμE4E4 Service mechanism H3H3 μ1μ1 μ2μ2 μ3μ3 P1P1 P2P2 P3P3 μ μμμ C4C4

18 Erlang distribution: analysis Mean service time E[Y] = E[X 1 ] + E[X 2 ] =1/2μ + 1/2μ = 1/μ Variance Var[Y] = Var[X 1 ] + Var[X 2 ] = 1/4μ 2 v + 1/4μ 2 = 1/2μ 2 1/2μ E2E2

19 Squared coefficient of variation: analysis X is a constant X = d => E[X] = d, Var[X] = 0 => C 2 =0 X is an exponential r.v. E[X]=1/μ; Var[X] = 1/μ 2 => C 2 = 1 X has an Erlang r distribution E[X] = 1/μ, Var[X] = 1/rμ 2 => C 2 = 1/r f X * (s) = [rμ/(s+rμ)] r C2C2 0 constant 1 exponential Hypo-exponential Erlang

20 Probability density function of Erlang r Let Y have an Erlang r distribution r = 1 Y is an exponential random variable r is very large The larger the r => the closer the C 2 to 0 E r tends to infintiy => Y behaves like a constant E 5 is a good enough approximation

21 Generalized Erlang E r Classical Erlang r E[Y] = r/μ Var[Y] = r/μ 2 Generalized Erlang r Phases don’t have same μ rμrμrμrμ … rμrμ Y μ1μ1 μ2μ2 … μrμr Y

22 Generalized Erlang E r : analysis If the Laplace transform of a r.v. Y Has this particular structure Y can be exactly represented by An Erlang E r Where the service rates of the r phase  Are minus the root of the polynomials

23 Hyper-exponential distribution P 1 + P 2 + P 3 +…+ P k =1 Pdf of X? μ1μ1 μ2μ2 P1P1 P2P2 PkPk μkμk.... X

24 Hyper-exponential distribution:1 st and 2 nd moments Example: H 2

25 Hyper-exponential: squared coefficient of variation C 2 = Var[X]/E[X] 2 C 2 is greater than 1 Example: H 2, C 2 > 1 ?

26 Coxian model: main idea Idea Instead of forcing the customer to get r exponential distributions in an E r model The customer will have the choice to get 1, 2, …, r services Example C 2 : when customer completes the first phase He will move on to 2 nd phase with probability a  Or he will depart with probability b (where a+b=1) a b

27 Coxian model μ1μ1 μ2μ2 μ3μ3 μ4μ4 a1a1 b1b1 b2b2 b3b3 a2a2 a3a3 μ1μ1 μ1μ1 b1b1 a 1 b 2 μ2μ2 μ1μ1 μ2μ2 μ3μ3 a 1 a 2 b 3 μ1μ1 μ2μ2 μ3μ3 μ4μ4 a 1 a 2 a 3

28 Coxian distribution: Laplace transform Laplace transform of C k Is a fraction of 2 polynomials The denominator of order k and the other of order < k Implication A Laplace transform that has this structure Can be represented by a Coxian distribution  Where the order k = # phases,  Roots of denominator = service rate at each phase

29 Coxian model: conclusion Most Laplace transforms Are rational polynomials => Any distribution can be represented Exactly or approximately By a Coxian distribution

30 Coxian model: dimensionality problem A Coxian model can grow too big And may have as such a large # of phases To cope with such a limitation Any Laplace transform can be approximated by a c To obtain the unknowns (a, μ 1, μ 2 )  Calculate the first 3 moments based on Laplace transform  And match these against those of the C 2 a b=1-a μ1μ1 μ2μ2

31 C 2 : first three moments