In
queueing theory
Queueing theory is the mathematical study of waiting lines, or queues. A queueing model is constructed so that queue lengths and waiting time can be predicted. Queueing theory is generally considered a branch of operations research because the ...
, a discipline within the mathematical
theory of probability
Probability theory is the branch of mathematics concerned with probability. Although there are several different probability interpretations, probability theory treats the concept in a rigorous mathematical manner by expressing it through a set o ...
, a fluid queue (fluid model, fluid flow model
or stochastic fluid model) is a mathematical model used to describe the fluid level in a reservoir subject to randomly determined periods of filling and emptying. The term dam theory was used in earlier literature for these models. The model has been used to approximate discrete models, model the spread of
wildfire
A wildfire, forest fire, bushfire, wildland fire or rural fire is an unplanned, uncontrolled and unpredictable fire in an area of combustible vegetation. Depending on the type of vegetation present, a wildfire may be more specifically identi ...
s, in
ruin theory
In actuarial science and applied probability, ruin theory (sometimes risk theory or collective risk theory) uses mathematical models to describe an insurer's vulnerability to insolvency/ruin. In such models key quantities of interest are the prob ...
and to model high speed data networks.
The model applies the
leaky bucket algorithm
The leaky bucket is an algorithm based on an analogy of how a bucket with a constant leak will overflow if either the average rate at which water is poured in exceeds the rate at which the bucket leaks or if more water than the capacity of th ...
to a stochastic source.
The model was first introduced by
Pat Moran in 1954 where a discrete-time model was considered.
Fluid queues allow arrivals to be continuous rather than discrete, as in models like the
M/M/1 and
M/G/1 queues.
Fluid queues have been used to model the performance of a
network switch
A network switch (also called switching hub, bridging hub, and, by the IEEE, MAC bridge) is networking hardware that connects devices on a computer network by using packet switching to receive and forward data to the destination device.
A netw ...
,
a
router, the
IEEE 802.11 protocol,
Asynchronous Transfer Mode
Asynchronous Transfer Mode (ATM) is a telecommunications standard defined by American National Standards Institute (ANSI) and ITU-T (formerly CCITT) for digital transmission of multiple types of traffic. ATM was developed to meet the needs o ...
(the intended technology for
B-ISDN),
peer-to-peer file sharing
Peer-to-peer file sharing is the distribution and sharing of digital media using peer-to-peer (P2P) networking technology. P2P file sharing allows users to access media files such as books, music, movies, and games using a P2P software program th ...
,
optical burst switching, and has applications in civil engineering when designing
dams. The process is closely connected to
quasi-birth–death process In queueing models, a discipline within the mathematical theory of probability, the quasi-birth–death process describes a generalisation of the birth–death process. As with the birth-death process it moves up and down between levels one at a tim ...
es, for which efficient solution methods are known.
Model description
A fluid queue can be viewed as a large tank, typically assumed to be of infinite capacity, connected to a series of pipes that pour fluid in to the tank and a series of pumps which remove fluid from the tank. An operator controls the pipes and pumps controlling the rate at which fluid pours in to the buffer and the rate at which fluid leaves. When the operator puts the system in to state ''i'' we write ''r''
''i'' for the net fluid arrival rate in this state (input less output). When the buffer contains fluid, if we write ''X''(''t'') for the fluid level at time ''t'',
:
The operator is a
continuous time Markov chain and is usually called the ''environment process'', ''background process'' or ''driving process''.
As the process ''X'' represents the level of fluid in the buffer it can only take non-negative values.
The model is a particular type of
piecewise deterministic Markov process and can also be viewed as a
Markov reward model In probability theory, a Markov reward model or Markov reward process is a stochastic process which extends either a Markov chain or continuous-time Markov chain by adding a reward rate to each state. An additional variable records the reward accumu ...
with boundary conditions.
Stationary distribution
The stationary distribution is a
phase-type distribution
A phase-type distribution is a probability distribution constructed by a convolution or mixture of exponential distributions. It results from a system of one or more inter-related Poisson processes occurring in sequence, or phases. The sequence ...
as first shown by Asmussen
and can be computed using
matrix-analytic method
In probability theory, the matrix analytic method is a technique to compute the stationary probability distribution of a Markov chain which has a repeating structure (after some point) and a state space which grows unboundedly in no more than one d ...
s.
The additive decomposition method is numerically stable and separates the eigenvalues necessary for computation using
Schur decomposition.
On/off model
For a simple system where service has a constant rate μ and arrival fluctuate between rates λ and 0 (in states 1 and 2 respectively) according to a
continuous time Markov chain with generator matrix
:
the stationary distribution can be computed explicitly and is given by
:
:
and average fluid level
:
Busy period
The busy period is the period of time measured from the instant that fluid first arrives in the buffer (''X''(''t'') becomes non-zero) until the buffer is again empty (''X''(''t'') returns to zero). In earlier literature it is sometimes referred to as the wet period (of the dam).
The
Laplace–Stieltjes transform of the busy period distribution is known for the fluid queue with infinite buffer
and the
expected busy period in the case of a finite buffer and arrivals as instantaneous jumps.
For an infinite buffer with constant service rate μ and arrivals at rates λ and 0, modulated by a continuous time Markov chain with parameters
:
write ''W''*(''s'') for the Laplace–Stieltjes transform of the busy period distribution, then
:
which gives the
mean
There are several kinds of mean in mathematics, especially in statistics. Each mean serves to summarize a given group of data, often to better understand the overall value ( magnitude and sign) of a given data set.
For a data set, the '' ari ...
busy period
:
In this case, of a single on/off source, the busy period distribution is known to be a
decreasing failure rate function which means that the longer a busy period has lasted the longer it is likely to last.
There are two main approaches to solving for the busy period in general, using either spectral decomposition or an iterative recurrent method.
A
quadratically convergent
In numerical analysis, the order of convergence and the rate of convergence of a convergent sequence are quantities that represent how quickly the sequence approaches its limit. A sequence (x_n) that converges to x^* is said to have ''order of co ...
algorithm for computing points of the transform was published by Ahn and Ramaswami.
Example
For example, if a fluid queue with service rate ''μ'' = 2 is fed by an on/off source with parameters ''α'' = 2, ''β'' = 1 and ''λ'' = 3 then the fluid queue has busy period with mean 1 and variance 5/3.
Loss rate
In a finite buffer the rate at which fluid is lost (rejected from the system due to a full buffer) can be computed using Laplace-Stieltjes transforms.
Mountain process
The term mountain process has been coined to describe the maximum buffer content process value achieved during a busy period and can be computed using results from a
G/M/1 queue.
Networks of fluid queues
The stationary distribution of two tandem fluid queues has been computed and shown not to exhibit a
product form stationary distribution in nontrivial cases.
Feedback fluid queues
A feedback fluid queue is a model where the model parameters (transition rate matrix and drift vector) are allowed to some extent to depend on the buffer content. Typically the buffer content is partitioned and the parameters depend on which partition the buffer content process is in. The ordered
Schur factorization In the mathematical discipline of linear algebra, the Schur decomposition or Schur triangulation, named after Issai Schur, is a matrix decomposition. It allows one to write an arbitrary complex square matrix as unitarily equivalent to an upper tria ...
can be used to efficiently compute the stationary distribution of such a model.
Second order fluid queues
Second order fluid queues (sometimes called Markov modulated diffusion processes or fluid queues with Brownian noise) consider a
reflected Brownian motion
In probability theory, reflected Brownian motion (or regulated Brownian motion, both with the acronym RBM) is a Wiener process in a space with reflecting boundaries. In the physical literature, this process describes diffusion in a confined sp ...
with parameters controlled by a Markov process.
Two different types of boundary conditions are commonly considered: absorbing and reflecting.
External links
BuTools a
MATLAB
MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementa ...
,
Python and
Mathematica
Wolfram Mathematica is a software system with built-in libraries for several areas of technical computing that allow machine learning, statistics, symbolic computation, data manipulation, network analysis, time series analysis, NLP, optimi ...
implementation of some of the above results.
PevaTools MATLAB
MATLAB (an abbreviation of "MATrix LABoratory") is a proprietary multi-paradigm programming language and numeric computing environment developed by MathWorks. MATLAB allows matrix manipulations, plotting of functions and data, implementa ...
code for multi-regime models
Fluid flow models tutorialby V. Ramaswami at MAM8
References
{{Stochastic processes
Queueing theory