freenode
Kernel & Low-Level

Kernel developer proposes native Linux QUIC sockets

Xin Long's series would add an in-kernel QUIC transport for SMB, NFS, and ordinary sockets, leaving the TLS handshake in user space.

Xin Long has posted a proposal to add QUIC, the UDP-based secure transport defined in RFC 9000, as a protocol inside the Linux kernel. Sent to the kernel networking list, the work is meant to let file servers and ordinary applications use QUIC without pushing every packet through a separate user-space process.

The design keeps the cryptographic handshake outside the kernel. User space creates the raw TLS handshake messages; once that exchange finishes through the kernel's existing handshake interface, data moves over in-kernel transport calls. That split is intended to let subsystems such as SMB and NFS run over QUIC with small changes, while still using a TLS stack that already lives in user space.

Applications would open a stream socket with a new QUIC protocol identifier and then use familiar calls to listen, accept, connect, send, and receive. Long rejected attaching QUIC as a layer on a single UDP socket. Connection migration can require more than one UDP socket for one QUIC connection, and one UDP socket can also front many QUIC connections. A dedicated socket type over a UDP tunnel is meant to cover both.

The posted core covers connection identifiers, stream management, path handling for migration, packet-number tracking, packet encryption, and loss detection with a New Reno congestion controller. It also includes unreliable datagrams, version negotiation, QUIC version 2, and greasing of the QUIC bit, drawing on the related QUIC RFCs. Application-protocol negotiation could hand connections from one listener to different user-space processes. Control messages stay in the kernel to cut system-call overhead, and the data path is built for sendfile-style zero copy, with room later for crypto hardware offload.

Kernel networking maintainer Paolo Abeni has acknowledged the series. It remains a proposal for a future kernel, not code already in a release.