[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?


Thanks,


Spyridon (Spyros) Mastorakis
Assistant Professor
Computer Science Department
University of Nebraska, Omaha
Peter Kiewit Institute Room 175A
https://sites.google.com/site/spyridonmastorakis


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,
Zhen



 

_______________________________________________
ndnSIM mailing list
ndnSIM at lists.cs.ucla.edu
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.lists.cs.ucla.edu_mailman_listinfo_ndnsim&d=DwICAg&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=eI5Bh74ovG-uIXQ5ksQETSPgRFzmJXjIZXneCqw580E&m=2Cm1gd1KDITenmtp48gMM4i_uT35i-i9a2G9SsfstHo&s=Go4UFyIqHiF5qEHu9Qp1FMS6Ar3XvfhPLOklfE2BVkU&e=


-------------- 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