runtests.sh

来自「NSD2 QOS surpport tcl code」· Shell 代码 · 共 63 行

SH
63
字号
#!/bin/sh# ns scripts implementing testing in "Experimental Evaluation of TCP Protocols for High-Speed Networks".  Li, Leith & Shorten, Trans on Networking 2007.  See www.hamilton.ie/net/ for details.# Doug Leith, Hamilton Institute, 2007.  HELP="usage: runtest.sh [start | restart].  'start' begins a new test from scratch, 'restart' attempts to continue execution of an interrupted test."if [ $# -ne 1 ]; then    echo ${HELP}; exitelif [ "$1" == "start" ]; then    echo "Starting test ..."    MODE=$1elif [ "$1" == "restart" ]; then    echo "Restarting test ..."    MODE=$1else    echo ${HELP}; exitfi# get local settings.  edit file config.sh to change these as requiredsource config.sh#--------------------------------------------------------------------------# No need to touch anything here#--------------------------------------------------------------------------# local functions to do the donkey worksource ${LIB}/lib.sh#--------------------------------------------------------------------------# run the tests ...#--------------------------------------------------------------------------if [ ! -d "$CCDESCRIPTION" ]; then mkdir "$CCDESCRIPTION" ; ficd "$CCDESCRIPTION"cp ${LIB}/template_index.htm index.htmplottitle# save a bit of time here by using a smaller range of buffer sizesQMAX=$QMAXSHORTWEB=$WEBSHORTRTT=$RTTSHORTTIME=800# two-flows same rttruntest "samertt" 0 $ALPHAOPT# two-flows diff rttruntest "diffrtt" $RTT1 $ALPHAOPT# friendliness#runtest "friendliness" 0 $ALPHASTD # efficiencyQMAX=$QMAXLONGWEB="0"RTT="$RTT1"TIME=600MAXITER=1runtest "efficiency" 0 $ALPHAOPT 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?