Heterogeneous two-server queue 2026-10-14
A queue with a Poisson process of arrivals and two independent service times with exponential distributions of different rates must distinguish the two possible single-customer states. If an arrival chooses either idle server with probability , the continuous-time Markov chain is reversible. Write for the states with only server one or two busy, and for total population. Its detailed balance equations give , and . These weights normalize exactly when . In equilibrium, reversed upward transitions have total rate in every state, so time reversal of a continuous-time Markov chain makes the departure stream a Poisson process of rate . This output conclusion requires stationarity.
Multiclass single-server queue 2026-10-14
An ordered state records the classes and positions of customers at a single server. Class- arrivals have rate and exponential service parameter . Under a symmetric service discipline, its stationary distribution is , where . If every , class-independent insertion and service position rules need not be equal: time reversal of a continuous-time Markov chain interchanges them and proves the same law. Aggregating words gives by the multinomial coefficient. With class-dependent service rates, first come first served need not have this product law.
Past exam of the mathematics course of the University of Cambridge 2006 iii Paper 34 1 Solution Created 2026-10-03 Updated 2026-10-14
Use finitely many colonies and let be the population of colony . An open migration process has independent external Poisson processes of rates , local total departure rates , and fixed routing probabilities to other colonies and out of the system. Here , for , and . The continuous-time Markov chain has intensitiesRequire the routing matrix to be transient: every individual eventually exits. For finitely many colonies this is equivalent to every colony having a directed path to an exit. Restrict to colonies reachable from external arrivals, so their traffic rates are positive and the relevant chain is irreducible. The total population cannot exceed its initial value plus the number of external arrivals, so on any finite time interval it is bounded by a finite random number. There are only finitely many states below that bound and finite rates in each, proving nonexplosion even when the departure functions grow rapidly.
The traffic equations of an open migration process, in row-vector form, areTransience makes the inverse finite. DefineProvided every is finite, the candidate product-form stationary distribution of an open migration process isThe normalizability condition is exactly for every active colony. For example, constant total service for requires and gives a geometric distribution; independent individual departures give a Poisson distribution of mean . In the irreducible case the normalizable invariant law is the unique equilibrium. If the weights cannot be normalized, no stationary probability law exists, by uniqueness up to scale of invariant measures for an irreducible recurrent chain.
We establish both stationarity and the time reversal of an open migration process assertion by adjacent-weight calculations. DefineThe identity givesThus the proposed time reversal of an open migration process retains the local service functions and hasThe traffic equation for colony implies . Summing all traffic equations also gives . Therefore the total outgoing rate from every state is the same for and :Consequently , proving global balance for a continuous-time Markov chain. The same weight recurrence gives , so the stationary mean total jump rate is finite. The candidate is a stationary distribution, and the displayed intensities are indeed its stationary time reversal of a continuous-time Markov chain. Reverse routing is also open: reverse an original arrival-to-colony path to obtain a path to a colony with .
For the last request, let be all colonies reachable by routing from , including itself. The no-return-path hypothesis gives . By construction no routing edge leads from to its complement . The populations in therefore evolve autonomously as an open migration process, with moves into treated as exits. Its stationary marginal is the corresponding product of the factors above. Retain the original destination as a mark on each such exit.
In this autonomous process, a marked exit has intensity . The same reversed-weight calculation makes its reverse a marked external immigration channel of constant rate . External immigration channels can be constructed as independent Poisson processes. Stationary reversal of a two-sided Poisson process preserves its law, so reversing this immigration channel givesThis Poisson migration stream without a return path argument is needed because a general internal migration stream in a network with feedback is not automatically Poisson. A zero routing probability gives the empty Poisson stream of rate zero.
Past exam of the mathematics course of the University of Cambridge 2009 iii Paper 30 1 i Solution Created 2026-10-03 Updated 2026-10-14
Put . In this heterogeneous two-server queue, the total population alone is not a Markov process: when only one customer is present, its departure rate depends on which server is occupied. Use states , where and distinguish the two single-customer possibilities, and records the total population. The memoryless property of the exponential distributions gives these nonzero transition rates:and for , for . In particular, a departure from state leaves the other server occupied.
The detailed balance equations suggestFor example, both and hold; these are the two transitions that would be lost by using only population as the state. All other adjacent-state detailed balance equations hold as well. Since , the geometric series converges, and normalization givesThus the stationary distribution exists, and the requested probability isWith equal server rates , this reduces to , as for an M-M-s queue with two servers.
To prove the output claim, put the continuous-time Markov chain in its stationary distribution. The preceding detailed balance equations make it a reversible Markov chain: time reversal of a continuous-time Markov chain has the same transition rates. A forward departure becomes a reversed arrival. In every reversed state, the total rate of such arrivals is : from the rates add, from or the upward rate is , and from every it is also . The reversed process can therefore be constructed with an independent rate- Poisson process of arrival epochs, choosing the idle server by a fair coin when appropriate. Consequently reversed arrival counts on disjoint time intervals are independent Poisson random variables with the corresponding means. Reversing those intervals proves that the stationary departure stream is a rate- Poisson process, rather than merely a stream with mean rate .
Stationarity matters here. If the queue starts empty, a departure by time requires both an arrival and a completed service time, so its probability is ; a rate- Poisson process would have probability . Thus the output assertion is the equilibrium assertion in the context of the preceding stationary calculation.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 30 1 a Solution Created 2026-10-03 Updated 2026-10-14
Write the clock states modulo . The detailed balance equations are . The product condition makes these equations consistent around the circle, so the stationary distribution isIndeed, the rate of the time reversal of a continuous-time Markov chain along a clockwise edge is , while its anticlockwise rate is . Thus the clock is a reversible Markov chain.
The reversed clockwise transitions can be driven by a single independent rate- Poisson process, since their rate does not depend on the clock state. They correspond to the original anticlockwise transitions. Consequently the anticlockwise event times form a stationary Poisson process of rate . Its events before a given time are independent of the clock state at that time, which is the relevant quasireversibility property. If clockwise and anticlockwise transitions have the same destination, their direction is retained as an event mark when reversing the process.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 30 2 a Solution Created 2026-10-03 Updated 2026-10-14
A multiclass queue must specify its service discipline as well as its arrival and service rates. Here is an ordered-queue model that includes the usual class-independent exponential single-server queue. Let class- arrivals be independent Poisson processes of rates , and let a class- service requirement have the exponential distribution of rate . A state is a finite word of customer classes.
Choose service fractions with , and insertion probabilities with . The customer at position departs at rate ; a class- arrival is inserted at position at rate . All rates leading to the same word are added. For class-dependent , impose the symmetric service discipline . If all , arbitrary class-independent are permitted, including first come first served with insertion at the tail and service at the head.
Put and . For , the equilibrium word law isFor the symmetric service discipline, insertion and deletion satisfy detailed balance for a continuous-time Markov chain becauseFor the common-service-rate case, use time reversal of a continuous-time Markov chain instead: the reversed queue inserts with probabilities and serves with fractions . A forward insertion gives a reverse deletion rate , and a forward deletion gives a reverse insertion rate . Forward and reverse total rates both equal , proving global balance for a continuous-time Markov chain.
Summing the weights of all words of length gives , so the law is normalized. If counts class- customers and , the multinomial coefficient counting class orderings givesFor processor sharing, , the class-count vector itself is a Markov chain, with arrival rate and departure rate . Under first come first served, the ordered word is generally necessary. Class-dependent service rates combined with first come first served do not in general have the displayed simple equilibrium law; the discipline assumption matters.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 30 2 b Solution Created 2026-10-03 Updated 2026-10-14
Index the queue-class pairs by . Let be the external Poisson process arrival rate, let be the routing probability after class completes service, and put for the exit probability. An open network has a transient routing matrix , equivalently spectral radius less than one. The effective throughputs solve the traffic equations for a multiclass queueing network:At each queue use the ordered multiclass single-server queue model of part (a), with parameters . An external class- customer is inserted at position with rate . A customer of class in position completes at rate : it exits with probability or changes to class and is inserted at its destination with probability . Here is the destination population after the origin deletion, so this also defines routes returning to the same queue. At each node, either service rates are common to its classes or insertion and service fractions form a symmetric service discipline.
Let . The product-form stationary distribution of a multiclass queueing network isTo prove it by time reversal of a continuous-time Markov chain, interchange each node's insertion and service fractions, and usePairs with can be deleted. The traffic equations for a multiclass queueing network ensure . The ratio of the product weights for an insertion is ; for a deletion it is its reciprocal. Consequently every routing, entrance, and exit transition satisfies . The symmetric or common-rate hypothesis makes each node's total service rate identical forward and backward. Summing the traffic equations for a multiclass queueing network also gives . Thus the total transition rates match, proving global balance for a continuous-time Markov chain; each factor is normalized by part (a).
For the class counts the equilibrium law isUnder processor sharing these counts have explicit transition rates for , for , and for . Under a closed network, remove external entrances and exits and normalize the same product weights on the conserved customer populations, using a positive solution of the homogeneous traffic equations for a multiclass queueing network. That finite-state normalization does not require the open-network conditions .
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 39 1 Solution Created 2026-10-03 Updated 2026-10-14
First consider an M-M-K queue with servers, arrival rate , and service rate at each server. Assume so that a stationary distribution exists. Its population is a birth-death process with rates and . The equilibrium probabilities satisfy detailed balanceThus the population process is a reversible Markov chain. In its time reversal of a continuous-time Markov chain, forward departures become upward jumps whose rate is the constant , independent of the state. They can be generated by a rate- Poisson process independent of the initial reversed state. Reversing time preserves the Poisson process law, proving the equilibrium departure process is Poisson with rate , the Burke theorem for a multi-server queue.
The same argument gives the departure component of quasireversibility needed for the tandem calculation: the present upstream population is independent of its entire past departure process. Indeed, these departures become future arrivals in the reversed chain, independent of its initial population. First check this on finite time windows, then extend to the full past. A Poisson output alone, without this independence, would not justify multiplying queue-empty probabilities.
Now let , where denotes the mean service time at passport control, so the service rate at each of its two servers is . The stationary distribution of the M-M-s queue with has normalizing sumHence its empty probability is . Its output feeds a stable M/D/1 queue with rate and deterministic service time . In a stationary work-conserving single-server queue, the busy fraction is the rate of completed work, , so the empty probability is .
The downstream stationary workload is a causal function of past upstream departures. For example, it is the limit of workloads constructed from arrivals in increasingly long finite past intervals; stability makes this stationary construction well defined. The backward independence just proved therefore makes the two present queue populations independent. Consequently
With walking time , the downstream arrival stream is the upstream departure stream shifted by . Its present workload depends only on departures up to time . The number walking at time zero is the number of departures in , which has Poisson distribution of mean and is independent of the earlier departures. The upstream present population is independent of both parts of its past departure stream. Thus the three empty events factor, givingThe factor is the empty probability of the deterministic-travel infinite-server stage. Both printed stability inequalities ensure the stationary calculations apply.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 4 26K b Solution Created 2026-09-24 Updated 2026-10-05
For the M-M-1 queue with Bernoulli feedback, assume . The number of service visits before departure is geometric on , with probabilities , independent of the independent exponential visit lengths. The transform of the total time actually being served isThusThis excludes the waiting between visits. A feedback completion changes the customer's position but not the number in the system. By exponential memoryless property, the latter process has births of rate and true deaths of rate while nonempty; unsuccessful completions are self-events. It is therefore an M/M/1 number process with effective service rate , givingFor positive equality is null recurrent, larger arrival rate is unstable, and admits no departure-based equilibrium.
To prove the output claim, state the relevant time reversal of a continuous-time Markov chain theorem: an equilibrium continuous-time chain satisfying detailed balance has the same reversed path law. In this reversible birth-death process, final departures are precisely downward jumps; time reversal turns them into upward jumps. Upward jumps are supplied by a state-independent Poisson clock of rate , so their process is Poisson. Hence the stationary final-departure process is Poisson of rate . This is the output conclusion of Burke theorem for the effective number process; it does not say the process of all service completions has that rate.
Quasireversibility Created 2026-10-06 Updated 2026-10-07
In equilibrium, a queue is quasireversible when its present state is independent of subsequent arrival times and preceding departure times, for each customer class. For an M-M-s queue, detailed balance and time reversal of a continuous-time Markov chain show that past departures become future arrivals generated independently of the present state. This backward independence is useful in tandem calculations where downstream occupancy is determined by earlier departures.