Debian Codegraph @

tcl/ex/red-pd/multi/multi.sh

raw
1 #! /bin/csh
2
3 rm -f data* flows*
4 rm -f multi/flows* multi/tmp* multi/dropRate* multi/data*
5
6 set t1=500
7 foreach ftype ( cbr tcp )
8 echo "Doing flow type $ftype"
9 foreach links ( 1 2 3 4 5 )
10 echo "Doing links ${links}"
11 ns red-pd.tcl multi netMulti Multi enable 0 links $links ftype $ftype time $t1
12 mv multi.netMulti.Multi.0.flows flows0.${ftype}-${links}
13 ns red-pd.tcl multi netMulti Multi links $links ftype $ftype time $t1
14 mv multi.netMulti.Multi.1.flows flows1.${ftype}-${links}
15 end
16 multi/multi.pl flows0.${ftype}- $t1 0.${ftype}
17 multi/multi.pl flows1.${ftype}- $t1 1.${ftype}
18 end
19
20 mv flows* data* multi
21 cd multi
22 gnuplot multi.gp
23 gv multi.ps &
24
25 cd ..
26