[Nfd-dev] NFD-Android multicast

Junxiao Shi shijunxiao at email.arizona.EDU
Tue Nov 17 08:05:48 PST 2015


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/a094b20c/attachment.html>


More information about the Nfd-dev mailing list