• Nem Talált Eredményt

6.4 Analysis of the departure process

6.4.4 The inter-departure time distribution and lag-1 joint moments

In this section we determine an expression for the moments of the inter-departure time dis-tribution as well as the joint lag-1moments via Theorem23. Based on the lag-1moments it is possible to plug the MMAP[K]/PH[K]/1 FCFS queue into the queueing network analysis framework introduced in Chapter8.

We start by defining(v(1k))j, for j ∈ {1, . . . ,NA}andk ∈ {1, . . . ,K}, as the probability that an arbitrary departing customer leaves a single customer behind, the type of which isk, while theMMAPphase at the departure epoch is j. Denotev(1k) as the vector with entry j equal to(v(1k))j.

Lemma 6. The1×NAvectorsv(1k)can be computed asv(1k)= ρa(0)Y1(k)/λ, where the matri-cesY1(k), fork =1, . . . ,K, are the unique solutions to the Sylvester matrix equations

TY(k)+Y(k)D = −Y D . (209)

6.4 analysis of the departure process 93 Proof. A departure leaves a single (typek) customer behind if theMMAPgenerates a single (type k) arrival during the sojourn time of the departing customer. By conditioning on the arrival time of this typekcustomer we get

v(1k) =

Z

x=0aD(x)

Z x

a=0eD0aDkeD0(xa)da dx, (210) which yields (due to Theorem37)

v(1k) = ρa(0) X(k)is the unique solution of the Sylvester matrix equation

T X(k)+X(k)

Theorem 24. TheLST fH(s)of the inter-departure time distribution is given by fH(s) =h(α−v0)(−D0)1+v0(sID0)1i customer isk, can be expressed as

fH(k)∗(s1,s2) =h(α−v0)(−D0)1+v0(s1ID0)1iDk· also be proven algebraically as follows. Combining (205) and (204) yields

vk,1(s) = ρa(0)

94 analysis of the mmap[k]/ph[k]/1-fcfs qeue

Equation (197) and Lemma5imply that the first term reduces to v0(sID0)1DkMk,1 (s), Instead of computing the moments directly, we introduce the so-called reduced moments

Eˆ(Hn) =E(Hn)/n!, Eˆ(Skn) =E(Skn)/n!, because they make the forthcoming expressions simpler.

Corollary 3. Thenth reduced moment of the inter-departure time distribution is given by Eˆ(Hn) = which establishes the result as

α(−D0)1Dk1=θ inter-departure times. Again, for simplicity we use the reduced moments instead of the standard ones. The(n1,n2)th reduced joint moment is denoted byηˆn(k1),n2 and is obtained from theLST

6.4 analysis of the departure process 95

Corollary 4. The(n1,n2)th reduced joint moment of the inter-departure times are given by ˆ

η(nk1),n2 =

"

αPkEˆ(Skn1) +v0

n1

`=

1

(−D0)−`PkEˆ(Skn1−`)

# K q

=1

Pq1Eˆ(Snq2)

!

+

"

v(1k)k,1n1 +v0

n1

`=

0

(−D0)−`Pkk,1n1−`

# n2

d

=1

(−D0)d

K q=1

Pq1Eˆ(Sqn2d)

! ,

(214) wherek,1n is defined and computed as follows:

k,1n = (−1)n n!

dn

dsnMk,1 (s)|s=0= (σkI)((−Sk)⊕D0)n1(−Sk1⊗I). (215)

7

A N A LY S I S O F T H E M M A P [ K ] / P H [ K ] / 1 P R I O R I T Y Q U E U E

In the MMAP[K]/PH[K]/1 queueKtypes (classes) of customers are distinguished. The arrival process of customers is described by aMMAP, and the service times arePHdistributed. There is a single server, which always picks the customer having the highest priority for service.

If the ongoing service can not be interrupted when a higher priority customer arrives, the service is called to benon-preemptive. In thepreemptive resumecase (also referred to as the preemptive case for simplicity), however, the service of customers can be interrupted, and resumed later when all higher priority customers leave the system.

To introduce the analysis approach, the two-class case (K = 2) is considered throughout the chapter, and the extension to the general case (K>2) is provided in [49].

Similar to Chapter6, theMMAPcharacterizing the arrivals is given by the size NA×NA matricesD0,DH andDL containing the rates of internal transitions and transitions accom-panied by high and low priority customers. The mean arrival rate of high (low) priority cus-tomers is denoted byλHL), and it is calculated byλH =θDH1(λL=θDL1), respectively, whereθis the stationary distribution of the phase process of theMMAP(see Section3.1.2).

The random variable representing the service times of the low priority customers SL is PHdistributed withNLphases, characterized byσL,SL andsL. Row vectorσLis the initial vector, matrixSL is the transient generator and column vectorsLholds the transition rates to the absorbing state, thussL = −SL1. The mean service rate isµL = 1/E(SL). The PH distribution corresponding to the high priority service times and its properties are defined similarly, using subscriptHinstead ofL.

The load of the queue isρ =λHH+λLL. In this chapterρ <1is assumed.

7.1 analysis of the preemptive resume priority qeue

Priority queues are extensively studied since the middle of the last century [61], starting with the most basic variant with Poisson arrival process and exponentially distributed service times.

In the last two decades most research activity on priority queues has considered more general arrival processes likeMAPsorMMAPs.

In [78] the MAP/G/1 preemptive priority queue is analyzed based on the workload process, and theLSTof the sojourn time distribution of the customers is derived. The non-preemptive case is investigated in [79] and [80], where theLSTof the sojourn time, the moments of the sojourn time, theGFof the queue length, the queue length moments and the queue length probabilities are provided.

After this overview one may think that not too much has left to be done in the field ofMAP driven priority queues. However, all the aforementioned results assume a general distribution for the service times, which makes the solution complex and often difficult to implement in a proper way (in the numerical sense). To address this issue the generally distributed service

98 analysis of the mmap[k]/ph[k]/1 priority qeue

t V(t) Workload after low priority arrivals

Inter-arrival time

Service time

Figure 29.: The workload process of the priority queue

times can be replaced byPHdistributed ones in the hope of the simpler and numerically more tractable solution.

In [3] the (discrete-time) MAP/PH/1 priority queue is considered by representing the state space with aQBDand exploiting the special structure of the related fundamental matrices.

While this approach is elegant and seems promising, there are some computational bottle-necks (as pointed out in [48]). There have been efforts to make it more efficient (see [45] and [48]), but apart from the queue length moments all performance measures can be computed only in case of a very limited number of phases.

Our approach is based on the analysis of the workload process, just like [78] in the context of MAP/G/1 preemptive priority queues. However, by exploiting the technical simplicity of thePHdistributed service times we are able to arrive to a more intuitive, simpler to implement and numerically more beneficial solution.