Atom: Neural Traffic Compression with Spatio-Temporal Graph Neural Networks

Paul Almasan, Krzysztof Rusek, Shihan Xiao, Xiang Shi, Xiangle Cheng, Albert Cabellos-Aparicio, Pere Barlet-Ros

Abstract

Modern network management generates massive volumes of traffic data, posing significant storage challenges for ISPs and data centers. Traditional lossless compression tools like GZIP often fail to exploit the inherent spatial and temporal structures of network traffic. We present Atom, a novel neural compression framework that leverages Spatio-Temporal Graph Neural Networks (ST-GNNs) combined with Arithmetic Coding. By learning the behavioral patterns of data flow across a network topology, Atom achieves a 50% to 65% improvement in compression ratios over industry standards on real-world datasets.

Introduction

Internet Service Providers (ISPs) and large-scale data centers can produce hundreds of terabytes of traffic traces daily. This data is vital for network planning, security forensics, and developing "network digital twins." However, standard compression algorithms are "topology-blind," treating network data as generic symbol streams. Network traffic is highly structured: traffic on a specific link is typically correlated with its own history (temporal correlation) and with traffic on adjacent links (spatial correlation). Atom addresses this by using deep learning to "learn" these dependencies, significantly reducing the storage footprint.

Methodology

Atom integrates deep learning with Arithmetic Coding (AC), a classic information theory technique. The framework consists of two primary components: a Predictor and an Encoder/Decoder.

The ATOM framework architecture, illustrating the flow from raw traffic sequences through the ST-GNN predictor to the arithmetic encoder.
  1. The Predictor (ST-GNN): The "brain" of Atom is a Spatio-Temporal Graph Neural Network. Instead of point predictions, the ST-GNN estimates a probability distribution (e.g., mean and standard deviation) for traffic at the next time step. It employs a message-passing algorithm to share states between neighboring links, capturing spatial and temporal dependencies simultaneously.
  2. The Encoder/Decoder: Using the predicted probability distributions, Arithmetic Coding represents values with high efficiency. The more accurate the Predictor's "guess," the fewer bits are required to store the actual value.

A masking mechanism is used to incorporate previously compressed values into subsequent predictions, allowing the model to learn conditional dependencies across the entire network topology.

Evaluation

The authors evaluated Atom on three real-world datasets: Abilene (backbone network), Geant (European research network), and a Campus Network. Performance was also tested on synthetic data to assess resilience to noise.

Compression performance comparison across three real-world datasets, showing Atom (ST-GNN) significantly outperforming GZIP and other AC variants.

Key Results

  • Compression Efficiency: Atom consistently outperformed GZIP by 50% to 65%. Compared to uncompressed data, it achieved reduction factors between 2.6x and 4.2x.
  • Model Lightweightness: The trained models are small (200 KB to 600 KB), making them easy to deploy.
  • Operational Speed: Atom can process a 5-minute "time bin" of network-wide data in seconds, supporting real-time streaming compression.

Discussion and Conclusion

Atom demonstrates that the discernible structure of network traffic—governed by routing protocols and human behavior—can be effectively exploited by Graph Neural Networks. By treating the network as a graph rather than a flat stream, Atom captures spatial context that standard RNNs miss.

While Atom requires an initial training phase on historical data, its superior compression ratios offer substantial long-term storage savings. Future work may explore lossy compression for non-critical monitoring tasks to achieve even higher reduction factors. In conclusion, Atom represents a significant step forward in applying neural networks to infrastructure-scale data management.

Summary updated

BibTeX
@inproceedings{almasan2023atom,
  author = {Paul Almasan and Krzysztof Rusek and Shihan Xiao and Xiang Shi and Xiangle Cheng and Albert Cabellos-Aparicio and Pere Barlet-Ros},
  title = {{Atom: Neural Traffic Compression with Spatio-Temporal Graph Neural Networks}},
  booktitle = {Gnnet@conext},
  year = {2023},
}
Figure