Cardinality estimation in a virtualized network device using online machine learning

Reuven Cohen, Yuval Nezri

Research output: Contribution to journalArticlepeer-review

Abstract

Cardinality estimation algorithms receive a stream of elements, with possible repetitions, and return the number of distinct elements in the stream. Such algorithms seek to minimize the required memory and CPU resource consumption at the price of inaccuracy in their output. In computer networks, cardinality estimation algorithms are mainly used for counting the number of distinct flows, and they are divided into two categories: sketching algorithms and sampling algorithms. Sketching algorithms require the processing of all packets, and they are therefore usually implemented by dedicated hardware. Sampling algorithms do not require processing of all packets, but they are known for their inaccuracy. In this work we identify one of the major drawbacks of sampling-based cardinality estimation algorithms: their inability to adapt to changes in flow size distribution. To address this problem, we propose a new sampling-based adaptive cardinality estimation framework, which uses online machine learning. We evaluate our framework using real traffic traces, and show significantly better accuracy compared to the best known sampling-based algorithms, for the same fraction of processed packets.

Original languageEnglish
Article number3370584
Pages (from-to)2098-2110
Number of pages13
JournalIEEE/ACM Transactions on Networking
Volume27
Issue number5
DOIs
StatePublished - Oct 2019

Keywords

  • Cardinality estimation
  • Machine learning

All Science Journal Classification (ASJC) codes

  • Software
  • Computer Science Applications
  • Computer Networks and Communications
  • Electrical and Electronic Engineering

Fingerprint

Dive into the research topics of 'Cardinality estimation in a virtualized network device using online machine learning'. Together they form a unique fingerprint.

Cite this