A sketch-based algorithm for network-flow entropy estimation on programmable switches using P4

Hernández , Cecilia; Niar, S; Ouarnoughi, H; Skavhaug, A

Abstract

The empirical Shannon entropy is a popular metric for anomaly detection in network traffic. However, computing its exact value in real time requires fast access to a large number of counters, which is unfeasible in high-speed networks. Approximate approaches using sketches can estimate the entropy with low memory usage. However, achieving good estimation accuracy still requires large data structures, making their implementation difficult in dedicated hardware and programable switches. In this paper, we present an entropy-estimation algorithm and its implementation in a programmable switch, which achieves good accuracy for large traffic traces with low memory usage. The algorithm uses sketches to track the packet count of only the most-frequent flows and models the rest of the traffic with a uniform distribution. The implementation operates within the restrictions imposed by the P4 switch programming language, achieving a 1.72% average estimation error on 12 real-world large traces from public repositories. © 2023 IEEE.

Más información

Título según WOS: A sketch-based algorithm for network-flow entropy estimation on programmable switches using P4
Título según SCOPUS: A Sketch-Based Algorithm for Network-Flow Entropy Estimation on Programmable Switches Using P4
Editorial: Institute of Electrical and Electronics Engineers Inc.
Fecha de publicación: 2023
Página de inicio: 79
Página final: 86
Idioma: English
DOI:

10.1109/DSD60849.2023.00021

Notas: ISI, SCOPUS