set-networking.sh 491 B

1234567891011121314
  1. #!/bin/bash
  2. latency=1ms
  3. bw=40mbit
  4. if [ "$1" != "" ]; then
  5. latency="$1"
  6. fi
  7. if [ "$2" != "" ]; then
  8. bw="$2"
  9. fi
  10. docker exec --privileged -w /root/duoram/preprocessing-aes party0 tc qdisc add dev eth0 root netem delay $latency rate $bw
  11. docker exec --privileged -w /root/duoram/preprocessing-aes party1 tc qdisc add dev eth0 root netem delay $latency rate $bw
  12. docker exec --privileged -w /root/duoram/preprocessing-aes party2 tc qdisc add dev eth0 root netem delay $latency rate $bw