Navigation Menu

Skip to content

Commit

Permalink
Fix interference test
Browse files Browse the repository at this point in the history
The interference test succeeds unexpectedly.

Reported-by: zgjim shasha <zgjim_71@hotmail.com>
Signed-off-by: Masashi Honma <masashi.honma@gmail.com>
  • Loading branch information
masap authored and bcopeland committed May 13, 2018
1 parent 19beb70 commit 17029c2
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/interference.sh
Expand Up @@ -18,6 +18,7 @@ fi

modprobe -r mac80211_hwsim
modprobe mac80211_hwsim radios=$num_nodes
iw reg set US

for i in `seq 0 $((num_nodes-1))`; do
addrs[$i]=`printf $macfmt $i`
Expand All @@ -38,19 +39,24 @@ ifaces :
enable_interference = true;
};
path_loss :
model :
{
band = 2;
type = "path_loss";
positions = (
(-70.0, 0.0),
(-69.0, 0.0),
( 0.0, 0.0),
( 70.0, 0.0),
( 69.0, 0.0),
(130.0, -2.0),
(130.0, -1.0),
(130.0, 2.0),
(130.0, 1.0)
);
tx_powers = (15.0, 15.0, 15.0, 11.0, 11.0, 11.0, 11.0);
model_params = ("log_distance", 3.5, 0.0);
model_name = "log_distance";
path_loss_exp = 3.5;
xg = 0.0;
};
__EOM

Expand Down Expand Up @@ -111,10 +117,10 @@ tmux send-keys -t $session:7 'iperf -s' C-m
# enable monitor
tmux send-keys -t $session:0 'ip link set hwsim0 up' C-m

tmux send-keys -t $session:4 'sleep 2; iperf -u -b 100000000 -c 10.10.10.14 -t 6' C-m
tmux send-keys -t $session:6 'sleep 2; iperf -u -b 100000000 -c 10.10.10.16 -t 6' C-m
tmux send-keys -t $session:4 'iperf -u -b 100M -c 10.10.10.14 -t 10' C-m
tmux send-keys -t $session:6 'iperf -u -b 100M -c 10.10.10.16 -t 10' C-m

tmux select-window -t $session:1
tmux send-keys -t $session:1 'sleep 2; ping -c 5 10.10.10.12' C-m
tmux send-keys -t $session:1 'sleep 2; ping -c 5 -W 1 10.10.10.12' C-m

tmux attach

0 comments on commit 17029c2

Please sign in to comment.