⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 test-sack-v1

📁 这个软件的功能是实现多播协议
💻
字号:
#! /bin/sh#holes=2		* from NSA in packet.hsed -e 's/maxBurst/0/' sack-v1.tcl > t		# for tahoe, renosed -e 's/maxBurst/4/' sack-v1.tcl > t1		# for newreno, sack, facksed -e 's/type/taho/' t > t0.tclsed -e 's/connection tcp /connection tcp-reno /' -e s/type/reno/ t > t1.tclsed -e 's/connection tcp /connection tcp-newreno /' -e s/type/newr/ t1 > t3.tclsed -e 's/connection tcp /connection tcp-sack1 /' t1 > t2sed -e 's/tcp-sink/sack1-tcp-sink/' -e 's/type/sck1/' t2 > t4.tcl# fack with overdamping and rampdownsed -e 's/connection tcp /connection tcp-fack /' t > t3sed -e 's/tcp-sink/sack1-tcp-sink/' -e 's/type/fackOR/' t3 > t5.tcl# fack without overdamping and rampdownsed -e 's/tcp-sink/sack1-tcp-sink/' -e 's/type/fack/' t3 > t4awk ' {print } ; /global mod ns_tcp/ { print "\tglobal mod ns_facktcp" ; \ print "\tset ns_facktcp(ss-div4) 0" ; print "\tset ns_facktcp(rampdown) 0" \ } ' t4 > t6.tcl# newreno with ssthresh estimatorsed -e 's/tcpnewreno(changes) 0/tcpnewreno(changes) 1/' t3.tcl > t7.tcl# vegassed -e 's/connection tcp /connection tcp-vegas /' -e s/type/vegas/ t > t8.tcltests=`awk '/^proc test_/{ print substr($2,index($2, "_")+1) }' sack-v1.tcl`for t in $tests; do    echo    echo Running test $t    echo 'Tahoe:'    ../../ns t0.tcl $t    sleep 5    echo 'Reno:'    ../../ns t1.tcl $t    sleep 5    echo 'New Reno without Sack:'    ../../ns t3.tcl $t    sleep 5    echo 'Sack1:'    ../../ns t4.tcl $t    sleep 5    echo 'Vegas:'    ../../ns t8.tcl $t    sleep 5    echo 'Fack with OverDamping and Rampdown:'    ../../ns t5.tcl $t    sleep 5    echo 'Fack without OverDamping and Rampdown:'    ../../ns t6.tcl $t    sleep 5    echo 'New Reno without Sack, but with ssthresh estimator:'    ../../ns t7.tcl $t    echo 'next?'    read answerdone# ns t0.tcl one_40

⌨️ 快捷键说明

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