aws / s2n-quic

An implementation of the IETF QUIC protocol
https://crates.io/crates/s2n-quic
Apache License 2.0
1.1k stars 114 forks source link

Implement stream prioritization #228

Open camshaft opened 3 years ago

camshaft commented 3 years ago

From https://tools.ietf.org/html/draft-ietf-quic-transport-32#section-2.3

A QUIC implementation SHOULD provide ways in which an application can indicate the relative priority of streams.

cavemanloverboy commented 7 months ago

Can this be done with a congestion controller or must it be done through the core protocol?

camshaft commented 7 months ago

The congestion controller meters the link and QUIC multiplexes streams on that single link. Stream prioritization is a mechanism to allow one stream to consume more packets than another stream. In s2n-quic, streams are currently round-robined so each stream transmits 1 packet until the congestion window or flow window is reached.

So all that being said, stream prioritization isn't really related to the congestion controller.