<div dir="ltr"><div><div><div><div>Hi Junxiao,<br><br></div>I could fix this exception by providing the IP address of my host where ndnSIM was running. Nevertheless, I think it is an issue and we need to handle this exception more gracefully and perhaps throwing an appropriate error? Please take a call. <br><br></div><div>I also did not understand why it is still trying to convert into a canonical format when a valid IP address provided. If you see the log on line #494, you will realize. <br></div><div><br></div>I also observed that it always expected the IP address:port combination with "udp4" as scheme. It did not work with "udp". I am referring to this - <code>udp://<a href="http://192.0.2.1">192.0.2.1</a></code> (remote-port defaults to 6363). It did not take the default port 6363 by default. All my neighbouring nodes are remote node in NLSR test set up. <br><br></div>Alright, I have a different error now, which is specific to NLSR. Thanks for your help on this!<br><br><div style="margin-left:40px">494 191s FaceController:onCanonizeSuccess(): Converted udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a> to canonical form: udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a><br>495 191s FaceController:createFaceInNfd(): Creating Face in NFD with face-uri: udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a><br>496 191s Fib:registerPrefix(): Registering prefix: /ndn/edu/umbc/%C1.Router/cs/mctr Face Uri: udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a><br>497 191s FaceController:createFace(): Converting udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a> to canonical form<br>498 191s FaceController:onCanonizeSuccess(): Converted udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a> to canonical form: udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a><br>499 191s FaceController:createFaceInNfd(): Creating Face in NFD with face-uri: udp4://<a href="http://10.0.0.3:6363">10.0.0.3:6363</a><br>500 191s HelloProtocol:scheduleInterest(): Scheduling HELLO Interests in 60 seconds<br>501 191s HelloProtocol:onRegistrationFailure(): Unsupported protocol (code: 501)<br>502 191s HelloProtocol:onRegistrationFailure(): Unsupported protocol (code: 501)<br>503 191s HelloProtocol:onRegistrationFailure(): Unsupported protocol (code: 501)<br></div><br></div>/anil.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 1, 2016 at 2:10 PM, Anil Jangam <span dir="ltr"><<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@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>Hi Junxiao,<br><br></div>Thanks for comments. There was a small mistake in my code that I was creating an instance of boost::asio::io_service, which is prohibited according to: <a href="http://ndnsim.net/2.1/guide-to-simulate-real-apps.html" target="_blank">http://ndnsim.net/2.1/guide-to-simulate-real-apps.html</a><br><br></div>I have corrected this problem and my classes looks like this: <br><br></div>.hpp:<br><div><div><div style="margin-left:40px"> 57 private:<br> 58   ::ndn::Face m_face;<br> 59   boost::asio::io_service& m_ioService;<br> 60   ::ndn::Scheduler m_scheduler;<br> 61   ::ndn::KeyChain& m_keyChain;<br> 62 <br> 63   nlsr::Nlsr m_nlsr;<br></div><br>.cpp:<br></div><div><div style="margin-left:40px"> 41 NlsrExec::NlsrExec(::ndn::KeyChain& keyChain, std::string& nlsrConf)<br> 42   : m_face()<br> 43   , m_ioService(m_face.getIoService())<br> 44   , m_scheduler(m_ioService)<br> 45   , m_keyChain(keyChain)<br> 46   , m_nlsr(m_ioService, m_scheduler, m_face, m_keyChain)<br> 47 { <br> 48   m_nlsr.setConfFileName(nlsrConf);<br> 49 }   <br> 50     <br></div><br></div><div>I also modified the face-uri to an IP address:port format. For each node, I am providing an unique IP. Like this:<br><br> 76     face-uri  udp://<a href="http://192.0.2.1:6363" target="_blank">192.0.2.1:6363</a><br> 76     face-uri  udp://<a href="http://192.0.2.1:6363" target="_blank">192.0.2.1:6363</a><br><br></div><div>However, I am still getting the same exception. I have attached the stack trace of the same. Can you suggest why it might be occurring? <br><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div>/anil.<br><br></div><div><br><br></div></font></span></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 1, 2016 at 3:56 AM, Junxiao Shi <span dir="ltr"><<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Hi Anil</p>
<p dir="ltr">FaceUri needs to be in canonical form as shown on <a href="http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#FaceUri" target="_blank">http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#FaceUri</a> .<br>
Otherwise, software may attempt to resolve the hostname with DNS, and that would fail unless you have a DNS server within the simulated network.</p>
<p dir="ltr">Yours, Junxiao</p>
<div class="gmail_quote"><div><div>On Jan 1, 2016 02:21, "Anil Jangam" <<a href="mailto:anilj.mailing@gmail.com" target="_blank">anilj.mailing@gmail.com</a>> wrote:<br type="attribution"></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div>Hi,<br><br></div><div>Perhaps a basic question. But an exception is observed while running ndnSIM scenario. It is trying to convert a <b><u>face-uri</u></b> to a canonical form. When tested my application in real setup, I used IP addresses instead of a face URI. How does ndnSIM behave in this case? Do we have to use the IP address instead? <br><br></div><div>Below is the exact configuration my application using. There could be error in the configuration as well and looking for suggestions to fix this problem. <br><br> 71   neighbor<br> 72   {<br> 73     name /ndn/edu/memphis/%C1.Router/cs/castor  ; name prefix of the neighbor router consists<br> 74                                                 ; of network, site-name and router-name<br> 75 <br> 76     face-uri  udp://<a href="http://castor.cs.memphis.edu" target="_blank">castor.cs.memphis.edu</a>       ; face uri of the face connected to the neighbor<br> 77     link-cost 25                                ; cost of the connecting link to neighbor<br> 78   }<br> 79 <br><br></div><div>/anil.<br><br></div></div>
<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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>