state n 2.6 the m/m/1/n queueing system: the finite buffer case

83
State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Upload: coleen-poole

Post on 14-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

State N

2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Page 2: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 3: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 4: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The blocking probability for various values of offered load, λ/μ, when N=5

Page 5: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The blocking probability for various values of offered load, λ/μ=0.9 and buffer size is varied

Page 6: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.7 The M/M/∞ Queueing System: Infinite Number of Servers

Page 7: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The state dependent arrival and service rates are

Page 8: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 9: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 10: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The M/M/m Queueing Systems: m Parallel Servers with a Queue

Page 11: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The state dependent arrival and service rates m Parallel Servers

Page 12: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 13: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 14: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Summing up over all the states one has

Page 15: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

In the above ρ=λ/mμ

Page 16: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

• In telephone engineering one quantity of interest is the probability that all the server in this system are busy

Page 17: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Substituting for p0 this becomes

Page 18: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.9 The M/M/m/m Queue: A Loss System

Page 19: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

As Figure 2.22 shows, the queueing system simply consists of m parallel servers

Page 20: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 21: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Erlang’s B formula: Erlang formula of the first kind, in Europe

Summing over all the m +1states leads to

Page 22: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.10 Central Server CPU Model

Page 23: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 24: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 25: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The mean waiting to get through the queueing system

Page 26: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.11 Transient Solution of the M/M/1/∞ Queueing System

1. Equilibrium case: A set of linear equations

2. Transient case: A set of linear differential equations

Page 27: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The moment-generating function

• The state probabilities form a sequence of numbers that can be transformed, like any numerical sequence, into a “frequency” like domain. It turn out to relatively easy to obtain the frequency domain solution.

Page 28: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The details of the solution techniques are:

Page 29: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 30: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.11.2 The Transient Solution

We first take the differential equations of the previous section, multiply both sides by zn, and sum from n=1 to∞:

Page 31: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

• Recall that to get proper moment generating functions the indexes must start at n=0 so we have

Page 32: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

But three of the items here are just the boundary differential equation at n=0 and so drop out, leaving:

Page 33: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

We can rewrite this further

Page 34: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Now identifying the moment-generating functions (which sometimes requires adding and subtracting terms) one has

Page 35: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The initial condition to this equation involves i customers at time 0:

Page 36: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

To solve this partial differential equation, one can use Laplace transform which are defined as

For the left-hand side of the boxed equation one can integrate by parts to find its transform:

Page 37: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Now take the Laplace transform of the boxed differential equation and multiply out the constants so that

Page 38: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

We can now solve for P*(z,s):

At this point one must determine P0*(s) and invert the

transform. The interested reader can [GROS] (Page 99~103) for details. The well-known result for the time evolution of the state probabilities is

Page 39: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Where ρ=λ/μ, n(0)=i customers,

And Il() is the modified Bessel function of the first kind of order l:

Page 40: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.11.3 Speeding up the Computation• An efficient procedure for the calculation of

Pn(t)

This is done by first letting a=(2μt)1/2 and b=(2λt)1/2

Page 41: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 42: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Up to seven times faster

Page 43: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12 The M/G/1 Queueing System

• M/G/1: Arrivals Poisson process, Service General (arbitrary) probability distribution

• Mean number in the M/G/1 queueing system mean waiting time,

Page 44: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12.2 Mean number in the M/G/1 Queueing System

• Pollaczck-Khinchin mean value formula

• A key point is that that the state probabilities as these departure instant are in fact equal to the state probabilities at any time instant.

• GROS, Kendall’s approach

Page 45: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The recursionthe determination of a succession of elements

• The number in the system immediately after the (i+1) st departure instant is ni+1.

• This number includes both those customers in the queue and the customer in service.

