[Nfd-dev] (help)How to use NFD ethernet face?

Burke, Jeff jburke at remap.UCLA.EDU
Mon Oct 19 23:17:43 PDT 2015



Jiachen,

The format in the developer guide appears outdated – try:
ether://[34:36:3b:d2:48:38]

See, for example:
https://github.com/named-data/NFD/blob/f9572e8439e018c9a0d06fe0d64fbfe114b2339e/tests/daemon/face/ethernet.t.cpp#L106

This is the format given in the wiki, too: http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Ethernet

However, I get a different error:

jerboa:~ jburke$ nfdc register / ether://[6c:70:9f:d1:36:75]
ERROR: Face creation failed : Face creation failed: EthernetFactory does not support 'createFace' operation (code 500)

Reported as issue #3276. http://redmine.named-data.net/issues/3276

Thanks,
Jeff


Hi,

We are going to test ethernet face using ndncon. But we are not sure how to register this face.

The command we use now: nfdc register / ether://34:36:3b:d2:48:38 (mac address of the other machine)
And failed :"ERROR: FaceUri parse failed".
We refer to:http://named-data.net/wp-content/uploads/2014/07/NFD-developer-guide.pdf page8
http://redmine.named-data.net/projects/nfd/wiki/FaceMgmt#Ethernet
We do not see command example about registering ethernet face.

And in the nfdc usage, there is not any information about ethernet face:
REMAPMacBookPro:NFD remap$ nfdc register
Usage:
nfdc [-h] [-V] COMMAND [<Command Options>]
       -h print usage and exit
       -V print version and exit

   COMMAND can be one of the following:
       register [-I] [-C] [-c cost] [-e expiration time] [-o origin] name <faceId | faceUri>
           register name to the given faceId or faceUri
           -I: unset CHILD_INHERIT flag
           -C: set CAPTURE flag
           -c: specify cost (default 0)
           -e: specify expiration time in ms
               (by default the entry remains in FIB for the lifetime of the associated face)
           -o: specify origin
               0 for Local producer applications, 128 for NLSR, 255(default) for static routes
       unregister [-o origin] name <faceId | faceUri>
           unregister name from the given faceId
       create [-P] <faceUri>
           Create a face in one of the following formats:
           UDP unicast:    udp[4|6]://<remote-IP-or-host>[:<remote-port>]
           TCP:            tcp[4|6]://<remote-IP-or-host>[:<remote-port>]
           -P: create permanent (instead of persistent) face
       destroy <faceId | faceUri>
           Destroy a face
       set-strategy <name> <strategy>
           Set the strategy for a namespace
       unset-strategy <name>
           Unset the strategy for a namespace
       add-nexthop [-c <cost>] <name> <faceId | faceUri>
           Add a nexthop to a FIB entry
           -c: specify cost (default 0)
       remove-nexthop <name> <faceId | faceUri>
           Remove a nexthop from a FIB entry

REMAPMacBookPro:NFD remap$
(NFD is NFD-0.4.0-rc1)

How to register ethernet face?

Thanks,
Jiachen

//tel: 424-365-2415
//email: wangjiachen0 at outlook.com<mailto:wangjiachen0 at outlook.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20151020/d5b25406/attachment.html>


More information about the Nfd-dev mailing list