What a Busy Period Measures
Queueing performance is not described only by the number of customers present at a typical time or by an individual customer's waiting time. A busy period measures the duration of a whole episode of continuous work: it begins when an arrival finds the system empty and ends the next time the system becomes empty. Its length depends on the service time of the initiating customer and on all arrivals that occur before the system empties. First-step analysis turns that dependence into an equation for the busy-period transform.
Consider an M/M/1 queue with arrival rate \(\lambda>0\) and service rate \(\mu>0\). Arrivals form a Poisson process, service times are independent exponential random variables with rate \(\mu\), and arrivals and service times are independent. Let \((N_t)_{t\ge0}\) be the number in the system on a probability space \((\Omega,\mathcal{F},\mathbb{P})\), with state space \(S=\{0,1,2,\ldots\}\) and time index \(t\ge0\). Use the natural filtration \((\mathcal{F}_t)_{t\ge0}\), representing the queue history through time \(t\). From state \(n\ge1\), the transition rates to \(n+1\) and \(n-1\) are \(\lambda\) and \(\mu\); from state 0 the rate to 1 is \(\lambda\). Thus the generator has \(q_{n,n+1}=\lambda\), \(q_{n,n-1}=\mu\) for \(n\ge1\), and \(q_{n,n}=-(\lambda+\mu)\); at 0, \(q_{0,1}=\lambda\) and \(q_{0,0}=-\lambda\). Each generator row sums to zero.
The indicator in the transform matters when the queue can remain busy forever with positive probability: an infinite busy period contributes zero to \(f_n(s)\) for \(s>0\). This definition does not assume that the queue has a stationary distribution. In particular, the transform calculation will also cover the critical and overloaded cases.
First-Step Analysis and the Transform
While the system is nonempty, the next event is either an arrival or a service completion. The time to that event is exponential with rate \(\lambda+\mu\); its type is an arrival with probability \(\lambda/(\lambda+\mu)\) and a completion with probability \(\mu/(\lambda+\mu)\). Discounting by \(e^{-s t}\) gives the common factor \((\lambda+\mu)/(\lambda+\mu+s)\). From \(n\ge1\), an arrival changes the state to \(n+1\), while a completion changes it to \(n-1\). Since \(f_0(s)=1\), first-step conditioning gives
Proof. Fix \(s>0\). The recurrence for \(f_n(s)\), after multiplication by \(\lambda+\mu+s\), has characteristic equation \(\lambda r^2-(\lambda+\mu+s)r+\mu=0\). The polynomial is positive at \(r=0\) and equals \(-s<0\) at \(r=1\). Its leading coefficient is positive, so its two roots satisfy \(0<r_-<1<r_+\). Every solution of this second-order recurrence has the form \(f_n=c_-r_-^n+c_+r_+^n\): both powers satisfy the recurrence, and their distinct roots give the two independent solutions. Since \(0\le f_n(s)\le1\) for every \(n\), the term with \(r_+^n\) cannot have a nonzero coefficient; otherwise the sequence would be unbounded. The boundary value \(f_0(s)=1\) then gives \(c_-=1\), so \(f_n(s)=r_-^n\), and in particular \(\beta(s)=r_-\). The quadratic formula gives the displayed expression.
For the probability of a finite busy period, take \(s\downarrow0\). On \(\{B<\infty\}\), \(e^{-sB}\) increases to 1, and off that event the indicator in the definition is zero. Monotone convergence therefore gives \(\lim_{s\downarrow0}\beta(s)=\mathbb{P}_1(B<\infty)\). The smaller root is continuous in the coefficients, including when the roots coincide. At \(s=0\), the equation factors as \((r-1)(\lambda r-\mu)=0\). If \(\lambda<\mu\), the smaller root is 1; if \(\lambda=\mu\), the roots coincide at 1; if \(\lambda>\mu\), the smaller root is \(\mu/\lambda\). This proves the stated probabilities.
To identify the mean, set \(e^{-sB}=0\) on \(\{B=\infty\}\). As \(s\downarrow0\), \((1-e^{-sB})/s\) increases to \(B\), interpreted as infinity if \(B=\infty\). Consequently, monotone convergence yields $$ \mathbb{E}_1[B]=\lim_{s\downarrow0}\frac{1-\beta(s)}{s}. $$ When \(\lambda<\mu\), the root at zero is \(\beta(0)=1\). Differentiating its quadratic equation for \(s>0\) and taking the limit at zero gives $$ \bigl(2\lambda\beta(0)-(\lambda+\mu)\bigr)\beta'(0)=\beta(0), \qquad (\lambda-\mu)\beta'(0)=1. $$ Thus the limit of \((1-\beta(s))/s\) is \(-\beta'(0)=1/(\mu-\lambda)\). When \(\lambda=\mu\), the quadratic equation rearranges to \(\mu(1-\beta(s))^2=s\beta(s)\). Hence $$ \frac{1-\beta(s)}{s}=\frac{\beta(s)}{\mu(1-\beta(s))}\longrightarrow\infty, $$ because \(\beta(s)\to1\). When \(\lambda>\mu\), the event \(B=\infty\) has probability \(1-\mu/\lambda>0\), so \(\mathbb{E}_1[B]=\infty\). This proves all the claims. \(\square\)
Worked Transform Calculations
Worked Example: A Stable Queue
Let \(\lambda=1\) and \(\mu=4\). Find the mean busy-period length and evaluate the transform at \(s=7/2\). The generator rows sum to zero: at state 0 the entries are \(-1\) and \(1\); at each \(n\ge1\), the rates are \(1\), \(4\), and diagonal entry \(-5\), whose sum is zero.
Since \(1<4\), the busy period is finite almost surely and the mean is $$ \mathbb{E}_1[B]=\frac{1}{4-1}=\frac13. $$ At \(s=7/2\), the transform equation is $$ \beta^2-\frac{17}{2}\beta+4=0, $$ because \(\lambda+\mu+s=1+4+7/2=17/2\). Its roots are \(1/2\) and \(8\): their product is \(4\), and their sum is \(17/2\). The theorem selects the smaller root, so \(\beta(7/2)=1/2\).
Check: Substitution gives \((1/2)^2-(17/2)(1/2)+4=1/4-17/4+16/4=0\), as required. The mean is also consistent with the transform: the derivative at zero is \(-1/3\).
Worked Example: A Critical Queue
Let \(\lambda=\mu=2\). At state 0 the generator entries \(-2\) and \(2\) sum to zero; at each positive state the entries \(2\), \(2\), and \(-4\) sum to zero. The probability of a finite busy period is 1, but its mean is infinite, as the theorem predicts.
At \(s=4\), the equation becomes \(2\beta^2-8\beta+2=0\), since \(2+2+4=8\). Dividing by 2 gives \(\beta^2-4\beta+1=0\). Its roots are \(2-\sqrt{3}\) and \(2+\sqrt{3}\), so the smaller-root rule gives \(\beta(4)=2-\sqrt{3}\).
Check: With \(\beta=2-\sqrt{3}\), \(\beta^2=7-4\sqrt{3}\), and $$ \beta^2-4\beta+1=(7-4\sqrt{3})-(8-4\sqrt{3})+1=0. $$ The transform value is less than 1, as it must be for a strictly positive busy period at \(s>0\). The infinite mean does not contradict almost-sure finiteness: a finite random duration can have infinite expectation.
Worked Example: An Overloaded Queue
Let \(\lambda=3\) and \(\mu=2\). At state 0 the generator entries \(-3\) and \(3\) sum to zero; at each positive state the entries \(3\), \(2\), and \(-5\) sum to zero. At \(s=1\), the quadratic is \(3\beta^2-6\beta+2=0\), because \(3+2+1=6\). Its roots are \(1-\sqrt{3}/3\) and \(1+\sqrt{3}/3\), so $$ \beta(1)=1-\frac{\sqrt{3}}{3}. $$
Check: Writing \(b=1-1/\sqrt{3}\), we have \(b^2=4/3-2/\sqrt{3}\), and $$ 3b^2-6b+2=(4-2\sqrt{3})+(-6+2\sqrt{3})+2=0. $$ The probability the busy period is finite is \(2/3\), and its mean is infinite because the busy period is infinite with probability \(1/3\).
Why Root Selection Matters
A common mistake is to set \(s=0\) in the quadratic, observe the roots 1 and \(\mu/\lambda\), and select a root using only the fact that a probability is at most 1. That does not settle the overloaded case: when \(\lambda>\mu\), both roots are at most 1, so this bound cannot distinguish them. The correct argument first proves that for every \(s>0\), the transform is the smaller root. Then it takes the limit \(s\downarrow0\). In the overloaded case, that smaller root tends to \(\mu/\lambda\), giving the finite-busy-period probability. Root selection at \(s=0\) alone is insufficient.
The mean formula also has a specific regime of validity. The expression \(1/(\mu-\lambda)\) applies only when \(\lambda<\mu\). At critical load, the busy period ends almost surely but has infinite mean; above critical load, there is positive probability it never ends, which also forces an infinite mean. These distinctions matter when interpreting a busy-period calculation: a transform at positive \(s\), a probability of eventual emptying, and an expected duration answer different questions.
Check Your Understanding
Use first-step analysis and the stated hypotheses to justify your answers.
- For \(\lambda=2\) and \(\mu=5\), what is the probability that a busy period is finite, and what is its mean?
- Starting from \(n\ge1\), write the first-step recurrence for \(f_n(s)\), including the boundary value at zero.
- Why must the coefficient of the larger characteristic root be zero in the transform recurrence?
- For \(\lambda=4\) and \(\mu=2\), determine the probability that a busy period is infinite and its mean.
- Explain why knowing the two roots at \(s=0\) and the bound that a probability is at most 1 does not identify the finite-busy-period probability in the overloaded case.