Improved Algorithms for Distributed Entropy Monitoring

Jiecao Chen, Qin Zhang · DOI

Abstract

Modern data management systems often need to deal with massive, dynamic and inherently distributed data sources. We collect the data using a distributed network, and at the same time try to maintain a global view of the data at a central coordinator using a minimal amount of communication. Such applications have been captured by the distributed monitoring model which has attracted a lot of attention in recent years. In this paper we investigate the monitoring of the entropy functions, which are very useful in network monitoring applications such as detecting distributed denial-of-service attacks. Our results improve the previous best results by Arackaparambil et al. [2]. Our technical contribution also includes implementing the celebrated AMS sampling method (by Alon et al. [1]) in the distributed monitoring model, which could be of independent interest.

Introduction

In modern distributed systems—such as IP backbone networks or large-scale sensor arrays—data is generated across multiple physical locations (sites). To detect anomalies like Distributed Denial-of-Service (DDoS) attacks or to perform traffic classification, a central coordinator needs to monitor the entropy of the global data stream.

The primary challenge is the "communication bottleneck." Sending every piece of data to the coordinator is prohibitively expensive in terms of bandwidth and energy. The distributed monitoring model aims to maintain an accurate global estimate of a function, such as Shannon or Tsallis entropy, while minimizing total communication. Previous solutions were often inefficient because their communication costs increased significantly when the entropy threshold was small. This research introduces "continuous" monitoring solutions that remain efficient regardless of the entropy level.

Methodology

The core technical contribution is the adaptation of the AMS sampling method—originally designed by Alon, Matias, and Szegedy for single data streams—into the distributed monitoring environment.

Distributed AMS Sampling

The authors developed a method to select a random item from the global stream and track its "tail frequency" (the number of times it appears after its initial selection) across all $k$ sites without excessive messaging.

Frequent Element Removal

AMS sampling typically performs poorly when a single element dominates the stream, leading to low entropy. To address this, the authors employ a "heavy hitter" detection strategy. They identify the most frequent element and track it separately using a deterministic algorithm (CountAll), applying the AMS framework only to the remaining "residual" stream.

Algorithm Design

A crucial insight is that the coordinator does not require the exact tail frequency of a sample; a $(1+\epsilon)$-approximation is sufficient to maintain the overall accuracy of the entropy estimate.

Algorithm 3: TrackF(ε, δ) for tracking the entropy function at the coordinator.

The algorithm TrackF (shown above) demonstrates how the coordinator maintains multiple parallel copies of the sampling process to ensure statistical robustness.

Key Results and Complexity Analysis

The proposed algorithms provide a significant theoretical improvement in communication efficiency over previous state-of-the-art methods.

Comparison of communication, space, and time complexities for Shannon and Tsallis entropy monitoring.

As shown in the table above, the new algorithms achieve a communication complexity of $\tilde{O}(k/\epsilon^2 + \sqrt{k}/\epsilon^3)$ bits for Shannon entropy. Compared to the previous best result of $\tilde{O}(k/(\epsilon^3 \tau^3))$, where $\tau$ is a threshold, the new approach is exponentially more efficient when $\tau$ is small. Furthermore, this work provides the first efficient continuous monitoring algorithm for the $q$-th Tsallis entropy ($q > 1$).

Discussion and Future Work

While this work significantly improves upper bounds for communication complexity, it remains unknown if these bounds are "tight." A known lower bound exists for cases involving item deletions, but a gap remains for insertion-only streams.

Future research could explore applying this distributed AMS framework to other complex functions, such as Renyi entropy, mutual information, or f-divergence. Additionally, while the current results are theoretical, empirical validation on real-world network traffic datasets is a necessary next step to evaluate practical performance.

Summary updated

BibTeX
@misc{chen2014improved,
  author = {Jiecao Chen and Qin Zhang},
  title = {{Improved Algorithms for Distributed Entropy Monitoring}},
  year = {2014},
  eprint = {1409.4843},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.4843},
}
Figure