Perfect Sampling of GI/GI/c Queues

José Blanchet, Jing Dong, Yanan Pei

Abstract: We introduce the first class of perfect sampling algorithms for the steady-state distribution of multi-server queues with general interarrival time and service time distributions. Our algorithm is built on the classical dominated coupling from the past protocol. In particular, we use a coupled multi-server vacation system as the upper bound process and develop an algorithm to simulate the vacation system backwards in time from stationarity at time zero. The algorithm has finite expected termination time with mild moment assumptions on the interarrival time and service time distributions.

TL;DR

The authors introduce the first perfect sampling algorithm for $GI/GI/c$ queues, which allows researchers to sample directly from a queue's long-term steady state without the "burn-in" bias typical of standard simulations. By using a novel "vacation system" as a stationary upper bound within a Dominated Coupling From The Past (DCFTP) framework, they achieve finite expected runtimes under very mild mathematical assumptions.

What Problem Does This Paper Address?

In many fields—from telecommunications to manufacturing—engineers need to understand how queues behave in the long run (the "steady state"). Traditionally, this is done using Markov Chain Monte Carlo (MCMC) simulations: you start a simulation from an arbitrary state (like an empty queue) and wait a long time for it to "settle" into stationarity.

The problem is bias. You never truly know if the simulation has run long enough to forget its starting state—a challenge known as the "burn-in" problem. While "Perfect Sampling" techniques like Coupling From The Past (CFTP) exist to eliminate this bias, they are notoriously difficult to apply to multi-server queues ($GI/GI/c$). Standard CFTP requires the system to be "uniformly ergodic," a property multi-server queues lack. Previous attempts often relied on restrictive assumptions, like Poisson arrival processes ($M/G/c$), leaving the more general $GI/GI/c$ case unsolved.

Methods

The authors utilize a variation of perfect simulation called Dominated Coupling From The Past (DCFTP). Instead of trying to simulate the target queue directly from the infinite past, they "sandwich" it between two stationary processes: a lower bound (usually an empty system) and a newly invented upper bound.

Visualization of queue length at arrival epochs, illustrating the state tracking necessary for the algorithm.

The Key Innovation: The Vacation System The core of their method is the vacation system. In this modified queue, if a server finishes a job and no one is waiting, the server doesn't just sit idle; they take a "vacation" for a duration drawn from the same distribution as a service time. This makes the system much easier to analyze and simulate backwards in time from stationarity.

The algorithm works by:

  1. Backward Simulation: Simulating this vacation system (the upper bound) and an empty system (the lower bound) backwards in time.
  2. Coalescence Detection: Using the monotonicity of the Kiefer-Wolfowitz workload vector—which tracks the remaining work for each server—to determine when the upper and lower bounds "meet" (coalesce).
  3. Forward Reconstruction: Once they meet at some time $-T$ in the past, the state of the actual $GI/GI/c$ queue is known exactly at that moment. The algorithm then simulates forward to time zero to produce a perfect sample.

Datasets

The paper does not use external real-world datasets. Instead, it validates the algorithm using:

  • Synthetic $M/M/c$ Queues: Used as a "ground truth" because their steady-state distributions can be calculated exactly using closed-form formulas.
  • Numerical Simulations: The authors implemented the algorithm in MATLAB to test various traffic intensities ($\rho$) and system scales, confirming that the empirical results match theoretical expectations.

Key Insights and Ideas

  • Breaking the Poisson Barrier: Most previous perfect samplers for queues required Poisson arrivals because they rely on "quasi-reversibility" to simulate backwards. This paper bypasses that requirement by using a vacation system that can be simulated backwards using only the running maximum of random walks.
  • No Need for Empty Systems: Unlike some earlier methods that only work if the queue occasionally becomes empty, this algorithm can detect coalescence even in "heavy traffic" scenarios where the queue is almost always busy.
  • Moment Assumptions: The authors prove that the algorithm has a finite expected running time as long as the interarrival and service times have slightly more than two moments (i.e., finite variance plus a little extra, $2+\epsilon$).

Key Results

  • Theoretical Proof: The authors rigorously prove that their algorithm terminates in finite expected time under stable conditions ($\lambda < c\mu$).
  • Accuracy: Numerical experiments for $M/M/c$ queues showed a near-perfect match between the algorithm's output and the theoretical distribution.
  • Complexity Scaling: The computational cost (number of renewals sampled) scales at a rate of roughly $(1-\rho)^{-2}$, where $\rho$ is the traffic intensity. This is consistent with the known behavior of heavy-traffic approximations.

Limitations and Future Work

  • Heavy Traffic Costs: While the algorithm works in heavy traffic, the computational cost increases significantly as $\rho$ approaches 1.
  • Moment Requirements: If the service times have very "heavy tails" (e.g., infinite variance), the expected termination time may not be finite, though the algorithm will still terminate with probability 1.
  • Extension to Networks: This paper focuses on a single multi-server station. A natural next step, which the authors hint at, is extending these perfect sampling techniques to entire networks of $GI/GI/c$ queues.

Summary updated

Abstract

We introduce the first class of perfect sampling algorithms for the steady-state distribution of multi-server queues with general interarrival time and service time distributions. Our algorithm is built on the classical dominated coupling from the past protocol. In particular, we use a coupled multi-server vacation system as the upper bound process and develop an algorithm to simulate the vacation system backwards in time from stationarity at time zero. The algorithm has finite expected termination time with mild moment assumptions on the interarrival time and service time distributions.
BibTeX
@article{blanchet2018perfect,
  author = {José Blanchet and Jing Dong and Yanan Pei},
  title = {{Perfect Sampling of GI/GI/c Queues}},
  journal = {Queueing Syst. Theory Appl.},
  year = {2018},
  doi = {10.1007/s11134-018-9573-2},
}
Figure