-
Notifications
You must be signed in to change notification settings - Fork 53
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
chore(networking): lower dhigh to limit amplification factor #2168
Conversation
You can find the image built from this PR at
Built from d16a976 |
I'm a bit uneasy about this change. I feel like the intent of What is the relation between; churn rate, propagation time and message loss rate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Note that Dlow and D have not changed, and in the simulations reported above, I can verify that the average D in the network stays the same. So I would say there is no impact, or at least not significant. The main difference is that before there were on average 12-6=6 "mesh slots" per node and now 8-6=2. Guess this affects new joiners, but as long as it is > 0, we should be okay. I would feel uneasy about going as low as in waku-org/research#44, but the change of this PR is quite convervative. |
Perfect! Thanks. |
This seems strange and I have no immediate hypothesis about why this might happen. The worry would be that more churn = more bandwidth (due to control messages) which may diminish the gains we get from a lower D. |
Ah, much better 😌 |
This PR lowers gossipsub's
Dhigh
value so that nodes have a more predictable amplification factor (in terms of bandwidth). Before4 to 12
now4 to 8
.Used this tool to run simulations using 1000 nodes and propagation time should not be affected, since average
D
in the network stays the same.before: mean of D among 1000 randomly connected nodes 6.129. Message latency average 509 ms (8991 samples).
after this PR: mean of D among 1000 randomly connected nodes 6.124. Message latency average 506 ms (8991 samples). But with the main difference that max D is
8
instead of12
.In other words, it shouldn't affect the network performance, but it will decrease bandwidth consumption in some nodes by around 30% (12 -> 8)
note: In the future we may want to lower both Dlow/Dhigh even more, to limit bandwidth consumption, or at least to some "profiles". But this indeed has an impact in propagation delay. More waku-org/research#44