Skip to content
Tom Barbette edited this page Jul 28, 2023 · 5 revisions

AverageCounter Element Documentation

NAME

AverageCounter — Click element; measures historical packet count and rate

SYNOPSIS

AverageCounter([IGNORE])

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

DESCRIPTION

Passes packets unchanged from its input to its output, maintaining statistics information about packet count and packet rate using a strict average.

The rate covers only the time between the first and most recent packets.

IGNORE, by default, is 0. If it is greater than 0, the first IGNORE number of seconds are ignored in the count.

ELEMENT HANDLERS

  • count (read-only) — Returns the number of packets that have passed through since the last reset.
  • byte_count (read-only) — Returns the number of packets that have passed through since the last reset.
  • rate (read-only) — Returns packet arrival rate.
  • byte_rate (read-only) — Returns packet arrival rate in bytes per second. (Beware overflow!)
  • reset (write-only) — Resets the count and rate to zero.

SEE ALSO

AverageCounterMP, AverageCounterIMP

Generated by click-elem2man from ../elements/standard/averagecounter.hh:9 on 2023/07/28.

Clone this wiki locally