[ndnSIM] how to add hop information in Intererst
gc199211
gc199211 at mail.ustc.edu.cn
Mon Mar 27 02:24:52 PDT 2017
Hi sir :
I am trying to add hop information in Interest recently on ndnSIM 2.2. Here is my code.
1). I add a private member variable which is named hop in ndnSIM/ndn-cxx/src/interest.h
2). I increace the value of hop in the nfd::Forwarder::onOutgoingInterest(shared_ptr<pit::Entry> pitEntry, Face& outFace,bool wantNewNonce),so as to caculate the hop .
Here is my problem,It seems that the hop value is always 0 no matter how many nodes it is forwarded.How to solve the problem? I know there is a ns3::ndn::FwHopCountTag a to caculate the hop in ns3::ndn::NetDeviceLinkService ,But I want to caculate the hop value directly in Interest. If it works ,I can add other member variable in Interest which is quite important for my research.Thank you very much .
2016-12-20
gc199211
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170327/d3c5b26e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Clip(03-27-16-57-39).png
Type: image/png
Size: 27698 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170327/d3c5b26e/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Clip(03-27-17-05-05).png
Type: image/png
Size: 5628 bytes
Desc: not available
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170327/d3c5b26e/attachment-0003.png>
More information about the ndnSIM
mailing list