3 p Test WITH crosstraffic
4 $ ${bindir:=.}/wifi_usage ${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 > We should thus have:
11 > mu = 1 / [ 1/1 * 1.05/54Mbps ] = 51428571
12 > simulation_time = 1000*8 / mu = 0.0001555556s (rounded to 0.000156s in SimGrid)
13 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000156 seconds.
16 > TEST: Send from a station to another station on the same AP.
17 > ------------------------------------------------------------
18 > We have the following constraint for AP1:
19 > 1.05/r_STA1 * rho_STA1 + 1.05/r_STA2 * rho_2 <= 1 (1.05 instead of 1 because of cross-traffic)
20 > We should thus have:
21 > mu = 1 / [ 1/2 * 1.05/54Mbps + 1.05/54Mbps ] = 51428571
22 > simulation_time = 1000*8 / [ mu / 2 ] = 0.0003111111s
23 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000311 seconds.
25 p Test WITHOUT crosstraffic
26 $ ${bindir:=.}/wifi_usage ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0 --cfg=network/model:CM02
27 > Configuration change: Set 'network/crosstraffic' to '0'
28 > Configuration change: Set 'network/model' to 'CM02'
29 > TEST: Send from a station to a node on the wired network after the AP.
30 > ----------------------------------------------------------------------
31 > Since AP1 is the limiting link, we have the following constraint for AP1:
32 > 1/r_STA1 * rho_STA1 <= 1 (there is no cross-traffic)
33 > We should thus have:
34 > mu = 1 / [ 1/1 * 1/54Mbps ] = 5.4e+07
35 > simulation_time = 1000*8 / mu = 0.0001481481s
36 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000148 seconds.
39 > TEST: Send from a station to another station on the same AP.
40 > ------------------------------------------------------------
41 > We have the following constraint for AP1:
42 > 1/r_STA1 * rho_STA1 + 1/r_STA2 * rho_2 <= 1 (there is no cross-traffic)
43 > mu = 1 / [ 1/2 * 1/54Mbps + 1/54Mbps ] = 5.4e+07
44 > simulation_time = 1000*8 / [ mu / 2 ] = 0.0002962963s
45 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000296 seconds.