-
Notifications
You must be signed in to change notification settings - Fork 124
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
network: improve gossip algorithm by ensuring duplicate messages aren't sent to peers #738
Comments
Just in case this might help to get some ideas. https://github.com/vocdoni/docs/wiki/SubPub-Mesh-routing |
this can be "pivoted" to be the gossiping of messages sent via notifications protocols |
also see spec 4.1.7.3: "Polkadot Host we need to ensure we aren't sending the duplicate messages to peers. |
currently, the gossip algorithm is flooding, so sending the message to every peer except the one that it was received from. this should be improved as to reduce network bandwidth. one method of improving the gossip mechanism is to choose a number of peers to send the message to, say n, then randomly select n peers out of our total peers. there are also other algorithms that could be used, will need some research and exploration. could make n configurable for now to determine best (ie. trade-off between bandwidth and propagation) value
The text was updated successfully, but these errors were encountered: