Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix timing of Wi-Fi tests.
authorBruno Donassolo <bruno.donassolo@inria.fr>
Mon, 31 May 2021 08:18:41 +0000 (10:18 +0200)
committerBruno Donassolo <bruno.donassolo@inria.fr>
Tue, 1 Jun 2021 14:34:08 +0000 (16:34 +0200)
Their timing were calculated considering that no factor were applied in
Wi-Fi communications.
This isn't the case anymore, since by default, we would apply the 0.97
factor from LV08 to these communications.
Setting CM02 as base network model since it doesn't apply any bandwidth
factor.

examples/cpp/network-wifi/s4u-network-wifi.tesh
teshsuite/models/wifi_usage/wifi_usage.tesh
teshsuite/models/wifi_usage_decay/wifi_usage_decay.tesh

index 0cb06ba..980f6bd 100644 (file)
@@ -1,6 +1,7 @@
 #!/usr/bin/env tesh
 
-$ ${bindir:=.}/s4u-network-wifi ${platfdir}/wifi.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n"
+$ ${bindir:=.}/s4u-network-wifi ${platfdir}/wifi.xml "--log=root.fmt:[%10.6r]%e(%i:%a@%h)%e%m%n" --cfg=network/model:CM02
+> [  0.000000] (0:maestro@) Configuration change: Set 'network/model' to 'CM02'
 > [  0.000000] (1:sender@Station 1) Send a message to the other station.
 > [  0.000000] (2:receiver@Station 2) Wait for a message.
 > [  3.888889] (1:sender@Station 1) Done.
index 68e67a5..8b96647 100644 (file)
@@ -1,7 +1,8 @@
 #!/usr/bin/env tesh
 
 p Test WITH crosstraffic
-$ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n
+$ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/model:CM02
+> Configuration change: Set 'network/model' to 'CM02'
 > TEST: Send from a station to a node on the wired network after the AP.
 > ----------------------------------------------------------------------
 > Since AP1 is the limiting link, we have the following constraint for AP1:
@@ -22,8 +23,9 @@ $ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n
 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000311 seconds.
 
 p Test WITHOUT crosstraffic
-$ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0
+$ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0 --cfg=network/model:CM02
 > Configuration change: Set 'network/crosstraffic' to '0'
+> Configuration change: Set 'network/model' to 'CM02'
 > TEST: Send from a station to a node on the wired network after the AP.
 > ----------------------------------------------------------------------
 > Since AP1 is the limiting link, we have the following constraint for AP1:
index f1208fd..b2fa6a9 100644 (file)
@@ -1,7 +1,8 @@
 #!/usr/bin/env tesh
 
 p Test WITH crosstraffic
-$ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n
+$ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/model:CM02
+> Configuration change: Set 'network/model' to 'CM02'
 > TEST: Send from a station to a node on the wired network after the AP.
 > ----------------------------------------------------------------------
 > Since AP1 is the limiting link, we have the following constraint for AP1:
@@ -24,8 +25,9 @@ $ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n
 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000343 seconds.
 
 p Test WITHOUT crosstraffic
-$ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0
+$ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0 --cfg=network/model:CM02
 > Configuration change: Set 'network/crosstraffic' to '0'
+> Configuration change: Set 'network/model' to 'CM02'
 > TEST: Send from a station to a node on the wired network after the AP.
 > ----------------------------------------------------------------------
 > Since AP1 is the limiting link, we have the following constraint for AP1:
@@ -44,4 +46,4 @@ $ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=n
 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
 >   mu = 1 / [ 1/2 * 1/49.00487Mbps + 1/49.00487Mbps ] = 49004870
 >   simulation_time = 1000*8 / [ mu / 2 ] =  0.0003264982s (rounded to 0.000326s in SimGrid)
-> Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000326 seconds.
\ No newline at end of file
+> Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000326 seconds.