Skip to content

Conversation

@neilalexander
Copy link
Contributor

@neilalexander neilalexander commented Mar 18, 2022

This is a new fairer queue than the existing FIFO queue.

Rather than just having a single queue per peer, we have 32 of them, each able to hold 255 frames. Traffic is divided up into queues based on the source keys. If a queue is full, new frames will be dropped.

We'll pull traffic off queues at random so this means that specific flows of traffic can't exhaust all available buffer space for a peer.

@neilalexander neilalexander merged commit 8687b0d into main Mar 18, 2022
@neilalexander neilalexander deleted the neilalexander/fairqueue branch March 18, 2022 15:31
@neilalexander neilalexander mentioned this pull request Mar 29, 2022
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