Lecture-19: Queueing Networks

Lecture-19: Queueing Networks

Lecture-19: Queueing Networks 1 Migration Processes Corollary 1.1. Consider an M/M/s queue with Poisson(l) arrivals and each server having exponential service time exp(m) service. If l > sm, then the output process in steady state is Poisson(l). Proof. Let X(t) denote the number of customers in the system at time t. Since M/M/s process is a birth and death process, it follows from the previous proposition that fX(t); t ≥ 0g is time reversible. Now going forward in time, the time instants at which X(t) increases by unity are the arrival instants of a Poisson process. Hence, by time reversibility, the time points at which X(t) increases by unity when we go backwards in time also constitutes a Poisson process. But these instants are exactly the departure instants of the forward process. Hence the result. Lemma 1.2. For an ergodic M/M/1 queue in steady state, the following are true. 1. The number of customers present in the system at time t is independent of the sequence of past departures. 2. For FCFS discipline, the waiting time spent in the system (waiting in the queue plus the service time) by a customer is independent of the departure process prior to its departure. Proof. Proofs follow by looking at reversed process. 1. Since the arrival process is Poisson, the future arrivals are independent of the number of customers in the system at the current instant. Looking backwards in time, future arrivals are the past departures. Hence by time reversibility, the number of customers currently in the system are also independent of the past departures. 2. Consider the case when a customer arrives into the system at time T1. The customer leaves at time T2 > T1. Since the service discipline is assumed first come first serve and the arrival is Poisson, it is seen that the waiting time T2 − T1 is independent of the customers coming after T1. Looking at the reversed process, we see that T2 − T1 will be independent of the arrivals after T2 for the reversed process. But this is just the departure process before time T2. Hence the result. 2 Network of Queues 2.1 Tandem Queues Time reversibility of M/M/s queues can be used to study what is called as a tandem, or sequential queueing system. For instance, consider a two server queueing system. Service time of server i is distributed exponential(mi). Customers arrive according to a Poisson(l) process to the server 1. After being served at server 1, customers join server 2 for its service. Assume there is infinite waiting room at both servers. Since the departure process of server 1 is Poisson, as discussed previously, the arrival process to server 2 is also Poisson(l). Time reversibility concept can be used to give a much more stronger result. Theorem 2.1. For the ergodic tandem queue in steady state, the following are true. 1. The number of customers N1;N2 present at server 1 and server 2 respectively, are independent, and n1 n2 PrfN1 = n1;N2 = n2)g = r1 (1 − r1)r2 (1 − r2): 2. For FCFS discipline, the waiting time at server 1 is independent of the waiting time at server 2. Proof. Proofs follow by looking at reversed process. 1 1. By part 1 of previous lemma, we have that the number of customers at server 1 is independent of the past departures of server 1. But past departures are same as the arrival to server 2. Thus follows the independence of the number of customers in both servers. The formula for the joint density follows from the independence and the formula for the limiting probabilities of an M/M/1 queue. 2. By part 2 of the previous lemma, the waiting time of a customer at server 1 is independent of the past departures happening at server 1. But the past departures at server 1, in conjunction with the service times at server 2, determine customer’s waiting time at server 2. Hence the result follows. Theorem 2.2. Consider irreducible Markov chain with transition matrix P. If one can find non-negative vector a ∗ ∗ and other transition matrix P such that ∑ j a j = 1 and aiPi j = a jPji then a is the stationary probability vector and P∗ is the transition matrix for the reversed chain. ∗ Proof. Summing aiPi j = a jPji over i gives, ∑i aiPi j = a j. Hence ais are the stationary probabilities of the forward P and reverse process. Since P∗ = ai i j , P∗ are the transition probabilities of the reverse chain. ji a j i j Theorem 2.3. Let Q denote the rate matrix for an irreducible Markov process. If we can find Q∗ of the same size as Q and a vector p ≥ 0 such that ∑i pi = 1 and for i 6= j 2 I, we have ∗ ∗ piQi j = p jQ ji; and ∑ Qi j = ∑ Qi j; j6=i j6=i ∗ then Q is the rate matrix for the reversed Markov chain and pi are the limiting probabilities for both processes. 2.2 Jackson Network Consider a system of k servers with independent service times distributed exponentially with rate mi for server i 2 [k]. To each server, customers arrive from outside the system, according to Poisson(ri). Once a customer is served at server i, the customer joins server j with probability Pi j, ∑i Pi j ≤ 1. The probability of the customer departing the system is 1 − ∑ j Pi j. If we denote li as the total rate at which the customers join i, then lis can be obtained as a solution to, k l j = r j + ∑ liPi j; j = 1;:::k: i=1 k The model can be analysed by a stationary continuous-time Markov chain fX(t) 2 N0 : t 2 Rg with states X(t) = k (X1(t);X2(t);:::Xk(k)) 2 N0, where Xi(t) denotes the number of customers in server i at time t. From the tandem k queue results, we expect the customers at each server to be independent random variables. Let n 2 N0, and we are interested in knowing the the joint probability, p(n) , PrfX(t) = ng = PrfX1(t) = n1;:::;Xk(t) = nkg: We write the marginal probabilities as p(mi) , PrfXi(t) = mig = ∑ p(n): k n2N0:ni=mi Since, X(t) is a CTMC, only a single transition takes place in any infinitesimal time interval. Let X(t) = n, then the possible transitions from this Markov process at time t and the associated rates are the following. i An external arrival takes place in queue i, with rate Q(n;n + ei) = ri: ii If ni > 0, a service completes and a customer departs from queue i exiting the system, with rate k Q(n;n − ei) = mi(1 − ∑ Pi j): j=1 iii If ni > 0, a service completes and a customer departs from queue i and joins queue j, with rate Q(n;n − ei + e j) = miPi j: 2 Theorem 2.4. If li < mi for each i 2 [k], then the reversed stochastic process is a network process of the same type as original. That is, the reversed process X(−t) is a CTMC with the generator matrix Q∗ given by the following. (i) The system has external Poisson arrivals to queue i at rate li(1 − ∑ j Pi j). That is, ∗ Q (n;n + ei) = li(1 − ∑Pi j): j (ii) The service times at queue i are iid exponential with rate mi. (iii) A departure from queue j goes to queue i with probability P¯ji as given by liPi j P¯ji = : l j That is, if n j > 0, then a customer joins queue i after a service completion from queue j with rate ∗ m j Q (n;n − e j + ei) = m jP¯ji = liPi j: l j The corresponding rate of customer departing the system after service completion from server j is k k ∗ ¯ m j m j Q (n;n − e j) = m j(1 − ∑ Pji) = (l j − ∑ liPi j) = r j: i=1 l j i=1 l j (iv) For ri , li=mi, the stationary distribution satisfies k k ni p(n) = ∏pi(ni) = ∏ri (1 − ri): i=1 i=1 Proof. It suffices to check that the detailed balanced conditions hold with the candidate generator matrix Q∗ for the reversed process and the candidate distribution p. We first focus at the detailed balance equations associated with the external arrivals ∗ p(n)Q(n;n + ei) = p(n + ei)Q (n + ei;n): This equation holds since for each ni 2 N0, we have pi(ni + ei) = ripi(ni): Second for ni > 0, we look at the detailed balanced equations corresponding the exits from the system from queue i, ∗ p(n)Q(n;n − ei) = p(n − ei)Q (n − ei;n): This equation holds since for each ni 2 N, we have k k pi(ni − ei)mi(1 − ∑ Pi j) = li(1 − ∑ Pi j)pi(ni): j=1 j=1 Finally for ni > 0, we look at the detailed balanced equations corresponding the transitions where a customer joins queue j after getting service from queue i, ∗ p(n)Q(n;n − ei + e j) = p(n − ei + e j)Q (n − ei + e j;n): This equation holds since for each ni 2 N, we have pi(ni)p j(n j)miPi j = pi(ni − 1)p j(n j + 1)m jP¯ji: Corollary 2.5.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    3 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us