Post-quantum encryption adoption (opens external site)
View full thread · View on Hacker News
To get push notifications on iPhone or iPad, add Hack and Chat to your Home Screen: tap Share → Add to Home Screen, then open the installed app and enable push in Settings.
View full thread · View on Hacker News
I think you're overly optimistic in presuming a client knows the one-way latency to the endpoint or vice-versa. I don't know anyone doing that and whatever value you choose is going to be wrong unless you bring to bear additional side channel information to try to minimize the error rate.
> so all you are actually saying is that you previously sent M bytes in a connection, but now you send M + N bytes in a connection and that takes more time and incurs more potential for loss which is true, but not special
Actually, initial connection is more privileged. It reserves resources on the server that are needed to move forward with the connection. QUIC's normal data stream is very resilient to packet loss where unimpacted ordered streams can continue transmission. That isn't true for the connection establishment.
All your responses also completely disregard the memory impact which is the second half the size of the connection packet is relevant. You don't need any of the complexity you specified. You can just raise the IRW without any of what you just mentioned. The problem is that I can exhaust the RAM of your server with orders of magnitude fewer connections now.
Replies (1)
The initial connection window should not be any more privileged than any other choice of initial receiver window. In QUIC this is largely true as it is largely managed as just another stream subject to regular congestion control, resends, and reordering.
Any initial receiver window is a decision as to the amount of memory resources you will accept to handle connection establishment and any initial data pipelined relative to the connection establishment you wish to receive. You should probably tune this to fit your average small-connection use case on your endpoint which would enable you to service a entire request, including handshake, in 1 RTT and allow resource reclamation in 1.5 RTT.
> The problem is that I can exhaust the RAM of your server with orders of magnitude fewer connections now.
So? It is not like you need to reserve the entire initial receiver window worth of memory upfront. You can just allocate the amount of resources directly in proportion to the amount of data received. With such a scheme there is no way for them to amplify their memory usage or bandwidth usage. So, a attacker would still need to send the same amount of data in a DDoS with the only advantage being they need fewer connections so I guess you can take someone down with 1/10th the number of IP addresses? Is that the concern?
Replies (1)
It’s called a slow loris attack. I send you all but the last packet and then wait so you’re at your worst case, forcing you to keep the maximal amount of memory around. I can also send packets out of order intentionally so you’re stuck holding them in kernel buffers and can’t process.