ngtcp2 is an open implementation of the QUIC protocol defined in RFC 9000. It ships as a C library with optional crypto helpers and example clients and servers.
Overview
ngtcp2 implements the IETF QUIC transport protocol. The core libngtcp2 library is written in C11 and has no mandatory external dependencies, while example programs use modern C++ and additional libraries for TLS and HTTP/3.
Public documentation and a test server endpoint are available for trying the stack. Example HTTP/3 endpoints can advertise HTTP/3 via Alt-Svc when accessed over HTTP/1.1 or HTTP/2. Implementations cover session resumption, 0-RTT data, address-validation tokens, and several QUIC protocol extensions.
A crypto helper layer abstracts TLS integration across multiple backends, including GnuTLS, BoringSSL or aws-lc, Picotls, wolfSSL, LibreSSL, and experimental OpenSSL builds. Matching sample clients and servers are built only when the corresponding backend is enabled.
Wireshark can be configured with SSL key logging to inspect QUIC traffic from the examples. Separate HQ-protocol clients and servers exist for interoperability testing with reduced functionality compared to full HTTP/3 peers.
Key features
- RFC 9000 QUIC protocol implementation
- Pluggable TLS crypto helper libraries
- Example HTTP/3 and HQ clients and servers
- Session resumption and 0-RTT support
- QUIC extension support documented in project documentation
- Public interop test endpoints
- Wireshark debugging instructions
- Minimal-dependency core C library
Use cases
- Embedding QUIC in custom network stacks
- HTTP/3 client and server experiments
- TLS backend comparison for QUIC
- Protocol interop and testing
- Analyzing QUIC sessions in Wireshark