Skip to content

Module Delay Trace Delay

Daniel Stolpmann edited this page Apr 19, 2024 · 1 revision

The trace delay module adds a delay to each packet according to a trace file. The module has inputs and outputs in both directions. The trace file can be set independently for each direction.

Screenshot of the trace delay module

The trace format is compatible with the traces for Link'Em. Therefore, the files contain a sequence of integers separated by spaces. Each entry represents one packet. The value gives the delay that should be added to the packet in ms. Entries from multiple lines are concatenated. A space after the last element is not required. If the end of the trace is reached, it starts over from the beginning.

The traces have to be placed in config/traces/delay and do not have any specific file extension (files with the extension .md are ignored). An example trace looks like follows:

16 42 32 64 64 256 42 8 128 42