Tutorials › Stochastic Processes › Idle and Busy Cycles as Queue Regeneration

Renewal-Reward and Regenerative Processes · Tutorial 618 of 994

Idle and Busy Cycles as Queue Regeneration

Identify queue regeneration epochs and calculate idle and busy cycle components for M/G/1 and M/M/1 models.

Advanced 10 min read

What You'll Learn

  • Define regeneration epochs when a single-server queue becomes empty
  • Explain why successive idle and busy cycles are independent and identically distributed
  • Derive the idle-period distribution under Poisson arrivals
  • Obtain a busy-period transform and mean for an M/G/1 queue
  • Solve and verify a busy-period transform for an M/M/1 queue
  • Identify why the finite-mean condition matters

Empty-System Epochs as Regeneration Times

In a single-server queue, the system empties between periods of work. Those empty-system epochs provide natural points at which the future queueing evolution starts afresh: the server has no unfinished work, and future arrivals have not been affected by the past. This makes idle periods and busy periods useful cycle components. Their distributions depend on the arrival and service assumptions, so those assumptions must be stated before calculations begin.

Consider a probability space \((\Omega,\mathcal{F},\mathbb{P})\) carrying a queue with count-valued state \(Q_t\in S=\{0,1,2,\ldots\}\), where \(Q_t\) is the number of customers in the system at time \(t\ge0\). Arrivals form a Poisson process of rate \(\lambda>0\). Service is first-come, first-served, one customer at a time, and the server works whenever the system is nonempty. Service times \(S_1,S_2,\ldots\) are independent and identically distributed, independent of the arrival process, with \(S_k>0\) almost surely and \(a=\mathbb{E}[S_1]\in(0,\infty)\). Write \(\rho=\lambda a\).

Definition: A busy period is the time from an arrival to an empty system until the system next becomes empty. An idle period is the time from the end of one busy period until the next arrival. A cycle consists of an idle period followed by the busy period it initiates. We use regeneration epochs at the times the system becomes empty at the end of a busy period; starting from an empty system at time \(0\), the first cycle begins there as well.

For the finite-mean results below, assume \(\rho<1\). This condition ensures the busy period ends almost surely and has finite expectation. The first idle period \(I\) has the exponential distribution with rate \(\lambda\): \(\mathbb{P}(I>t)=e^{-\lambda t}\) for \(t\ge0\), and \(\mathbb{E}[I]=1/\lambda\). The busy period \(B\) begins with one arriving customer. Its length depends on that customer’s service and on all arrivals whose work is completed before the system next empties.

Theorem: Under the assumptions above and \(\rho<1\), successive cycles are independent and identically distributed. Their idle components have exponential distribution with rate \(\lambda\). If \(B\) denotes a busy period started by one arrival, its Laplace transform \(b(s)=\mathbb{E}[e^{-sB}]\), for \(s\ge0\), satisfies $$ b(s)=\mathbb{E}\!\left[\exp\{-S_1(s+\lambda(1-b(s)))\}\right]. $$ Moreover, \(\mathbb{E}[B]=a/(1-\rho)\).

Proof. Let \(T_k\) be the time the system becomes empty at the end of the \(k\)th busy period, with \(T_0=0\) when the system starts empty. At \(T_k\), there is no customer in service and no remaining service requirement. By the strong Markov property of the Poisson arrival process, its arrivals after \(T_k\) have the same law as a fresh Poisson process and are independent of the history through \(T_k\). The service times of customers arriving after \(T_k\) are also fresh independent copies of \(S_1\). Thus the idle and busy components following \(T_k\) have the same joint law for each \(k\), and are independent of the preceding cycles. This proves the cycle assertion. The strong Markov property used here is a standard result for Poisson processes.

For the busy-period formula, regard the initial customer as the root of a family tree. The arrivals during that customer’s service are its children; arrivals during each child’s service are that child’s children, and so on. Given service length \(S_1\), the number of children is Poisson with mean \(\lambda S_1\). Each child initiates an independent busy-period subtree. Conditional on \(S_1\) and on \(K\), the number of children, the transform of the root’s service plus all child busy periods is \(e^{-sS_1}b(s)^K\). Averaging over \(K\) uses the Poisson generating function: $$ \mathbb{E}[b(s)^K\mid S_1]=\exp\{-\lambda S_1(1-b(s))\}. $$ Taking expectation over \(S_1\) gives the stated transform equation.

For the mean, let \(Z_n\) be the number of customers in generation \(n\), with \(Z_0=1\). Each customer has expected number \(\lambda a=\rho\) of children, so conditioning on generation \(n\) gives \(\mathbb{E}[Z_{n+1}]=\rho\mathbb{E}[Z_n]\). Induction yields \(\mathbb{E}[Z_n]=\rho^n\). Since \(\rho<1\), \(\mathbb{P}(Z_n>0)\le\mathbb{E}[Z_n]=\rho^n\to0\); hence the family tree becomes extinct almost surely. Each generation has finite size almost surely, so extinction implies a finite total number of customers and a finite busy period almost surely.

The service times in generation \(n\) have not been used to determine that generation’s size: its size is determined by earlier generations’ services and arrivals. They are therefore independent of \(Z_n\), and the expected total service in generation \(n\) is \(a\mathbb{E}[Z_n]=a\rho^n\). Summing the nonnegative generation totals and using monotone convergence, $$ \mathbb{E}[B]=\sum_{n=0}^{\infty}a\rho^n=\frac{a}{1-\rho}. $$ This proves the theorem. \(\square\)

