[Mini-NDN] Where does mini start the nfd?

Ashlesh Gawande (agawande) agawande at memphis.edu
Wed Nov 23 06:59:52 PST 2016


I am not sure how you would run two instances without Mini-NDN.


client.conf tells programs (NLSR etc.) how to connect to NFD i.e. which sock file/transport to use.


I think you can export different $HOME in two different terminals and then put two different client files in there and then run NFD.


Ashlesh

________________________________
From: Matteo Bertolino <Matteo.Bertolino at eurecom.fr>
Sent: Wednesday, November 23, 2016 7:19:41 AM
To: Ashlesh Gawande (agawande)
Cc: mini-ndn at lists.cs.ucla.edu
Subject: Re: [Mini-NDN] Where does mini start the nfd?

Thanks! An important question.

I would like to avoid mini and run two nfd different istances in two
different process.
I noticed that it is not possible use nfd-start, then I do the following:

Process 1:
nfd --config nfd.conf

Process 2:
nfd --config nfd2.conf

Where "diff nfd.conf nfd2.conf" is:
90c90
<     path /var/run/nfd.sock ; Unix stream listener path
---
>     path /var/run/nfd2.sock ; Unix stream listener path
97c97
<     port 6363 ; TCP listener port number
---
>     port 6364 ; TCP listener port number
106c106
<     port 6363 ; UDP unicast port number
---
>     port 6364 ; UDP unicast port number
179c179
<     port 9696 ; WebSocket listener port number
---
>     port 9697 ; WebSocket listener port number


I noticed that it is not enough. I had a look on the code that you
passed me in the previous answer. I notice that client.conf file has a
role. How can I reach my goal?
Thanks a lot.

matteo



Quoting "Ashlesh Gawande (agawande)" <agawande at memphis.edu>:

> https://github.com/named-data/mini-ndn/blob/master/ndn/ndn_host.py#L102
>
> https://github.com/named-data/mini-ndn/blob/master/ndn/nfd.py#L62
>
> Ashlesh
>
> On Nov 23, 2016 4:25 AM, Matteo Bertolino
> <Matteo.Bertolino at eurecom.fr> wrote:
> Good morning,
> I would like to study how mini launch several NFD instance on its nodes.
>
> Where I open minindn script, I don't read something like "sudo nfd-start"  or
> "sudo /NFD/bin/nfd".
>
>
> I just read:
>
> nfdConfFile = "%s/nfd.conf" % install_dir
>      if os.path.isfile("/usr/local/etc/ndn/nfd.conf") == True:
>          shutil.copy2("/usr/local/etc/ndn/nfd.conf", nfdConfFile)
>      elif os.path.isfile("/usr/local/etc/ndn/nfd.conf.sample") == True:
>          shutil.copy2("/usr/local/etc/ndn/nfd.conf.sample", nfdConfFile)
>      else:
>          sys.exit("nfd.conf or nfd.conf.sample cannot be found in the
> expected directory. Exit.")
>
>      call(["sudo", "sed", "-i", 's|default_level [A-Z]*$|default_level
> $LOG_LEVEL|g', nfdConfFile])
>
> Where is the nfd started?
>
> Thanks!
>
> -------------------------------------------------------------------------------
> This message was sent using EURECOM Webmail: http://webmail.eurecom.fr
>
> _______________________________________________
> Mini-NDN mailing list
> Mini-NDN at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/mini-ndn
>



-------------------------------------------------------------------------------
This message was sent using EURECOM Webmail: http://webmail.eurecom.fr

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/mini-ndn/attachments/20161123/7c79e52c/attachment-0001.html>


More information about the Mini-NDN mailing list