Using Flow Monitor with maxBytes attribute

39 views
Skip to first unread message

Shashank Shekhar

unread,
Apr 17, 2020, 2:30:12 AM4/17/20
to ns-3-users
Hi,

I am trying to measure the throughput of a point to point link and using BulkSendApplication to send the packets. The problem i am facing is that I do not want to use Simulator.Stop(Seconds()) since I need to send a fixed amount of data (done by setting maxBytes attribute to non-zero value) and monitor the throughput for the flow using FlowMonitor. 

if I do not use Simulation::Stop(), FlowMonitor creates problems as it keeps creating events in a recurring fashion and thus never terminates.

Is there an alternative to be able to use FlowMonitor and also be able to specify the fixed amount of data that needs to be transferred rather than a fixed Simulation stop time.

Thank You
Shashank Shekhar

Lakshmi Krishnaswamy

unread,
May 21, 2020, 9:57:46 PM5/21/20
to ns-3-users
Hi, 

Have you already fixed this bug?
I am just seeing this post, even I have a similar case and the work around I am trying (not sure if it is correct), is such that it just reads the pre-determined required amount of data - from a file, and once that is done, the simulation ends. 

I am facing one issue however, which is why I am unable to verify this method - I am not able to read flow sizes of ~500MB using MaxBytes attribute, or I am not sure if there is some other bug. 
Reply all
Reply to author
Forward
0 new messages