<html><head></head><body><div>hi Spyridon,<br>I am implementing something similar to delay induction depending on distance,so I was going through the code base for car-to-car <br><a href="https://github.com/cawka/ndnSIM-nom-rapid-car2car?files=1">https://github.com/cawka/ndnSIM-nom-rapid-car2car?files=1</a><br>I was wondering where the delay induction depending on distance was implemented, as there was no mention of the afterrecieveinterest method(heavily used in ndnSIM2.0 version). I observed the tracer observed this delay.<br><br></div>
<div>Regards,<br>Raj<br><br><br></div>
<div class="gmail_quote" >On 28 Feb 2017, at 11:25, Rajvardhan Deshmukh <<a href="mailto:rdeshmukh@umass.edu" target="_blank">rdeshmukh@umass.edu</a>> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="blue">hi Spyros,<br>I have written a new forwarding strategy and<br>included following in z-strategy.cpp<br>const Name <br>ZStrategy::STRATEGY_NAME("ndn:/localhost/nfd/strategy/ZStrategy/%FD%00");<br>NFD_REGISTER_STRATEGY(ZStrategy);<br><br>after saving the files z-strategy.cpp and z-strategy.hpp in <br>/NFD/daemon/fw<br>i used ./waf<br>then included the below method in my main(network simulation)program.<br><br>How do i call it in my main program(#include <br>"NFD/daemon/fw/z-strategy.hpp") that implements this strategy?<br>1.<br>StrategyChoiceHelper::InstallAll("/", <br>"/localhost/nfd/strategy/ZStrategy");<br><hr><br>Problem: Can't test if this is implemented or not<br><br>OR<br><br>2.<br>I moved the random-load-balancer-strategy.hpp and <br>random-load-balancer-strategy.cpp to /NFD/daemon/fw/<br>and was able to use <br>StrategyChoiceHelper::Install<nfd::fw::RandomLoadBalancerStrategy>(nodes,"/");<br><br>I tried
using:<br>StrategyChoiceHelper::Install<nfd::fw::ZStrategy>(nodes,"/");<br><hr><br>Gives error:<br>scratch/<a href="http://rvanet.cc">rvanet.cc</a>.2.o: In function `void <br>ns3::ndn::StrategyChoiceHelper::Install<nfd::fw::ZStrategy>(ns3::Ptr<ns3::Node>, <br>ndn::Name const&)':<br>/home/rajvardhan/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:122: <br>undefined reference to `nfd::fw::ZStrategy::STRATEGY_NAME'<br>/home/rajvardhan/ndnSIM/ns-3/build/./ns3/ndnSIM/helper/ndn-strategy-choice-helper.hpp:126: <br>undefined reference to `nfd::fw::ZStrategy::STRATEGY_NAME'<br>scratch/<a href="http://rvanet.cc">rvanet.cc</a>.2.o: In function `std::unique_ptr<nfd::fw::ZStrategy, <br>std::default_delete<nfd::fw::ZStrategy> > <br>ndn::make_unique<nfd::fw::ZStrategy, <br>std::reference_wrapper<nfd::Forwarder> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left:
1ex;">(std::reference_wrapper<nfd::Forwarder>&&)':<br></blockquote>/home/rajvardhan/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/util/backports.hpp:42: <br>undefined reference to `nfd::fw::ZStrategy::STRATEGY_NAME'<br>/home/rajvardhan/ndnSIM/ns-3/build/ns3/ndnSIM/ndn-cxx/util/backports.hpp:42: <br>undefined reference to `nfd::fw::ZStrategy::ZStrategy(nfd::Forwarder&, <br>ndn::Name const&)'<br>collect2: error: ld returned 1 exit status<br><hr><br><br><br><br><br>Let me know if further details are required to debug this problem.<br><br>Thanks a lot.<br><br>Regards,<br>Raj</pre></blockquote></div></body></html>