mirror of
https://gitlab.com/manzerbredes/loosely-coupled-dss.git
synced 2025-04-05 11:06:25 +02:00
Tests
This commit is contained in:
parent
f7c6f8ad56
commit
738f22d12f
8 changed files with 3896 additions and 38436 deletions
|
@ -14,6 +14,10 @@ finalEnergy=data%>%group_by(simkey,wireless,wakeupfor)%>%summarize(wireless=firs
|
|||
# Success
|
||||
finalStats=data%>%filter(isSender!=0)%>%group_by(simkey,wireless,wakeupfor)%>%summarise(sd_success=sd(nSend),success=mean(nSend))
|
||||
|
||||
# Hint Added
|
||||
hintAdded=data%>%filter(isSender==0)%>%group_by(simkey,wireless,wakeupfor)%>%summarise(hint_added=mean(hint_added))
|
||||
finalStats=finalStats%>%left_join(hintAdded,by=c("simkey","wireless","wakeupfor"))
|
||||
|
||||
# Sender energy
|
||||
senderEnergy=data%>%filter(isSender!=0)%>%group_by(simkey,wireless,wakeupfor)%>%summarise(senderEnergy=mean(energy))
|
||||
receiverEnergy=data%>%filter(isSender==0)%>%group_by(simkey,wireless,wakeupfor)%>%summarise(receiverEnergy=mean(energy))
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 260 KiB After Width: | Height: | Size: 302 KiB |
|
@ -60,7 +60,7 @@ bitrate="100kbps"
|
|||
|
||||
run-scenarios() {
|
||||
# Configure number of seed per scenarios
|
||||
nseed=200
|
||||
nseed=20
|
||||
|
||||
# Baseline
|
||||
echo "Baseline..."
|
||||
|
|
42230
results/results.csv
42230
results/results.csv
File diff suppressed because it is too large
Load diff
Binary file not shown.
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 219 KiB |
|
@ -1,33 +1,33 @@
|
|||
|
||||
|simkey |wireless | wakeupfor| sd| energy|
|
||||
|:---------------|:--------|---------:|---------:|--------:|
|
||||
|baseline |lora | 60| 16.32262| 585.4111|
|
||||
|extended |lora | 60| 112.35299| 644.3173|
|
||||
|hint |lora | 60| 140.69738| 657.3728|
|
||||
|hintandextended |lora | 60| 112.35377| 644.3179|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd| energy|
|
||||
|:---------------|:--------|---------:|--------:|--------:|
|
||||
|baseline |nbiot | 60| 60.80770| 609.9383|
|
||||
|extended |nbiot | 60| 58.96556| 608.3465|
|
||||
|hint |nbiot | 60| 91.16175| 635.0423|
|
||||
|hintandextended |nbiot | 60| 58.96269| 608.3498|
|
||||
|baseline |lora | 60| 16.68823| 585.5940|
|
||||
|extended |lora | 60| 110.37247| 643.5583|
|
||||
|hint |lora | 60| 114.04055| 682.9183|
|
||||
|hintandextended |lora | 60| 118.29356| 650.8409|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd| energy|
|
||||
|:---------------|:--------|---------:|---------:|--------:|
|
||||
|baseline |lora | 180| 99.38926| 1793.214|
|
||||
|extended |lora | 180| 115.82014| 1799.546|
|
||||
|hint |lora | 180| 122.50058| 1881.829|
|
||||
|hintandextended |lora | 180| 115.79631| 1799.530|
|
||||
|baseline |nbiot | 60| 62.24934| 610.6076|
|
||||
|extended |nbiot | 60| 59.59017| 608.4334|
|
||||
|hint |nbiot | 60| 111.60701| 673.9423|
|
||||
|hintandextended |nbiot | 60| 67.74561| 616.9678|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd| energy|
|
||||
|:---------------|:--------|---------:|---------:|--------:|
|
||||
|baseline |lora | 180| 96.84011| 1790.930|
|
||||
|extended |lora | 180| 116.50281| 1795.967|
|
||||
|hint |lora | 180| 188.06417| 2043.078|
|
||||
|hintandextended |lora | 180| 128.42386| 1845.336|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd| energy|
|
||||
|:---------------|:--------|---------:|--------:|--------:|
|
||||
|baseline |nbiot | 180| 232.1779| 1833.526|
|
||||
|extended |nbiot | 180| 196.7046| 1809.951|
|
||||
|hint |nbiot | 180| 239.7566| 1848.624|
|
||||
|hintandextended |nbiot | 180| 196.6927| 1809.954|
|
||||
|baseline |nbiot | 180| 228.1902| 1828.633|
|
||||
|extended |nbiot | 180| 198.1249| 1808.674|
|
||||
|hint |nbiot | 180| 197.5754| 1895.628|
|
||||
|hintandextended |nbiot | 180| 182.9743| 1863.406|
|
||||
|
||||
|
||||
|
|
|
@ -1,33 +1,33 @@
|
|||
|
||||
|simkey |wireless | wakeupfor| sd_success| success| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|-------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |lora | 60| 0.000000| 0.00| 632.3280| 581.1460| 1440.000| 1439.923| 28.435|
|
||||
|extended |lora | 60| 1.509468| 5.73| 982.5020| 613.5733| 2089.535| 1500.595| 18.270|
|
||||
|hint |lora | 60| 0.000000| 0.00| 781.0494| 646.1295| 1440.000| 1568.298| 27.975|
|
||||
|hintandextended |lora | 60| 1.509468| 5.73| 982.5048| 613.5736| 2089.542| 1500.596| 18.270|
|
||||
|simkey |wireless | wakeupfor| sd_success| success| hint_added| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|-------:|----------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |lora | 60| 0.000000| 0.00| 0.0000000| 633.3520| 581.2524| 1440.000| 1439.955| 28.70|
|
||||
|extended |lora | 60| 1.424411| 5.65| 0.0000000| 976.1800| 613.3200| 2078.850| 1500.427| 18.35|
|
||||
|hint |lora | 60| 0.000000| 0.00| 3.0590909| 784.5477| 673.6793| 1440.000| 1621.882| 28.20|
|
||||
|hintandextended |lora | 60| 1.565248| 6.15| 0.0727273| 1008.9831| 618.2826| 2128.858| 1508.792| 17.85|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd_success| success| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|-------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |nbiot | 60| 1.296148| 2.22| 788.3890| 593.7155| 1440.026| 1439.923| 26.955|
|
||||
|extended |nbiot | 60| 1.594305| 6.03| 789.9963| 591.8329| 1483.200| 1443.941| 21.815|
|
||||
|hint |nbiot | 60| 1.580153| 5.84| 895.9030| 611.3277| 1440.022| 1466.598| 26.245|
|
||||
|hintandextended |nbiot | 60| 1.594305| 6.03| 789.9868| 591.8374| 1483.226| 1443.944| 21.815|
|
||||
|simkey |wireless | wakeupfor| sd_success| success| hint_added| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|--------:|----------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |nbiot | 60| 1.431782| 1.950000| 0.0000000| 792.9375| 594.0322| 1440.000| 1439.955| 27.35|
|
||||
|extended |nbiot | 60| 1.589439| 6.000000| 0.0000000| 791.7907| 591.7645| 1485.274| 1443.948| 21.85|
|
||||
|hint |nbiot | 60| 2.278774| 7.388889| 1.2162162| 947.0818| 651.7958| 1440.000| 1511.878| 30.65|
|
||||
|hintandextended |nbiot | 60| 1.954153| 6.526316| 0.1131222| 811.3245| 600.2584| 1481.732| 1451.169| 21.20|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd_success| success| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|--------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |lora | 180| 1.2001256| 1.630000| 2104.267| 1764.936| 4319.945| 4317.934| 35.41000|
|
||||
|extended |lora | 180| 0.9293588| 9.246269| 2134.104| 1779.762| 4713.291| 4372.638| 17.52000|
|
||||
|hint |lora | 180| 0.9888787| 8.934911| 2144.054| 1861.965| 4319.935| 4539.564| 29.18000|
|
||||
|hintandextended |lora | 180| 0.9326243| 9.248120| 2133.659| 1779.823| 4712.014| 4372.671| 17.51256|
|
||||
|simkey |wireless | wakeupfor| sd_success| success| hint_added| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|--------:|----------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |lora | 180| 1.3945382| 1.450000| 0.0000000| 2089.740| 1763.765| 4319.650| 4316.945| 33.65|
|
||||
|extended |lora | 180| 1.1673206| 9.142857| 0.0000000| 2117.177| 1776.069| 4676.286| 4365.836| 17.50|
|
||||
|hint |lora | 180| 0.4082483| 9.833333| 3.4658120| 2072.157| 2042.333| 4320.000| 4905.880| 17.95|
|
||||
|hintandextended |lora | 180| 0.8864053| 9.250000| 0.5431034| 2153.073| 1834.724| 4766.133| 4472.066| 12.65|
|
||||
|
||||
|
||||
|simkey |wireless | wakeupfor| sd_success| success| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|--------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |nbiot | 180| 1.0855147| 8.880240| 2580.136| 1777.689| 4319.949| 4317.964| 24.380|
|
||||
|extended |nbiot | 180| 0.8422925| 9.352459| 2445.260| 1775.927| 4339.151| 4320.981| 20.140|
|
||||
|hint |nbiot | 180| 0.8408034| 9.344262| 2597.025| 1808.543| 4319.921| 4353.619| 22.545|
|
||||
|hintandextended |nbiot | 180| 0.8422925| 9.352459| 2445.222| 1775.932| 4339.163| 4320.982| 20.140|
|
||||
|simkey |wireless | wakeupfor| sd_success| success| hint_added| senderEnergy| receiverEnergy| senderUptime| receiverUptime| nSendFail|
|
||||
|:---------------|:--------|---------:|----------:|--------:|----------:|------------:|--------------:|------------:|--------------:|---------:|
|
||||
|baseline |nbiot | 180| 1.3394468| 8.833333| 0.0000000| 2536.733| 1771.220| 4319.611| 4316.973| 24.95|
|
||||
|extended |nbiot | 180| 1.0836247| 9.083333| 0.0000000| 2429.380| 1776.006| 4331.842| 4319.791| 19.95|
|
||||
|hint |nbiot | 180| 0.7867958| 9.428571| 0.6309013| 2440.631| 1879.254| 4320.000| 4417.558| 17.15|
|
||||
|hintandextended |nbiot | 180| 0.8333333| 9.222222| 0.4415584| 2379.442| 1843.300| 4330.908| 4389.236| 16.10|
|
||||
|
||||
|
||||
|
|
|
@ -125,6 +125,7 @@ static void obs_node(std::vector<std::string> args) {
|
|||
u32 nSendFail=0;
|
||||
u32 nRcvFail=0;
|
||||
u32 nSend=0;
|
||||
u32 hint_added=0;
|
||||
double totalUptime=0;
|
||||
Payload *hint_forward=NULL;
|
||||
while(i.ShouldContinue()){
|
||||
|
@ -210,6 +211,7 @@ static void obs_node(std::vector<std::string> args) {
|
|||
if(CLOCK < p->hint){
|
||||
i.AddEvent(p->hint, p->duration);
|
||||
hint_forward=new Payload(*p);
|
||||
hint_added++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -237,8 +239,10 @@ static void obs_node(std::vector<std::string> args) {
|
|||
}catch(...){
|
||||
XBT_INFO("%s could not receive any data",CNAME);
|
||||
nRcvFail++;
|
||||
if(hintReceived)
|
||||
if(hintReceived){
|
||||
i.AddEvent(hint->hint, hint->duration); // Add the hint to the event list
|
||||
hint_added++;
|
||||
}
|
||||
}
|
||||
}
|
||||
forward_mode=!forward_mode; // Toggle mode (go back and forth between receiving and forwarding)
|
||||
|
@ -262,5 +266,5 @@ static void obs_node(std::vector<std::string> args) {
|
|||
}
|
||||
// Done
|
||||
MODE_OFF()
|
||||
XBT_INFO("Observation node %s finished [LOG2PARSE](node:%s|isSender:%d|nSend:%d|nWakeUp:%d|nDataRcv:%d|nSendFail:%d|nRcvFail:%d|totalUptime:%f|seed:%d)",CNAME,CNAME,i.is_sender,nSend,nWakeUp,nDataRcv,nSendFail,nRcvFail,totalUptime,i.seed);
|
||||
XBT_INFO("Observation node %s finished [LOG2PARSE](node:%s|isSender:%d|nSend:%d|nWakeUp:%d|nDataRcv:%d|nSendFail:%d|nRcvFail:%d|totalUptime:%f|seed:%d|hint_added:%d)",CNAME,CNAME,i.is_sender,nSend,nWakeUp,nDataRcv,nSendFail,nRcvFail,totalUptime,i.seed,hint_added);
|
||||
}
|
Loading…
Add table
Reference in a new issue