Debian Codegraph @

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

raw
1 #! /bin/csh
2
3 rm -f testFRp_tcp/flows* testFRp_tcp/tmp* testFRp_tcp/dropRate* testFRp_tcp/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 tcp testUnresp 0 verbose -1 time $t1
11 mv one.netTestFRp.TestFRp.1.flows flows-${p}-${rate}
12 end
13 testFRp_tcp/testFRp_tcp.pl flows-${p} ${p} $t1 > data-${p}
14 end
15
16 mv flows-* data-* testFRp_tcp
17 cd testFRp_tcp
18 gnuplot testFRp_tcp.gp
19 gv testFRp_tcp.ps &
20
21 cd ..
22