Fluid Models
Matrix-Analytic methods in Stochastic Modelling 2004
Małgorzata O’Reilly
Outline
• Model.
• Research so far.
• Future directions.
• References.
Matrix-Analytic methods in Stochastic Modelling 2004 2/35
From QBDs to fluid models
QBD components
• (N, i), N - level, i- phase,
• Generator Q (special structure, A0, A1, A2)
Note: The level variable is countable.
The goal:
A model in which the level variable is continuous.
Matrix-Analytic methods in Stochastic Modelling 2004 3/35
Motivation
Two main reasons:
• Modelling of high-speed communication networks.
• Data in a high-speed communication network buffer
behaves like fluid.
Matrix-Analytic methods in Stochastic Modelling 2004 4/35
A Markov stochastic fluid model
We consider the following level-independent Markov process
{(X(t), ϕ(t)) : t ∈ R+}:
• The level is denoted by X(t) ∈ R+,
• The phase is denoted by ϕ(t) ∈ S, |S| = m,
• The phase process {ϕ(t) : t ∈ R+} is a Markov chain with
infinitesimal generator T .
Matrix-Analytic methods in Stochastic Modelling 2004 5/35
Net input rates
ci =dX(t)
dt|t=0
The rate ci at which the level of the fluid increases, or
decreases, is governed by the state i ∈ S of the underlying
continous-time Markov chain.
The parameters ci can be positive, negative or zero.
Matrix-Analytic methods in Stochastic Modelling 2004 6/35
Two models
General: ci ∈ R.
Let
S = S1 ∪ S2 ∪ S0,
where
S1 = {i : ci > 0},
S2 = {i : ci < 0},
S0 = {i : ci = 0}.
Simplified: ci = ±1, S = S1 ∪ S2.
Matrix-Analytic methods in Stochastic Modelling 2004 7/35
General model −→ simplified model
(Simplified model is much easier to analyse.)
• A mapping from a general to a model with non-zero rates
(Asmussen 1995).
• A model with non-zero rates can be easily transformed into
a simplified model (Rogers 1994).
This transformation preserves probabilities but not times!
Matrix-Analytic methods in Stochastic Modelling 2004 8/35
Asmussen (1994)
• Sold = S1 ∪ S2 ∪ S0, ci ∈ R, i ∈ S,
Told =
T00 T01 T02
T10 T11 T12
T20 T21 T22
• Snew = S1 ∪ S2, ci ∈ R \ {0}, i ∈ S,
Tnew =
T11 − T10T−100 T01 T12 − T10T
−100 T02
T21 − T20T−100 T01 T22 − T20T
−100 T02
Matrix-Analytic methods in Stochastic Modelling 2004 9/35
Rogers (1994)
• ci ∈ R \ {0}, i ∈ S,
Told =
T11 T12
T21 T22
• ci = ±1, i ∈ S,
Tnew = ATold,
where A = diag( 1|ci|
: i ∈ S).
Matrix-Analytic methods in Stochastic Modelling 2004 10/35
Example 1
T =
−2 2
1 −1
S1 = {1}, c1 = 1
S2 = {2}, c2 = −1.
Notation: partitioning of generator T
T =
T11 T12
T21 T22
Matrix-Analytic methods in Stochastic Modelling 2004 11/35
Example 2
T =
−28 22 2 2 2
21 −27 2 2 2
1 1 −26 22 2
1 1 21 −24 1
1 1 21 1 −24
S1 = {1, 2}, c1 = c2 = 1
S2 = {3, 4, 5}, c3 = c4 = c5 = −1.
Matrix-Analytic methods in Stochastic Modelling 2004 12/35
Return to the initial level zero
time
fluid
leve
l
Very useful property:
The model is upward-homogenous!
Matrix-Analytic methods in Stochastic Modelling 2004 13/35
Important matrix
For any level z, let θ(z) denote the time in (0,∞) at which the
process first hits level z.
For all i ∈ S1, j ∈ S2, we define
[Ψ]ij = P [ϕ(θ(0)) = j|X(0) = 0, ϕ(0) = i].
Ψ records the probabilities of return journey to the initial level.
Significance:
Ψ appears in the formulae for many performance measures!
Matrix-Analytic methods in Stochastic Modelling 2004 14/35
Drift - a physical concept
Assuming +1/ − 1 rates, let
(1) T =
−2 2
1 −1
,
(2) T =
−1 1
2 −2
,
(3) T =
−1 1
1 −1
.
Matrix-Analytic methods in Stochastic Modelling 2004 15/35
Recurrence measure µ
(Simplified model)
µ = ν1e − ν2e
(ν1, ν2) - the stationary distribution vector of the process ϕ(t)
(satisfying the equation (ν1, ν2)[T : e] = [0 : 1] ),
e - the column vector of ones.
1. Downward drift ≡ positive recurrent ≡ µ < 0,
2. Upward drift ≡ transient ≡ µ > 0,
3. No drift ≡ null-recurrent ≡ µ = 0.
Matrix-Analytic methods in Stochastic Modelling 2004 16/35
Bean, O’Reilly and Taylor
Laplace-Stieltjes transforms for several time-related
performance measures (general model):
• Times of return journey to the initial level.
• Times of draining/filling to a given level.
• Times of a journey to a given level while avoiding
the upper/lower taboo level.
• Expected sojourn times in specified sets.
Matrix-Analytic methods in Stochastic Modelling 2004 17/35
Steady state densities
For all j ∈ S, x > 0, steady state densities are defined as
πj(x) = limt→∞
fj(t, x),
where
fj(t, x) = P [x < X(t) < x + dx, ϕ(t) = j].
Matrix-Analytic methods in Stochastic Modelling 2004 18/35
Notation
Matrix notation is introduced to simplify the analysis:
π(x) = (π1(x), . . . πm(x)), where |S| = m,
C = diag(ci : i ∈ S).
Matrix-Analytic methods in Stochastic Modelling 2004 19/35
Ramaswami (1999)
• From partial differential equations Ramaswami derived the
differential equation
π(x)T =d
dxπ(x)C
This equation is difficult to solve.
• Ramaswami considered appropriate taboo processes and
derived an explicit formula for π(x).
Matrix-Analytic methods in Stochastic Modelling 2004 20/35
Ramaswami’s conditioning.
• Assume that the process starts in (0, i).
• Note that the fluid can reach x+ y only after it has crossed x.
• Let [φ(τ, x, x + y)]ij be the density of being at (x + y, j) at
time τ avoiding the set [0, x]×{1, . . . , m} in the interval (0, τ).
• By conditioning on the last epoch of crossing the level x,
fj(t, x + y) =
∫ t
0
∑
i∈S
fi(t − τ, x)[φ(τ, x, x + y)]ijdτ.
For more details of the method see Ramaswami (1999).
Matrix-Analytic methods in Stochastic Modelling 2004 21/35
Expression for π(x) (Ramaswami 1999)
(π1(x), π2(x)) = −ν1(T11 + ΨT21)[e(T11+ΨT21)x, e(T11+ΨT21)xΨ].
This expression is explicit. Recall that:
T =
T11 T12
T21 T22
, (ν1, ν2)[T : e] = [0 : 1]
and Ψ is the matrix recording the probabilities of return journey
to the initial level.
Matrix-Analytic methods in Stochastic Modelling 2004 22/35
Da Silva Soares and Latouche (2002)
Conditioning on the first epoch of decrease.
time
fluid
leve
l
y
Ψ =
∫ ∞
y=0
eT11y T12 e(T22+T21Ψ)ydy
Matrix-Analytic methods in Stochastic Modelling 2004 23/35
Calculating Ψ
There are several equivalent integral-form formulae for Ψ.
Corollary:
Ψ is the minimal nonegative solution of the following Riccati
equation
T12 + T11Ψ + ΨT21 + ΨT12Ψ = 0.
(For a general form of this result see Bean, O’Reilly and Taylor)
There are several different algorithms for Ψ.
Matrix-Analytic methods in Stochastic Modelling 2004 24/35
Solving the Riccati equation for Ψ
Rewrite Riccati equation in an equivalent form:
(T11 + ΨT21)Ψ + Ψ(T22 + T21Ψ) = −T12 + ΨT21Ψ.
Algorithm (Newton’s method, Guo 2001):
• Ψ0 = 0,
• Ψn+1 is the unique solution of the equation:
(T11 + ΨnT21)Ψn+1 + Ψn+1(T22 + T21Ψn) =
−T12 + ΨnT21Ψn.
(Solving an equation of the form AX + XB = D in each step)
Matrix-Analytic methods in Stochastic Modelling 2004 25/35
Connection to QBDs
• Ramaswami (1999) maps a fluid model to a discrete-level
QBD.
• Da Silva Soares and Latouche (2002) gives the physical
intepretation of this construction.
Significance:
This construction allows for the calculation of the matrix Ψ
using efficient algorithms for G in the QBDs.
Matrix-Analytic methods in Stochastic Modelling 2004 26/35
QBD construction (Ramaswami 1999)
Let ϑ ≥ maxi∈S
|Tii|, P = I +1
ϑT =
P11 P12
P21 P22
.
Consider QBD with transition matrices
A0 =
12I 0
0 0
, A1 =
12P11 0
P21 0
, A2 =
0 12P12
0 P22
.
Then G =
0 Ψ
0 P22 + P21Ψ
.
Matrix-Analytic methods in Stochastic Modelling 2004 27/35
Future directions
• Models with boundaries.
• Level-dependent models.
• Decision making component.
• Countable/continuous phase.
• Applications.
• . . .
Matrix-Analytic methods in Stochastic Modelling 2004 28/35
References
S. Asmussen.
Stationary distributions for fluid models with or without Brownian
noise.
Stochastic Models, 11, 1–20, 1995.
Matrix-Analytic methods in Stochastic Modelling 2004 29/35
References
N.G. Bean, M.M. O’Reilly and P.G. Taylor
Hitting Probabilities and Hitting Times for Stochastic Fluid Flows.
Submitted for publication.
URL:www.maths.adelaide.edu.au/people/nbean/papers/ref3.ps
Matrix-Analytic methods in Stochastic Modelling 2004 30/35
References
N.G. Bean, M.M. O’Reilly and P.G. Taylor
Algorithms for Return Probabilities for Stochastic Fluid Flows.
Submitted for publication.
URL:www.maths.adelaide.edu.au/people/nbean/papers/ref4.ps
Matrix-Analytic methods in Stochastic Modelling 2004 31/35
References
A. Da Silva Soares and G. Latouche.
Further results on the similarity between fluid queues and QBDs.
In G. Latouche and P. Taylor, editors, Matrix-Analytic Methods
Theory and Applications (Proceedings of the Fourth International
Conference on Matrix-Analytic Methods in Stochastic Models),
Adelaide, 14-16 July 2002, 89–106.
Matrix-Analytic methods in Stochastic Modelling 2004 32/35
References
C-H Guo.
Nonsymmetric algebraic Riccati equations and Wiener-Hopf
factorization for M-matrices.
SIAM Journal on Matrix Analysis and Applications, 23(1):
225–242, 2001.
Matrix-Analytic methods in Stochastic Modelling 2004 33/35
References
V. Ramaswami.
Matrix analytic methods for stochastic fluid flows.
Proceedings of the 16th International Teletraffic Congress, Edin-
burgh, 7-11 June 1999, 1019–1030.
Matrix-Analytic methods in Stochastic Modelling 2004 34/35
References
L.C. Rogers.
Fluid models in queueing theory and Wiener-Hopf factorization
of Markov chains.
The Annals of Applied Probability, 4(2): 390–413, 1994.
Matrix-Analytic methods in Stochastic Modelling 2004 35/35