Debian Codegraph @

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

raw
1 #! /bin/csh
2
3 rm -f tmp.* flows.* data.*
4 rm -f PIdent/flows* PIdent/tmp* PIdent/dropRate* PIdent/data*
5
6 set t1=500
7 foreach ftype ( tcp cbr )
8 echo "Doing ftype $ftype"
9 foreach p ( 0.01 0.02 0.03 0.04 0.05 )
10 echo "Doing drop ${p}"
11 foreach rate ( 0.25 0.50 0.75 1.0 1.25 1.50 1.75 2.00 2.50 3.00 3.50 4.00 )
12 echo "Doing rate ${rate}"
13 ns red-pd.tcl one netTestFRp TestIdent p ${p} gamma ${rate} ftype ${ftype} time ${t1} > tmp.${ftype}-$p-$rate
14 mv one.netTestFRp.TestIdent.1.flows flows.${ftype}-${p}-${rate}
15 end
16 PIdent/PIdent.pl tmp.${ftype}-$p- > data.${ftype}-${p}
17 end
18 end
19
20 mv flows* tmp* data* PIdent
21 cd PIdent
22 gnuplot PIdent.gp
23 gv PIdent_tcp.ps &
24 gv PIdent_cbr.ps &
25
26 cd ..
27