Task #1761
closed
Ensure consistent segment and version encoding between ndn-cxx and CCL libraries
Added by Junxiao Shi over 10 years ago.
Updated over 10 years ago.
Description
Currently, ndn-cxx and ndn-ccl (eg. pyndn2) encode segment number and version number differently.
A segment number NameComponent encoded in one library cannot be decoded in another library.
This Task is to agree on a common naming convention, and ensure both libraries encode segment number and version number in the same way.
Files
- Blocks Task #1762: Revise Management protocol to use number encoding convention added
20140714 conference call agrees that in "short term" we'll use CCNx Version and Segment Markers.
There are two potential problems.
Number encoding: should we encode the number as Non Negative Integer, or with minimum number of bytes as CCNx does?
We believe it's better to use Non Negative Integer, because it's one of two encoding schemes for numeric values defined in TLV spec.
There would be major inconsistency to use CCNx's minimum number of bytes, because that causes us to have 3 numeric encodings.
Version timestamp: CCNx uses CCNx Timestamp Format, but TLV is using milliseconds.
We believe this problem is unimportant as long as all producers of the same namespace use the same way to generate version number, because version numbers are compared with each other but not converted back to a timestamp.
20140715 conference call agrees that:
- Number encoding will be Non Negative Integer, given that it's considered a better encoding than using minimum bytes.
- Version timestamp could be milliseconds. This doesn't matter as long as producers of same namespace are using the same scheme.
- Assignee set to Alex Afanasyev
- Estimated time set to 3.00 h
Name Conversion document should be updated as part of this Task.
I have created a git repo for the naming convention NDN memo:
git@git.irl.cs.ucla.edu:papers/ndn-memos-naming-conventions.git
I'm also uploading the resulting pdf.
- Status changed from Feedback to Closed
Also available in: Atom
PDF