Tutorials › Stochastic Processes › Traffic Intensity and the Stability Threshold

The M/M/1 Queue · Tutorial 624 of 994

Traffic Intensity and the Stability Threshold

Learn how the ratio of arrival to service rates determines whether an M/M/1 queue can have a stationary probability distribution.

Intermediate 10 min read

What You'll Learn

  • Define traffic intensity as the dimensionless ratio of arrival rate to service rate.
  • Write the M/M/1 queue-length generator and check its boundary and interior row sums.
  • Derive the stationary balance equations from invariance.
  • Show why the balance equations force a geometric form for stationary probabilities.
  • Determine when that form can be normalized and verify the resulting invariant distribution.
  • Recognize why the critical and overloaded cases do not have a stationary distribution.

Traffic Intensity and the Queue-Length Process

In an M/M/1 queue, customers arrive at rate \(\lambda\), and a single server completes service at rate \(\mu\) whenever the system is nonempty. The central comparison is between these two rates. Their ratio indicates how much arriving work the server must handle relative to its service capacity, and it determines whether the queue-length balance equations can have a stationary probability distribution.

Assume throughout that \(\lambda>0\) and \(\mu>0\). On a probability space \((\Omega,\mathcal{F},\mathbb{P})\), let \((X_t)_{t\ge0}\) be the continuous-time Markov chain giving the number of customers in the system at time \(t\). Its state space is \(S=\{0,1,2,\ldots\}\), and its natural history is \(\mathcal{F}_t=\sigma(X_s:0\le s\le t)\). An arrival increases the state by one. A service completion decreases it by one when the state is positive; at state \(0\), the server is idle.

Definition: The traffic intensity is \(\rho=\lambda/\mu\). It is the ratio of the arrival rate to the service rate, so it is dimensionless. The condition \(\rho<1\) is equivalent to \(\lambda<\mu\); \(\rho=1\) is the critical case, and \(\rho>1\) is the overloaded case.

The generator \(Q=(q_{ij})\) records the instantaneous transition rates. At state \(0\), the only possible transition is an arrival. At every state \(n\ge1\), arrivals and service completions give transitions to \(n+1\) and \(n-1\), respectively. Thus \(q_{00}=-\lambda\), \(q_{01}=\lambda\), and, for \(n\ge1\), \(q_{n,n-1}=\mu\), \(q_{nn}=-(\lambda+\mu)\), and \(q_{n,n+1}=\lambda\); all other entries are zero. The boundary row sums to \(-\lambda+\lambda=0\), and every interior row sums to \(\mu-(\lambda+\mu)+\lambda=0\), as required for a generator.

A probability row vector \(\pi=(\pi_0,\pi_1,\ldots)\) is a stationary distribution if, when \(X_0\) has distribution \(\pi\), the distribution of \(X_t\) remains \(\pi\) for every \(t\ge0\). In this tutorial, “stationary distribution exists” means that such an invariant probability distribution exists. The balance equations express that, in stationarity, each state's probability mass does not change over time.

What the Stationary Balance Equations Require

For a stationary distribution, the equation for state \(0\) is \(\mu\pi_1=\lambda\pi_0\): the rate of mass leaving state \(0\) must equal the rate entering it. For each \(n\ge1\), the equation is \((\lambda+\mu)\pi_n=\lambda\pi_{n-1}+\mu\pi_{n+1}\). The left side is the rate of mass leaving state \(n\); the right side is the incoming rate from its two neighboring states.

These are the global balance equations. To derive the equations, use the small-time transition rates: over a time interval of length \(h\), a transition along an allowed edge with rate \(r\) has probability \(rh+o(h)\), while two or more jumps have probability \(o(h)\). Because all exit rates are bounded by \(\lambda+\mu\), the stationary forward equations apply to each state. Setting the time derivative of each stationary state probability to zero gives the displayed equations.

Proposition: Any stationary probability distribution for this queue must satisfy \(\lambda\pi_n=\mu\pi_{n+1}\) for every \(n\ge0\).

