[Ndn-interest] [jndn] Remote prefix registration (#6)
shijunxiao at email.arizona.edu
Wed Feb 25 08:37:47 PST 2015
To create a file transfer app between two laptops without a third router:
1. both laptops need NFD running
2. on laptopA, write a producer app that does local prefix registration
3. on laptopB, use nfdc command line or NFD Management protocol to create a face toward laptopA, and register a prefix using local prefix registration with that face as nexthop
4. on laptopB, write a consumer app that expresses Interests for the prefix
Remote prefix registration isn't needed in this solution.
From: "Bassem Labib" <bassem.labib at gmail.com>
Sent: 2/25/2015 9:27
To: "Junxiao Shi" <shijunxiao at email.arizona.edu>
Cc: "ndn-interest at lists.cs.ucla.edu" <ndn-interest at lists.cs.ucla.edu>; "Jeff Burke" <jburke at remap.ucla.edu>
Subject: Re: [Ndn-interest] [jndn] Remote prefix registration (#6)
Actually I am surprised when you said: 'jndn currently supports localhost prefix registration only.'
So, how can I implement the clients to do prefix registration and sharing the files between each other?
Is there any solution to let external/non-local machines to make the registration?
On the other hand, does the same happend for express Interest too?
On Wed, Feb 25, 2015 at 5:16 PM, Junxiao Shi <shijunxiao at email.arizona.edu> wrote:
jndn currently supports localhost prefix registration only.
NFD treats loopback address as localhost. 192.168.1.9 is not a loopback address despite that it's on same machine.
A localhost registration, when sent to a non-local face, will be silently rejected.
It's intentional for NFD to interpret non-loopback address of same machine as non-local, otherwise proxy app for new socket type or wire format won't be able to create a non-local face without requiring a separate machine.
On Feb 25, 2015 8:06 AM, "Bassem Labib" <bassem.labib at gmail.com> wrote:
While I'm testing the jndn to register a Prefix using TestPublishAsyncNfd.java under test package, It works fine and register the "/testecho" prefix successfully only when using the default host Face or using "localhost" and loop back address "127.0.0.1", but when using the IP address assigned to the same machine as "192.168.1.9" it didn't work (Timeout) and I notes it registers on NDNx and print out the following:
Register prefix /testecho
Feb 25, 2015 4:40:45 PM net.named_data.jndn.Node$RegisterResponse onTimeout
INFO: Timeout for NFD register prefix command. Attempting an NDNx command...
Feb 25, 2015 4:40:49 PM net.named_data.jndn.Node$NdndIdFetcher onTimeout
INFO: Register prefix failed: Timeout fetching the NDNx ID
Register failed for prefix /testecho
please help, I need an explain this situation.
Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ndn-interest