[Nfd-dev] {Disarmed} Re: NFD-Android multicast
Percy Perez Aruni
pdpa at st-andrews.ac.uk
Tue Nov 17 15:13:27 PST 2015
Hi Junxiao
Thank you for your reply and specially for the details.
Sorry for this, but it seems I unable to find "nfdc" on my mobile
devices. I am using JuiceSSH as you recommended and also the "adb shell"
with root privileges. Actually, I built the " .apk" file based on the
below repository, and then manually installed the ".apk" (only) to each
mobile (through adb).
https://github.com/named-data-mobile/NFD-android
I am starting to think that I missed some step during my built/installation
as there is not "nfdc" in the directory. Could you please point me how can
I get/install "nfdc" in Android? or perhaps jndn or jndn-management can
help to set multicast strategy on Android?
Appreciate for your comments.
Regards
Percy
On 17 November 2015 at 16:05, Junxiao Shi <shijunxiao at email.arizona.edu>
wrote:
> Hi Percy
>
>
>
> By specifying an IP address on the consumer’s Face constructor, you are
> causing the consumer to connect directly to the NFD on producer node over
> TCP.
>
>
>
> In order to achieve multicast,
>
> 1. Run NFD on all three nodes.
>
> 2. Perform prefix registration on the NFD on consumer node `nfdc
> register /producer udp://192.168.0.2`. Substitute /producer with
> producer’s prefix, and substitute 192.168.0.2 with the IP address of
> producer node, and repeat for each producer. You may need a bash
> environment on Android, and I recommend JuiceSSH.
>
> 3. Set multicast strategy on the NFD on consumer node `nfdc
> set-strategy /producer /localhost/nfd/strategy/multicast`. Substitute
> /producer with producer’s prefix.
>
> 4. Use the default Face constructor in consumer, so that it
> connects to local NFD. Typically, this would be a local TCP socket on
> Android.
>
> 5. Express the Interest. If you are observing network traffic,
> you’ll see the consumer transmits it twice over UDP unicast toward every
> producer. This is multicast at NDN layer.
>
>
>
> Yours, Junxiao
>
>
>
>
> *From: *Percy Perez Aruni
> *Sent: *Monday, November 16, 2015 16:17
> *To: *nfd-dev at lists.cs.ucla.edu
> *Subject: *[Nfd-dev] NFD-Android multicast
>
>
>
>
>
> Hi NFD-Dev team.
>
> I am running NFD-Android in three smartphones (Android v.4.x), one as
> consumer and the other two as producers. At the moment I am hard coding
> the IP address of the two producers in the consumer side as following:
>
> Face consumerFace = new Face("producerIpAddress");
>
>
>
> Could I ask how my consumer could multicast an interest to the other two
> or more producers?
>
> I would appreciate your comments.
>
>
> Regards
>
> Percy
>
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20151117/1d8f43a5/attachment.html>
More information about the Nfd-dev
mailing list