source: BerlinRoofNet/simulation/ns2/ns-2.29-click/tcl/ex/wireless-scripts/runall-tr.cmd @ 8

Last change on this file since 8 was 6, checked in by anonymous, 7 years ago

Initial import

File size: 2.6 KB
Line 
1#!/bin/sh
2# Run all simulations for the technical report on modeling wireless links
3
4if [ -z $1 ]; then
5 GP="off"; QUIET=1
6else
7  if [ $1 = "gp" ]; then
8     GP="on"; QUIET=1
9  fi
10  if [ $1 = "xgraph" ]; then
11     GP="off"; QUIET=0
12  fi
13  if [ $1 = "quiet" ]; then
14     GP="off"; QUIET=1
15  fi
16fi
17
18NS=${NS:-../../../ns}
19
20# GPRS good
21$NS mtp.tcl -type gprs \
22-allocLenDL 'U(0.16,0.19)' \
23-allocHoldDL 'U(2,5)' \
24-allocLenUL 'U(0.5,0.6)' \
25-allocHoldUL 'U(0.01,0.4)' -quiet $QUIET
26./timeseq.cmd tr-gprs-good
27if [ $GP = "on" ]; then gv tr-gprs-good.eps; fi
28
29# GPRS mediocre
30# delayInt and delayLen have to be on the same line, why?
31$NS mtp.tcl -type gprs \
32-allocLenDL 'U(0.16,0.19)' \
33-allocHoldDL 'U(2,5)' \
34-allocLenUL 'U(0.5,0.6)' \
35-allocHoldUL 'U(0.01,0.4)' \
36-delayInt 'E(0.1)' -delayLen 'E(0.1)' \
37-quiet $QUIET
38./timeseq.cmd tr-gprs-medioc
39if [ $GP = "on" ]; then gv tr-gprs-medioc.eps; fi
40
41# GPRS poor
42$NS mtp.tcl -type gprs \
43-allocLenDL 'U(0.16,0.19)' \
44-allocHoldDL 'U(2,5)' \
45-allocLenUL 'U(0.5,0.6)' \
46-allocHoldUL 'U(0.01,0.4)' \
47-delayInt 'E(0.3)' -delayLen 'E(0.3)' \
48-errRateUL 0.01 -errBurstUL 0.3 -errSlotUL 3 \
49-errRateDL 0.01 -errBurstDL 0.3 -errSlotDL 3 \
50-quiet $QUIET
51./timeseq.cmd tr-gprs-poor
52if [ $GP = "on" ]; then gv tr-gprs-poor.eps; fi
53
54# GPRS mobility
55$NS mtp.tcl -type gprs \
56-allocLenDL 'U(0.16,0.19)' \
57-allocHoldDL 'U(2,5)' \
58-allocLenUL 'U(0.5,0.6)' \
59-allocHoldUL 'U(0.01,0.4)' \
60-vhoTarget gprs -vhoDelay 5 \
61-vhoLoss 0.5 -quiet $QUIET
62./timeseq.cmd tr-gprs-mobile
63if [ $GP = "on" ]; then gv tr-gprs-mobile.eps; fi
64
65# UMTS
66$NS mtp.tcl -type umts \
67-delayInt 'E(0.1)' \
68-delayLen 'E(0.04)' -quiet $QUIET -stop 50
69./timeseq.cmd tr-umts
70if [ $GP = "on" ]; then gv tr-umts.eps; fi
71
72# UMTS with bandwidth oscillation
73$NS mtp.tcl -type umts \
74-delayInt 'E(0.1)' \
75-delayLen 'E(0.04)' \
76-bwLowLen 5 \
77-bwHighLen 1 \
78-bwScale 10 \
79-quiet $QUIET -stop 50
80./timeseq.cmd tr-umts-oscil
81if [ $GP = "on" ]; then gv tr-umts-oscil.eps; fi
82
83# WLAN in good radio conditions
84$NS mtp.tcl -type wlan_complex -bwDL 1Mb -quiet $QUIET -stop 30
85./timeseq.cmd tr-wlan
86if [ $GP = "on" ]; then gv tr-wlan.eps; fi
87
88# WLAN in mediocre conditions
89$NS mtp.tcl -type wlan_complex -nodeDist 250 -quiet $QUIET -stop 30
90./timeseq.cmd tr-wlan-medioc
91if [ $GP = "on" ]; then gv tr-wlan-medioc.eps; fi
92
93# GEO in good radio conditions
94$NS mtp.tcl -type geo -quiet $QUIET -stop 30
95./timeseq.cmd tr-geo
96if [ $GP = "on" ]; then gv tr-geo.eps; fi
97
98# GEO with reordering
99$NS mtp.tcl -type geo -reorderLen 0.5 -reorderRate 0.01 \
100-quiet $QUIET -stop 30
101./timeseq.cmd tr-geo-reord
102if [ $GP = "on" ]; then gv tr-geo-reord.eps; fi
103
104
Note: See TracBrowser for help on using the repository browser.