docs(anoncomms): claim cover slots for SURB reply origination - #418
Open
chaitanyaprem wants to merge 2 commits into
Open
docs(anoncomms): claim cover slots for SURB reply origination#418chaitanyaprem wants to merge 2 commits into
chaitanyaprem wants to merge 2 commits into
Conversation
SURB replies are origination at the exit: they consume from R and raise C*L by up to n replies per request. On slot exhaustion they queue for the next epoch, same as locally originated send.
… delay The fallback caveat described sequential composition (delay, then build), which shifts fallback emissions by the full generation time and leaks pre-computation load. Generation now SHOULD run concurrently with the delay; §6.2 step 3 gains the on-demand path; §5.3 allows offering the discarded packet's message identifier for reclaim.
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.
Follow-up to logos-co/nim-libp2p-mix#40 review (cc @AkshayaMani).
Cover traffic listed three slot consumers: cover, local send, forwarding. SURB replies are origination at the exit and were missing.
mix-cover-traffic.md (LIP-161)
Cis cover + local send + replies. SameC + C·L ≤ Rbound. A busy exit may originate up tonreplies per request, so relative to request origination bothCandC·Lscale by up to(1 + n).ClaimSlot()before the SURB first-hop write. On failure, queue for the next epoch (same as local send). Forwards still drop.k * P.kis not fixed here; it needs a value large enough that a reply queued for the next epoch still arrives while credentials are live.mix.md §8.7.3 cross-ref is not in this PR.
Will collide with #341 on §4 / §5.2. Branched from master on purpose.
nim-libp2p-mix#40 currently drops on exhaustion; the impl should queue to match this.
Also overlaps on-demand cover generation with the pre-send delay (§6.1 fallback caveat, §6.2 step 3, §5.3 reclaim) — spec side of nim-libp2p-mix#52.