Bug 2355

Summary: code review: RRPAA for WiFi
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: wifiAssignee: Matías Richart <matis18>
Status: RESOLVED FIXED    
Severity: enhancement CC: ns-bugs, sebastien.deronne
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Tom Henderson 2016-03-31 15:23:31 UTC
code review contributed by Matias:
https://codereview.appspot.com/254440043/
Comment 1 sebastien.deronne 2016-10-15 11:23:37 UTC
Matias, any updated patch for this?
Comment 2 sebastien.deronne 2017-01-02 02:53:53 UTC
Matias, do you have updates on this? We are close to the next release and I think it would be nice to have this one included.
Comment 3 Matías Richart 2017-01-11 14:29:05 UTC
(In reply to sebastien.deronne from comment #2)
> Matias, do you have updates on this? We are close to the next release and I
> think it would be nice to have this one included.

Sorry for not answering sooner.

I tried to extend the algorithm for HT but it is more difficult than expected (I mentioned ). A new and different strategy is needed to do it correctly. The algorithm is not directly applicable to HT.

So, I can correct the last comments on code review and uploaded as it is or we can dismiss the contribution (do you see it relevant if HT is not supported?).
Comment 4 sebastien.deronne 2017-01-11 14:31:31 UTC
(In reply to Matías Richart from comment #3)
> (In reply to sebastien.deronne from comment #2)
> > Matias, do you have updates on this? We are close to the next release and I
> > think it would be nice to have this one included.
> 
> Sorry for not answering sooner.
> 
> I tried to extend the algorithm for HT but it is more difficult than
> expected (I mentioned ). A new and different strategy is needed to do it
> correctly. The algorithm is not directly applicable to HT.
> 
> So, I can correct the last comments on code review and uploaded as it is or
> we can dismiss the contribution (do you see it relevant if HT is not
> supported?).

Tom, what is your opinion?
I think we could deliver this for the next release, and eventually open a new thread to have support for HT/VHT, unless you decide this will not support HT/VHT.
Comment 5 sebastien.deronne 2017-01-29 08:53:05 UTC
Tom, Mathias,
Can we include this patch in the upcoming release with a restriction for HT/VHT/HE?
If once we plan to add support for HT/VHT/HE, then a new thread could be opened (a lot of other managers do not support HT yet anyway).
Comment 6 Tom Henderson 2017-01-29 16:31:58 UTC
(In reply to sebastien.deronne from comment #5)
> Tom, Mathias,
> Can we include this patch in the upcoming release with a restriction for
> HT/VHT/HE?

Yes.

> If once we plan to add support for HT/VHT/HE, then a new thread could be
> opened (a lot of other managers do not support HT yet anyway).

Agree.
Comment 7 sebastien.deronne 2017-01-30 07:40:15 UTC
Matias, can you update the patch and close this bug?
Comment 8 Matías Richart 2017-01-31 17:03:25 UTC
(In reply to sebastien.deronne from comment #7)
> Matias, can you update the patch and close this bug?

I updated the patch and commented the changes in rietveld.
Comment 9 sebastien.deronne 2017-02-02 03:51:11 UTC
(In reply to Matías Richart from comment #8)
> (In reply to sebastien.deronne from comment #7)
> > Matias, can you update the patch and close this bug?
> 
> I updated the patch and commented the changes in rietveld.

OK for me
Comment 10 sebastien.deronne 2017-02-06 14:55:27 UTC
Tom, are you also fine with the latest patch?
Comment 11 sebastien.deronne 2017-02-15 15:35:40 UTC
I merged the code with the latest ns-3-dev, all tests pass fine.

Matias, could you just please address those 4 Doxygen warnings so that I can drop the code changes:

src/wifi/model/rrpaa-wifi-manager.h:56: warning: Member m_ori (variable) of class ns3::Thresholds is not documented.
src/wifi/model/rrpaa-wifi-manager.h:57: warning: Member m_mtl (variable) of class ns3::Thresholds is not documented.
src/wifi/model/rrpaa-wifi-manager.h:58: warning: Member m_ewnd (variable) of class ns3::Thresholds is not documented.
src/wifi/model/rrpaa-wifi-manager.h:235: warning: Member m_uniformRandomVariable (variable) of class ns3::RrpaaWifiManager is not documented.
Comment 12 Matías Richart 2017-02-15 16:36:02 UTC
(In reply to sebastien.deronne from comment #11)
> I merged the code with the latest ns-3-dev, all tests pass fine.
> 
> Matias, could you just please address those 4 Doxygen warnings so that I can
> drop the code changes:
> 
> src/wifi/model/rrpaa-wifi-manager.h:56: warning: Member m_ori (variable) of
> class ns3::Thresholds is not documented.
> src/wifi/model/rrpaa-wifi-manager.h:57: warning: Member m_mtl (variable) of
> class ns3::Thresholds is not documented.
> src/wifi/model/rrpaa-wifi-manager.h:58: warning: Member m_ewnd (variable) of
> class ns3::Thresholds is not documented.
> src/wifi/model/rrpaa-wifi-manager.h:235: warning: Member
> m_uniformRandomVariable (variable) of class ns3::RrpaaWifiManager is not
> documented.

Done. I uploaded a new patch set, but if you just need a patch for those warning let me know.
In the patch set I included some corrections for merge conflicts with master.
Comment 13 sebastien.deronne 2017-02-15 16:37:46 UTC
(In reply to Matías Richart from comment #12)
> (In reply to sebastien.deronne from comment #11)
> > I merged the code with the latest ns-3-dev, all tests pass fine.
> > 
> > Matias, could you just please address those 4 Doxygen warnings so that I can
> > drop the code changes:
> > 
> > src/wifi/model/rrpaa-wifi-manager.h:56: warning: Member m_ori (variable) of
> > class ns3::Thresholds is not documented.
> > src/wifi/model/rrpaa-wifi-manager.h:57: warning: Member m_mtl (variable) of
> > class ns3::Thresholds is not documented.
> > src/wifi/model/rrpaa-wifi-manager.h:58: warning: Member m_ewnd (variable) of
> > class ns3::Thresholds is not documented.
> > src/wifi/model/rrpaa-wifi-manager.h:235: warning: Member
> > m_uniformRandomVariable (variable) of class ns3::RrpaaWifiManager is not
> > documented.
> 
> Done. I uploaded a new patch set, but if you just need a patch for those
> warning let me know.
> In the patch set I included some corrections for merge conflicts with master.

Yes just the warnings, the rest is merged already.
Did you change something else? Otherwise I just take the Doxygen changes.
Comment 14 sebastien.deronne 2017-02-15 17:38:07 UTC
(In reply to sebastien.deronne from comment #13)
> (In reply to Matías Richart from comment #12)
> > (In reply to sebastien.deronne from comment #11)
> > > I merged the code with the latest ns-3-dev, all tests pass fine.
> > > 
> > > Matias, could you just please address those 4 Doxygen warnings so that I can
> > > drop the code changes:
> > > 
> > > src/wifi/model/rrpaa-wifi-manager.h:56: warning: Member m_ori (variable) of
> > > class ns3::Thresholds is not documented.
> > > src/wifi/model/rrpaa-wifi-manager.h:57: warning: Member m_mtl (variable) of
> > > class ns3::Thresholds is not documented.
> > > src/wifi/model/rrpaa-wifi-manager.h:58: warning: Member m_ewnd (variable) of
> > > class ns3::Thresholds is not documented.
> > > src/wifi/model/rrpaa-wifi-manager.h:235: warning: Member
> > > m_uniformRandomVariable (variable) of class ns3::RrpaaWifiManager is not
> > > documented.
> > 
> > Done. I uploaded a new patch set, but if you just need a patch for those
> > warning let me know.
> > In the patch set I included some corrections for merge conflicts with master.
> 
> Yes just the warnings, the rest is merged already.
> Did you change something else? Otherwise I just take the Doxygen changes.

I can see from diff the updated Doxygen, thanks. I will deliver the final patch.
Comment 15 sebastien.deronne 2017-02-16 00:55:28 UTC
pushed in changeset 12694:5209b094838e
Comment 16 Matías Richart 2017-02-16 10:52:54 UTC
(In reply to sebastien.deronne from comment #15)
> pushed in changeset 12694:5209b094838e

great! thanks to you and Tom for the revision.