Bug 1819 - FlowMonitor might cause the simulation to run forever
FlowMonitor might cause the simulation to run forever
Status: NEW
Product: ns-3
Classification: Unclassified
Component: flow-monitor
ns-3-dev
All All
: P5 minor
Assigned To: Gustavo J. A. M. Carneiro
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-24 10:52 EST by Tommaso Pecorella
Modified: 2013-12-24 10:52 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2013-12-24 10:52:37 EST
FlowMonitor relies on the presence of a "Simulator::Stop (some_time_in_the_future);"

If the user forgets this, the simulation will run forever.

The root problem is in this function:
void FlowMonitor::PeriodicCheckForLostPackets ()

This is a truly periodic function, and if nobody is stopping it... it will go on forever. And the simulation with it.