docs: add SVS v4 specification - #23
Open
Taranum01 wants to merge 1 commit into
Open
Conversation
Uploads the SVS v4 wire-format specification (mhash, distinct FullStateVector / PartialStateVector / SvsDataRef TLVs, and the publish + pull recovery mode) alongside the existing v3 Specification.md. A 'Migration from Version 3' section (§9) summarizes the wire-format deltas. Source: https://github.com/named-data/ndnd/blob/psvs/docs/svs-v4.md Reference implementation: named-data/ndnd std/sync std/ndn/svs/v4
This was referenced Aug 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the SVS v4 wire-format specification as
Specification-v4.md, alongside the existing v3Specification.md.Summary
SVS v4 extends the v3 wire format to support large sync groups by introducing:
mhash, TLV0xCB) carried in every Sync Data.VectorTypediscriminator with three distinct TLVs:FullStateVector(0xCD) — direct form carrying the complete State Vector.PartialStateVector(0xCE) — direct form carrying a publication-time subset, used when the encoded FULL exceedsSyncVectorThreshold.SvsDataRef(0x07) — publish-only form pointing to a retrievable full-vector Data.mhashmismatch or when the local FULL exceedsSyncVectorThreshold. Producers publish full-vector Data at/<group>/<node>/<boot>/32=sv/<version>and send a publish-only Sync Data referencing it./<sync-prefix>/v=4.SyncVectorThresholdis a fixed library constant of 1200 bytes.Reference implementation
The ndnd Go implementation in
named-data/ndnd(std/sync,std/ndn/svs/v4) ships against this spec on thepsvsbranch.File
Specification-v4.md(508 lines)This is a non-breaking, additive contribution —
Specification.md(v3) is left untouched. v3 and v4 deployments cannot interoperate on the same Sync Interest prefix (v=3vsv=4), per the §9 migration note.cc @yoursunny — addressing the request from named-data/ndnd#190.