Reversibility and Stochastic Networks III: Open Networks of Queues with General Customer Routes Have Product-Form EquilibriumTextbook
Motivation
Networks of queues model systems in which jobs visit a sequence of service stations: items in a manufacturing job-shop, packets in a communication network, patients moving between hospital departments. The open migration process of Chapter 2 of F. P. Kelly, Reversibility and Stochastic Networks (Wiley, 1979), and the job-shop networks of Jackson (Jackson 1963) route a customer leaving a queue at random, independently of where he has been. That rules out the most common situation in practice: an item that has passed machines 1 and 3 must next go to machine 4, while an item that has passed machines 2 and 3 must go to machine 5.
Section 3.1 of the book removes this restriction. Customers are divided into types, a type fixes a deterministic route through the queues, and a stochastic routing rule is recovered by using one type per possible route. Within each queue, the order of service is described by two position-dependent functions, which cover first-come first-served -server queues, last-come first-served, processor sharing and service in random order. Theorem 3.1 states that, for every such network, the equilibrium distribution is a product of explicit single-queue factors. This is the result behind the "Kelly network" and "Kelly-type queue" terminology of later work (Kelly 1975; Baskett, Chandy, Muntz, Palacios 1975).
Setting
There are customer types and queues. Customers of type enter the system in a Poisson stream of rate and visit the queues in that order before leaving; two successive stages of a route are at different queues.
Queue holds its customers in positions . Each customer needs an exponentially distributed amount of service with unit mean. The queue supplies total service effort at rate , with for ; a proportion goes to the customer in position . An arriving customer takes position with probability . For each , and are probability vectors on .
The class of the customer in position of queue is , his type and the stage of his route. The state of queue is and the state of the network is . Its transition rates , displays (3.1)–(3.6), are the sums of the intensities of all events taking to : a departure from the system (intensity ), a move from position of queue to position of the next queue (intensity ), and an arrival into position of the first queue of a route (intensity ).
With if and otherwise, set
Formalization targets
Goal: Theorem 3.1 (p. 61)
If every series defining converges, then
is positive, sums to over all network states, and satisfies the equilibrium equations
Milestones
- Theorem 3.2 (p. 62). The time-reversed rates are the rates of the reversed network: routes traversed backwards, and interchanged.
- Corollary 3.4 (p. 63). Queue is independent of the rest of the network, is in state with probability , holds customers with probability (3.7), and a customer in position is of class with probability .
- Corollary 3.5 (p. 63). A type- customer reaching queue at stage finds it in state with probability .
- Lemma 3.13 (p. 89). For a multiclass queue with Poisson arrivals of rate and departure intensities : reversible quasi-reversible for some positive (3.26).
Significance
Theorem 3.1 gives the full joint law of a network in which routes carry memory, and its corollaries turn it into usable performance formulas: each queue behaves, in its marginal law and as seen by arriving customers, like an isolated queue fed by a Poisson stream of rate , even though the actual arrival stream at queue is not Poisson. Mean sojourn times along a route then follow from Little's result. Theorem 3.2 identifies the reversed process as a network of the same kind; it is the source of the departure-stream results (Corollary 3.3) and of the arrival theorem (Corollary 3.5). Lemma 3.13 isolates the condition (3.26) under which state-dependent arrival rates preserve the product form (Theorem 3.14).
The results are classical and proved in the book. None of them has a machine-checked proof: the Prove2Me catalogue holds the rate-level theorems for migration processes (Chapter 2 of Kelly–Yudovina), and open targets for the BCMP and Jackson models, which have different state descriptions. This mission adds a formal model of the position-structured multiclass network itself, with the summation over coinciding transitions that (3.2), (3.4) and (3.6) require, and product-form, reversal and arrival-theorem statements over it.
Difficulty
The obvious first attempt, detailed balance, fails: and differ in general, because a customer's route cannot be run backwards inside the same network ( is usually when ). The equilibrium equations therefore involve, for each state, all its predecessors at once. The rates are themselves sums over coinciding transitions, so a statement about individual events does not transfer to the rates without accounting for which positions lead to the same successor state. In Lean this brings in insertion into and deletion from position lists, the relabelling of stages, and the normalization of a product over a countable space of -tuples of lists, reorganized by queue length together with the identity .
Formalization scope
- Finite types and queues. Types are
Fin I, queuesFin J; the book allows countably many types with . A network state is a function assigning to each queue a list of classes with ; the state space is countable and all sums over it aretsum/HasSum. - Indexing. Stages and list positions are -based in Lean; and keep the book's -based position argument.
- Rate level. Equilibrium means: positive, summing to , and satisfying the equilibrium equations (the published
KellyStochasticNetworks.FullBalance). The existence of the Markov process, irreducibility and non-explosion are not formalized. "The reversed process" (Theorem 3.2) is read through the reversed rates ; "the probability he finds" (Corollary 3.5) is read as a ratio of equilibrium arrival fluxes; quasi-reversibility is its rate characterization (3.8), (3.10). - Normalizing constants. is defined through a
tsum, which Lean sets to for a divergent series; every theorem assumes the series converges, the book's "none of is zero". - No trivial instance. The goal holds for arbitrary , , , routes, , , subject only to the book's constraints; a proof for a single queue, or for fixed disciplines, does not prove it. In Lemma 3.13 the function is required to be positive, since satisfies (3.26) for every queue.
Infrastructure that a complete development needs: list insertion/deletion lemmas for position bookkeeping, sums of products over , and a bijection-of-events argument for summed rates. The quasi-reversibility predicate and the reversed-rate apparatus are reusable for the closed networks of §3.4 and the symmetric queues of §3.3. Contributions are welcome on any milestone, in any order.
Selected references
- F. P. Kelly, Reversibility and Stochastic Networks, John Wiley & Sons, 1979. 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://doi.org/10.2307/3212785
- 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
- J. R. Jackson, Jobshop-like queueing systems, Management Science 10 (1963), 131–142. https://doi.org/10.1287/mnsc.10.1.131
- F. P. Kelly, E. Yudovina, Stochastic Networks, Cambridge University Press, 2014. https://doi.org/10.1017/CBO9781139565363