Chapter 6 Product-Form Queuing Network Models Prof. Ali Movaghar.

Slides:



Advertisements
Similar presentations
Many useful applications, especially in queueing systems, inventory management, and reliability analysis. A connection between discrete time Markov chains.
Advertisements

Lecture 6  Calculating P n – how do we raise a matrix to the n th power?  Ergodicity in Markov Chains.  When does a chain have equilibrium probabilities?
Continuous-Time Markov Chains Nur Aini Masruroh. LOGO Introduction  A continuous-time Markov chain is a stochastic process having the Markovian property.
Flows and Networks Plan for today (lecture 2): Questions? Continuous time Markov chain Birth-death process Example: pure birth process Example: pure death.
Markov Chains.
Discrete Time Markov Chains
TCOM 501: Networking Theory & Fundamentals
IEG5300 Tutorial 5 Continuous-time Markov Chain Peter Chen Peng Adapted from Qiwen Wang’s Tutorial Materials.
Copyright © 2005 Department of Computer Science CPSC 641 Winter Markov Chains Plan: –Introduce basics of Markov models –Define terminology for Markov.
Flows and Networks (158052) Richard Boucherie Stochastische Operations Research -- TW wwwhome.math.utwente.nl/~boucherierj/onderwijs/158052/ html.
1 Part III Markov Chains & Queueing Systems 10.Discrete-Time Markov Chains 11.Stationary Distributions & Limiting Probabilities 12.State Classification.
Entropy Rates of a Stochastic Process
Continuous Time Markov Chains and Basic Queueing Theory
TCOM 501: Networking Theory & Fundamentals
2003 Fall Queuing Theory Midterm Exam(Time limit:2 hours)
1 TCOM 501: Networking Theory & Fundamentals Lecture 7 February 25, 2003 Prof. Yannis A. Korilis.
Queuing Networks: Burke’s Theorem, Kleinrock’s Approximation, and Jackson’s Theorem Wade Trappe.
1 TCOM 501: Networking Theory & Fundamentals Lecture 8 March 19, 2003 Prof. Yannis A. Korilis.
1 Markov Chains H Plan: –Introduce basics of Markov models –Define terminology for Markov chains –Discuss properties of Markov chains –Show examples of.
Queuing Networks. Input source Queue Service mechanism arriving customers exiting customers Structure of Single Queuing Systems Note: 1.Customers need.
6. Markov Chain. State Space The state space is the set of values a random variable X can take. E.g.: integer 1 to 6 in a dice experiment, or the locations.
Flows and Networks Plan for today (lecture 5): Last time / Questions? Waiting time simple queue Little Sojourn time tandem network Jackson network: mean.
The Poisson Process. A stochastic process { N ( t ), t ≥ 0} is said to be a counting process if N ( t ) represents the total number of “events” that occur.
Generalized Semi-Markov Processes (GSMP)
Lecture 14 – Queuing Networks Topics Description of Jackson networks Equations for computing internal arrival rates Examples: computation center, job shop.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
1 Chapter 7 Dynamic Job Shops Advantages/Disadvantages Planning, Control and Scheduling Open Queuing Network Model.
Manijeh Keshtgary. Queuing Network: model in which jobs departing from one queue arrive at another queue (or possibly the same queue)  Open and Closed.
Networks of Queues Plan for today (lecture 6): Last time / Questions? Product form preserving blocking Interpretation traffic equations Kelly / Whittle.
Queuing Theory Basic properties, Markovian models, Networks of queues, General service time distributions, Finite source models, Multiserver queues Chapter.
Flows and Networks Plan for today (lecture 4): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Modeling and Analysis of Computer Networks
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Networks Plan for today (lecture 8): Last time / Questions? Quasi reversibility Network of quasi reversible queues Symmetric queues, insensitivity Partial.
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Network Design and Analysis-----Wang Wenjie Queuing Theory III: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
CDA6530: Performance Models of Computers and Networks Chapter 7: Basic Queuing Networks TexPoint fonts used in EMF. Read the TexPoint manual before you.
Generalized Semi- Markov Processes (GSMP). Summary Some Definitions The Poisson Process Properties of the Poisson Process  Interarrival times  Memoryless.
Markov Chains X(t) is a Markov Process if, for arbitrary times t1 < t2 < < tk < tk+1 If X(t) is discrete-valued If X(t) is continuous-valued i.e.
Chapter 61 Continuous Time Markov Chains Birth and Death Processes,Transition Probability Function, Kolmogorov Equations, Limiting Probabilities, Uniformization.
Model under consideration: Loss system Collection of resources to which calls with holding time  (c) and class c arrive at random instances. An arriving.
1 Markov chains and processes: motivations Random walk One-dimensional walk You can only move one step right or left every time unit Two-dimensional walk.
Flows and Networks Plan for today (lecture 2): Questions? Birth-death process Example: pure birth process Example: pure death process Simple queue General.
Chapter 4: Fundamentals of Queuing Models Structure and Performance Parameters Operational Analysis of Queuing Network General Features of Queuing Network.
CS433 Modeling and Simulation Lecture 07 – Part 01 Continuous Markov Chains Dr. Anis Koubâa 14 Dec 2008 Al-Imam.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
Network Design and Analysis-----Wang Wenjie Queueing Theory II: 1 © Graduate University, Chinese academy of Sciences. Network Design and Performance Analysis.
Discrete Time Markov Chains
1 Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Chapter 5 Elementary Stochastic Analysis Prof. Ali Movaghar.
Flows and Networks Plan for today (lecture 3): Last time / Questions? Output simple queue Tandem network Jackson network: definition Jackson network: equilibrium.
Flows and Networks Plan for today (lecture 6): Last time / Questions? Kelly / Whittle network Optimal design of a Kelly / Whittle network: optimisation.
QUEUING. CONTINUOUS TIME MARKOV CHAINS {X(t), t >= 0} is a continuous time process with > sojourn times S 0, S 1, S 2,... > embedded process X n = X(S.
Lecture 14 – Queuing Networks
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Flows and Networks Plan for today (lecture 3):
Flows and Networks Plan for today (lecture 4):
CTMCs & N/M/* Queues.
Lecture on Markov Chain
Finite M/M/1 queue Consider an M/M/1 queue with finite waiting room.
Birth-Death Process Birth – arrival of a customer to the system
Generalized Jackson Networks (Approximate Decomposition Methods)
IV-2 Manufacturing Systems modeling
Markov Chains Carey Williamson Department of Computer Science
Flows and Networks Plan for today (lecture 6):
Networks of queues Networks of queues reversibility, output theorem, tandem networks, partial balance, product-form distribution, blocking, insensitivity,
Queueing networks.
Lecture 14 – Queuing Networks
Carey Williamson Department of Computer Science University of Calgary
Presentation transcript:

Chapter 6 Product-Form Queuing Network Models Prof. Ali Movaghar

2 Product-Form Queuing Networks Consider a modular system consisting of multiple subsystems The more independent subsystems, the easier overall system analysis  For example, each subsystem can be modeled as a queue and the overall system analysis can be obtained from the product of terms corresponding to each queue!  We call such queuing networks product-form networks.

3 Product-Form Queuing Networks (Con.) There are several properties that lead to product-form (PF) queuing networks  Local balance  Reversibility  Quasi-reversibility  Station balance  M  M

4 Local Balance The effective rate at which the system leaves state S due to the service completion (of a chain r customer) at station i equals the effective rate at which the system enters state S due to an arrival (of chain r customers) to station i nn+1 Effective arrival rate Effective service completion

5 Reversible Markov Process Consider a film we make from the behavior of an isolated service station and then run the film backward  The departing customers in the real system will be seen as arrival in backward run.  Let X(t) denote the random process describing the number of customers at the station  Let X b (t) denote the corresponding process in the backward run of the film  If X(t) and X b (t) are statistically identical, we say X(t) is reversible.

6 Reversible Markov Process (Con.) A random process X(t) is reversible,  If for any finite sequence of time instants t 1, …, t k and a parameter , the joint distribution of X(t 1 ), …, X(t k ) is the same as that of X(  -t 1 ),…, X(  -t k )  M/M/c queue is a reversible system  M/M/1 queue with batch arrival is not reversible

7 Reversible Markov Process (Con.) A reversible process must be stationary  X(  +t 1 ),…, X(  +t k ) has the same distribution as X(-t 1 ),…, X(-t k ) which has the same distribution as X(t 1 ),…, X(t k ).  Thus all joint distribution are independent of time shift as required for stationary

8 Reversible Markov Process (Con.) Reversible Markov processes can be characterized by an important property known as detailed balance. Lemma : Let X(t) be a stationary, discrete parameter Markov chain with one-step transition matrix Q[q(i,j)]. If X(t) is reversible than it satisfy detailed balance equation : P(i)q(i,j) = P(j) q(j,i)

9 Reversible Markov Process (Con.) Similarly, a continuous Markov chain is reversible if  i,j. P(i)q i,j = P(j) q i,j where q i,j is the transition rates. Conversely if we can find probabilities P(i)’s with  P(i)=1 satisfying detailed balance property, then X(t) is reversible and P(i)’s form its stationary distribution.

10 Reversible Markov Process (Con.) Lemma (Kolmogorove criterion)  A stationary Markov chain is reversible if and only if for every finite sequence of states i 0, …, i k the transition probability (or rates in the continuous parameter case) satisfy the following equation: q(i 0, i 1 ) q(i 1, i 2 )…q(i k-1, i k ) q(i k, i 0 )= q(i k, i k-1 ) q(i k-1, i k-2 )…q(i 1, i 0 ) q(i 0, i k )

11 Reversible Markov Process (Con.) Lemma: Let X(t) denote an ergodic Markov chain with transition matrix Q. Then X(  -t) has the same stationary distribution as X(t). Let Q * =[q * (i,j)] denote the transition matrix of X(  -t), then : q * (i,j)=P(j)q(j,i)/P(i)  In other words, for a reversible process Q=Q *

12 Reversible Markov Process (Con.) Example : Consider M/M/c queue  Global balance results P(n)(λ+cμ)=P(n-1)λ+P(n+1)cμ  Local balance results P(n)(λ)=P(n+1)cμ  Local balance is contained in global balance Thus P i q i,j = P j q j,i and is reversible Number of leaves has Poisson distribution with rate λ 1 λ 0 μ n λ c cμcμ n+1 λ cμcμ … … λ 2μ2μ

13 Reversible Markov Process (Con.) Reversibility of M/M/c results in following lemma.  The departure process of M/M/c system is Poisson and the number in the queue at any time t is independent of the departure process prior to t.  Thus we can easily analyze feed-forward network of M/M systems

14 Reversible Markov Process (Con.) Example : Find P(n 1, n 2 )  P(n 1 ) = (1-  1 )  n1  P(n 2 ) = (1-  2 )  n2  The arrival to second queue (departure from first queue) is independent of number of customers at first queue (Previous Lemma). P(n 1, n 2 ) = (1-  1 ) (1-  2 )  n1  n2 M/M/c λ μ1μ1 μ2μ2 Number of customers = n 1 Number of customers = n 2

15 Reversible Markov Process (Con.) Example  P(n 1, n 2,n 3 ) = (1-  1 ) (1-  2 ) (1-  3 )  n1  n2  n3  Avg. Queue Length =  1 /(1-  1 )+  2 /(1-  2 )+  3 /(1-  3 )  W = Avg. Queue Length /λ  What if there is a feed-back from third queue to first queue: Quasi-reversibility preserves product-form property M/M/c λ μ1μ1 μ2μ2 n1n1 n2n2 μ3μ3 n3n3

16 Quasi-Reversible Queuing Systems Let X(t) denote the queue length process at a queuing system. Then X(t) is quasi-reversible if for any time instant t 0, X(t 0 ) is independent of  Arrival time of customers after t 0  Departure times of customer prior to t 0

17 Open Single-Chain Product-Form Networks  q si : Probability that an external arrival is directed to station i (similarly q id is defined)   (n) : Generation of customers at source with Poisson distribution.   i (n): External arrival to station i (q si  (n)=  i (n))  μ i : basic service rate of station i  C i (n) : capacity of station i at load n i j src sink Network q s1 q s2 q sM q 1d q 2d q Md

18 Open Single-Chain Product-Form Networks (Con.)  v i : the visit ratio of station i relative to the source node  λ i (n) : the arrival rate of station i when there n customers in the entire network (λ i (n) = v i  (n) )  Visit ratio to source and so destination should be 1  By flow balance we have :

19 Open Single-Chain Product-Form Networks (Con.)  n=(n 1,…,n M ) : state of network where n i is the number of customers at station i.  e i =(0,…,0,1,0,…,0) : 1 at position i  The rate at which the system leaves state n due to an arrival or completion at station i is q si  (n)+ μ i (n i )q id +  μ i (n i )q ij or q si  (n)+μ i (n i )

20 Open Single-Chain Product-Form Networks (Con.) The global balance equation results n n-e i +e j n-e i n+e i μ j (n j +1)q ij μ i (n i )q ij  (n-1)q si μ i (n i )q id  (n)q si μ i (n i +1)q id

21 Open Single-Chain Product-Form Networks (Con.) Since all stations are individually qausi- reversible, the entire network should be qausi-reversible : μ i (n i )P(n)= λ i (n-1)P(n-e i ), i=1,..,M We can find P(n) for station i and then the desired product-form solution for network: