[Ndn-interest] Send and Receive Video using jNDN Client

Thompson, Jeff jefft0 at remap.ucla.edu
Thu Oct 23 10:27:11 PDT 2014


I'm a little confused. The Java ByteBuffer doesn't have a limit of 8K bytes.  Do you mean a limit on the size of an NDN data packet?  The NDN data packet has a max size of 8800 (including content, signature, etc.)  This is due to network MTU size.  NDN handles this by dividing a file into segments.

Before I explain more, are you familiar with NDN segments and how NDN names segments?  These are described in section 3.2 of "NDN Technical Memo: Naming Conventions":

Adding and parsing segment markers in names is supported in jNDN with Name.appendSegment and Name.Component.toSegment.

Other than supporing segments in names, jNDN does not yet have a utility to automatically send a file in segments or fetch a file with segments. This is a planned future higher-level API.  For now, the application must divide the file into segments and create names that have a segment marker.  In practice, each application may want to handle this differently. For example a real-time streaming video application may want to drop segments if the network does not deliver them.  But with a file transfer application, the appilcation may want to repeatedly try to fetch a segment if the fetch times out.

Thank you,
- Jeff T

From: Bassem Labib <bassem.labib at gmail.com<mailto:bassem.labib at gmail.com>>
Date: Thursday, October 23, 2014 at 9:15 AM
To: "ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>" <ndn-interest at lists.cs.ucla.edu<mailto:ndn-interest at lists.cs.ucla.edu>>
Subject: [Ndn-interest] Send and Receive Video using jNDN Client


I am trying to send and receive a video file using jNDN Client.
There is a limitation of the ByteBuffer with max 8K bytes only!!
How can I extend it without receiving it in the onTimeout state.

 Best Regards,
Bassem Labib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20141023/ac01900f/attachment.html>

More information about the Ndn-interest mailing list