Linux 7.5 To Introduce An In-Kernel QUIC Implementation

(phoronix.com)

32 points | by voxadam 4 hours ago ago

3 comments

  • Veserv 2 hours ago ago

    I continue to be baffled by why every single QUIC implementation has such poor performance. This implementation struggles to reach 5 Gb/s [1] with encryption disabled.

    To explain clearly, we can consider a transport protocol to consist of a data plane, i.e. copying bytes from place to place, and a control plane, i.e. deciding which bytes are needed and where they need to go. If you have a data plane that can operate at a rate of D bits/s and a control plane that can operate at a rate of C bits/s then the total rate will be the sum of rates: 1 / ((1 / D) + (1 / C)).

    You can achieve a 3-copy data plane with zero thought by doing a copy from the memory where the NIC DMA's (puts) the memory to a generic memory storage area. A copy from the generic memory storage area to the QUIC stream. And finally a copy from the QUIC stream to the user. On any system with a 100 Gb/s NIC like the benchmark linked you are almost certainly going to have at least ~100 Gb/s of memory copy, so a zero thought data plane should be operating at ~33 Gb/s.

    Assuming a ~33 Gb/s data plane, that would mean their control plane is bottlenecking at ~5-6 Gb/s. If we cut the memory bandwidth in half, still only ~7 Gb/s of control plane. If we double the number of copys on top of that the control plane would still only be getting ~12 Gb/s. At a 1500 byte MTU, 12000 bits, that is barely a million packets per second of control plane after making the data plane 4x slower than it should be. That is so slow it is baffling.

    [1] https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-n...

    • drewg123 an hour ago ago

      Something seems really slow with their results even for TCP. They only get 23gb from a 100g network with TCP!

      • Veserv 8 minutes ago ago

        That does not seem too uncharacteristic for a single software TCP connection with untuned parameters.

        They probably should have done at least basic parameter tuning for high bandwidth use cases before benchmarking, like increasing buffer sizes, but it is not too unreasonable to use a default parameter set.

        It is still kind of silly that the default parameter set does not properly scale up to modest speeds like 100 Gb/s, but that is fairly orthogonal to just how slow these QUIC implementations are even against poorly tuned parameters.