[Mini-NDN] Where does mini start the nfd?
Matteo Bertolino
Matteo.Bertolino at eurecom.fr
Wed Nov 23 05:19:41 PST 2016
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
More information about the Mini-NDN
mailing list