tfrc.sh
来自「ns-2的文件包。多多下载」· Shell 代码 · 共 32 行
SH
32 行
#! /bin/cshrm -f flow* tmp* dropRate* data*rm -f tfrc/flows* tfrc/tmp* tfrc/dropRate* tfrc/data*set t1=500foreach try ( 1 2 3 4 5 ) echo "Doing iteration $try" foreach flows ( 8 12 16 20 24 28 32 ) echo "Doing flows ${flows}" ns red-pd.tcl one netTFRC TFRC enable 0 rtt 0.060 flows ${flows} verbose 1 time $t1 > tmp0-${try}-${flows} mv one.netTFRC.TFRC.0.flows flows0-${try}-${flows} ns red-pd.tcl one netTFRC TFRC rtt 0.060 flows ${flows} verbose 1 time $t1 > tmp1-${try}-${flows} mv one.netTFRC.TFRC.1.flows flows1-${try}-${flows} endendtfrc/tfrc.pl flows0 0 $t1 5tfrc/tfrc.pl flows1 1 $t1 5mv flows* tmp* data* dropRate* tfrccd tfrcgnuplot tfrc.gpgv tfrcLow.ps &gv tfrcHigh.ps &gv tfrc.ps &gv tfrc-dropRate.ps &cd ..
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?