Expand description
PSync network protocol — wires PSyncNode + Ibf to Interest/Data exchange.
PSync network protocol — wires PSyncNode + Ibf to Interest/Data exchange.
§Wire format
Sync Interest: /<group-prefix>/psync/<ibf-encoded>
The IBF is encoded as a series of <xor_sum:8><hash_sum:8><count:8> triples.
Sync Data: response carries the list of name hashes the responder has
that the requester lacks, encoded as concatenated <hash:8> values.
§Protocol flow
- Periodically send a Sync Interest carrying the local IBF.
- When a peer receives it, subtract against local IBF, decode the difference.
- Reply with Data containing hashes the requester is missing.
- On receiving the Data, emit
SyncUpdatefor each missing hash.
Structs§
- PSync
Config - Configuration for a PSync group.
Functions§
- join_
psync_ group - Join a PSync group.