-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
31 lines (24 loc) · 993 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
INPUT_DIR=inputs
OUTPUT_DIR=results
INPUT_FILES='stag_prob_0_2_3_data stag_prob_1_2_3_data stag_prob_2_2_3_data stag_prob_0_5_3_data stag_prob_1_5_3_data stag_prob_2_5_3_data stride1_data stride2_data stride4_data stride8_data random0_data random1_data random2_data random0_bij_data random1_bij_data random2_bij_data random_2_flows_data random_3_flows_data random_4_flows_data hotspot_one_to_one_data'
DURATION=50
for f in $INPUT_FILES;
do
input_file=$INPUT_DIR/$f
pref="fattree-ecmp"
out_dir=$OUTPUT_DIR/$pref/$f
sudo python mn_ft.py -i $input_file -d $out_dir -p 0.03 -t $DURATION --ecmp --iperf
done
# dijkstra
for f in $INPUT_FILES;
do
input_file=$INPUT_DIR/$f
pref="fattree-dij"
out_dir=$OUTPUT_DIR/$pref/$f
sudo python mn_ft.py -i $input_file -d $out_dir -p 0.03 -t $DURATION --dij --iperf
done
# two-level routing
# draw the bandwidth plot
INPUT=results
OUTPUT=rate
python plot_rate.py --input $INPUT --out $OUTPUT