[ndnSIM] hop counts

ioannoa at scss.tcd.ie ioannoa at scss.tcd.ie
Tue Aug 20 07:27:26 PDT 2013

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,

More information about the ndnSIM mailing list