Online Distributed Queue Length Estimation

Aditya Bhaskara, Sreenivas Gollapudi, Sungjin Im, Kostas Kollias, Kamesh Munagala · DOI

Abstract

In distributed systems, a central server often needs to monitor the state of a queue where individual elements—such as packets in a network or vehicles in traffic—act as independent agents. This paper addresses the challenge of estimating queue length when agents have only local information and can only provide one-way, sporadic updates to the server. We present two decentralized algorithms, Ping on Arrival (POA) and Ping COntinuously (PICO), which adaptively regulate communication to achieve a near-optimal trade-off between communication overhead and estimation accuracy. Our results demonstrate that even with "myopic" agents, a server can maintain a $(1+\epsilon)$-approximation of the true queue length across Poisson and adversarial arrival/departure processes.

Introduction

Queue length monitoring is a fundamental requirement for effective traffic management, cloud resource scheduling, and network congestion control. Traditional monitoring assumes a global observer or a server capable of querying agents. However, in many modern distributed contexts, agents (e.g., mobile devices or autonomous vehicles) face significant constraints: they only possess local information (their own position in the queue), communication is strictly one-way to preserve battery and privacy, and bandwidth is a limited resource.

This research, a collaboration between the University of Utah, Google Research, UC Santa Cruz, and Duke University, seeks to identify the minimum communication required for a server to reconstruct a queue's state within a specified error margin $\epsilon$.

System Model and Constraints

We model the system as a FIFO queue where agents arrive and depart according to various stochastic or adversarial processes. Each agent is "myopic," meaning it only knows the number of packets $h$ currently ahead of it in the queue. Agents cannot communicate with each other, and the server cannot send feedback or instructions to the agents. The goal is for the server to maintain an estimate $\hat{L}(t)$ such that the average error relative to the true length $L(t)$ is minimized, specifically aiming for an $\epsilon$-reconstruction error.

Decentralized Pinging Policies

The authors propose two primary strategies based on the predictability of the departure process:

1. Ping on Arrival (POA)

In environments where departures follow predictable patterns, such as constant-rate or Poisson processes, agents only need to decide whether to notify the server at the moment they join the queue.

  • Mechanism: Upon arrival, an agent seeing $h$ packets ahead pings the server with a probability roughly proportional to $1/(\epsilon h)$.
  • Server Logic: The server uses these arrival pings to "fill in the blanks," extrapolating the queue state based on the known or estimated departure rate until the next ping arrives.

2. Ping COntinuously (PICO)

When both arrivals and departures are adversarial—characterized by unpredictable bursts—the server cannot safely extrapolate. POA fails in these scenarios because a sudden mass departure could occur without the server's knowledge.

  • Mechanism: Agents must ping intermittently throughout their duration in the queue. The probability of an agent pinging at any given time is a function of both its current height $h$ and its total wait time $w$.
  • Robustness: PICO ensures the server is never "clueless" for long, even during volatile shifts in queue dynamics.

Methodology: The Geometric Approach

The core of the paper's analysis relies on a geometric interpretation of the queue. The queue length over time is visualized as a 2D profile. Each ping from an agent provides a specific "rectangle" of information (a timestamp and a position). The server’s estimation task is framed as an optimization problem: stitching these informational rectangles together to reconstruct the original profile with minimal gaps (error) and minimal overlap (redundant pings).

Key Insights and Results

The Power of Myopic Sensing

A significant finding is that global visibility is not required for accurate estimation. Local knowledge of the number of agents ahead is sufficient to provide the server with the necessary data to reconstruct the global state efficiently.

The Predictability Threshold

The research identifies a sharp transition in optimal strategy. If departures are even moderately predictable, a single ping upon arrival suffices. If departures are adversarial, continuous (though randomized) communication becomes necessary.

Communication Efficiency and Accuracy

  • Accuracy: Both POA and PICO successfully maintain the $\epsilon$-reconstruction error, ensuring the estimate stays within a $(1+\epsilon)$ factor of the truth.
  • Efficiency: For predictable processes, the communication cost is remarkably low—often logarithmic or constant relative to the total number of packets. In adversarial settings, PICO's overhead is only a factor of $O(\frac{\log h}{\epsilon})$ greater than the simpler POA policy.
  • Lower Bounds: The authors provide mathematical proofs showing that these algorithms are near-optimal; no other decentralized algorithm can significantly reduce communication without sacrificing accuracy.

Limitations and Future Work

While the paper establishes a robust theoretical framework, several areas remain for future exploration. Currently, PICO produces a biased estimator, and creating an unbiased continuous policy remains an open challenge. Additionally, the model assumes perfect local sensing; real-world applications may involve noisy data (e.g., a car's radar miscounting vehicles ahead). Finally, while the authors suggest extensions to Jackson networks, the propagation of estimation errors through complex, multi-hop networks warrants further study.

Summary updated

BibTeX
@inproceedings{bhaskara2025online,
  author = {Aditya Bhaskara and Sreenivas Gollapudi and Sungjin Im and Kostas Kollias and Kamesh Munagala},
  title = {{Online Distributed Queue Length Estimation}},
  booktitle = {ACDA},
  year = {2025},
  doi = {10.1137/1.9781611978759.23},
}
Figure