[Nfd-dev] [Ndn-interest] (no subject)

Nick Gordon nmgordon at memphis.edu
Tue Oct 24 08:50:55 PDT 2017


Giuseppe,

One Interest can only elicit one data. If you know that the data on the other side is segmented, you need to establish some kind of 
convention for segmenting, so that when the consumer receives the data, the data name that it received makes it clear that there are more 
segments.

E.g. if you send an interest for /ndn/experiment/images/waterfall, and the consumer gets a data back called 
/ndn/experiment/images/waterfall/s1, then it should be clear to the consumer to request s2, s3, ..., sN, until the last interest gets 
NACK'd. From there you could conclude that you have all the data, and then concatenate all of the contents to retrieve your image, for example.

At least, this is how it's done in NLSR to transfer large LSAs.

-Nick


On 10/23/17 07:10, Giuseppe Carella wrote:
> I forgot to say that I am using ndn-js and one nfd for the forwading.
>
> 2017-10-23 14:08 GMT+02:00 Giuseppe Carella <gcarella228 at gmail.com <mailto:gcarella228 at gmail.com>>:
>
>     Good morning community,
>
>     I am trying to send an image from a producer to a consumer.
>
>     This is the use-case:
>     -The consumer sends an interest packet to the producer
>     -The producer sends a set of data packets to the consumer.
>
>     The problem is that the consumer calls the callback "onData" only once.
>     I thought that onData once called was always listening the incoming data packets.
>     That's the reason why on my main function I call "face.expressInterest(name, onData, onTimeout);" only once. Could it be problem?
>
>     Thank you.
>     Best regards,
>     Giuseppe.
>
>
>
>     _______________________________________________
>     Ndn-interest mailing list
>     Ndn-interest at lists.cs.ucla.edu <mailto:Ndn-interest at lists.cs.ucla.edu>
>     http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest <http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest>
>
>
>
>
> _______________________________________________
> Nfd-dev mailing list
> Nfd-dev at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20171024/11c74367/attachment.html>


More information about the Nfd-dev mailing list