Bug 1031 - Wifi hidden terminal example does not work
Wifi hidden terminal example does not work
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
pre-release
All All
: P2 major
Assigned To: Nicola Baldo
: bug
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-16 10:39 EST by Peter Vingelmann
Modified: 2015-06-20 12:11 EDT (History)
2 users (show)

See Also:


Attachments
attach (deleted)
2015-06-20 08:39 EDT, stiv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Vingelmann 2010-11-16 10:39:25 EST
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.
Comment 1 Nicola Baldo 2010-11-17 07:09:07 EST
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.
Comment 2 Nicola Baldo 2010-11-17 11:12:46 EST
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
Comment 3 Nicola Baldo 2010-11-17 11:13:42 EST
(In reply to comment #2)
>  Bug 192, bug 388 and bug 912 are still there. 

I meant bug 187 instead of bug 192
Comment 4 stiv 2015-06-20 08:39:11 EDT
Created attachment 2069 [details]
attach
Comment 5 Tom Henderson 2015-06-20 12:11:31 EDT
The content of attachment 2069 [details] has been deleted