allow to test 10/1 setups
parent
93eb1de2a7
commit
98d358c9d8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue