[ndnSIM] hop counts
alexander.afanasyev at ucla.edu
Wed Aug 21 09:18:09 PDT 2013
You should be able to do anything inside OnData function call and it should not affect in any way any standard functionality, including tracing.
When you overloaded OnData method, did you forget to call parent's version of OnData (i.e., chain the calls)?
On Aug 20, 2013, at 7:27 AM, ioannoa at scss.tcd.ie wrote:
> Hello everyone,
> I am trying to count the hops of each Interest packet and each Content
> packet as well.
> For example, considering a 3 nodes topology where I have
> N0 - N1 - N2
> where N0 is the requestor and N2 is the source I should have a hop count
> number of 1, 2 and 3 for the Interest packet and 1, 2, 3 for the Content
> packet on the opposite direction. The values of both of these should be
> kept inside my packet structure.
> Could anyone please advice me an efficient way to do that? At the moment,
> I have changed the TrySendOutInterest at the forwarding class which works
> ok and the SatisfyPendingInterest at the forwarding class as well which
> works ok but is not what i wanted. The thing is that i need this value to
> be updated before deciding on the caching (meaning in the OnData function)
> which goes before the call of the SatisfyPendingInterest function. A
> simple +1 before hand in the OnData function seems not to work as i am
> getting empty statistic files e.g. aggregate-trace file goes empty and
> rate-trace file or cs-trace file.
> Any suggestions, please?
> Kind regards,
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
More information about the ndnSIM