This patch adds a Remove method to the Queue base class. This is needed by ...
9 years, 11 months ago
(2016-04-26 16:05:57 UTC)
#1
This patch adds a Remove method to the Queue base class. This is needed by
fq-codel to drop the packet "from the head of the queue with the largest current
byte count" (as stated in draft-ietf-aqm-fq-codel-06).
Calling CoDel::Dequeue might drop some packets in addition to dequeuing a
packet, so it is not an option.
This patch depends on the fixes to bugs #2384 and #2389. All the changes can be
also seen via github:
https://github.com/stavallo/ns-3-dev-git/commits/tc-fixes
9 years, 11 months ago
(2016-05-09 17:15:51 UTC)
#4
On 2016/05/06 16:57:19, Stefano Avallone wrote:
> https://codereview.appspot.com/292540043/diff/1/src/network/utils/queue.h
> File src/network/utils/queue.h (right):
>
>
https://codereview.appspot.com/292540043/diff/1/src/network/utils/queue.h#new...
> src/network/utils/queue.h:75: bool Remove (void);
> basically because Remove is meant to drop a packet and the user should have no
> interest in the dropped packet (otherwise, the user should call Dequeue).
> Anyway, if you prefer to keep symmetry, we can have Remove return the dropped
> packet.
I don't feel strongly but it just seems to me that you can 1) keep symmetry, and
2) provide more information to the caller with no cost to us (a null pointer
value is equivalent to false). Who knows whether someone in the future may find
it useful to inspect the removed packet?
Issue 292540043: Add a Remove method to the Queue base class
(Closed)
Created 9 years, 11 months ago by Stefano Avallone
Modified 9 years, 10 months ago
Reviewers: Tom Henderson, n.p
Base URL:
Comments: 2