s3t (ss Sampling Tool)
Example:
python s3t.py -f 10.5.10.1:*,10.5.10.2:443 -i 1ms
Command-Line Params:
-
-f
: Filter for IP and port (TCP 4-tuple, with wildcards) -
-i
: Sampling Interval
Tweaks:
- Must run in detached mode and is terminated after the experiment is done (SIGINT should trigger CSV-output).
- Output should be in CSV-form and in a file (experiment.py should mount a volume and copy the file after the experiment is done).
entrypoint.sh
:
- Before starting
rtt
, start the ss-Tool in detached mode (save PID). Ensure proper TCP-tuple filtering. - After
rtt
finished, SIGTERM and join on ss-Tool's PID. - Output file to
/opt/tts/samples.gzip
.
experiment.py
:
- Start RTT container as normal, but mount a volume (the container outputs the CSVs there).
docker run ... -v ~/tts/:/opt/tts <container name>
- Run experiment.
-
scp
CSV from experiment node to orchestration node (once after sender.call() returns, once after receiver is killed).
Edited by Andreas Schmidt