diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-22 10:44:51 +0100 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2022-02-22 10:45:21 +0100 |
commit | 98d358c9d88d01d9ed16e444a0e2d2c3652cec03 (patch) | |
tree | d0c859a186982485d9bdc3280ca287518ee22be6 /tests/network-setup.sh | |
parent | 93eb1de2a7e6b74e15a038634eccd6b5e43dec47 (diff) |
allow to test 10/1 setups
Diffstat (limited to 'tests/network-setup.sh')
-rwxr-xr-x | tests/network-setup.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/network-setup.sh b/tests/network-setup.sh index 68f4fcd..7507a73 100755 --- a/tests/network-setup.sh +++ b/tests/network-setup.sh @@ -14,10 +14,10 @@ fi TOTAL_CLIENTS=18 start () { - NUM_CLIENTS=3 - NUM_REDIRECT=3 - SERVER_LINK=1000 + NUM_CLIENTS=4 + SERVER_LINK=10000 CLIENT_LINK=1000 + NUM_REDIRECT=1 LATENCY=20 ip netns add srv @@ -53,7 +53,7 @@ start () { ip -net c$i link set up dev veth0 ip netns exec c$i tc qdisc add dev veth0 handle 10: root tbf rate "$CLIENT_LINK"mbit burst 5kb latency "$LATENCY"ms ip netns exec c$i tc qdisc add dev veth0 parent 10:1 handle 100: sfq - ip netns exec c$i .././tiptorrent --max-clients $NUM_CLIENTS & + ip netns exec c$i .././tiptorrent --max-clients $NUM_REDIRECT & done } |