Leveraging Spatial and Temporal Correlations for Network Traffic Compression

Paul Almasan, Krzysztof Rusek, Shihan Xiao, Xiang Shi, Xiangle Cheng, Albert Cabellos-Aparicio, Pere Barlet-RosarXiv 2023 · DOI

Introduction

Modern network operations are increasingly data-intensive. With the proliferation of IoT devices and the rollout of 5G, network operators must manage and store massive volumes of traffic traces for forensics, capacity planning, and anomaly detection. Storing these logs can require petabytes of storage daily. While lossless compression is standard, current industry tools like GZIP are "data-blind," treating network logs as generic text or binary files without considering the underlying structural patterns of network traffic.

The Challenge: Exploiting Network Structure

Network traffic is not random. It exhibits strong temporal correlations—such as diurnal cycles driven by human behavior—and spatial correlations, where traffic on one link is highly predictive of traffic on adjacent links due to routing protocols and topology.

Spatial correlation heatmaps for the Abilene (left) and Geant (right) networks, demonstrating the strong dependencies between different network links.

As shown in the correlation heatmaps above, links within a network often move in tandem. Standard compression algorithms fail to exploit these dependencies, leading to suboptimal storage efficiency. The gap addressed by this research is the lack of a compression method that specifically exploits these structural properties of networks.

Proposed Methodology: Predictor-Encoder Architecture

This paper proposes a neural network-based framework that combines predictive modeling with lossless encoding to achieve superior compression ratios. The system follows a two-stage pipeline:

Overview of the network traffic extraction and compression pipeline, from real-world topology to stored compressed values.

1. The Predictor

The "brain" of the system is a neural network designed to predict the probability distribution of future traffic values.

  • Temporal Modeling: For individual links, Recurrent Neural Networks (RNNs) capture time-series patterns.
  • Spatial Modeling: For network-wide data, Spatio-Temporal Graph Neural Networks (ST-GNNs) are employed. These models use message-passing mechanisms to share information across the network graph, allowing the system to understand how traffic spikes in one region propagate to others.
  • Masking and Ordering: To optimize predictions within a single time bin, the model uses a masking technique and processes links in a specific heuristic order (e.g., by increasing standard deviation), reducing uncertainty for more volatile links.

2. The Encoder

The predicted probability distributions are fed into an Arithmetic Coding (AC) engine. Unlike Huffman coding, AC can represent data using a fractional number of bits per symbol. Its efficiency is directly tied to the accuracy of the predictor: the more confident the neural network's "guess," the fewer bits AC requires to store the actual value.

Experimental Results

The researchers evaluated their approach on several real-world datasets, including the Abilene backbone, the Geant European research network, and a large campus network.

Key findings include:

  • Significant Compression Gains: The ST-GNN approach achieved a 50% to 65% improvement in compression ratios compared to GZIP on real-world networks.
  • Compression Factors: The method delivered compression factors between 2.6x and 4.2x relative to the raw file size.
  • Operational Feasibility: The models are lightweight (200–600 KB) and capable of processing 5-minute traffic bins in seconds, making them suitable for real-time streaming applications.

Conclusion and Future Work

By treating network traffic as a structured graph rather than a flat list of values, this research demonstrates that deep learning can significantly reduce the storage burden of network monitoring. While the approach requires initial training on historical data and assumes a stable topology, its efficiency gains over generic tools are substantial. Future work may extend this framework to more granular flow-level data (NetFlow), where spatial and temporal patterns are even more intricate.

Summary updated

BibTeX
@misc{almasan2023leveraging,
  author = {Paul Almasan and Krzysztof Rusek and Shihan Xiao and Xiang Shi and Xiangle Cheng and Albert Cabellos-Aparicio and Pere Barlet-Ros},
  title = {{Leveraging Spatial and Temporal Correlations for Network Traffic Compression}},
  year = {2023},
  eprint = {2301.08962},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.08962},
}
Figure