Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix timing of Wi-Fi tests.
[simgrid.git] / teshsuite / models / wifi_usage_decay / wifi_usage_decay.tesh
1 #!/usr/bin/env tesh
2
3 p Test WITH crosstraffic
4 $ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/model:CM02
5 > Configuration change: Set 'network/model' to 'CM02'
6 > TEST: Send from a station to a node on the wired network after the AP.
7 > ----------------------------------------------------------------------
8 > Since AP1 is the limiting link, we have the following constraint for AP1:
9 > 1.05/r_STA1 * rho_STA1 <= 1   (1.05 instead of 1 because of cross-traffic)
10 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
11 > We should thus have:
12 >   mu = 1 / [ 1/1 * 1.05/49.00487Mbps ] = 46671305
13 >   simulation_time = 1000*8 / mu = 0.0001714115 (rounded to 0.000171s in SimGrid)
14 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000171 seconds.
15 >
16 >
17 > TEST: Send from a station to another station on the same AP.
18 > ------------------------------------------------------------
19 > We have the following constraint for AP1:
20 > 1.05/r_STA1 * rho_STA1 + 1.05/r_STA2 * rho_2 <= 1     (1.05 instead of 1 because of cross-traffic)
21 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
22 > We should thus have:
23 >   mu = 1 / [ 1/2 * 1.05/49.00487Mbps + 1.05/49.00487Mbps ] = 46671305
24 >   simulation_time = 1000*8 / [ mu / 2 ] = 0.0003428231s (rounded to 0.000343s in SimGrid)
25 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000343 seconds.
26
27 p Test WITHOUT crosstraffic
28 $ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0 --cfg=network/model:CM02
29 > Configuration change: Set 'network/crosstraffic' to '0'
30 > Configuration change: Set 'network/model' to 'CM02'
31 > TEST: Send from a station to a node on the wired network after the AP.
32 > ----------------------------------------------------------------------
33 > Since AP1 is the limiting link, we have the following constraint for AP1:
34 > 1/r_STA1 * rho_STA1 <= 1  (there is no cross-traffic)
35 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
36 > We should thus have:
37 >   mu = 1 / [ 1/1 * 1/49.00487Mbps ] = 49004870
38 >   simulation_time = 1000*8 / mu = 0.0001632491s (rounded to 0.000163s in SimGrid)
39 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000163 seconds.
40 >
41 >
42 > TEST: Send from a station to another station on the same AP.
43 > ------------------------------------------------------------
44 > We have the following constraint for AP1:
45 > 1/r_STA1 * rho_STA1 +    1/r_STA2 * rho_2 <= 1   (there is no cross-traffic)
46 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
47 >   mu = 1 / [ 1/2 * 1/49.00487Mbps + 1/49.00487Mbps ] = 49004870
48 >   simulation_time = 1000*8 / [ mu / 2 ] =  0.0003264982s (rounded to 0.000326s in SimGrid)
49 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000326 seconds.