|
@@ -2,6 +2,8 @@
|
|
|
|
|
|
This repository contains scripts to test the throughput of a Tor relay. It requires a [patched version of Chutney](https://git-crysp.uwaterloo.ca/sengler/chutney-for-relay-testing) and [Stem](https://gitweb.torproject.org/stem.git).
|
|
This repository contains scripts to test the throughput of a Tor relay. It requires a [patched version of Chutney](https://git-crysp.uwaterloo.ca/sengler/chutney-for-relay-testing) and [Stem](https://gitweb.torproject.org/stem.git).
|
|
|
|
|
|
|
|
+Example:
|
|
|
|
+
|
|
```bash
|
|
```bash
|
|
git clone gogs@git-crysp.uwaterloo.ca:sengler/chutney-for-relay-testing.git
|
|
git clone gogs@git-crysp.uwaterloo.ca:sengler/chutney-for-relay-testing.git
|
|
git checkout paper
|
|
git checkout paper
|
|
@@ -18,11 +20,13 @@ sudo DOCKER_BUILDKIT=1 docker build --tag experiment-controller --target control
|
|
|
|
|
|
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 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 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'
|
|
sudo docker exec -it controller /bin/bash -c 'cd "$HOME" && exec /bin/bash'
|
|
cd ~/code/working/tor-benchmarking/bin
|
|
cd ~/code/working/tor-benchmarking/bin
|
|
touch /tmp/nothing
|
|
touch /tmp/nothing
|
|
ssh 127.0.0.1 /bin/true # accept key fingerprint
|
|
ssh 127.0.0.1 /bin/true # accept key fingerprint
|
|
ssh localhost /bin/true # accept key fingerprint
|
|
ssh localhost /bin/true # accept key fingerprint
|
|
|
|
+ # modify relay_working_experiment.py as needed
|
|
python3 -u relay_working_experiment.py 1B --target-tor /tmp/nothing > /tmp/out.log 2>&1
|
|
python3 -u relay_working_experiment.py 1B --target-tor /tmp/nothing > /tmp/out.log 2>&1
|
|
less +F /tmp/out.log
|
|
less +F /tmp/out.log
|
|
|
|
|