<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; ">
Wentao, et. al.: 
<div><br>
</div>
<div>Thank you for your responses.  Just an update: we were able to solve this problem.  Below is more information:</div>
<div>
<div><br>
</div>
<div>Lan</div>
<div>
<blockquote type="cite">
<div style="margin: 0px; "><b>From: </b>"Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu">agawande@memphis.edu</a>><br>
</div>
<div style="margin: 0px; "><b>Subject: </b><b>Re: mini-ndn?</b><br>
</div>
<div style="margin: 0px; "><b>Date: </b>December 12, 2014 11:38:00 AM CST<br>
</div>
<div style="margin: 0px; "><br>
</div>
<div dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; background-color: rgb(255, 255, 255); font-family: Calibri, Arial, Helvetica, sans-serif; position: static; z-index: auto; ">
<p style="margin-top: 0px; margin-bottom: 0px; "></p>
<div style="margin-top: 0px; margin-bottom: 0px; ">Hi all<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">Earlier I said that I was having problems  with per node NFD installation because it used a fixed "nfd.sock" file. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">I was able to get over that by using different HOME and putting a client.conf file in the .ndn folder under the HOME folder<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">and modifying it to point towards a different sock file. I also changed the sock file location in nfd.conf for each of the NFD<br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">instance. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; ">I was successfully able to use ndnping (ndn-tlv-ping) and I also ran NLSR on the two node topology I have been using. <br>
</div>
<div style="margin-top: 0px; margin-bottom: 0px; "><br>
</div>
<div style="color: rgb(33, 33, 33); ">Thanks<br>
</div>
<div style="color: rgb(33, 33, 33); ">Ashlesh</div>
</div>
</div>
</blockquote>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br class="Apple-interchange-newline">
<br>
</div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br>
</div>
</div>
<br>
<div>
<div>On Dec 9, 2014, at 3:20 PM, Wentao Shang <<a href="mailto:wentaoshang@gmail.com">wentaoshang@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">I remember I had the same question during the summer. It is indeed a hard problem. Using customized config file seems the best (only?) solution. But you have to be careful because the ndn-cxx library reads default configuration from
 /usr/local/etc/ndn/client.conf, which is also shared across the system. In your applications you have to avoid using the default unix socket and explicitly specify the correct location.
