testFRp_tcp.sh
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
- #! /bin/csh
- rm -f testFRp_tcp/flows* testFRp_tcp/tmp* testFRp_tcp/dropRate* testFRp_tcp/data*
- set t1=1000
- foreach p ( 0.01 0.02 0.03 0.04 0.05)
- echo "Doing drop rate ${p}"
- foreach rate (0.25 0.5 0.75 1.0 1.25 1.5 1.75 2.0 3.0 4.0 5.0 )
- echo "Doing gamma ${rate}"
- ns red-pd.tcl one netTestFRp TestFRp p ${p} gamma ${rate} ftype tcp testUnresp 0 verbose -1 time $t1
- mv one.netTestFRp.TestFRp.1.flows flows-${p}-${rate}
- end
- testFRp_tcp/testFRp_tcp.pl flows-${p} ${p} $t1 > data-${p}
- end
- mv flows-* data-* testFRp_tcp
- cd testFRp_tcp
- gnuplot testFRp_tcp.gp
- gv testFRp_tcp.ps &
- cd ..