X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e4688a0f983905a249fcb89697ee069e3d6f2334:/teshsuite/surf/wifi_usage/2STA-CT.cpp..356466da3fe215d9c33bd63f59230fb8c60da021:/teshsuite/surf/wifi_usage/2STA.cpp diff --git a/teshsuite/surf/wifi_usage/2STA-CT.cpp b/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 be6b13d5c4..a8d1dbe95c 100644 --- a/teshsuite/surf/wifi_usage/2STA-CT.cpp +++ b/teshsuite/surf/wifi_usage/2STA.cpp @@ -20,11 +20,14 @@ static void flowActor(std::vector 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) {