<div><br>
</div>
<div>Wentao<br>
<br>
<div class="gmail_quote">On Tue Dec 09 2014 at 1:01:55 PM Lan Wang (lanwang) <<a href="mailto:lanwang@memphis.edu">lanwang@memphis.edu</a>> 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">No, it's not about ccnx.  We're trying to run multiple instances of nfd.<br>
<div>
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; ">
<br>
Lan</div>
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; ">
<br>
</div>
<div style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; word-wrap: break-word; ">
<br>
</div>
</div>
<br>
<div>
<div>On Dec 9, 2014, at 2:59 PM, Junxiao Shi <<a href="mailto:shijunxiao@email.arizona.edu" target="_blank">shijunxiao@email.arizona.edu</a>></div>
<div> wrote:</div>
</div>
</div>
<div style="word-wrap:break-word"><br>
<blockquote type="cite">
<div dir="ltr">
<div>This is a question about CCNx. I'm forwarding this question to ccnx mailing list.</div>
<div><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Lan Wang (lanwang)</b> <span dir="ltr"><<a href="mailto:lanwang@memphis.edu" target="_blank">lanwang@memphis.edu</a>></span><br>
Date: Tue, Dec 9, 2014 at 1:56 PM<br>
Subject: [Nfd-dev] Fwd: How ccnx sets sock file<br>
To: "<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a>" <<a href="mailto:nfd-dev@lists.cs.ucla.edu" target="_blank">nfd-dev@lists.cs.ucla.edu</a>><br>
<br>
<br>
<div style="word-wrap:break-word">Any suggestions on how to solve this problem?<br>
<div>
<div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<br>
Lan</div>
<div style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;word-wrap:break-word">
<br>
</div>
</div>
<div><br>
<div>Begin forwarded message:</div>
<br>
<blockquote type="cite">
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><b>From:
</b></span><span style="font-family:'Helvetica';font-size:medium">"Ashlesh Gawande (agawande)" <<a href="mailto:agawande@memphis.edu" target="_blank">agawande@memphis.edu</a>><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><b>Subject:
</b></span><span style="font-family:'Helvetica';font-size:medium"><b>Re: How ccnx sets sock file</b><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><b>Date:
</b></span><span style="font-family:'Helvetica';font-size:medium">December 9, 2014 1:42:12 PM CST<br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><b>To:
</b></span><span style="font-family:'Helvetica';font-size:medium">"Lan Wang (lanwang)" <<a href="mailto:lanwang@memphis.edu" target="_blank">lanwang@memphis.edu</a>><br>
</span></div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><span style="font-family:Helvetica;font-size:medium"><b>Cc:
</b></span><span style="font-family:'Helvetica';font-size:medium">"Vince Lehman (vslehman)" <<a href="mailto:vslehman@memphis.edu" target="_blank">vslehman@memphis.edu</a>><br>
</span></div>
<br>
<div dir="ltr" style="font-family:Helvetica;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div style="font-size:12pt;background-color:rgb(255,255,255);font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="margin-top:0px;margin-bottom:0px">So I am using the mininet (miniccnx) environment where virtual machines share file systems. Miniccnx can run multiple instances of CCNx on these virtual machines. The sock file it uses can be specified as following:<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div dir="ltr" style="font-family:Helvetica">
<div style="font-size:12pt;font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="margin-top:0px;margin-bottom:0px">export CCN_LOCAL_SOCKNAME=/tmp/file.sock<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">This is what miniccnx does on each node before starting CCNx when it instantiates the nodes.<br>
</div>
<br>
</div>
</div>
<div style="margin-top:0px;margin-bottom:0px">For NFD:<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"> <br>
</div>
<div style="margin-top:0px;margin-bottom:0px">I set up two nodes connected to each other. <br>
</div>
<div style="margin-top:0px;margin-bottom:0px">Then if I want to start different instances of NFD and applications on them. To do this I need to have different sock files, but the sock file is hard coded in ndn-cxx. <br>
</div>
<div style="margin-top:0px;margin-bottom:0px">As a temporary work around heres what I did:<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">1) Compiled ndn-cxx with a different sock file (/var/run/host1-nfd.conf) and then compiled NFD and moved the binaries to a folder on desktop. <br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">2) Copied the /usr/local/etc/ndn/nfd.conf file to<span> </span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">/usr/local/etc/ndn/</span>host1-nfd.conf
 and changed the sock file name to <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">/var/run/host1-nfd.conf</span>. <br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">3) Started nfd from that folder using the following:<br>
</div>
<div style="margin-top:0px;margin-bottom:0px">./nfd --config <span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">/usr/local/etc/ndn/</span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">host1-nfd.conf</span><span> </span>&<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">./nfd-status </span><span style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:16px;background-color:rgb(255,255,255)">​
 and ./nfdc works properly.</span><br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">4) I repeat the procedure for the other node. <br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><br>
</div>
<div style="margin-top:0px;margin-bottom:0px">I was wondering if there is an easy way?  Vince has directed me to how Obaid was running it:<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><a href="http://redmine.named-data.net/issues/1790" target="_blank">http://redmine.named-data.net/issues/1790</a>​<br>
</div>
<div style="margin-top:0px;margin-bottom:0px"><span style="font-size:12pt"><br>
</span></div>
<div style="margin-top:0px;margin-bottom:0px"><span style="font-size:12pt">Ashlesh</span></div>
<div style="word-wrap:break-word"><br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br>
<br>
</div>
<br>
</div>
</div>
</blockquote>
</div>
______________________________<u></u>_________________<br>
Nfd-dev mailing list<br>
<a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank">http://www.lists.cs.ucla.edu/<u></u>mailman/listinfo/nfd-dev</a><br>
</blockquote>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>