Debug and add scenarios in paper

This commit is contained in:
Loic Guegan 2021-05-09 11:07:16 +02:00
parent 69e8818642
commit 51d0c256a3
6 changed files with 492 additions and 121 deletions

View file

@ -8,29 +8,29 @@ inputs="${wai}/../inputs.json"
simulator="make -C ${wai}/../ run"
parser="${wai}/../parser.awk"
results="${wai}/results.csv"
nseed=10
nseed=20
run-simulation () {
# Generate inputs
$scenarios $seed $simtime $maxstartupdelay $wakeupevery $wakeupfor $n_nodes $extended $hint $poff $pon $prx $ptx $datasize $simkey > "$inputs"
$scenarios $seed $simtime $wakeupsd $wakeupevery $wakeupfor $n_nodes $extended $hint $poff $pon $prx $ptx $datasize $simkey > "$inputs"
# Run simulations
[ -e "$results" ] && { $simulator 2>&1 | $parser | sed 1d >> "$results"; } || { $simulator 2>&1 | $parser > "$results"; }
}
# Default Parameters
seed=0
simtime=100
maxstartupdelay=1
wakeupevery=10
wakeupfor=10
n_nodes=1
simtime=7200
wakeupsd=180
wakeupevery=600
wakeupfor=180
n_nodes=5
extended="false"
hint="false"
poff=0
pon=1
prx=1
ptx=2
datasize=1
pon=0.4
prx=0.16
ptx=0.16
datasize=1000000
simkey=0
# Baseline