Bug 2056

Summary: SimpleNetDevice doesn't respect the output bandwidth limit
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

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 ***