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

📄 runall-tr.cmd

📁 跑leach需要的
💻 CMD
字号:
#!/bin/sh# Run all simulations for the technical report on modeling wireless linksif [ -z $1 ]; then GP="off"; QUIET=1else   if [ $1 = "gp" ]; then     GP="on"; QUIET=1   fi  if [ $1 = "xgraph" ]; then     GP="off"; QUIET=0  fi  if [ $1 = "quiet" ]; then     GP="off"; QUIET=1  fifiNS=${NS:-../../../ns}# GPRS good$NS mtp.tcl -type gprs \-allocLenDL 'U(0.16,0.19)' \-allocHoldDL 'U(2,5)' \-allocLenUL 'U(0.5,0.6)' \-allocHoldUL 'U(0.01,0.4)' -quiet $QUIET./timeseq.cmd tr-gprs-goodif [ $GP = "on" ]; then gv tr-gprs-good.eps; fi# GPRS mediocre# delayInt and delayLen have to be on the same line, why?$NS mtp.tcl -type gprs \-allocLenDL 'U(0.16,0.19)' \-allocHoldDL 'U(2,5)' \-allocLenUL 'U(0.5,0.6)' \-allocHoldUL 'U(0.01,0.4)' \-delayInt 'E(0.1)' -delayLen 'E(0.1)' \-quiet $QUIET./timeseq.cmd tr-gprs-mediocif [ $GP = "on" ]; then gv tr-gprs-medioc.eps; fi# GPRS poor$NS mtp.tcl -type gprs \-allocLenDL 'U(0.16,0.19)' \-allocHoldDL 'U(2,5)' \-allocLenUL 'U(0.5,0.6)' \-allocHoldUL 'U(0.01,0.4)' \-delayInt 'E(0.3)' -delayLen 'E(0.3)' \-errRateUL 0.01 -errBurstUL 0.3 -errSlotUL 3 \-errRateDL 0.01 -errBurstDL 0.3 -errSlotDL 3 \-quiet $QUIET./timeseq.cmd tr-gprs-poorif [ $GP = "on" ]; then gv tr-gprs-poor.eps; fi# GPRS mobility$NS mtp.tcl -type gprs \-allocLenDL 'U(0.16,0.19)' \-allocHoldDL 'U(2,5)' \-allocLenUL 'U(0.5,0.6)' \-allocHoldUL 'U(0.01,0.4)' \-vhoTarget gprs -vhoDelay 5 \-vhoLoss 0.5 -quiet $QUIET./timeseq.cmd tr-gprs-mobileif [ $GP = "on" ]; then gv tr-gprs-mobile.eps; fi# UMTS$NS mtp.tcl -type umts \-delayInt 'E(0.1)' \-delayLen 'E(0.04)' -quiet $QUIET -stop 50./timeseq.cmd tr-umtsif [ $GP = "on" ]; then gv tr-umts.eps; fi# UMTS with bandwidth oscillation$NS mtp.tcl -type umts \-delayInt 'E(0.1)' \-delayLen 'E(0.04)' \-bwLowLen 5 \-bwHighLen 1 \-bwScale 10 \-quiet $QUIET -stop 50./timeseq.cmd tr-umts-oscilif [ $GP = "on" ]; then gv tr-umts-oscil.eps; fi# WLAN in good radio conditions$NS mtp.tcl -type wlan_complex -bwDL 1Mb -quiet $QUIET -stop 30./timeseq.cmd tr-wlan if [ $GP = "on" ]; then gv tr-wlan.eps; fi# WLAN in mediocre conditions$NS mtp.tcl -type wlan_complex -nodeDist 250 -quiet $QUIET -stop 30./timeseq.cmd tr-wlan-medioc if [ $GP = "on" ]; then gv tr-wlan-medioc.eps; fi# GEO in good radio conditions$NS mtp.tcl -type geo -quiet $QUIET -stop 30./timeseq.cmd tr-geoif [ $GP = "on" ]; then gv tr-geo.eps; fi# GEO with reordering$NS mtp.tcl -type geo -reorderLen 0.5 -reorderRate 0.01 \-quiet $QUIET -stop 30./timeseq.cmd tr-geo-reordif [ $GP = "on" ]; then gv tr-geo-reord.eps; fi

⌨️ 快捷键说明

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