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

通讯编程

开发平台:

Visual C++

  1. #! /bin/csh
  2. rm -f data* flows*
  3. rm -f pktsVsBytes/flows* pktsVsBytes/tmp* pktsVsBytes/dropRate* 
  4. set t1=1000
  5. foreach try ( 2 )
  6.     echo "Doing iteration $try, for RED in packet mode."
  7.     ## This uses topology netPktsVsBytes1 for packet mode.
  8.     foreach flows ( 4 8 12 16 20 )
  9.     echo "Doing flows ${flows}"
  10.     ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0
  11.     mv one.netPktsVsBytes1.PktsVsBytes.0.flows flows0-${try}-${flows}
  12.     ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1
  13.     mv one.netPktsVsBytes1.PktsVsBytes.1.flows flows1-${try}-${flows}
  14.       end
  15.       pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0
  16.       pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1
  17. end
  18. foreach try ( 1 )
  19.     echo "Doing iteration $try, for RED in byte mode."
  20.     foreach flows ( 4 8 12 16 20 )
  21.     echo "Doing flows ${flows}"
  22.     ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0
  23.     mv one.netPktsVsBytes.PktsVsBytes.0.flows flows0-${try}-${flows}
  24.             ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1
  25.     mv one.netPktsVsBytes.PktsVsBytes.1.flows flows1-${try}-${flows}
  26.     end
  27.     pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0
  28.     pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1
  29. end
  30. mv flows* data* pktsVsBytes
  31. cd pktsVsBytes
  32. gnuplot pktsVsBytesA.gp
  33. gv pktsVsBytes0-A.ps &
  34. gv pktsVsBytes1-A.ps &
  35. gv pktsVsBytes0.ps &
  36. gv pktsVsBytes1.ps &
  37. cd ..