- #!/bin/bash
- latency=30ms
- bw=100mbit
- if [ "$1" != "" ]; then
- latency="$1"
- fi
- if [ "$2" != "" ]; then
- bw="$2"
- fi
- ./unset-networking
- docker exec --privileged duoram_p0 tc qdisc add dev eth0 root netem delay $latency rate $bw
- docker exec --privileged duoram_p1 tc qdisc add dev eth0 root netem delay $latency rate $bw
- docker exec --privileged duoram_p2 tc qdisc add dev eth0 root netem delay $latency rate $bw
|