Skip to content

getCUJO/twamp-light

Repository files navigation

Twamp Light

Installing a release version (v1.3.6 in the example)

Tested on a clean Ubuntu 22.04 VM on AWS and a Ubuntu 22.04 docker image

apt update
apt install wget
wget https://github.com/domoslabs/twamp-light/releases/download/v1.3.6/twamp-light-1.3.6.deb
apt install ./twamp-light-1.3.6.deb

Build instructions

Clone the repo and all its submodules:

git clone --recurse-submodules https://github.com/domoslabs/twamp-light.git 

Then using cmake:

mkdir build
cd build
cmake ..
make
make install
ldconfig

This produces and installs a client and a server executable.

Usage

To show the help message:

./twamp-light-client -h
./twamp-light-server -h

starting systemd service

Make sure twamp-light-server is installed (either using apt or make install).

sudo systemctl daemon-reload
sudo systemctl enable twamp-light-server.service
sudo systemctl start twamp-light-server.service

Details

Format and protocol

The packets are formatted according to RFC5357. If time synchronization is enabled (default behaviour, see help for how to disable), the timestamp field (64bit) will be split into timestamp (32bit)+timesync data (32bit), which breaks the protocol and therefore becomes incompatible with other TWAMP Light implementations.

Sampling

All the arguments that take in multiple values, such as payload size and delay, are sampled uniformly using Marsenne Twister when the client crafts a packet. The server simply reflects packets, and there is therefore no sampling of any sort on the server.

Example outputs

These are measurements taken from the Hilton Union Square in San Francisco, over the IETF-provided network, to an AWS server in Frankfurt during the 117th IETF.

Ethernet: Total samples: 10000

Metric RTT FWD BWD
mean 0.148550 s 0.074235 s 0.074312 s
median 0.148495 s 0.074226 s 0.074259 s
min 0.148069 s 0.074000 s 0.063080 s
max 0.165831 s 0.085664 s 0.091504 s
std 0.000541 s 0.000163 s 0.000537 s
variance 0.000000 s 0.000000 s 0.000000 s
p95 0.148797 s 0.074341 s 0.074480 s
p99 0.150078 s 0.074420 s 0.075675 s
p99.9 0.157121 s 0.075416 s 0.082899 s

WiFi: Total samples: 10000

Metric RTT FWD BWD
mean 0.160776 s 0.081326 s 0.079446 s
median 0.158713 s 0.079425 s 0.078142 s
min 0.153002 s 0.076112 s 0.073728 s
max 0.259217 s 0.181256 s 0.146672 s
std 0.007430 s 0.006159 s 0.003780 s
variance 0.000055 s 0.000038 s 0.000014 s
p95 0.174096 s 0.092098 s 0.086615 s
p99 0.190109 s 0.105803 s 0.093184 s
p99.9 0.220209 s 0.136611 s 0.111531 s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors