Routing Oblivious Measurement Analytics

Ran Ben Basat, Xiaoqi Chen, Gil Einziger, Shir Landau Feibish, Danny Raz, Minlan Yu

Introduction

Network-wide analytics are essential for modern network management, enabling critical tasks such as heavy hitter detection, DDoS identification, and traffic engineering. However, traditional distributed measurement approaches suffer from a significant bias known as overcounting. When a packet traverses multiple measurement-enabled switches, it is disproportionately likely to be sampled compared to packets on shorter paths. Existing solutions to this problem often rely on rigid assumptions about network topology or routing protocols, making them fragile in dynamic or adversarial environments.

AROMA (Approximate Routing Oblivious Measurement Analytics) addresses these challenges by providing a routing-oblivious framework. It ensures uniform packet and flow sampling across an entire network, regardless of the underlying topology or the specific paths packets take.

The AROMA Framework

AROMA utilizes a two-phase, hash-based sampling structure designed for the data plane of programmable switches (e.g., PISA architecture). This approach effectively treats the distributed network as a single virtual switch.

Phase 1: Local Sampling

Each switch maintains a memory table. For every incoming packet, the switch computes two hash values: $h_1(D)$, which selects a specific slot in the table, and $h_2(D)$, a "competition" value normalized between 0 and 1. A new item is only inserted into the slot if its $h_2$ value is strictly smaller than the value currently stored in that slot.

Local sampling mechanism in AROMA: a new item D is inserted only if its hash value $h_2(D)$ is smaller than the existing entry.

Phase 2: Global Merging

A central controller periodically collects the local tables from all switches. For each slot, the controller performs a merge operation by retaining only the entry with the globally minimum $h_2$ value across all switches. Because the minimum hash value is consistent regardless of how many times a packet is seen, the final sample is unbiased by the number of switches a packet traversed.

Evaluation and Results

The researchers evaluated AROMA using the CAIDA 2018 Internet Trace, focusing on 5-tuple flow identifiers across approximately 33.55 million packets. AROMA was compared against several state-of-the-art hardware solutions, including FlowRadar-based variants (FTFR).

Accuracy and Space Efficiency

A key advantage of AROMA is its graceful degradation under memory constraints. While many advanced measurement tools exhibit a "memory cliff"—failing completely if allocated memory is below a certain threshold—AROMA provides useful results even with very small footprints. For instance, with only 0.5MB of space, AROMA estimated flow sizes with a root mean square error (RMSE) of approximately 150 packets.

Performance comparison (F1 Score) of AROMA against other methods across different measurement tasks as a function of available memory space.

As shown in the evaluation, AROMA achieves high F1 scores for heavy hitter detection and superspreader identification at memory levels where competing methods (like FTFR) fail to provide any meaningful data.

Robustness and Hardware Efficiency

AROMA is highly efficient, requiring only 2-3 pipeline stages in a programmable switch. This low overhead allows switches to maintain line-rate forwarding while performing complex analytics. Furthermore, AROMA's performance remains stable over time; unlike table-based methods that plummet in accuracy once internal structures saturate, AROMA’s sampling-based approach maintains consistent accuracy as more flows appear.

Conclusion

AROMA provides a robust, hardware-efficient solution for network-wide measurement that is entirely oblivious to routing paths. By leveraging a distributed "minimum-wins" hashing strategy, it eliminates overcounting bias and offers superior performance in resource-constrained environments compared to traditional state-of-the-art systems.

Summary updated

BibTeX
@inproceedings{basat2020routing,
  author = {Ran Ben Basat and Xiaoqi Chen and Gil Einziger and Shir Landau Feibish and Danny Raz and Minlan Yu},
  title = {{Routing Oblivious Measurement Analytics}},
  booktitle = {Networking},
  year = {2020},
  url = {https://openreview.net/forum?id=ZNeqIqJIKI},
}
Figure