named-data / python-ndn

An NDN client library with AsyncIO support in Python 3
https://python-ndn.readthedocs.io/en/latest
Apache License 2.0
24 stars 17 forks source link

Data segmentation #49

Closed aelhadee closed 2 years ago

aelhadee commented 2 years ago

Hello, I have a quick question, has the data segmentation for data larger than 8800 bytes been implemented in this repo or it needs to be incorporated manually?

Thanks, AE

zjkmxy commented 2 years ago

Python-ndn does not do segmentation autmatically. Actually, python-ndn is not aware of this limit, because this is required only by NFD. NFD will drop your Data packet if it is larger than 8800B. This is applied to Data packets after fragment reassembly, so the library generally cannot help you do anything. I recommend you to segment your data payload in a size of about 4~6kB.