Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
integrate the wifi unit tests
[simgrid.git] / teshsuite / surf / wifi_usage / 2STA.cpp
similarity index 87%
rename from teshsuite/surf/wifi_usage/2STA-CT.cpp
rename to teshsuite/surf/wifi_usage/2STA.cpp
index be6b13d..a8d1dbe 100644 (file)
@@ -20,11 +20,14 @@ static void flowActor(std::vector<std::string> args);
 /**
  * Theory says:
  *   - When two STA communicates on the same AP we have the following AP constraint:
- *     1.05/r_STA1 * rho_STA1 + 1.05/r_STA2 * rho_2 <= 1
- *   - Thus:
+ *     w/o cross-traffic:       1/r_STA1 * rho_STA1 +    1/r_STA2 * rho_2 <= 1
+ *     with cross-traffic:   1.05/r_STA1 * rho_STA1 + 1.05/r_STA2 * rho_2 <= 1
+ *   - Thus without cross-traffic:
+ *      mu = 1 / [ 1/2 * 1/54Mbps + 1/54Mbps ] = 5.4e+07
+ *      simulation_time = 1000*8 / [ mu / 2 ] = 0.0002962963s
+ *   - Thus with cross-traffic:
  *      mu = 1 / [ 1/2 * 1.05/54Mbps + 1.05/54Mbps ] =  51428571
  *      simulation_time = 1000*8 / [ mu / 2 ] = 0.0003111111s
- *
  */
 int main(int argc, char** argv)
 {