Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 4 revisions

AverageCounter Element Documentation

NAME

AverageCounter — Click element; measures historical packet count and rate

SYNOPSIS

AverageCounter([IGNORE])

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.

Generated by click-elem2man from ../elements/standard/averagecounter.hh:9 on 2017/10/17.

Clone this wiki locally