Bugzilla – Bug 873
Queue occupancy counter not decremented in WifiMacQueue::Remove()
Last modified: 2010-05-10 08:36:04 UTC
When playing with the Wi-Fi MSDU aggregation (i.e., A-MSDU) support at the head of ns-3-dev (changeset 6191) I noticed that in my simulation (which involved UDP from an on-off source on a QstaWifiMac with an installed MsduStandardAggregator, toward a packet sink on a QapWifiMac) the aggregation would start out as expected but, as the "over-the-air" PCAP trace showed, after a short while the aggregation would stop and I would just get a single frame at a time. I've traced this back to the fact that in WifiMacQueue::Remove() the m_size member is not being decremented when the packet is removed.
Created attachment 829 [details] proposed patch
(In reply to comment #1) > Created an attachment (id=829) [details] > proposed patch can you confirm that the patch fixes your problem?
Thanks for your quick work, Nicola. Yes, that is exactly the patch which fixes the issue. I hadn't quite yet got around to posting this comment pointing out a regression test which demonstrates the problem at: http://codereview.appspot.com/854047 ...and my proposed patch (which was identical to yours) at... http://codereview.appspot.com/809046
changeset 6224 8386567abea1
(In reply to comment #4) > changeset 6224 8386567abea1 Should the regression test for this bug that I proposed above at: http://codereview.appspot.com/854047 ...be pushed too (obviously not while code is frozen for ns-3.8)?
(In reply to comment #5) > Should the regression test for this bug that I proposed above at: > > http://codereview.appspot.com/854047 > > ...be pushed too (obviously not while code is frozen for ns-3.8)? Good point... sorry for overlooking that. I had a look at your test, it is ok for me (and in general more tests are always welcome!). So I agree with pushing it to ns-3-dev as soon as it gets in the open phase. I am reopening this bug to not forget this issue.
(In reply to comment #6) Regression test pushed to ns-3-dev as changeset 6293:11a2f62de3ec Bug is now resolved.