[ndnSIM] How to calculate RTT value in ndnSIM
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
> m = Simulator::Now() - i->time; // Elapsed time
Then use this time right there, or store it in a map<seq, Time>.
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.
>> GetCurrentEstimate(void) const;
>> * \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,
> 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
More information about the ndnSIM