[ndnSIM] How to trace the latency of request, duration from sending the Interest to receiving corresponding Data

Alex Afanasyev alexander.afanasyev at ucla.edu
Fri Jan 18 16:45:29 PST 2013


Hi Xiaoke,

I have implemented a basic latency measurements in ndn::Consumer app (should work in all derivative-classes as well) and a simple tracing helper. 
You give it a try and tell me if something is wrong or strange.

You can check out basic doc here: http://ndnsim.net/metric.html#application-level-trace-helper

---
Alex

On Jan 17, 2013, at 12:35 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:

> Thank you Alex.
> I think Interest-Data latency also works for me. But request latency (including retransmission delays) is better than Interest-Data latency. So I will try with I-D latency first and wait for you update.
> 
> P.S, if the Interest don't get it's data or get an Nack, how do you define its latency in the program?
> 
> thanks
> 
> My Regards,
> Xiaoke Jiang (蒋小可)
> 
> Ph.D Candidate,
> Dept. of Computer Science and Technology,
> Tsinghua University, P. R. China
> 
> On Jan 17, 2013, at 4:13 AM, Alexander Afanasyev <alexander.afanasyev at ucla.edu> wrote:
> 
>> Hi Xiaoke,
>> 
>> It is up to the particular application to track down Interest-Data latency.  There is another question regarding in which latency you're interested: just Interest-Data or first Interest for sequence number and reception of Data (which includes all the retransmission delays).
>> 
>> Currently in ndn::Consumer-based apps, there is tracking of just Interest-Data packets (i.e., without retransmission delays) within RTT estimator variable (Ptr<RttEstimator> m_rtt) and in timeout container (SeqTimeoutsContainer m_seqTimeouts).   
>> 
>> If you want/need the other delay, including all retransmission timeouts, then it should be straightforward to implement, for example, using SeqTimeoutsContainer structure (similarly how m_seqLifetimes in ndn::Consumer).
>> 
>> I think, and would do it when I can get time for that, it is a good idea to export both delay parameters as a trace sources in ndn::Consumer class, as well as write a simple metric helper.
>> 
>> ---
>> Alex
>> 
>> On Jan 16, 2013, at 5:36 AM, Xiaoke Jiang <shock.jiang at gmail.com> wrote:
>> 
>>> Hi All, 
>>> 	How to trace the latency of request, duration from sending the Interest to receiving corresponding Data.
>>> 	
>>> 	Is there anyone can give some hint? Thank you in advance.
>>> 
>>> thanks
>>> 
>>> My Regards,
>>> Xiaoke Jiang (蒋小可)
>>> 
>>> Ph.D Candidate,
>>> Dept. of Computer Science and Technology,
>>> Tsinghua University, P. R. China
>> 
> 
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim





More information about the ndnSIM mailing list