-
Notifications
You must be signed in to change notification settings - Fork 176
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
[Networking] GossipSub Spam Mitigation- Dynamic Decay Speed #4891
Merged
Merged
Changes from 2 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b8b378b
update initial spam record decay
kc1116 a454e9e
add test for new decay adjustment
kc1116 d291107
add validation flag to ensure InitDecayUpperBound is greater than In…
kc1116 95a7daf
Update registry_test.go
kc1116 89f5e4f
Update config/config_test.go
kc1116 acf5a2b
Update network/p2p/scoring/registry_test.go
kc1116 9b167db
Update network/p2p/scoring/scoring_test.go
kc1116 d27a7ef
Update network/p2p/p2pbuilder/gossipsub/gossipSubBuilder.go
kc1116 3515c95
Update network/p2p/p2pbuilder/libp2pNodeBuilder.go
kc1116 ad725a1
Update network/p2p/p2pbuilder/libp2pNodeBuilder.go
kc1116 e8b04b1
Update network/p2p/test/fixtures.go
kc1116 5d1dfbe
use camel case
kc1116 96a9976
Merge branch 'khalil/6662-peer-id-specific-decay' of github.com:onflo…
kc1116 4eac1ba
Merge branch 'master' of github.com:onflow/flow-go into khalil/6662-p…
kc1116 8b90530
use secure random
kc1116 d21749f
Update registry.go
kc1116 a8cb8f3
Merge branch 'master' into khalil/6662-peer-id-specific-decay
kc1116 268f384
Update network/p2p/scoring/registry.go
kc1116 d8bf4b5
Update network/p2p/scoring/registry.go
kc1116 4892ccc
revert changes to init spam record func
kc1116 4971ee6
Merge branch 'khalil/6662-peer-id-specific-decay' of github.com:onflo…
kc1116 5b9394e
use config instead of params
kc1116 5c7bf31
combine both decay pre-processing funcs into a single func
kc1116 6434b88
update remote
kc1116 fae328f
update scoring registry replace can adjust decay with decay adjust in…
kc1116 e282d6c
Merge branch 'master' of github.com:onflow/flow-go into khalil/6662-p…
kc1116 1cf963a
fix lint
kc1116 66b9644
update godoc
kc1116 071b072
update godoc
kc1116 fe69da7
Merge branch 'khalil/6662-peer-id-specific-decay' of github.com:onflo…
kc1116 f75f01d
simplify node builder arguments
kc1116 2cb6c1d
Update config/default-config.yml
kc1116 a8d5bd0
Update config/default-config.yml
kc1116 8973fac
Update config/default-config.yml
kc1116 df0d214
Merge branch 'khalil/6662-peer-id-specific-decay' of github.com:onflo…
kc1116 ec804cf
update flags
kc1116 1e7374f
Update config/default-config.yml
kc1116 2865935
Update config/default-config.yml
kc1116 ba1cc07
Update config/default-config.yml
kc1116 e07c3e0
Update follower/follower_builder.go
kc1116 5c2cce3
update flag descriptions
kc1116 349aaf2
Update network/p2p/cache.go
kc1116 7b08807
remove gt=-100, validator
kc1116 8816679
remove custom validator
kc1116 b72cbce
Update network/p2p/scoring/decay_test.go
kc1116 70ae578
Update network/p2p/scoring/decay_test.go
kc1116 689eb47
Update network/p2p/scoring/decay_test.go
kc1116 9ee6388
Update network/p2p/scoring/decay_test.go
kc1116 28ec6c4
Update network/p2p/test/fixtures.go
kc1116 9ae267f
rename MinimumSpamPenaltyDecaySpeed -> MinimumSpamPenaltyDecayFactor …
kc1116 640ef41
check peer application specific scores upon initialization
kc1116 8885c1c
ensure peer score decay can be reduced again after recovering
kc1116 33fc0c4
Merge branch 'khalil/6662-peer-id-specific-decay' of github.com:onflo…
kc1116 eafd434
improve tests check decay value on each callback iteration
kc1116 1998a1b
Merge branch 'master' into khalil/6662-peer-id-specific-decay
kc1116 dffc321
fix lint
kc1116 fb346e0
Merge branch 'master' of github.com:onflow/flow-go into khalil/6662-p…
kc1116 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -140,6 +140,17 @@ network-config: | |||||
gossipsub-rpc-metrics-inspector-workers: 1 | ||||||
# The size of the queue used by worker pool for the control message metrics inspector | ||||||
gossipsub-rpc-metrics-inspector-cache-size: 100 | ||||||
# The lower bound on the decay value for a spam record when initialized. | ||||||
# A random value in a range of InitDecayLowerBound and InitDecayUpperBound is used when initializing the decay | ||||||
# of a spam record. | ||||||
gossipsub-scoring-registry-init-decay-lowerbound: .5 | ||||||
# The upper bound on the decay value for a spam record when initialized. | ||||||
gossipsub-scoring-registry-init-decay-upperbound: .7 | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
# The threshold for which when the negative penalty is below this value the decay threshold will be increased by some amount. This will | ||||||
# lead to malicious nodes having longer decays while honest nodes will have faster decays. | ||||||
gossipsub-scoring-registry-increase-decay-threshold: -99 | ||||||
# The amount the decay will be increased when the negative penalty score falls below the IncreaseDecayThreshold. | ||||||
gossipsub-scoring-registry-decay-threshold-incrementer: .01 | ||||||
# Application layer spam prevention | ||||||
alsp-spam-record-cache-size: 10e3 | ||||||
alsp-spam-report-queue-size: 10e4 | ||||||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.