allow to test 10/1 setups

master
tiptorrent development team 2022-02-22 10:44:51 +01:00
parent 93eb1de2a7
commit 98d358c9d8
1 changed files with 4 additions and 4 deletions

View File

@ -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
}