Skip to content

Module Rate Trace Rate

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

The trace rate module emulates a connection with a limited data rate based on a trace file. It has to be combined with a queue module from which it dequeues packets according to the trace. It does not add a transmission delay to the packets. The module has inputs and outputs in both directions. The trace file can be set independently for each direction.

Screenshot of the trace rate module

The trace format is compatible with the traces for Mahimahi. Therefore, the files contain a single integer value per line. The values represent the relative timestamps in ms when a packet can be transmitted. The same timestamp can be repeated over multiple lines if more than one packet can be transmitted. If the end of the trace is reached, it starts over from the beginning.

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

2
4
4
6
8
10
12
12
16
18
18
18
20