<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You could use the global node id assigned by NS3:<div class=""><br class=""><div class=""><span style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">Simulator::GetContext()</span></div><div class=""><span style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class="">Take a look here:</span></div><div class=""><pre style="white-space: pre-wrap; background-color: rgb(255, 255, 255);" class=""><a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002285.html" class="">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002285.html</a></pre><div class="">The thing you are doing right now could lead to some privilege conflicts with the managers of NFD. That might be the reason you get this timeout.</div><div class=""><br class=""></div><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><span class="" style="float: none; display: inline !important;"><br class=""></span></div></div></div><div class=""><br class=""></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 9:33 AM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" class="">asifcsep@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class="">Thanks Spyridon,<br class=""></div>But, I need to add route from the forwarder.cpp, is there any way to find who (which node) is currently operating the forwarder?<br class=""><br class=""></div>Thanks<br class=""></div>Asif<br class=""></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Mon, Apr 18, 2016 at 10:27 PM, Spyridon (Spyros) Mastorakis <span dir="ltr" class=""><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank" class="">mastorakis@cs.ucla.edu</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">Hi Asif,<div class=""><br class=""></div><div class="">please use the FIB helper instead of trying to modify the FIB directly. Let me know if that works: </div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/examples/ndn-congestion-alt-topo-plugin.cpp#L118-L132" target="_blank" class="">https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/examples/ndn-congestion-alt-topo-plugin.cpp#L118-L132</a></div><div class=""><span class="HOEnZb"><font color="#888888" class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span style="float:none;display:inline!important" class="">Spyridon (Spyros) Mastorakis</span><br class=""><span style="float:none;display:inline!important" class="">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span style="float:none;display:inline!important" class="">Internet Research Laboratory</span><br class=""><span style="float:none;display:inline!important" class="">Computer Science Department</span><br class=""><span style="float:none;display:inline!important" class="">UCLA</span></div><div class=""><span style="float:none;display:inline!important" class=""><br class=""></span></div></div></div><div class=""><br class=""></div><br class="">
</div></font></span><div class=""><div class="h5">
<br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 3:23 AM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank" class="">asifcsep@gmail.com</a>> wrote:</div><br class=""><div class=""><div dir="ltr" class=""><div style="margin-left:40px" class=""><div class="">Dear All,<br class=""></div>Experiencing the following error after adding route manually, and more importantly the error occurs after 10 seconds of simulation for each scenario  and for every prefix.<br class=""><br class="">terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::rib::RibManager::Error> >'<br class="">  what():  Error in setting interest filter (/localhost/nfd/rib): request timed out<br class=""><br class=""></div><div style="margin-left:40px" class="">I use the following code segment to add route manually<br class=""><br class="">shared_ptr<Face> face = const_pointer_cast<Face>(inFace.shared_from_this());<br class="">  <br class="">  shared_ptr<fib::Entry> fibEntry = m_fib.insert(dataName).first;// insert prefix <br class="">  fibEntry->addNextHop(face, 0);<br class=""><br class=""></div><div style="margin-left:40px" class="">Any clue would be really helpful.<br class=""></div><div style="margin-left:40px" class=""><br class="">Thanks<br class=""></div><div style="margin-left:40px" class="">Asif <br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Apr 17, 2016 at 11:50 PM, Shahid Md. Asif Iqbal <span dir="ltr" class=""><<a href="mailto:asifcsep@gmail.com" target="_blank" class="">asifcsep@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Hi Natalya,<br class=""></div>Though it worked, but for a different scenario it is creating the following problem<br class=""><br class="">"Error in setting interest filter (/localhost/nfd/rib): request timed out "............<br class=""><br class=""></div>I have interest sending rate of 10/s.<br class=""></div>It is mainly appearing after 10 seconds of simulation run.<br class=""><br class=""></div>Regards<span class=""><font color="#888888" class=""><br class=""></font></span></div><span class=""><font color="#888888" class="">Asif<br class=""></font></span></div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sun, Apr 17, 2016 at 7:34 PM, Shahid Md. Asif Iqbal <span dir="ltr" class=""><<a href="mailto:asifcsep@gmail.com" target="_blank" class="">asifcsep@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class=""><div class=""><div class="">Thanks Natalya,<br class=""></div>Got your point and it worked for me.<br class=""><br class=""></div>Regards<span class=""><font color="#888888" class=""><br class=""></font></span></div><span class=""><font color="#888888" class=""><div class="">Asif<br class=""></div></font></span></div><div class=""><div class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Apr 16, 2016 at 5:46 PM, Natalya Rozhnova <span dir="ltr" class=""><<a href="mailto:rozhnova.natalya@gmail.com" target="_blank" class="">rozhnova.natalya@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asif,<br class="">
<br class="">
Why do you want to use the FibHelper while in the forwarder you can directly operate with FIB.<br class="">
Just add the desired output face to the FIB entry for the desired prefix…<br class="">
<br class="">
Best,<br class="">
Natalya<br class="">
<div class=""><div class=""><br class="">
<br class="">
> Le 16 avr. 2016 à 13:27, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank" class="">asifcsep@gmail.com</a>> a écrit :<br class="">
><br class="">
> Dear All,<br class="">
> How can i add a route manually from the forwarder.cpp file? My scenario is, after receiving data(onReceiveData()) with name "/data/R/00" from face i, I want to add a route manually (using fibhelper) for prefix "data/D/00" with face i as the faceid to reach the nexthop. I can use the Addroute() function but it is not possible to get the node(GetNode()) who is currently accessing the forwarder.<br class="">
><br class="">
> Thanks<br class="">
> Asif<br class="">
</div></div>> _______________________________________________<br class="">
> ndnSIM mailing list<br class="">
> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class="">
<br class="">
</blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
</div></div></blockquote></div><br class=""></div>
_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank" class="">ndnSIM@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br class=""></div></blockquote></div><br class=""></div></div></div></div></blockquote></div><br class=""></div>
</div></blockquote></div><br class=""></div></div></body></html>