matt on Nostr: AFAIR QUIC has the same number of round trips as normal TLS if you set the TCP ...
AFAIR QUIC has the same number of round trips as normal TLS if you set the TCP options right. Basically it shaves off RTs because it begins the TLS handshake in the SYN. You can do that with TCP, too, doubly so if you aren’t using a TLS library that sets socket options for you. The claim in your diagram that you need 0 full RTs to do QUIC setup is nonsense, that’s just if you’ve spoken to the server before and it has cached keys, but the 0 RTT TLS stuff isn’t being implemented in generic HTTP stacks because of replay issues.
Published at
2024-10-19 21:37:22Event JSON
{
"id": "603f21e724167d2b322c4b4306dc7b563465aee965e0cb4d9cc9c5228c8823ec",
"pubkey": "3d2e51508699f98f0f2bdbe7a45b673c687fe6420f466dc296d90b908d51d594",
"created_at": 1729373842,
"kind": 1,
"tags": [
[
"e",
"000060092803690ec457c766db52fe7af3281e9c8385d4de5948cd22f00f2ded",
"",
"root"
],
[
"e",
"96f3be3305a10b6867ffb2d38c63258e8060ce466f04643d308a675913d4d374",
"",
"reply"
],
[
"p",
"ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49"
],
[
"p",
"32e1827635450ebb3c5a7d12c1f8e7b2b514439ac10a67eef3d9fd9c5c68e245"
],
[
"p",
"bbc73cae41502ddad7a4112586dcaf4422810d60aa4b57c637ccd1a746b07844"
],
[
"p",
"59cacbd83ad5c54ad91dacf51a49c06e0bef730ac0e7c235a6f6fa29b9230f02"
]
],
"content": "AFAIR QUIC has the same number of round trips as normal TLS if you set the TCP options right. Basically it shaves off RTs because it begins the TLS handshake in the SYN. You can do that with TCP, too, doubly so if you aren’t using a TLS library that sets socket options for you. The claim in your diagram that you need 0 full RTs to do QUIC setup is nonsense, that’s just if you’ve spoken to the server before and it has cached keys, but the 0 RTT TLS stuff isn’t being implemented in generic HTTP stacks because of replay issues.",
"sig": "81bf034d90213c983ab7d9a2ed68b60d0de4c1792d68185e91142606fcb0bbd9f85adc45606e9d810218de6720cdddd2d013fae2cb40e4858d9756375e8c50d7"
}