1.5 KB

Relay Throughput Testing

This repository contains scripts to test the throughput of a Tor relay. It requires a patched version of Chutney and Stem.


git clone
git checkout paper
mv chutney-for-relay-testing chutney

git clone
git checkout paper
mv tor-parallel-relay-conn tor

ssh-keygen -b 2048 -t rsa -f sshkey -q -N ""

sudo DOCKER_BUILDKIT=1 docker build --tag experiment-benchmarker --target benchmarker .
sudo DOCKER_BUILDKIT=1 docker build --tag experiment-controller --target controller .

sudo docker run --init --name benchmarker -dit --hostname benchmarker --network host experiment-benchmarker /bin/sh -c "service ssh start && exec /bin/sh"
sudo docker run --init --name controller -dit --hostname controller --network host --volume /tmp/results:/results experiment-controller /bin/sh

sudo docker exec -it controller /bin/bash -c 'cd "$HOME" && exec /bin/bash'
  cd ~/code/working/tor-benchmarking/bin
  touch /tmp/nothing
  ssh /bin/true # accept key fingerprint
  ssh localhost /bin/true # accept key fingerprint
  # modify as needed
  python3 -u 1B --target-tor /tmp/nothing > /tmp/out.log 2>&1
  less +F /tmp/out.log

sudo docker rm -f controller
sudo docker rm -f benchmarker