Skip to content

AggregateCounterVector

Tom Barbette edited this page Nov 25, 2022 · 1 revision

AggregateCounterVector Element Documentation

NAME

AggregateCounterVector — Click element; counts packets per aggregate annotation, and keep tracks of a moving average of the same time.

SYNOPSIS

AggregateCounterVector([KEYWORDS])

Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic
Drivers: userlevel

DESCRIPTION

As opposed to AggregateCounter, this element does not use a heap but a vector. It's therefore much faster but needs to know in advance how much elements will be seen.

Keyword arguments are:

  • MASK mask to apply to the AGGREGATE annotation. Hence the vector size will be MASK+1, eg the mask is 511 (0x1f) to count 512 elements.

EXAMPLES

A typical usage is with RSS++, by setting RSS_AGGREGATE to true in FromDPDKDevice, and using a MASK of 511, one will effecitvely count the number of packets per RSS buckets: FromDPDKDevice(..., RETA_SIZE 512, RSS_AGGREGATE true)

        -> AggregateCounterVectot(MASK 511)
        -> Discard;

SEE ALSO

AggregateCounter

Generated by click-elem2man from ../elements/analysis/aggcountervector.hh:13 on 2022/11/25.

Clone this wiki locally