Birth-Death Processes and the Queue
From General CTMCs to Birth-Death Processes
A general CTMC can jump between any pair of states. In many applications — population dynamics, queueing systems, inventory models — transitions only occur between adjacent states: the population grows by one (birth) or shrinks by one (death). This restriction simplifies the generator to a tridiagonal matrix and yields closed-form solutions for the stationary distribution. The M/M/1 queue, perhaps the most important model in queueing theory, is a birth-death process with constant birth and death rates.
Definition: Birth-Death Process
Birth-Death Process
A birth-death process is a CTMC on state space whose generator matrix is tridiagonal:
- From state , transitions go only to (birth) at rate or to (death) at rate , with .
- The generator has entries:
The transition rate diagram is a chain:
Theorem: Stationary Distribution of a Birth-Death Process
A birth-death process with rates and has a stationary distribution if and only if When this holds, the stationary distribution is:
The formula comes from detailed balance: the flow out of state to must equal the flow in: . Solving recursively: , which telescopes to the product formula.
Establish detailed balance
For a birth-death process, the global balance equation at state reads: The detailed balance equations are sufficient (they imply global balance by telescoping).
Solve the recursion
From : . Iterating: .
Normalize
gives . The stationary distribution exists iff the sum is finite.
Example: The Queue
Customers arrive at a single-server queue according to a Poisson process with rate . Service times are i.i.d. Exp. Find the stationary distribution and the mean number of customers in the system.
Identify the birth-death rates
This is a birth-death process with and for all . The traffic intensity is .
Stationary distribution
. The sum converges iff , and in that case: This is a geometric distribution on with parameter .
Mean number in system
\rho = 0.8L = 4$ customers on average.
Theorem: Little's Law
For any stable queueing system in steady state: where is the mean number of customers in the system, is the arrival rate, and is the mean sojourn time (waiting + service).
This holds regardless of the arrival distribution, service distribution, number of servers, or queueing discipline.
Think of a store with customers entering per hour. Each stays for hours on average. At any instant, you find customers inside. The remarkable feature is that no assumptions are needed about the service mechanism — only steady-state stability ( service capacity).
Proof sketch via sample-path argument
Let be the cumulative number of arrivals by time and the number of departures. The number in system is .
The time-average of : . The integral equals the total sojourn time of all customers present during . If there are arrivals, each with sojourn time : . Dividing: . In the limit : .
Example: M/M/1 Delay Analysis
Packets arrive at a router buffer according to a Poisson process with rate packets/s. The server processes packets at rate packets/s. Find: (a) the traffic intensity, (b) the mean number of packets in the system, (c) the mean sojourn time (queueing + transmission delay), (d) the mean waiting time in the queue (excluding service).
(a) Traffic intensity
.
(b) Mean number in system
packets.
(c) Mean sojourn time (Little's law)
ms.
(d) Mean waiting time
The mean service time is ms. ms.
Alternatively, the mean number waiting (in queue, not in service) is , and by Little's law applied to the queue alone: ms.
Example: Sizing a Link for a Delay Constraint
A network link must guarantee a mean packet delay of at most ms. Packets arrive at rate packets/s. What is the minimum required service rate ?
Express the constraint
For M/M/1: . The constraint gives , so .
Compute
packets/s. The utilization at the minimum is . Any would violate the delay constraint.
Queue: State Evolution and Stationary Distribution
Simulate an M/M/1 queue: watch the queue length evolve over time (top), compare the empirical distribution with the geometric stationary distribution (bottom). Adjust arrival and service rates.
Parameters
Birth-Death Process: Stationary Distribution
Visualize the stationary distribution of a birth-death process with configurable birth and death rate patterns: constant (M/M/1), linear (, for M/M/), or state-dependent.
Parameters
The Queue in Action
Buffer Sizing in Practice
The M/M/1 model predicts that the mean delay diverges as . In practice, router buffers have finite capacity , making the actual model M/M/1/K. The finite buffer caps delay but introduces packet loss when the buffer is full. Network engineers typically size buffers to keep loss probability below at the target utilization. The rule of thumb (where is link capacity and is the number of flows) has been validated in data center networks and long-haul links.
- •
Buffer memory is finite and expensive at high speeds (100 Gbps+).
- •
Deep buffers increase worst-case delay (bufferbloat).
- •
The M/M/1 model underestimates burstiness of real traffic (long-range dependence).
Little's Law as a Design Tool
Little's law is distribution-free: it holds for any stable queue regardless of arrival process, service distribution, or number of servers. This makes it a powerful first-cut design tool:
- Capacity planning: Given a delay target and known arrival rate , the mean backlog is , which sizes the buffer.
- Performance measurement: Measure any two of and compute the third.
- Sanity check: If measured , , violate Little's law, the system is not in steady state (e.g., during overload or warmup).
Common Mistake: Stability Requires , Not
Mistake:
Assuming the M/M/1 queue has a stationary distribution when (arrival rate equals service rate). Some students plug into and get , concluding "the queue works but is very full."
Correction:
When , the M/M/1 queue is transient: the queue length drifts to infinity with probability 1 and no stationary distribution exists. The formulas and are only valid for . At , the queue is a null-recurrent random walk.
Birth-death process
A CTMC on where transitions from state go only to (birth, rate ) or (death, rate ). The generator is tridiagonal.
Related: Continuous-time Markov chain (CTMC)
Traffic intensity
The ratio for a single-server queue (or for servers). The queue is stable iff .
Related: Birth-death process
Little's law
The relation between mean number in system (), arrival rate (), and mean sojourn time (). Holds for any stable queue in steady state, regardless of distributions or scheduling.
Related: Traffic intensity
Key Takeaway
The M/M/1 queue is the simplest queueing model and the foundation for all others. Its stationary distribution is geometric: with . The mean number in system is and the mean delay is . Little's law connects these quantities and holds for all stable queues.