Reversibility and Stochastic Networks IV: Symmetric Queues with Gamma-Mixture Service RequirementsTextbook
Why symmetric queues
The classical product-form results for queueing networks (Jackson, Kelly, Baskett–Chandy–Muntz–Palacios) assume exponentially distributed service requirements, because then the state of a queue need not record how much service each customer has received. Real service times are rarely exponential: telephone call lengths, job sizes in time-shared computers and web transfers are far from it. Symmetric queues, introduced in §3.3 of F. P. Kelly, Reversibility and Stochastic Networks (Wiley, 1979), form the class of single queues for which the stationary distribution of the number of customers, and of their classes, depends on the service requirement distribution only through its mean. This property, insensitivity, is what makes Erlang's loss formula valid for arbitrarily distributed call lengths (Kelly, p. 79), and it is the reason processor-sharing, last-come-first-served preemptive and infinite-server stations may appear with general service in product-form networks.
Timeline. Sevastyanov (1957) proved that Erlang's loss formula holds for arbitrarily distributed call lengths. Kelly (1975, 1976) introduced queues with customers of different types whose effort and arrival-position functions coincide, and showed product form for networks of them with non-exponential service built from exponential stages; Barbour (1976) extended the method of stages; Baskett, Chandy, Muntz and Palacios (1975) gave product form for networks containing processor-sharing, LCFS-preemptive and infinite-server stations with phase-type service. Kelly's 1979 book presents the symmetric queue in the form formalized here.
Setting
A symmetric queue holds customers in positions , where is the number present. It operates as follows (Kelly, p. 72):
- the service requirement of a customer is a random variable whose distribution may depend on the class of the customer;
- a total service effort is supplied at rate , with for ;
- a proportion of this effort, , goes to the customer in position ; when he leaves, the customers in positions move down by one;
- an arriving customer moves into position with probability — the same function — and the customers in positions move up by one.
Server-sharing (), the stack (, last come first served preemptive), the queue with no waiting room and the infinite-server queue are examples (pp. 73–74).
Customers of class arrive in a Poisson stream of rate . On arrival a class- customer receives a refined class with probability , , and then needs independent stages of service, each exponentially distributed with mean . The class- service requirement is therefore a mixture of gamma distributions with mean
and the work arriving per unit time is . The record of the customer in position is , the stage in progress, and is a Markov process. Its transitions are: an arrival of class into position at stage , at rate ; and, at rate , completion of the current stage of the customer in position , which moves him to the next stage or, after stage , out of the queue. The normalizing constant is
Formalization targets
Goal: Theorem 3.8
When (3.15) converges, the distribution
is the equilibrium distribution of , and under it
and the queue is quasi-reversible with respect to the classification and to : from every state, the rate of arrivals of each class does not depend on the state, both for the process and its time reversal (relations (3.8) and (3.10) of p. 67).
Milestones
- Eqs. (3.14)–(3.15): the case of one refinement per class, with .
- Eqs. (3.16)–(3.17): in that case, the law of , and given independent positions of class with probability and uniform stage.
- Eq. (3.18): the equilibrium distribution under gamma-mixture service.
- Lemma 3.9: mixtures of gamma distributions approximate, at continuity points, the distribution function of any positive random variable.
Significance
Theorem 3.8 gives the stationary law of a symmetric queue in closed form and shows that it depends on the service requirement distributions only through their means . Quasi-reversibility (part (iii)) is the property that lets symmetric queues be placed in networks: Kelly's §3.2 shows that a network of quasi-reversible queues has a product-form equilibrium, so Theorem 3.8 is the single-queue input to product-form networks with processor-sharing, LCFS-preemptive and infinite-server stations and class-dependent, non-exponential service. Lemma 3.9 is the approximation step behind the extension to arbitrary service distributions (Theorem 3.10).
These results are classical and proved in the book. To our knowledge none of them is machine-checked; Mathlib has the gamma distribution and distribution functions but no queueing theory. The mission produces a formal model of the symmetric queue as a countable-state Markov process, its equilibrium distribution, the insensitive marginals and the rate characterization of quasi-reversibility, all reusable by the chapter on networks of quasi-reversible queues.
Difficulty
The obvious first attempt, detailed balance, fails: the stage process is not reversible in general, since an intermediate stage completion has no transition back. The equilibrium equations must be verified in full, over a countable state space in which a single state is reached from infinitely many others. The symmetry condition is essential and must enter the argument: without it (for first-come-first-served, say) the distribution (3.18) is false for non-exponential service. Positions shift on every arrival and departure, so the bookkeeping of which list results from which event, including coincidences when neighbouring customers have identical records, is the main formal burden. The marginal computations sum (3.18) over lists of records, where convergence must be tracked, and Lemma 3.9 needs an explicit construction of approximating gamma mixtures.
Formalization scope
- The state is a
Listof customer records (class, refined class, stage); list index is position , and , keep the book's -based indexing. The state space consists of the lists whose records have and : records of a refined class arriving at rate zero are unreachable and excluded. - Classes and refinements are arbitrary countable types. All infinite sums are
HasSumortsumwith explicit convergence hypotheses: (finite exit rates, the book's standing assumption of §1.1), convergence of , of , and of (3.15). "Equilibrium distribution" means positive, summing to one, and satisfying the equilibrium equations with convergent series. - The statement is rate level: (3.18) is shown to satisfy the equilibrium equations of the stage process, and quasi-reversibility is its rate characterization (3.8), (3.10). That these describe the stationary process and its time reversal is the book's Chapter 1 and is not reformalized.
- Trivializing readings ruled out: the goal keeps , and general (not , which would make the result Section 3.1's exponential case); the arrival position uses the same as the service split; and in Lemma 3.9 the approximants must be genuine gamma mixtures with integer shapes, which a point mass is not.
- Not planned: Theorem 3.10 (arbitrary service distributions; only an outline of proof and a continuous state space the book does not construct) and Theorem 3.11 (reversibility of the number in queue, a non-Markov process).
Welcome contributions: proofs of the milestones, lemmas about List.insertIdx/List.eraseIdx bookkeeping for queues with positions, and summation over lists of records.
Selected references
- F. P. Kelly, Reversibility and Stochastic Networks, Wiley, Chichester, 1979, §3.3, pp. 72–82. https://www.statslab.cam.ac.uk/~frank/BOOKS/kelly_book.html
- F. P. Kelly, Networks of queues with customers of different types, Journal of Applied Probability 12 (1975), 542–554. https://www.jstor.org/journal/japplprob
- F. P. Kelly, Networks of queues, Advances in Applied Probability 8 (1976), 416–432. https://www.jstor.org/journal/advaapplprob
- A. D. Barbour, Networks of queues and the method of stages, Advances in Applied Probability 8 (1976), 584–591. https://www.jstor.org/journal/advaapplprob
- B. A. Sevastyanov, An ergodic theorem for Markov processes and its application to telephone systems with refusals, Theory of Probability and its Applications 2 (1957), 104–112.
- F. Baskett, K. M. Chandy, R. R. Muntz, F. G. Palacios, Open, closed, and mixed networks of queues with different classes of customers, Journal of the ACM 22 (1975), 248–260. https://doi.org/10.1145/321879.321887