Skip to content

Module Loss Trace Loss

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

The trace loss module applies packet loss 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 loss module

The trace format is compatible with the traces for Link'Em. Therefore, the files contain a sequence of 0 and 1. Each entry represents one packet. 0 means packet loss and 1 means no packet loss. Entries from multiple lines are concatenated and all other characters are ignored. If the end of the trace is reached, it starts over from the beginning.

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

1101011101001011100