Bug 2056 - SimpleNetDevice doesn't respect the output bandwidth limit
SimpleNetDevice doesn't respect the output bandwidth limit
Status: RESOLVED DUPLICATE of bug 2138
Product: ns-3
Classification: Unclassified
Component: network
ns-3-dev
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-01 04:39 UTC by Tommaso Pecorella
Modified: 2015-06-22 04:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2015-02-01 04:39:32 UTC
network/utils/simple-net-device.cc - line 447

-      if (m_queue->GetNPackets () == 1)
+      if (m_queue->GetNPackets () == 1 && !TransmitCompleteEvent.IsRunning ())

rationale: the packet is scheduled and removed from the queue. The next one will find the queue empty, but the previous packet is being transmitted. The next packet ignore that and id transmitted no matter what.
Comment 1 Tommaso Pecorella 2015-06-22 04:13:09 UTC
I shouldn't fill bugs late night. I forget about them and I do double submissions.

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