• This number is also equal to the number in the system immediately after the ith departure instant minus 1 (because of the departure of a customer at the (i+1) st departure instant. This number of arrival we will call ai+1.

• For this equation to work there must be at least one customer in the system all the departure instant. Thus

Page 46: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

We still have to take care of the case ni=0. This is actually simpler than the case ni>0. The number in the queueing system at the (i+1) st departure instant is just the number of arrivals during the service period of the first customer to arrive to the empty queueing system. This first customer is the one that departs at the (i+1) st departures instant and is not counted in determining ai+1

Page 47: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

• Bringing this together we have

We would like to express this as a single equation. To do this, we will introduce the unit step function:

Page 48: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Now we can rewrite the equation for ni+1 as

If we square both side of this recursion and take expectations we have

6 items

Page 49: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

In order to solve for the Pollaczek-Khinchin formula we need to solve for each of these terms, one by one, we will now do this• Sundry (miscellaneous) Results

• E[(ni+1)2], E[ni2]

• These two terms should be equal in equilibrium so that they will cancel in (2.189).

• E[(u(ni))2]:

• Because of the nature of the step function u(ni)2=u(ni), we can replace E[(u(ni))2] with E[(u(ni))]. But what is E[(u(ni))]?

Page 50: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 51: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

P[busy]

• Consider an interval I. The server will be busy for a time period equal to

I – I p0

• The number of customers served is

• (I – I p0)μ

• Where μ is the mean service rate of the queueing system. In equilibrium the quantity above should be equal to the number of arrivals

Page 52: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Note that no restrictive assumptions have been made either the arrival process or the service times. Thus this result is valid for a G/G/1 queueing system, that is, one with an arbitrary process and service process time distribution.

2E[(ni, u(ni))]: Clearly niu(ni)=ni, so we can say

Page 53: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2E[ u(ni)ai+1]:

The number of customers that arrive into the system between the ith and (i+1)st departure instant, ai+1, is independent of the number in the queueing system immediately after the ith departure instant, ni. Thus

We already know that E[u(ni)]=ρ. To determine E[ai+1] one can look at the original recursion for E[ni+1]

And take the expectation of both sides:

Page 54: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

In equilibrium E[ni+1]=E[ni], so one is left with

One can now say that:

Using the same argument as before, the two quantities are statistically independent, so

2 E[ni+1ai+1]:

Page 55: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Putting It All TogetherNow we can substitute these sundry results into the equation:

Page 56: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Solve for E[ni], we have

We will assume for now, and prove in section 2.12.3, that the expected number of customers in the queueing system at the departure instants is the same as the expected number of customers at any instant of time:

We can also say, because the input is Poisson, that the expected number of arrivals between two successive departure instants is a time-invariant quantity:

Page 57: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

We thus have

We almost have a simple expression for the mean number in the M/G/1 queueing system in equilibrium or E[n]. What is lacking is a simple expression for E[a2]

Page 58: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

What is E[a2] ?

The quantity “a” is the number of arrivals during a typical servicing period in equilibrium. Processing as in [GROS] we can write

Page 59: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

• We need to solve for VAR [a]. Let us the service time. Then an interesting relationship [GROS] for two random variables X and Y that we can make use of is [PARZ]

Page 60: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

One can solve for the two components of this sum:

Here σs2 is the variance of the service time. So we have

Page 61: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The Pollaczek-Khinchin Mean Value Formula

Substituting (2.216) for E[a2] lead to

Page 62: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

We can get another form by expressing E[n] as

E[n] = n as a function of the mean arrival rate, mean service rate, and variance of the service time distribution.

Page 63: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Little’s Law

• n: the mean customers in a queueing system

• λ: the mean arrival rate to the queueing system

• τ : the mean waiting time to get through the queueing system

Page 64: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Page 82

Page 65: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 66: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 67: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 68: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 69: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12.3 Why We Use Departure Instants

• The Pollaczek-Khinchin mean value formula: the assumption of the state probabilities at departure instants are the same as the state probabilities at any instant.

• We will take a realization of the queueing process over a long interval. The number in the queueing system at time t will be n(t). The interval will stretch from time 0 to time T.

Page 70: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12.3 Why We Use Departure Instants

• The number of arrivals in the interval (0, T) that occur when the number of customers in the system is n will be called an(t). The number of departures bringing the system from state n+1 to state n in the interval (0, T) will be called dn(t).

Page 71: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

It should also be true from first principles that

Where d(T) and a(T) are the total number of departures and arrivals, respectively, over (0,T). One can now define the state probabilities for the departure instants as

This empirical definition of the state probabilities becomes exact in the limit. Now

Page 72: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The denominator (the part of a fraction that is below the line) can be recognized as the equation we just discussed, (2.223). The numerator was created by adding and subtracting an(T) to dn(T). As T∞, dn(T)-an(T) will never be greater than one, as has been mentioned. As T∞, and a(T) and an(T) will∞, and

Page 73: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12.3 Why We Use Departure Instants

• What this proves directly is that state probabilities seen at the departure instants are the same as the state probabilities seen at the arrival instants. But going back to our Poisson process coin-flipping analogy, the arrival instants are random points in time and independent of the queueing system state. Thus it should seem as the state probability seen at any time. This completes the proof that looking at state probabilities at departure instants for the M/G/1 queueing system is the same as looking at state probabilities for this queueing system at any instant.

Page 74: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

2.12.4 Probability Distribution of the Number in the Queueing System

• Define a matrix of transition probabilities as

Page 75: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 76: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

The equilibrium equations

π: The state probabilities, P : A matrix of transition probabilities

Service time density, b(s) , the probability of j arrivals between the ith and (i+1)st departure instance.

Page 77: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 78: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

π: The state probabilities

Page 79: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 80: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 81: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case
Page 82: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Given K, or K(z), we can obtain the transfer function π(z) or the state probability π

Page 83: State N 2.6 The M/M/1/N Queueing System: The Finite Buffer Case

Given K, or K(z), we can obtain the transfer function π(z) or the state probability π