Skip to content
New issue

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

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

Already on GitHub? # to your account

Global bandwidth limiter #2454

Conversation

guilhermelawless
Copy link
Contributor

@guilhermelawless guilhermelawless commented Dec 30, 2019

Changes from per-channel limits to a global limiter as originally intended, and fixes a few issues with the limiter

  • Fix dropping condition not checking trended_rate
  • Fix trended_rate calculation resulting in a 20x lower value
  • Increment the sampling period to account for inconsistent sampling
  • Non-droppable packets now increase the rate
  • Update and simplify validation test
  • Add new test using channels directly and ensuring the limit is global

@guilhermelawless guilhermelawless added functionality quality improvements This item indicates the need for or supplies a better way to implement existing functionality networking labels Dec 30, 2019
@guilhermelawless guilhermelawless added this to the V21.0 milestone Dec 30, 2019
@guilhermelawless guilhermelawless self-assigned this Dec 30, 2019
clemahieu
clemahieu previously approved these changes Dec 30, 2019
argakiig
argakiig previously approved these changes Dec 30, 2019
@guilhermelawless guilhermelawless force-pushed the bandwidth-limiter-global branch 2 times, most recently from 5267f8f to 828c785 Compare December 31, 2019 12:08
Changes from per-channel limits to a global limiter as originally intended, and fixes a few issues with the limiter

- Fix dropping condition not checking trended_rate
- Fix trended_rate calculation resulting in a 20x lower value
- Normalize data to the sampling period
- Update and simplify validation test
- Add new test using channels directly and ensuring the limit is global
@guilhermelawless guilhermelawless merged commit 0db5d39 into nanocurrency:develop Jan 1, 2020
@guilhermelawless guilhermelawless deleted the bandwidth-limiter-global branch January 1, 2020 15:14
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
functionality quality improvements This item indicates the need for or supplies a better way to implement existing functionality networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants