Bug 438 - csma helper hooks the transmit queue enqueue operation for pcap tracing
csma helper hooks the transmit queue enqueue operation for pcap tracing
Status: RESOLVED DUPLICATE of bug 443
Product: ns-3
Classification: Unclassified
Component: devices
ns-3-dev
All All
: P1 normal
Assigned To: Craig Dowell
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-08 23:41 EST by Craig Dowell
Modified: 2009-02-28 19:38 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig Dowell 2008-12-08 23:41:17 EST
Hooking the transmit queue enqueue is not what I would have expected at all.  That makes it appear that the packet went on the wire when the packet was enqueued.  The packet is actually sent after it is dequeued.

I think the helper should hook the dequeue trace hook for pcap tracing since there can be a significant delta-t between the enqueue and the dequeue.

Perhaps even better, there should be a new low-level trace hook Tx that corresponds to a packet being sent out to the channel.  Right now there is a hole where a packet can be dequeued from the transmit queue and subsequently silently dropped.  This makes it appear as if the packet was transmitted successfully.

I think it would be better to have upper level trace hooks into the transmit queue, and lower level trace hooks at the device/channel interface.  Right now things are mixed and somewhat confused/confusing.
Comment 1 Craig Dowell 2009-02-28 19:38:52 EST

*** This bug has been marked as a duplicate of bug 443 ***