Bug 2275 - AdhocWifiMac not compatible with 802.11n/ac
AdhocWifiMac not compatible with 802.11n/ac
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: wifi
pre-release
All All
: P5 normal
Assigned To: sebastien.deronne
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-20 18:58 UTC by Tom Henderson
Modified: 2016-03-01 14:41 UTC (History)
2 users (show)

See Also:


Attachments
initial suggested patch (716 bytes, patch)
2016-01-20 18:58 UTC, Tom Henderson
Details | Diff
patch to fix (15.80 KB, patch)
2016-02-26 16:38 UTC, Tom Henderson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Henderson 2016-01-20 18:58:44 UTC
Created attachment 2245 [details]
initial suggested patch

List of supported Mcs must be added upon first Enqueue().  Same type of fix will likely be needed for 802.11ac.
Comment 1 sebastien.deronne 2016-01-21 16:03:37 UTC
Tom, when using ConstantRate, 802.11n works ok with adhoc.
I assume it is fixed needed when a HT rate adaptation algorithm is used.
I tested with HT ideal and it indeed fixes the bug.

I suggest to extend to VHT as well.
Comment 2 Matías Richart 2016-02-20 08:58:32 UTC
Hi.

For which code version is the proposed patch??

I don't see a m_phy member in adhoc-wifi-mac.cc in current ns-3-dev
I propose to create a function similar to AddAllSupportedModes in the wifi manager.
If you agree I can upload a patch.
Comment 3 Tom Henderson 2016-02-20 10:52:55 UTC
(In reply to Matías Richart from comment #2)
> Hi.
> 
> For which code version is the proposed patch??
> 
> I don't see a m_phy member in adhoc-wifi-mac.cc in current ns-3-dev

The member is in RegularWifiMac.

> I propose to create a function similar to AddAllSupportedModes in the wifi
> manager.
> If you agree I can upload a patch.


Presently, there is an assumption in the Adhoc model that all stations can support all rates.  I would like to extend the assumption of supported rates so that HT and VHT are supported, for rate control.  However, you are suggesting to enhance the model so that only supported modes are added and sent in the beacon.  I would be fine also with this but I just suggest two things:  1) please look at moving this method into RegularWifiMac to avoid duplicating it (if possible) in Adhoc (plus other beaconing wi-fis including mesh and wave), and 2) let's make that patch a second step beyond the original scope of this bug (which is feasible to fix for this coming release).
Comment 4 Matías Richart 2016-02-23 15:58:53 UTC
(In reply to Tom Henderson from comment #3)
> (In reply to Matías Richart from comment #2)
> > Hi.
> > 
> > For which code version is the proposed patch??
> > 
> > I don't see a m_phy member in adhoc-wifi-mac.cc in current ns-3-dev
> 
> The member is in RegularWifiMac.
> 
> > I propose to create a function similar to AddAllSupportedModes in the wifi
> > manager.
> > If you agree I can upload a patch.
> 
> 
> Presently, there is an assumption in the Adhoc model that all stations can
> support all rates.  I would like to extend the assumption of supported rates
> so that HT and VHT are supported, for rate control.  However, you are
> suggesting to enhance the model so that only supported modes are added and
> sent in the beacon. 
Not really. I was just suggesting to do the iteration in the manager just to follow the same design as AddAllSupportedModes.

 I would be fine also with this but I just suggest two
> things:  1) please look at moving this method into RegularWifiMac to avoid
> duplicating it (if possible) in Adhoc (plus other beaconing wi-fis including
> mesh and wave), and 2) let's make that patch a second step beyond the
> original scope of this bug (which is feasible to fix for this coming
> release).
Comment 5 Matías Richart 2016-02-23 16:05:25 UTC
(In reply to Matías Richart from comment #4)
> (In reply to Tom Henderson from comment #3)
> > (In reply to Matías Richart from comment #2)
> > > Hi.
> > > 
> > > For which code version is the proposed patch??
> > > 
> > > I don't see a m_phy member in adhoc-wifi-mac.cc in current ns-3-dev
> > 
> > The member is in RegularWifiMac.
> > 
> > > I propose to create a function similar to AddAllSupportedModes in the wifi
> > > manager.
> > > If you agree I can upload a patch.
> > 
> > 
> > Presently, there is an assumption in the Adhoc model that all stations can
> > support all rates.  I would like to extend the assumption of supported rates
> > so that HT and VHT are supported, for rate control.  
Does this assumption also consider that the receiver station supports HT and/or VHT?
If yes, we should also call AddStationHtCapabilities. But with which capabilities (sgi, chWidth, greenfield)? 
However, you are
> > suggesting to enhance the model so that only supported modes are added and
> > sent in the beacon. 
> Not really. I was just suggesting to do the iteration in the manager just to
> follow the same design as AddAllSupportedModes.
> 
>  I would be fine also with this but I just suggest two
> > things:  1) please look at moving this method into RegularWifiMac to avoid
> > duplicating it (if possible) in Adhoc (plus other beaconing wi-fis including
> > mesh and wave), and 2) let's make that patch a second step beyond the
> > original scope of this bug (which is feasible to fix for this coming
> > release).
Comment 6 Tom Henderson 2016-02-26 16:38:23 UTC
Created attachment 2304 [details]
patch to fix
Comment 7 sebastien.deronne 2016-02-26 16:54:33 UTC
It looks ok at first sight, I'll try to test it quickly tomorrow.
Comment 8 sebastien.deronne 2016-02-28 04:39:21 UTC
I suggest to add a trace log in WifiRemoteStationManager::AddAllSupportedMcs, otherwise patch is working fine.
Comment 9 sebastien.deronne 2016-02-29 16:20:49 UTC
Tom, feel free to deliver the patch once it's ok at your side.
Comment 10 sebastien.deronne 2016-03-01 14:41:58 UTC
pushed in changeset 11943:d7faa25126a9