Bounded Memory in Distributed Networks

Ran Ben Basat, Keren Censor-Hillel, Yi-Jun Chang, Wenchen Han, Dean Leitersdorf, Gregory Schwartzman · DOI

Introduction

In the realm of theoretical distributed computing, the CONGEST model has long served as the standard for analyzing network algorithms. It focuses on communication bottlenecks, assuming nodes can send only $O(\log n)$ bits per edge per round while possessing effectively infinite local memory and computational power. However, the emergence of high-speed programmable switches, such as the Intel Tofino, has exposed a significant gap in this model. These devices operate at line rate using extremely limited SRAM—often just tens of megabytes to handle millions of packets.

To bridge this gap, this paper introduces the $\mu$-CONGEST model. This framework imposes a strict constraint on local memory, where each node is restricted to $\mu$ words of storage. By analyzing fundamental graph problems within this model, the authors establish a formal understanding of the trade-offs between local memory and round complexity.

The $\mu$-CONGEST Model and the Memory-Round Trade-off

The central question addressed is how limiting memory affects the time (measured in rounds) required to solve graph problems. The authors demonstrate that memory and time are often interchangeable, particularly for subgraph detection tasks.

Triangle Listing

A primary contribution of the paper is the analysis of triangle listing. The authors prove a lower bound using information-theoretic techniques (entropy and mutual information), showing that for memory $\mu \le n^{4/3}$, any algorithm requires $\Omega(n / \mu^{1/2})$ rounds. This implies a square-root trade-off: reducing available memory by a factor of four necessitates a doubling of the execution time to avoid re-communicating data.

To match this lower bound, the authors provide a randomized algorithm that lists all triangles in $n^{1+o(1)} / \mu^{1/2}$ rounds. This result is achieved by carefully managing data movement to ensure that no node exceeds its $\mu$-word limit while still facilitating the necessary comparisons to identify triangles.

Methodological Innovations

The paper employs several sophisticated techniques to handle memory constraints that are typically ignored in standard CONGEST settings.

Memory-Efficient Expander Decompositions

Expander decomposition is a powerful technique that partitions a graph into well-connected clusters. While standard algorithms for this decomposition exist, they often require significant memory per node. The authors adapt these algorithms to function within a "smooth round-space tradeoff," ensuring that the clustering and subsequent routing phases do not overwhelm the local memory of any single node.

Distributed Streaming Simulations

The authors explore how a single "simulator" node can execute a centralized streaming algorithm by utilizing its neighbors' collective memory as a distributed cache. In a standard streaming model, the bottleneck is often the need to re-read edges across multiple passes. The $\mu$-CONGEST approach allows neighbors to store edges during an initial pass, significantly speeding up subsequent passes. Specifically, a $p$-pass edge-streaming algorithm using $M$ memory can be simulated in $O(p(\Delta + m))$ rounds.

Synchronization via Bucketizing

A significant challenge in memory-constrained environments is preventing buffer overflows during all-to-all communication. The authors introduce a "bucketizing" strategy, grouping nodes by their degrees. This ensures that nodes with similar communication requirements are synchronized, preventing high-degree nodes from overwhelming the limited memory of their peers.

Key Results and Complexity Bounds

The paper provides deterministic and randomized round complexities for various tasks, summarized below:

  • Triangle Listing: Optimal trade-off of $\approx n / \mu^{1/2}$ rounds for $\mu \le n^{4/3}$.
  • Streaming Simulation: Any $p$-pass edge-streaming algorithm with $M$ memory can be simulated in $O(p(\Delta + m))$ rounds.
  • Mergeable Sketches: The paper provides complexities for simulating mergeable streaming algorithms (like sketches for quantiles):
  • One-way mergeable: $O(\min(n \cdot S, \sqrt{|I| \cdot S}) + D)$ rounds.
  • Fully-mergeable: $O(\log(\min(n \cdot S, |I|)) \cdot (S \cdot \log \Delta + D))$ rounds. (Where $S$ is summary size, $D$ is diameter, and $|I|$ is total input size).

Conclusion and Future Directions

The $\mu$-CONGEST model provides a necessary refinement of distributed computing theory for the era of programmable hardware. By proving that memory is a first-class resource alongside bandwidth, the authors lay the groundwork for more realistic algorithm design.

Future work remains in several areas. First, the current model assumes a standard message-passing interface; however, if $\mu$ is smaller than a node's degree $\Delta$, the order of message arrival within a single round becomes critical. Investigating "oblivious" versus "adaptive" message ordering is a key next step. Additionally, while triangle listing is well-understood, the complexity of listing higher-order cliques ($k > 3$) under memory constraints remains an open problem. Finally, incorporating the specific computational limitations of switch ASICs—such as restricted arithmetic operations—would further align the theory with practical networking hardware.

Summary updated

BibTeX
@inproceedings{basat2025bounded,
  author = {Ran Ben Basat and Keren Censor-Hillel and Yi-Jun Chang and Wenchen Han and Dean Leitersdorf and Gregory Schwartzman},
  title = {{Bounded Memory in Distributed Networks}},
  booktitle = {SPAA},
  year = {2025},
  doi = {10.1145/3694906.3743302},
}
Figure