Skip to content
Tom Barbette edited this page Jul 28, 2023 · 1 revision

ReplayUnqueue Element Documentation

NAME

ReplayUnqueue — Click element; replay an input of packets at a given speed, pull to push

SYNOPSIS

ReplayUnqueue([, KEYWORDS])

Processing: pull inputs, push outputs

DESCRIPTION

Technically equivalent to Replay->Unqueue-> it is more efficient.

Keyword arguments are the same than @Replay, with the addition of:

  • TIMING — Integer. If 0, replays packets as fast as possible. If >0, give an acceleration speed of the original timing of the packet.
  • TIMING_FNT — String. A function that can be used to change the TIMING according to the current time. The parsing uses TinyFNT and therefore follows the format. The variable containing the time is x. E.g. "10 + min(90,10*x)" will have an acceleration from 10 to 100% in 9 seconds. Note that if the function goes to 0, the element stops. See the Metron (NSDI'18) paper for examples. Supports @1 and @2 for the predifined functions for that paper. @1 is equivalent to "100 * ((sin(-pi/2 + (x/10)^2.5) * (-x/"+time+" + 1) + 1) * (("+max+" - 1) / 2) + 1)" where TIME is STOP_TIME argument and MAX is the value of TIMING given above. @2 is equivalent to "100 * ((-squarewave(((x + 40) * 1/50) ^ 5) * (-x / "+time+" + 1) + 1) * (("+max+" - 1) / 2) + 1)" Ineffective if TIMING is not true. Defaults to an empty string (inactive).

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

Clone this wiki locally