[ndnSIM] How to count the forwarding hops of an Interest
Zhuhua Liao (zliao)
Z.Liao at memphis.edu
Mon May 15 19:24:06 PDT 2017
Now I have a question regarding how to count the forwarding hops of an Interest in ndnSIM. I simply added the below codes, but it seems like I got the wrong forwarding hops:
1. added "interest->setTag(make_shared<lp::HopCountTag>(0));" for hopcount initialization at the function "SendPacket" in consumer.cpp;
2. added "interest.setTag(make_shared<lp::HopCountTag>(hopCount + 1))" for one hop increment when forwarding a time at the function "onIncomingInterest" in Forwarder.cpp.
I do not know if you have a right solution to count the forwarding hops for an interest?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ndnSIM