mirror of
https://gitlab.com/manzerbredes/loosely-coupled-dss.git
synced 2025-04-25 06:48:33 +00:00
Correct simulations
This commit is contained in:
parent
1477290330
commit
fd4197731a
9 changed files with 16603 additions and 35769 deletions
|
@ -15,7 +15,7 @@ gen_log=0 # Should we generate logs ?
|
|||
|
||||
run-simulation () {
|
||||
# Generate inputs
|
||||
$scenarios $seed $simtime $wakeupevery $wakeupfor $n_nodes $extended $hint $poff $pon $prx $ptx $datasize $bitrate $hintsize > "$inputs"
|
||||
$scenarios $seed $simtime $wakeupevery $wakeupfor $n_nodes $extended $hint $poff $pon $prx $ptx $datasize $bitrate $hintsize $latency > "$inputs"
|
||||
|
||||
# Init logs
|
||||
[ $gen_log -eq 1 ] && echo -e "* seed=$seed simtime=$simtime wakeupevery=$wakeupevery wakeupfor=$wakeupfor n_nodes=$n_nodes extended=$extended hint=$hint poff=$poff pon=$pon prx=$prx ptx=$ptx datasize=$datasize bitrate=$bitrate \n" >> "${log_file}"
|
||||
|
@ -55,11 +55,12 @@ prx=0.16
|
|||
ptx=0.16
|
||||
datasize=1000000 # 1MB
|
||||
hintsize=4
|
||||
latency="0ms"
|
||||
bitrate="100kbps"
|
||||
|
||||
run-scenarios() {
|
||||
# Configure number of seed per scenarios
|
||||
nseed=200
|
||||
nseed=100
|
||||
|
||||
# Baseline
|
||||
echo "Baseline..."
|
||||
|
@ -115,6 +116,7 @@ do
|
|||
pon=0.4
|
||||
prx=0.16
|
||||
ptx=0.16
|
||||
latency="0ms"
|
||||
run-scenarios
|
||||
|
||||
# NbIot
|
||||
|
@ -124,5 +126,6 @@ do
|
|||
pon=0.4
|
||||
prx=0.65
|
||||
ptx=0.65
|
||||
latency="10ms"
|
||||
run-scenarios
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue