Task #1761
closedEnsure consistent segment and version encoding between ndn-cxx and CCL libraries
100%
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
Updated by Junxiao Shi over 10 years ago
- Blocks Task #1762: Revise Management protocol to use number encoding convention added
Updated by Junxiao Shi over 10 years ago
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.
Updated by Junxiao Shi over 10 years ago
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.
Updated by Junxiao Shi over 10 years ago
- Assignee set to Alex Afanasyev
- Estimated time set to 3.00 h
Name Conversion document should be updated as part of this Task.
Updated by Alex Afanasyev over 10 years ago
- File convention.pdf convention.pdf added
- Status changed from New to Feedback
- % Done changed from 0 to 100
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.
Updated by Alex Afanasyev over 10 years ago
- File convention.pdf convention.pdf added
Updated by Alex Afanasyev over 10 years ago
- File convention.pdf convention.pdf added
Updated by Alex Afanasyev over 10 years ago
- File convention.pdf convention.pdf added