Inqueueing theory, a discipline within the mathematicaltheory of probability, afluid queue (fluid model,[1]fluid flow model[2] orstochastic fluid model[3]) is a mathematical model used to describe the fluid level in a reservoir subject to randomly determined periods of filling and emptying. The termdam theory was used in earlier literature for these models. The model has been used to approximate discrete models, model the spread ofwildfires,[4] inruin theory[5] and to model high speed data networks.[6] The model applies theleaky bucket algorithm to a stochastic source.
The model was first introduced byPat Moran in 1954 where a discrete-time model was considered.[7][8][9] Fluid queues allow arrivals to be continuous rather than discrete, as in models like theM/M/1 andM/G/1 queues.
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 statei we writeri for the net fluid arrival rate in this state (input less output). When the buffer contains fluid, if we writeX(t) for the fluid level at timet,[20]
The operator is acontinuous time Markov chain and is usually called theenvironment process,background process[21] ordriving process.[6] As the processX represents the level of fluid in the buffer it can only take non-negative values.
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 acontinuous time Markov chain with generator matrix
the stationary distribution can be computed explicitly and is given by[6]
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).[26] TheLaplace–Stieltjes transform of the busy period distribution is known for the fluid queue with infinite buffer[27][28][29] and theexpected busy period in the case of a finite buffer and arrivals as instantaneous jumps.[26]
For an infinite buffer with constant service rate μ and arrivals at rates λ and 0, modulated by a continuous time Markov chain with parameters
writeW*(s) for the Laplace–Stieltjes transform of the busy period distribution, then[29]
In this case, of a single on/off source, the busy period distribution is known to be adecreasing failure rate function which means that the longer a busy period has lasted the longer it is likely to last.[31]
There are two main approaches to solving for the busy period in general, using either spectral decomposition or an iterative recurrent method.[32]Aquadratically convergent algorithm for computing points of the transform was published by Ahn and Ramaswami.[33]
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.
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.[34]
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 aG/M/1 queue.[35][36]
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.[40] The orderedSchur factorization can be used to efficiently compute the stationary distribution of such a model.[41]
Second order fluid queues (sometimes called Markov modulated diffusion processes or fluid queues with Brownian noise[42]) consider areflected Brownian motion with parameters controlled by a Markov process.[22][43] Two different types of boundary conditions are commonly considered: absorbing and reflecting.[44]
^Mitra, D. (1988). "Stochastic Theory of a Fluid Model of Producers and Consumers Coupled by a Buffer".Advances in Applied Probability.20 (3):646–676.doi:10.2307/1427040.JSTOR1427040.
^Stanford, David A.; Latouche, Guy; Woolford, Douglas G.; Boychuk, Dennis; Hunchak, Alek (2005). "Erlangized Fluid Queues with Application to Uncontrolled Fire Perimeter".Stochastic Models.21 (2–3): 631.doi:10.1081/STM-200056242.S2CID123591340.
^Hohn, N.; Veitch, D.; Papagiannaki, K.; Diot, C. (2004). "Bridging router performance and queuing theory".Proceedings of the joint international conference on Measurement and modeling of computer systems - SIGMETRICS 2004/PERFORMANCE 2004. p. 355.CiteSeerX10.1.1.1.3208.doi:10.1145/1005686.1005728.ISBN978-1581138733.S2CID14416842.
^Gani, J. (1969). "Recent Advances in Storage and Flooding Theory".Advances in Applied Probability.1 (1):90–110.doi:10.2307/1426410.JSTOR1426410.
^Ramaswami, V. Smith, D.; Hey, P (eds.). "Matrix analytic methods for stochastic fluid flows".Teletraffic Engineering in a Competitive World (Proceedings of the 16th International Teletraffic Congress). Elsevier Science B.V.
^Boxma, O. J.; Dumas, V. (1998). "The busy period in the fluid queue".ACM SIGMETRICS Performance Evaluation Review.26:100–110.doi:10.1145/277858.277881.
^Kella, O. (2000). "Non-product form of two-dimensional fluid networks with dependent Lévy inputs".Journal of Applied Probability.37 (4):1117–1122.doi:10.1239/jap/1014843090.
^Karandikar, R. L.; Kulkarni, V. G. (1995). "Second-Order Fluid Flow Models: Reflected Brownian Motion in a Random Environment".Operations Research.43:77–88.doi:10.1287/opre.43.1.77.