pktsVsBytes.sh
上传用户:rrhhcc
上传日期:2015-12-11
资源大小:54129k
文件大小:1k
源码类别:

通讯编程

开发平台:

Visual C++

  1. #! /bin/csh
  2. rm -f data* flows*
  3. rm -f pktsVsBytes/flows* pktsVsBytes/tmp* pktsVsBytes/dropRate* pktsVsBytes/data*
  4. set t1=1000
  5. foreach try ( 1 )
  6.     echo "Doing iteration $try"
  7.     foreach flows ( 4 8 12 16 20 )
  8.     echo "Doing flows ${flows}"
  9.     ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0
  10.     mv one.netPktsVsBytes.PktsVsBytes.0.flows flows0-${try}-${flows}
  11.     ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1
  12.     mv one.netPktsVsBytes.PktsVsBytes.1.flows flows1-${try}-${flows}
  13. end
  14. pktsVsBytes/pktsVsBytes.pl flows0 $t1 1 0
  15. pktsVsBytes/pktsVsBytes.pl flows1 $t1 1 1
  16. mv flows* data* pktsVsBytes
  17. cd pktsVsBytes
  18. gnuplot pktsVsBytes.gp
  19. gv pktsVsBytes0.ps &
  20. gv pktsVsBytes1.ps &
  21. cd ..