Proof. Define \(J_n=\lambda\pi_n-\mu\pi_{n+1}\). The balance equation at state \(0\) gives \(\lambda\pi_0-\mu\pi_1=0\), so \(J_0=0\). For \(n\ge1\), rearranging the balance equation gives \(\lambda\pi_{n-1}-\mu\pi_n=\lambda\pi_n-\mu\pi_{n+1}\), which is \(J_{n-1}=J_n\). Starting from \(J_0=0\), induction gives \(J_n=0\) for every \(n\ge0\). Therefore \(\lambda\pi_n=\mu\pi_{n+1}\) for every \(n\), as claimed. \(\square\)

The proposition turns the balance equations into a simple recurrence. Since \(\mu>0\), it gives \(\pi_{n+1}=\rho\pi_n\), and repeated substitution yields \(\pi_n=\pi_0\rho^n\) for every \(n\ge0\). A stationary distribution must also satisfy \(\pi_n\ge0\) and \(\sum_{n=0}^{\infty}\pi_n=1\). Those requirements impose the threshold.

Theorem: For an M/M/1 queue with \(\lambda>0\) and \(\mu>0\), a stationary probability distribution exists if and only if \(\lambda<\mu\). When it exists, it is \(\pi_n=(1-\rho)\rho^n\) for \(n\ge0\).

Proof. First suppose a stationary probability distribution exists. The proposition gives \(\pi_n=\pi_0\rho^n\). If \(\pi_0=0\), the recurrence forces every \(\pi_n=0\), contradicting \(\sum_n\pi_n=1\); hence \(\pi_0>0\). If \(\rho\ge1\), then \(\pi_n=\pi_0\rho^n\ge\pi_0>0\) for every \(n\), so the series \(\sum_n\pi_n\) diverges. This contradicts normalization. Therefore \(\rho<1\), equivalently \(\lambda<\mu\). When \(0<\rho<1\), the geometric series gives \(\sum_{n=0}^{\infty}\rho^n=1/(1-\rho)\), so normalization forces \(\pi_0=1-\rho\).

Conversely, suppose \(\rho<1\) and define \(\pi_n=(1-\rho)\rho^n\). Each term is nonnegative, and \(\sum_n\pi_n=(1-\rho)/(1-\rho)=1\). Also, \(\lambda\pi_n=\mu\pi_{n+1}\) because \(\mu\pi_{n+1}=\mu(1-\rho)\rho^{n+1}=\lambda(1-\rho)\rho^n\). At state \(0\), this equality is exactly the balance equation. For \(n\ge1\), adding \(\lambda\pi_n=\mu\pi_{n+1}\) to \(\mu\pi_n=\lambda\pi_{n-1}\) gives \((\lambda+\mu)\pi_n=\lambda\pi_{n-1}+\mu\pi_{n+1}\). Thus all balance equations hold.

To see that this probability vector is invariant, set \(\nu=\lambda+\mu\) and \(R=I+Q/\nu\). The row at state \(0\) has entries \(R_{00}=\mu/\nu\) and \(R_{01}=\lambda/\nu\), summing to \(1\). For \(n\ge1\), the entries \(R_{n,n-1}=\mu/\nu\), \(R_{nn}=0\), and \(R_{n,n+1}=\lambda/\nu\) also sum to \(1\). The balance equations give \(\pi Q=0\), hence \(\pi R=\pi\). The chain can be represented by potential jump times from a rate-\(\nu\) Poisson process, using \(R\) as the transition matrix at each potential jump; a transition may leave the state unchanged. Conditional on \(k\) potential jumps by time \(t\), its distribution is \(\pi R^k=\pi\). Averaging over the Poisson number of jumps leaves the distribution equal to \(\pi\). Thus \(\pi\) is stationary, proving existence when \(\rho<1\). \(\square\)

Worked Examples Across the Threshold

Worked Example: Arrival Rate Below Service Rate

Let \(\lambda=2\) and \(\mu=5\). The boundary generator row has entries \(-2,2\), whose sum is \(0\). Each interior row has entries \(5,-7,2\), whose sum is \(5-7+2=0\). The traffic intensity is \(\rho=\lambda/\mu=2/5<1\), so the theorem gives \(\pi_n=(1-2/5)(2/5)^n=\tfrac35(\tfrac25)^n\).

