Skip to content

feat: implement Weighted Random Early Detection (WRED) queue drops (#… - #736

Open
okoye-collins wants to merge 1 commit into
StellarFlow-Network:mainfrom
okoye-collins:collins_okoye_#629
Open

feat: implement Weighted Random Early Detection (WRED) queue drops (#…#736
okoye-collins wants to merge 1 commit into
StellarFlow-Network:mainfrom
okoye-collins:collins_okoye_#629

Conversation

@okoye-collins

Copy link
Copy Markdown

…629)
closes #629

Tail-drop policies discard packets indiscriminately once a queue saturates, which can silently shed critical validator heartbeat/consensus packets during traffic surges. Adds a WREDQueue that derives a per-priority drop probability from queue saturation, so low-priority telemetry packets are shed progressively as the queue fills while high-priority consensus packets keep flowing through.

Also fixes a pre-existing NameError (missing math/Tuple imports) in src/queue/backpressure.py that was breaking SlidingWindowRateLimiter tests.

…tellarFlow-Network#629)

Tail-drop policies discard packets indiscriminately once a queue
saturates, which can silently shed critical validator heartbeat/consensus
packets during traffic surges. Adds a WREDQueue that derives a per-priority
drop probability from queue saturation, so low-priority telemetry packets
are shed progressively as the queue fills while high-priority consensus
packets keep flowing through.

Also fixes a pre-existing NameError (missing `math`/`Tuple` imports) in
src/queue/backpressure.py that was breaking SlidingWindowRateLimiter tests.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@okoye-collins Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

🕒 Queue-Backpressure | Adaptive Weighted Random Early Detection (WRED) Drops

1 participant