Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
get rid of SIMIX_clean
[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
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 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
10 > We should thus have:
11 >   mu = 1 / [ 1/1 * 1.05/49.00487Mbps ] = 46671305
12 >   simulation_time = 1000*8 / mu = 0.0001714115 (rounded to 0.000171s in SimGrid)
13 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000171 seconds.
14 >
15 >
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 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
21 > We should thus have:
22 >   mu = 1 / [ 1/2 * 1.05/49.00487Mbps + 1.05/49.00487Mbps ] = 46671305
23 >   simulation_time = 1000*8 / [ mu / 2 ] = 0.0003428231s (rounded to 0.000343s in SimGrid)
24 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000343 seconds.
25
26 p Test WITHOUT crosstraffic
27 $ ${bindir:=.}/wifi_usage_decay ${platfdir}/wifi.xml --log=root.fmt=%m%n --cfg=network/crosstraffic:0
28 > Configuration change: Set 'network/crosstraffic' to '0'
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 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
34 > We should thus have:
35 >   mu = 1 / [ 1/1 * 1/49.00487Mbps ] = 49004870
36 >   simulation_time = 1000*8 / mu = 0.0001632491s (rounded to 0.000163s in SimGrid)
37 > Actual result: Sending 1000 bytes from 'Station 1' to 'node1' takes 0.000163 seconds.
38 >
39 >
40 > TEST: Send from a station to another station on the same AP.
41 > ------------------------------------------------------------
42 > We have the following constraint for AP1:
43 > 1/r_STA1 * rho_STA1 +    1/r_STA2 * rho_2 <= 1   (there is no cross-traffic)
44 > However, decay model specify that for 2 stations, we have 54Mbps become 49.00487
45 >   mu = 1 / [ 1/2 * 1/49.00487Mbps + 1/49.00487Mbps ] = 49004870
46 >   simulation_time = 1000*8 / [ mu / 2 ] =  0.0003264982s (rounded to 0.000326s in SimGrid)
47 > Actual result: Sending 1000 bytes from 'Station 1' to 'Station 2' takes 0.000326 seconds.