[ndnSIM] How to get the number of hops passed by Data packet from route node to consumer

L zhenliu0603 at 163.com
Thu Jan 7 01:43:15 PST 2021

You are correct. I carefully checked the forwarder.cpp file, and I found that when a route node decides to cache a certain Data packet, it will copy this packet, but set the HopCountTag to 0. Very grateful for your help.

At 2021-01-07 07:36:24, "Spyridon Mastorakis" <smastorakis at unomaha.edu> wrote:

If I remember correctly: when we insert a data packet in the CS, we change the value of hop count to 0.

Then once a data packet is retrieved from the CS and until it is returned to the consumer, the hop count starts incrementing again.

Can you try to see if my recollection is right?


Spyridon (Spyros) Mastorakis
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A

On Jan 6, 2021, at 3:17 AM, L via ndnSIM <ndnsim at lists.cs.ucla.edu> wrote:

Non-NU Email
Hello, everyone
   I know that hopCount can be used to calculate the number of hops passed by the Data packet from the producer to the consumer, but when the Interest packet is satisfied in the route node, that is to say, the route node caches the corresponding Data packet. How should I get the number of hops that the packet has reached the consumer?
Best wishes,


ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20210107/3bed8af1/attachment-0001.html>

More information about the ndnSIM mailing list