<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">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">192.0.2.1:6363</a><br> 76     face-uri  udp://<a href="http://192.0.2.1:6363">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><br></div><div>/anil.<br><br></div><div><br><br></div></div></div><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 class="h5">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 class="h5"><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>