pktsvsbytesa.sh
来自「跑leach需要的」· Shell 代码 · 共 48 行
SH
48 行
#! /bin/cshrm -f data* flows*rm -f pktsVsBytes/flows* pktsVsBytes/tmp* pktsVsBytes/dropRate* set t1=1000foreach try ( 2 ) echo "Doing iteration $try, for RED in packet mode." ## This uses topology netPktsVsBytes1 for packet mode. foreach flows ( 4 8 12 16 20 ) echo "Doing flows ${flows}" ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0 mv one.netPktsVsBytes1.PktsVsBytes.0.flows flows0-${try}-${flows} ns red-pd.tcl one netPktsVsBytes1 PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 mv one.netPktsVsBytes1.PktsVsBytes.1.flows flows1-${try}-${flows} end pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0 pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1endforeach try ( 1 ) echo "Doing iteration $try, for RED in byte mode." foreach flows ( 4 8 12 16 20 ) echo "Doing flows ${flows}" ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 enable 0 mv one.netPktsVsBytes.PktsVsBytes.0.flows flows0-${try}-${flows} ns red-pd.tcl one netPktsVsBytes PktsVsBytes flows ${flows} testUnresp 0 verbose -1 time $t1 mv one.netPktsVsBytes.PktsVsBytes.1.flows flows1-${try}-${flows} end pktsVsBytes/pktsVsBytesA.pl flows0 $t1 $try 0 pktsVsBytes/pktsVsBytesA.pl flows1 $t1 $try 1endmv flows* data* pktsVsBytescd pktsVsBytesgnuplot pktsVsBytesA.gpgv pktsVsBytes0-A.ps &gv pktsVsBytes1-A.ps &gv pktsVsBytes0.ps &gv pktsVsBytes1.ps &cd ..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?