[ndnSIM] How to calculate RTT in ndnSIM
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Fri Jul 13 19:13:34 PDT 2018
Hi Gabriel,
correct, that is another way to do that. I typically need to make different decisions in my applications based on the RTT value. That is why I need to be aware of RTT during my simulation rather than looking at the RTT value(s) when the simulation is over. I presumed that the OP may have a similar objective. If not, using the app delay trace should be fine too.
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Jul 13, 2018, at 7:09 PM, Gabriel Arrobo <gab.arrobo at gmail.com> wrote:
>
> Hi Spyridon,
>
> What about using the AppDelayTracer for this purpose?
>
> Thanks!
>
> Best regards,
> Gabriel
>
>
> On Fri, Jul 13, 2018 at 7:02 PM Spyridon (Spyros) Mastorakis <mastorakis at cs.ucla.edu <mailto:mastorakis at cs.ucla.edu>> wrote:
> Hi,
>
> I would suggest you implement a queue of outstanding Interests on your own. Every time you send out an Interest, you record the name and the timestamp. When a data packet comes back, you find the corresponding Interest name in this queue and you calculate the RTT of each Interest/Data exchange. The overall RTT can be the average of the RTT of all the Interest/Data exchanges (or you can use some sort of moving average if you want).
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
>> On Jul 13, 2018, at 8:56 AM, madhurima buragohain <madhurimajya at gmail.com <mailto:madhurimajya at gmail.com>> wrote:
>>
>> Hi All,
>>
>> Could anyone can help me how to calculate RTT using ndn-rtt-estimator.cpp file? or any other alternative solution.
>
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu <mailto:ndnSIM at lists.cs.ucla.edu>
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim <http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180713/44b13ffd/attachment-0001.html>
More information about the ndnSIM
mailing list