Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p2p: gossip traffic prioritization #3459

Open
Tracked by #280
countvonzero opened this issue Aug 18, 2022 · 2 comments
Open
Tracked by #280

p2p: gossip traffic prioritization #3459

countvonzero opened this issue Aug 18, 2022 · 2 comments
Labels

Comments

@countvonzero
Copy link
Contributor

Description

for genesis, we are not implementing phased poet servers. so it's very likely that ATXs will be completed/published at the same time.
in p2p, we need to prioritize different gossip messages. for example. hare messages are time-sensitive so should have the highest prioritization.

@noamnelke @dshulyak please elaborate the exact prioritization of our message and maybe give more detailed implementation instructions if possible.

@dshulyak
Copy link
Contributor

this will need to be implemented in the gossipsub fork if we will do it before genesis

@dshulyak
Copy link
Contributor

dshulyak commented Dec 6, 2022

before trying to implement priority queuing (it would require forking gossipsub, or custom streaming protocol), we should try to use two (or three) separate routers:

  • fast router for hare and proposals (uses flood and eager push)
  • slow router for atxs and beacon (only lazy pull)
  • maybe separate txs into another slow router (also only lazy pull)

the goal is to reduce duplicate atxs and beacon messages in the gossip, and also don't share queues that are used for protocol and transactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants