23 points voxadam 2 hours ago 1 comments
Veserv 1 hour ago | parent
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...