Debian Codegraph @

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

raw
1 #! /bin/csh
2
3 rm -f testFRp/flows* testFRp/tmp* testFRp/dropRate* testFRp/data*
4
5 set t1=1000
6 foreach p ( 0.01 0.02 0.03 0.04 0.05)
7 echo "Doing drop rate ${p}"
8 foreach rate ( 0.25 0.5 0.75 1.0 1.25 1.5 1.75 2.0 3.0 4.0 5.0 )
9 echo "Doing gamma ${rate}"
10 ns red-pd.tcl one netTestFRp TestFRp p ${p} gamma ${rate} ftype cbr testUnresp 0 verbose -1 time $t1
11 mv one.netTestFRp.TestFRp.1.flows flows-${p}-${rate}
12 end
13 testFRp/testFRp.pl flows-${p} ${p} $t1 > data-${p}
14 end
15
16 mv flows-* data-* testFRp
17 cd testFRp
18 gnuplot testFRp.gp
19 gv testFRp.ps &
20
21 cd ..
22