Bug 1031

Summary: Wifi hidden terminal example does not work
Product: ns-3 Reporter: Peter Vingelmann <petya>
Component: wifiAssignee: Nicola Baldo <nicola>
Status: RESOLVED FIXED    
Severity: major CC: ns-bugs, storme1000
Priority: P2 Keywords: bug
Version: pre-release   
Hardware: All   
OS: All   
Attachments: attach

Description Peter Vingelmann 2010-11-16 10:39:25 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.
Comment 1 Nicola Baldo 2010-11-17 07:09:07 UTC
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 UTC
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 UTC
(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 UTC
Created attachment 2069 [details]
attach
Comment 5 Tom Henderson 2015-06-20 12:11:31 UTC
The content of attachment 2069 [details] has been deleted