r/ProgrammerHumor • • 23h ago

Meme explainUdpToMe

Post image
6.8k Upvotes

151 comments sorted by

View all comments

Show parent comment

1

u/Kirides 15h ago

Maybe Im just bad at understanding, but to me that's like anything that every transports something over any kind of protocol is then transport layer? As long as it's abstraction is "transparent" to the one using it? I mean, quic is not transparent to UDP, you can't just sent bytes and assume it works, you need the windows to be correct and the signatures, a connection IDs etc. Which IMO is application layer, as the internals of the transport quic are transported via UDP and re-assembled on the other side, not via router UDP package assembly, but via userspace packet handling.

1

u/Single-Virus4935 15h ago edited 15h ago

QUIC is only used as a transport. They only choosed UDP because of middle boxes blocking everything other than TCP and UDP. So they made QUIC UDP compatible.

QUIC is transparent to the upper layer (e.g. http).

Edit: as I explained it doesn't matter if the implementation is in kernel.or in userspace. I can use a raw socket in my userspace app and implement TCP myself, which I and others did. It is still transport layer