[Ndn-interest] NDN packet size

Klaus Schneider klaus at cs.arizona.EDU
Tue Mar 28 11:28:26 PDT 2017


In an earlier version of ndn-cxx I found that I needed to make the 
change at multiple places:

> ./ndn-cxx/src/encoding/encoding-buffer.hpp:  EncodingImpl(size_t totalReserve = 8800, size_t reserveFromBack = 400)
> ./ndn-cxx/src/encoding/encoder.hpp:  Encoder(size_t totalReserve = 8800, size_t reserveFromBack = 400);
> ./ndn-cxx/src/encoding/block.cpp:const size_t MAX_SIZE_OF_BLOCK_FROM_STREAM = 8800;
> ./ndn-cxx/src/encoding/encoder.cpp:Encoder::Encoder(size_t totalReserve/* = 8800*/, size_t reserveFromBack/* = 400*/)
> ./ndn-cxx/src/encoding/tlv.hpp:const size_t MAX_NDN_PACKET_SIZE = 8800;

Also some client libraries like jndn have the 8800 Bytes hard coded:

> ./src/net/named_data/jndn/util/Common.java:  public static final int MAX_NDN_PACKET_SIZE


Best regards,
Klaus


On 03/28/2017 11:03 AM, Spyridon (Spyros) Mastorakis wrote:
> Hi,
>
> you can change this constant in the ndn-cxx library:
>
> https://github.com/named-data/ndn-cxx/blob/e78eeca5cc6c882ea1c72daaffc7678bf42f526b/src/encoding/tlv.hpp#L37
>
> Not clear to me if there will be further issues because of this change
> though.
>
> Hope that this helps,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> <http://cs.ucla.edu/%7Emastorakis/>
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
>> On Mar 28, 2017, at 11:02 AM, Mohammad Alhowaidi <malhowaidi at gmail.com
>> <mailto:malhowaidi at gmail.com>> wrote:
>>
>> Hello,
>>
>> I was wondering how to increase NDN packet size, instead of using 8K?
>> and is there any limitation from increasing it?
>>
>> Thanks,
>> Mohammad
>
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>


More information about the Ndn-interest mailing list