[ndnSIM] How to calculate RTT value in ndnSIM

Klaus Schneider klaus at cs.arizona.edu
Tue Jul 31 13:30:43 PDT 2018


Also, if you want the RTT for every single packet, you can look into 
RttMeanDeviation::AckSeq():

> m = Simulator::Now() - i->time; // Elapsed time

Then use this time right there, or store it in a map<seq, Time>.

Best regards,
Klaus


On 31/07/18 13:23, Klaus Schneider wrote:
> I think it's quite well documented in ndn-rtt-estimator.hpp
> 
> You probably want to use
> 
>>
>>   /**
>>    * \brief gets the current RTT estimate.
>>    * \return The current RTT estimate.
>>    */
>>   Time
>>   GetCurrentEstimate(void) const;
>>
> 
> or
> 
>>   /**
>>    * \brief Returns the estimated RTO. Pure virtual function.
>>    * \return the estimated RTO.
>>    */
>>   virtual Time
>>   RetransmitTimeout() = 0;
> 
> Assuming your class inherits from ndn::Consumer, this should work out of 
> the box. Otherwise, you also need to call SentSeq() for each Interest 
> and AckSeq() for each Data.
> 
> Best regards,
> Klaus
> 
> 
> 
> On 31/07/18 12:09, meryem blali wrote:
>> Hi All, I'm working on ndnSIM, i want to extract RTT value for every 
>> incoming packets. Can anyone guide me how to use ndn-rtt-estimator to 
>> get rtt values of these packets ? Regards.
>>
>>
>> _______________________________________________
>> 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