-
Notifications
You must be signed in to change notification settings - Fork 82
AggregateCounterVector
AggregateCounterVector — Click element; counts packets per aggregate annotation, and keep tracks of a moving average of the same time.
AggregateCounterVector([KEYWORDS])
Batching: Batching natively supported
Ports: 1 input, 1 output
Processing: agnostic
Drivers: userlevel
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.
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;
Generated by click-elem2man from ../elements/analysis/aggcountervector.hh:13
on 2022/11/25.