AeroLab’s net
commands allow you to simulate problems in inter-node and
inter-cluster networking.
Block node 1 in cluster dc1
from talking on port 3000
to node 2 of cluster dc2
; simulate packet loss through drop
instead of reject
.
aerolab net block -s dc1 -l 1 -d dc2 -i 2 -t drop -p 3000
aerolab net list
aerolab net unblock -s dc1 -l 1 -d dc2 -i 2 -t drop -p 3000
Same block as before, this time randomly dropping 3% of all packets
aerolab net block -s dc1 -l 1 -d dc2 -i 2 -t drop -p 3000 -M random -P 0.03
aerolab net unblock -s dc1 -l 1 -d dc2 -i 2 -t drop -p 3000 -M random -P 0.03
Switch | Meaning | |||
---|---|---|---|---|
s | Source cluster name | |||
l | Source node list | |||
d | Destination cluster name | |||
i | Destination node list | |||
a | action; set | del | delall | show |
p | Latency | |||
L | Packet loss count | |||
R | Max link speed |
aerolab net loss-delay -s dc1 -l 1 -d dc2 -i 2 -a set -p 100ms -L 10% -R 1024Kbps
aerolab net loss-delay -s dc1 -l 1 -d dc2 -l 2 -a show
aerolab net loss-delay -s dc1 -l 1,2,3 -d dc2 -i 1,2,3 -a del