Fundamentals of Queueing Theory III: The Transient M/M/1 Queue via Modified Bessel FunctionsTextbook
Motivation
Steady-state formulas describe a queue that has been running forever. Many practical questions are about a queue that has not: a call centre just after opening, a server just after a reset, a system under a burst of load. For these, the relevant quantity is the transient distribution of the number in the system at a finite time . It is also what determines how fast the steady state is approached, and it is needed for the busy period: the length of time a server stays busy once a customer arrives at an idle server.
For the single-server Markovian queue M/M/1 the transient distribution has an explicit closed form in modified Bessel functions. Its history is short and well documented. Ledermann and Reuter (1954) obtained it by spectral analysis of the birth–death process. Bailey (1954) found it by generating functions and Laplace transforms, and Champernowne (1956) by combinatorial methods. Bailey's route is the standard textbook derivation, and it is the one Gross, Shortle, Thompson and Harris outline in §2.11 of Fundamentals of Queueing Theory (4th ed., 2008). Abate and Whitt (1989) showed that computing with the resulting series is numerically delicate, which is one reason for having the formula pinned down exactly.
This mission formalizes §§2.11–2.12 of that book: the transient laws of M/M/1/1, M/M/1 and M/M/∞, and the M/M/1 busy period.
Setting
Customers arrive in a Poisson stream of rate . Each service takes an exponential time of rate , and . The number in the system is a continuous-time Markov chain on , and its state probabilities satisfy the forward (differential–difference) equations. For M/M/1 started with they are, for ,
with if and otherwise. The other systems are variants:
- M/M/1/1, no waiting room: two states and equations (2.70).
- M/M/∞, ample service: the death rate in state is , giving (2.76).
- The busy-period system: (2.72) with made absorbing () and . Its is the distribution function of the busy period .
A family solves a system on when each has, at every , the prescribed derivative (a right derivative at ). It is a probability solution when and for every . The modified Bessel function of the first kind is
and the Laplace transform of is for .
Formalization targets
Goal: the transient M/M/1 law, (2.75)
With ,
The goal asserts five things for every and every , with no restriction on :
- the series converges;
- these functions solve (2.72);
- they meet the initial condition;
- they form a probability distribution at every ;
- they are the only probability solution.
Milestones
- (2.71): the M/M/1/1 solution , and the matching formula for .
- (2.74) and Rouché's theorem: for , the quadratic has exactly one zero in , namely .
- The transform of : .
- The limit of (2.75): if , and if .
- (2.77), M/M/∞: started empty, with . The statement says that this family solves (2.76), is the unique probability solution, and has generating function .
- The busy-period transform: .
- The busy-period density: .
- (2.79): for , and .
Significance
The formula (2.75) is the exact finite-time law of the most basic queue. It gives the rate at which M/M/1 approaches equilibrium, and it gives the distribution of the queue under overload (), where no steady state exists. It is the reference against which numerical transient methods, such as the uniformization of Chapter 8 of the same book, are checked. The busy-period density and its mean (2.79) enter server-utilisation and vacation models, and the Laplace-transform method used here recurs in the M/G/1 analysis of Chapter 5.
All of these results are classical and proved in the literature. None of them is machine-checked, as far as the platform's catalogue and Mathlib show. The chain from a countable system of linear ODEs, through generating functions and a root-location argument, to a Bessel series is a standard pattern in applied probability, and a formal version of it is what this mission adds. The formal statements also make explicit what the book leaves implicit: the sense in which the equations hold at , and the class in which the solution is unique.
Difficulty
The forward equations (2.72) form an infinite linear system. The obvious approach is to treat it like a finite system of ODEs, whose solution is a matrix exponential, and read off (2.75). That fails for two reasons. The generator is an infinite matrix, so its exponential needs a functional-analytic setting. And uniqueness is not automatic for infinite systems: it needs a class, such as probability solutions, and an argument that works in that class.
The Bessel form is a second, independent difficulty. The transform is fixed by a root-location argument in the complex plane. Inverting the transform, or verifying (2.75) directly, requires manipulating the three-term Bessel recurrence and exchanging infinite sums. The tail sum has to be controlled uniformly enough to be differentiated term by term. For the factor is non-positive, so the nonnegativity of is not visible from the formula.
Formalization scope
Conventions committed to:
- Parameters. Rates are real with , and . States are
ℕ(Fin 2for M/M/1/1). - Solutions. "Solves on " is
HasDerivWithinAtonSet.Ici 0at every . Uniqueness is asserted among solutions that are probability distributions at every time. - Special functions. Half-integer powers of are real powers, and is part of the definition. Laplace transforms are complex Bochner integrals over , and each statement also asserts the integrability it needs. Square roots with positive real part are hypotheses , .
The closed forms stated exactly as in the book are:
- (2.71);
- and of (2.74);
- ;
- (2.75), with the Bessel series of p.101;
- the M/M/∞ law and (2.77);
- the busy-period transform and density of p.102;
- (2.79).
The book derives (2.79) by a steady-state ratio argument valid for M/G/1. Here it is stated for M/M/1, as the mean of the explicit density.
A statement of (2.75) that only asserts the right-hand side is well defined, or checks only , is ruled out: the goal requires the ODE system, the initial condition, the probability property and uniqueness. For the same reason, the M/M/∞ law is tied to the system (2.76) and does not reduce to a Taylor expansion.
Needed infrastructure that Mathlib lacks:
- modified Bessel functions of integer order;
- Laplace transforms;
- a Rouché-type zero count or a direct root-location lemma;
- uniqueness for countable linear ODE systems with bounded or linearly growing rates.
The Bessel and Laplace definitions, and the uniqueness lemma for birth–death forward equations, are reusable beyond this mission. Contributions of those as separate lemmas are welcome.
Selected references
- D. Gross, J. F. Shortle, J. M. Thompson, C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008, §§2.11–2.12, pp.97–103. https://doi.org/10.1002/9781118625651
- N. T. J. Bailey, "A continuous time treatment of a simple queue using generating functions", J. Royal Statistical Society B 16 (1954) 288–291. https://doi.org/10.1111/j.2517-6161.1954.tb00172.x
- W. Ledermann, G. E. H. Reuter, "Spectral theory for the differential equations of simple birth and death processes", Phil. Trans. Royal Society A 246 (1954) 321–369. https://doi.org/10.1098/rsta.1954.0001
- D. G. Champernowne, "An elementary method of solution of the queueing problem with a single server and constant parameters", J. Royal Statistical Society B 18 (1956) 125–128. https://doi.org/10.1111/j.2517-6161.1956.tb00217.x
- J. Abate, W. Whitt, "Calculating time-dependent performance measures for the M/M/1 queue", IEEE Trans. Communications 37 (1989) 1102–1104. https://doi.org/10.1109/26.41165