Bugzilla – Bug 1031
Wifi hidden terminal example does not work
Last modified: 2015-06-20 12:11:31 UTC
examples/wireless/wifi-hidden-terminal example doesn't work in ns-3-dev or in ns-3.9. How to reproduce: $ cd ns3dev/ $ ./waf --run wifi-hidden-terminal Hidden station experiment with RTS/CTS disabled: Flow 1 (10.0.0.1 -> 10.0.0.2) Tx Bytes: 14250000 Rx Bytes: 0 Throughput: 0 Mbps Flow 2 (10.0.0.3 -> 10.0.0.2) Tx Bytes: 14250000 Rx Bytes: 0 Throughput: 0 Mbps ------------------------------------------------ Hidden station experiment with RTS/CTS enabled: Flow 1 (10.0.0.1 -> 10.0.0.2) Tx Bytes: 14250000 Rx Bytes: 0 Throughput: 0 Mbps Flow 2 (10.0.0.3 -> 10.0.0.2) Tx Bytes: 14250000 Rx Bytes: 0 Throughput: 0 Mbps Well, the nodes are not getting a single bit :( Looks like there is a problem with the Wifi. At the same time all tests pass.
I think there are three issues here: 1) 802.11b rates used while 802.11a is the default standard. Trivial to fix. 2) Lack of "fuzz" - a.k.a. simulations are too deterministic, especially with CBR traffic. See bug 388 and bug 912. 3) this is a clear scenario in which "perfect ARP" would be needed. See bug 187 For now, I suggest to fix the example program by adding some workaround to the above problems.
changeset: 6664:ec5336f1f710 This changeset provides only some workarounds. Bug 192, bug 388 and bug 912 are still there. Now the output of examples/wireless/wifi-hidden-terminal is: Hidden station experiment with RTS/CTS disabled: Flow 1 (10.0.0.1 -> 10.0.0.2) Tx Bytes: 3847500 Rx Bytes: 351576 Throughput: 0.268231 Mbps Flow 2 (10.0.0.3 -> 10.0.0.2) Tx Bytes: 3848412 Rx Bytes: 311904 Throughput: 0.237964 Mbps ------------------------------------------------ Hidden station experiment with RTS/CTS enabled: Flow 1 (10.0.0.1 -> 10.0.0.2) Tx Bytes: 3847500 Rx Bytes: 285456 Throughput: 0.217786 Mbps Flow 2 (10.0.0.3 -> 10.0.0.2) Tx Bytes: 3848412 Rx Bytes: 289104 Throughput: 0.220569 Mbps
(In reply to comment #2) > Bug 192, bug 388 and bug 912 are still there. I meant bug 187 instead of bug 192
Created attachment 2069 [details] attach
The content of attachment 2069 [details] has been deleted