Memory-assisted universal compression of network flows

Mohsen Sardari, Ahmad Beirami, Faramarz Fekri

Abstract

Universal compression algorithms offer a theoretical path to optimal data reduction without prior statistical knowledge. However, their practical application to network traffic is limited by the "finite-length penalty" associated with short packets. This paper introduces a memory-assisted framework where intermediate network nodes store traffic statistics to enhance compression efficiency. By leveraging the power-law nature of network topologies, we show that equipping a small core of nodes (under 2.5%) with memory can reduce total network traffic by over 50%.

Introduction

Traditional redundancy elimination (RE) and Content-Centric Networking (CCN) are standard methods for reducing Internet traffic, yet they often miss small-scale redundancies or depend on fixed-size data chunks. From an information-theoretic perspective, universal compression algorithms are ideal but suffer from a massive overhead when applied to short packets. For such flows, the cost of describing the data's statistics can nearly equal the size of the data itself. We propose a framework where the network "remembers" previous traffic statistics, allowing short packets to be compressed with the efficiency of much longer streams.

Methodology

The proposed framework utilizes intermediate "memory units" that observe passing traffic to build statistical models. We adapted two classic compression families:

  1. Memory-Assisted Context Tree Weighting (CTW): A statistical method where the context tree is pre-populated and updated using memorized history.
  2. Memory-Assisted LZ77: A dictionary-based method where the sliding window is initialized with memorized sequences.

Evaluation was performed using real-world traces from a CNN web server and synthetic Random Power-Law Graphs (RPLG) to simulate Internet topologies. We also developed a modified Dijkstra’s algorithm to optimize routing based on "bit-hop" costs, which decrease after a flow is compressed by a memory node.

Key Results

Individual Flow Compression

The primary achievement of memory assistance is closing the "finite-length gap." For a 100-byte packet, standard compression typically yields minimal reduction (e.g., to 87 bytes). However, with 4MB of memorized history, the same packet can be compressed to 31 bytes—a nearly 3x improvement.

Compression performance (bits/Byte) of memory-assisted CTW for varying packet sizes (n) and memory sizes (m).

As illustrated in the figure above, increasing the memory size ($m$) significantly lowers the bits-per-byte rate, particularly for small packet sizes ($n$). This allows universal compressors to reach asymptotic efficiency much faster than traditional methods.

Network-Wide Impact and Scalability

In power-law networks, a small number of high-degree "core" nodes observe the vast majority of traffic. Our simulations in a 4,000-node network indicate that equipping just 2.5% of these core nodes with memory can reduce total traffic by a factor of two.

Fraction of core nodes (|C|/N) required to maintain network-wide traffic reduction as network size (N) increases.

Furthermore, the approach is highly scalable. As shown in the figure above, the fraction of nodes required to maintain these gains ($|C|/N$) decreases as the total network size ($N$) grows. This suggests that the strategy becomes increasingly efficient as the network expands.

Conclusion

Memory-assisted universal compression provides a scalable solution to the inefficiencies of compressing short network flows. By placing memory at strategic core nodes, the network can achieve significant traffic reduction without ubiquitous deployment. Future research will focus on maintaining synchronization between nodes in dynamic environments and optimizing the computational complexity of statistical updates for high-speed routing.

Summary updated

BibTeX
@inproceedings{sardari2012memory,
  author = {Mohsen Sardari and Ahmad Beirami and Faramarz Fekri},
  title = {{Memory-assisted universal compression of network flows}},
  booktitle = {INFOCOM},
  year = {2012},
  url = {https://openreview.net/forum?id=y_CKQGh8qQj},
}
Figure