Skip to content
Tom Barbette edited this page May 7, 2020 · 1 revision

PacketMemStats Element Documentation

NAME

PacketMemStats — Click element; keep statistics about packet memory

SYNOPSIS

PacketMemStats([ALIGN_STRIDE])

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

DESCRIPTION

Expects Ethernet packets as input. Checks whether input packets are aligned with respect to the ALIGN_STRIDE argument and counts aligned and total packets. Reports the ratio of aligned/total and unaligned/total packets.

Keyword arguments are:

  • ALIGN_STRIDE — Unsigned integer. Defines the stride of the alignment. Defaults to 64 (usual cache line length).

EXAMPLES

  FromDevice(eth0) -> PacketMemStats() -> ...

ELEMENT HANDLERS

  • align_stride (read-only) — Returns the stride of the alignment.
  • aligned_pkts (read-only) — Returns the number of aligned packets with respect to the stride.
  • unaligned_pkts (read-only) — Returns the number of unaligned packets with respect to the stride.
  • total_pkts (read-only) — Returns the total number of packets seen so far.
  • align_stride (write-only) — Updates the alignment stride.

SEE ALSO

BatchStats

Generated by click-elem2man from ../elements/analysis/packetmemstats.hh:12 on 2020/05/07.

Clone this wiki locally