<div dir="ltr"><div><div><div>Dear Spyridon,<br></div>I have used the following steps to add route while operating in the forwarder.cpp, but unfortunately the problem of timeout exists.<br><br>ns3::Ptr<ns3::Node> thisNode;<br>  thisNode = ns3::NodeList::GetNode(ns3::Simulator::GetContext());<br>   <br>  shared_ptr<Face> face = const_pointer_cast<Face>(inFace.shared_from_this());<br>  <br>  ns3::ndn::FibHelper::AddRoute(thisNode, dataName, inFace.getId(), 0);<br><br></div>Thanks<br></div>Asif<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 11:48 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">You could use the global node id assigned by NS3:<div><br><div><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">Simulator::GetContext()</span></div><div><span style="white-space:pre-wrap;background-color:rgb(255,255,255)"><br></span></div><div><span style="white-space:pre-wrap;background-color:rgb(255,255,255)">Take a look here:</span></div><div><pre style="white-space:pre-wrap;background-color:rgb(255,255,255)"><a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002285.html" target="_blank">http://www.lists.cs.ucla.edu/pipermail/ndnsim/2015-December/002285.html</a></pre><div>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><span class=""><div><br></div><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><span style="float:none;display:inline!important"><br></span></div></div></div><div><br></div><br>
</div>
<br></span><div><div class="h5"><div><blockquote type="cite"><div>On Apr 18, 2016, at 9:33 AM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div><div><div>Thanks Spyridon,<br></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><br></div>Thanks<br></div>Asif<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 18, 2016 at 10:27 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi Asif,<div><br></div><div>please use the FIB helper instead of trying to modify the FIB directly. Let me know if that works: </div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/examples/ndn-congestion-alt-topo-plugin.cpp#L118-L132" target="_blank">https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/examples/ndn-congestion-alt-topo-plugin.cpp#L118-L132</a></div><div><span><font color="#888888"><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><span style="float:none;display:inline!important"><br></span></div></div></div><div><br></div><br>
</div></font></span><div><div>
<br><div><blockquote type="cite"><div>On Apr 18, 2016, at 3:23 AM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><div style="margin-left:40px"><div>Dear All,<br></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><br>terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<nfd::rib::RibManager::Error> >'<br>  what():  Error in setting interest filter (/localhost/nfd/rib): request timed out<br><br></div><div style="margin-left:40px">I use the following code segment to add route manually<br><br>shared_ptr<Face> face = const_pointer_cast<Face>(inFace.shared_from_this());<br>  <br>  shared_ptr<fib::Entry> fibEntry = m_fib.insert(dataName).first;// insert prefix <br>  fibEntry->addNextHop(face, 0);<br><br></div><div style="margin-left:40px">Any clue would be really helpful.<br></div><div style="margin-left:40px"><br>Thanks<br></div><div style="margin-left:40px">Asif <br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 11:50 PM, Shahid Md. Asif Iqbal <span dir="ltr"><<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Natalya,<br></div>Though it worked, but for a different scenario it is creating the following problem<br><br>"Error in setting interest filter (/localhost/nfd/rib): request timed out "............<br><br></div>I have interest sending rate of 10/s.<br></div>It is mainly appearing after 10 seconds of simulation run.<br><br></div>Regards<span><font color="#888888"><br></font></span></div><span><font color="#888888">Asif<br></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 17, 2016 at 7:34 PM, Shahid Md. Asif Iqbal <span dir="ltr"><<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Thanks Natalya,<br></div>Got your point and it worked for me.<br><br></div>Regards<span><font color="#888888"><br></font></span></div><span><font color="#888888"><div>Asif<br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 16, 2016 at 5:46 PM, Natalya Rozhnova <span dir="ltr"><<a href="mailto:rozhnova.natalya@gmail.com" target="_blank">rozhnova.natalya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Asif,<br>
<br>
Why do you want to use the FibHelper while in the forwarder you can directly operate with FIB.<br>
Just add the desired output face to the FIB entry for the desired prefix…<br>
<br>
Best,<br>
Natalya<br>
<div><div><br>
<br>
> Le 16 avr. 2016 à 13:27, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>> a écrit :<br>
><br>
> Dear All,<br>
> 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>
><br>
> Thanks<br>
> Asif<br>
</div></div>> _______________________________________________<br>
> ndnSIM mailing list<br>
> <a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br>
> <a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
<br>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
_______________________________________________<br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>