Calculating Cycle Components

The transform equation applies beyond exponential service. Define the service-time Laplace transform \(\beta(q)=\mathbb{E}[e^{-qS_1}]\) for \(q\ge0\). Then the busy-period equation is \(b(s)=\beta(s+\lambda(1-b(s)))\). For exponential service with rate \(\mu>0\), \(\beta(q)=\mu/(\mu+q)\), so the transform equation becomes a quadratic. In either setting, the relevant solution is the transform value in \([0,1]\); algebraic roots outside this interval cannot be transforms.

Worked Example: Idle and Busy Means with Exponential Service

Suppose arrivals have rate \(\lambda=2\) and service times are exponential with rate \(\mu=5\). The service mean is \(a=1/5\), so \(\rho=\lambda a=2/5<1\), and the finite-mean result applies.

The idle period \(I\) has survival probability \(\mathbb{P}(I>t)=e^{-2t}\), and its mean is \(\mathbb{E}[I]=1/\lambda=1/2\). The mean busy period is $$ \mathbb{E}[B]=\frac{a}{1-\rho} =\frac{1/5}{1-2/5} =\frac{1/5}{3/5} =\frac13. $$ Thus the expected cycle length, the sum of these two components, is \(1/2+1/3=5/6\).

Check: The expected number of customers in generation \(n\) is \((2/5)^n\). Their expected total service is \((1/5)(2/5)^n\), so summing generation service gives \((1/5)\sum_{n\ge0}(2/5)^n=(1/5)/(3/5)=1/3\), as above.

Worked Example: An M/M/1 Busy-Period Transform

Take \(\lambda=1\) and \(\mu=3\). The service transform is \(\beta(q)=3/(3+q)\). At \(s=1\), the busy-period transform equation gives $$ b(1)=\frac{3}{3+1+(1-b(1))} =\frac{3}{5-b(1)}. $$

Multiplying by \(5-b(1)\) gives \(b(1)(5-b(1))=3\), or \(b(1)^2-5b(1)+3=0\). The quadratic formula gives \(b(1)=(5\pm\sqrt{13})/2\). Since \(13>9\), \(\sqrt{13}>3\), and the plus root exceeds \(4\), so it cannot lie in \([0,1]\). The valid root is $$ b(1)=\frac{5-\sqrt{13}}{2}. $$

Check: The root satisfies \(b(1)^2-5b(1)+3=0\), so \(b(1)(5-b(1))=3\). Also \(0<(5-\sqrt{13})/2<1\), since \(3<\sqrt{13}<5\). This is consistent with a Laplace transform at \(s=1\).

Worked Example: Deterministic Service

Suppose arrivals have rate \(\lambda=1\) and every service time is exactly \(1/2\). Here \(a=1/2\), \(\rho=1/2<1\). The idle period is exponential with rate \(1\), so \(\mathbb{E}[I]=1\). The busy-period mean is $$ \mathbb{E}[B]=\frac{1/2}{1-1/2}=1. $$ The cycle therefore has mean length \(1+1=2\).

To check the busy-period calculation, each customer has a Poisson number of children with mean \(\lambda a=1/2\). The expected service contributed by generation \(n\) is \((1/2)(1/2)^n\). Summing gives $$ \frac12+\frac14+\frac18+\cdots =\frac{1/2}{1-1/2} =1, $$ which agrees with the formula. The service law is not exponential, but the empty-system epoch still regenerates the queue because new service times are independent copies and future Poisson arrivals are fresh.

Why the Stability Condition Matters

The condition \(\rho<1\) is not a technical decoration. It makes the expected number of customers in generation \(n\) decrease geometrically, which is what made the mean busy-period sum finite. At the boundary, the same calculation shows the problem: if service times are exponential with \(\lambda=\mu=1\), then \(a=1\) and \(\rho=1\). The expected number in every generation is \(1\), and expected service in every generation is also \(1\). The sum of these expected generation services is infinite, so the busy-period expectation is infinite. The finite-mean cycle calculations above therefore do not apply at this boundary.

Common mistake. It is incorrect to set the mean busy period equal to the mean of one service time. For the exponential example with \(\lambda=2\) and \(\mu=5\), that mistake gives \(1/5\). It counts only the initial customer and ignores arrivals during service that create further work. The correct calculation includes all generations: $$ \mathbb{E}[B]=\frac15+\frac15\left(\frac25\right)+\frac15\left(\frac25\right)^2+\cdots =\frac13. $$ The first term is the initial customer’s expected service; the remaining terms account for descendants. In contrast, the idle period ends at the first arrival, so its mean is \(1/\lambda\), not \(1/\mu\).

Check Your Understanding

In each question, use the stated service and arrival assumptions, and verify calculations by substitution or a second calculation.

  1. For Poisson arrivals of rate \(4\), what is the distribution and mean of an idle period?
  2. For an M/G/1 queue with \(\lambda=1\) and deterministic service time \(1/3\), calculate \(\rho\), the mean busy period, and the mean cycle length.
  3. Explain why arrivals during a customer’s service can be represented as that customer’s children in the busy-period family tree.
  4. For exponential service with \(\lambda=1\), \(\mu=2\), write the equation for \(b(s)\) and simplify it to a quadratic.
  5. What step in the mean busy-period proof fails to give a finite answer when \(\rho=1\)?