Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make this test more verbose to improve debuggability
[simgrid.git] / teshsuite / surf / wifi_usage / wifi_usage.tesh
1 #!/usr/bin/env tesh
2
3 p Test WITH crosstraffic
4 $ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n
5 > TEST: Send from a station to a node on the wired network after the AP.
6 > ----------------------------------------------------------------------
7 > Since AP1 is the limiting link, we have the following constraint for AP1:
8 > 1.05/r_STA1 * rho_STA1 <= 1   (1.05 instead of 1 because of cross-traffic)
9 > We should thus have:
10 >   mu = 1 / [ 1/1 * 1.05/54Mbps ] = 51428571
11 >   simulation_time = 1000*8 / mu = 0.0001555556s (rounded to 0.000156s in SimGrid)
12 > Actual result: Sending 1000 bytes from 'Station 1' to 'NODE1' takes 0.000156 seconds.
13 >
14 >
15 > TEST: Send from a station to another station on the same AP.
16 > ------------------------------------------------------------
17 > We have the following constraint for AP1:
18 > 1.05/r_STA1 * rho_STA1 + 1.05/r_STA2 * rho_2 <= 1     (1.05 instead of 1 because of cross-traffic)
19 > We should thus have:
20 >   mu = 1 / [ 1/2 * 1.05/54Mbps + 1.05/54Mbps ] =  51428571
21 >   simulation_time = 1000*8 / [ mu / 2 ] = 0.0003111111s
22 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000311 seconds.
23
24 p Test WITHOUT crosstraffic
25 $ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0
26 > Configuration change: Set 'network/crosstraffic' to '0'
27 > TEST: Send from a station to a node on the wired network after the AP.
28 > ----------------------------------------------------------------------
29 > Since AP1 is the limiting link, we have the following constraint for AP1:
30 > 1/r_STA1 * rho_STA1 <= 1  (there is no cross-traffic)
31 > We should thus have:
32 >   mu = 1 / [ 1/1 * 1/54Mbps ] = 5.4e+07
33 >   simulation_time = 1000*8 / mu = 0.0001481481s
34 > Actual result: Sending 1000 bytes from 'Station 1' to 'NODE1' takes 0.000148 seconds.
35 >
36 >
37 > TEST: Send from a station to another station on the same AP.
38 > ------------------------------------------------------------
39 > We have the following constraint for AP1:
40 > 1/r_STA1 * rho_STA1 +    1/r_STA2 * rho_2 <= 1   (there is no cross-traffic)
41 >   mu = 1 / [ 1/2 * 1/54Mbps + 1/54Mbps ] = 5.4e+07
42 >   simulation_time = 1000*8 / [ mu / 2 ] = 0.0002962963s
43 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000296 seconds.