For example, \(\pi_0=\tfrac35\), \(\pi_1=\tfrac35\cdot\tfrac25=\tfrac6{25}\), and \(\pi_2=\tfrac6{25}\cdot\tfrac25=\tfrac{12}{125}\). The full sum is \(\sum_{n=0}^{\infty}\pi_n=\tfrac35\cdot\frac{1}{1-2/5}=\tfrac35\cdot\tfrac53=1\). At state \(0\), the incoming rate is \(\mu\pi_1=5\cdot\tfrac6{25}=\tfrac65\), equal to the outgoing rate \(\lambda\pi_0=2\cdot\tfrac35=\tfrac65\). This checks both normalization and the boundary balance equation.

Worked Example: The Critical Case

Let \(\lambda=3\) and \(\mu=3\). The boundary generator entries \(-3,3\) sum to \(0\); the interior entries \(3,-6,3\) sum to \(3-6+3=0\). Here \(\rho=3/3=1\). The stationary equations would require \(\pi_n=\pi_0\) for every \(n\). If \(\pi_0=0\), all entries are zero and their sum is not \(1\). If \(\pi_0>0\), then the partial sum through state \(N\) is \(\sum_{n=0}^{N}\pi_n=(N+1)\pi_0\), which grows without bound as \(N\) increases. Neither choice gives a probability distribution. Thus no stationary distribution exists at the critical threshold.

Check: Substitution into the state-\(0\) equation gives \(3\pi_0=3\pi_1\), or \(\pi_0=\pi_1\), consistent with the recurrence. The obstruction is not failure of the balance equations; it is failure of normalization.

Worked Example: Arrival Rate Above Service Rate

Let \(\lambda=5\) and \(\mu=2\). The boundary generator entries \(-5,5\) sum to \(0\); the interior entries \(2,-7,5\) sum to \(2-7+5=0\). The traffic intensity is \(\rho=5/2>1\), so the recurrence would require \(\pi_n=\pi_0(5/2)^n\).

If \(\pi_0=0\), the recurrence makes every probability zero, contradicting total mass \(1\). If \(\pi_0>0\), the terms do not even tend to zero: for every \(n\), \(\pi_n\ge\pi_0>0\). A convergent series of nonnegative terms must have terms tending to zero, so these entries cannot sum to \(1\). Hence no stationary probability distribution exists. This verifies the theorem's conclusion directly in an overloaded case.

Why the Threshold Is a Normalization Condition

The balance equations describe how probability mass moves between neighboring queue lengths. They force the stationary weights, if they exist, to have a geometric ratio \(\rho\). The condition \(\lambda<\mu\) is exactly what makes those weights summable. At \(\rho=1\), the weights are constant; above \(1\), they increase. Neither case can be normalized over the unbounded state space.

This conclusion concerns existence of a stationary probability distribution. It does not, by itself, assert a particular convergence rate from every initial state or describe the distribution of waiting times. Those are distinct questions. The calculation here also depends on the M/M/1 assumptions: a single server, Poisson arrivals at rate \(\lambda\), exponential service at rate \(\mu\) while busy, and an unlimited queue capacity.

Common pitfall: treating the critical case as normalizable. At \(\rho=1\), one might truncate the state space at \(N\), assign probability \(1/(N+1)\) to each state \(0,\ldots,N\), and then claim a stationary distribution by letting \(N\) increase. For each fixed \(n\), however, \(1/(N+1)\) tends to \(0\). The pointwise limit assigns zero to every state, whose total mass is \(0\), not \(1\). A sequence of normalized distributions on larger and larger finite sets need not have a normalized limit on the infinite state space. The correct test is whether the infinite series of balance weights sums to \(1\).

Check Your Understanding

Use the balance equations and normalization condition to answer each question.

  1. For \(\lambda=4\) and \(\mu=6\), calculate \(\rho\) and state whether a stationary distribution exists.
  2. Explain why the boundary balance equation is \(\lambda\pi_0=\mu\pi_1\), rather than an equation involving a service departure from state \(0\).
  3. If \(\rho=1\) and \(\pi_0>0\), what is the partial sum \(\sum_{n=0}^{N}\pi_n\), and why does it rule out a stationary probability distribution?
  4. For \(\rho=3/4\), normalize the weights \(\pi_n=\pi_0\rho^n\) and give \(\pi_0\).
  5. Why does satisfying the balance equations alone not establish a stationary probability distribution when \(\rho>1\)?