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

Replay Element Documentation

NAME

Replay — Click element; replay an input of packets at a given speed

SYNOPSIS

Replay([, KEYWORDS])

Ports: 1 or more inputs, the same number of outputs
Processing: pull

DESCRIPTION

Preload packets in RAM, then replays them a certain number of time. This is a pull elements, see ReplayUnqueue for a pull-to-push version.

Keyword arguments are:

  • STOP — Integer. Number of loop to replay.
  • STOP_TIME — Integer. If > 0, also bound the number of replay loops using a time limit, in seconds.
  • QUICK_CLONE — Boolean. If true, the packets will be cloned using an internal DPDK reference counter, so this will avoid the packets being duplicated by Click if they are modified and replayed more than once. The downside is if the replay loop is too fast, the NIC might send corrupted packets.
  • BURST — Integer. Number of packets to send at once.
  • VERBOSE — Integer. Verbosity level.
  • FREEONTERMINATE — Boolean. Free packets on the last run.
  • LIMIT — Integer. Max number of packets to preload.
  • ACTIVE — Boolean. Wether this element should start in active mode. To be used with the active handler.
  • USE_SIGNAL — Boolean. If true, use an upstream empty signal to know wether the element should stop polling for packets when preloading. Else, stops preloading packets when the pulling returns no packets. Default true.

EXAMPLES

  FromDump(file.pcap, ) -> ReplayUnqueue(3, QUEUE 1) -> ...

ELEMENT HANDLERS

  • device (read-only) —

SEE ALSO

ReplayUnqueue, MultiReplayUnqueue

Generated by click-elem2man from ../elements/analysis/replay.hh:63 on 2023/07/28.

Clone this wiki locally