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

P7: Behaviour pattern penalties #318

Merged
merged 5 commits into from
May 6, 2020
Merged

P7: Behaviour pattern penalties #318

merged 5 commits into from
May 6, 2020

Conversation

vyzo
Copy link
Collaborator

@vyzo vyzo commented May 1, 2020

This adds a new score parameter, P7, which is a quadratic counter of behavioural pattern penalties.
In contrast to other parameters, which are implicitly updated through tracing, this counter is explicitly incremented by the router.
It is intended to capture and penalize behavioural patterns in #285 and #286, such as not following up on IWANT requests from IHAVE advertisements or not respecting the prune backoff, but it can also be used for other behaviours in the future.

cc @raulk

@vyzo vyzo requested review from yusefnapora and daviddias May 1, 2020 18:43
Copy link
Contributor

@yusefnapora yusefnapora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good, as long as we document (here and in the spec) which behaviors are penalized when we add the actual penalties in future PRs.

@vyzo
Copy link
Collaborator Author

vyzo commented May 4, 2020

Yes of course! I will update the spec once #285 and #286 are ready.

@vyzo vyzo force-pushed the feat/behavioural-penalties branch from 98d2fd9 to 19d0e0f Compare May 6, 2020 16:07
@vyzo
Copy link
Collaborator Author

vyzo commented May 6, 2020

Rebased on master for merging.

@vyzo vyzo merged commit 0832791 into master May 6, 2020
@vyzo vyzo deleted the feat/behavioural-penalties branch May 6, 2020 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants