HTTP/K.0
Runs a low-latency HTTP-like protocol over UDP for games and streaming.
- Year
- 2025
- Status
- In progress
- Stack
- Rust, Tokio, rustls, ChaCha20-Poly1305, HPACK
- Links
- Source code
Context
HTTP/K.0 explores a custom transport protocol inspired by QUIC for browser-scale gaming and real-time streaming.
The problem
TCP head-of-line blocking and loss-based congestion control can add latency to independent real-time streams.
Architecture
A Rust UDP transport passes framed application data through connection state, packet coding, stream flow control, congestion control, encryption, ACK tracking, and optional FEC recovery.
Decisions and trade-offs
- Independent reliability per stream
- Streams can use ordered reliability or unordered partial delivery, trading strict correctness for lower latency where appropriate.
- BBR-lite instead of loss-only control
- Bandwidth and RTT estimates pace traffic, avoiding CUBIC-style throughput drops on every packet loss.
- XOR forward error correction
- One lost packet in a four-data-packet group can be reconstructed without a retransmission round trip.
Implementation
22-byte packet headers, TLS 1.3, per-packet ChaCha20-Poly1305, HPACK compression, 0-RTT tickets, RTT estimation, ACK and NAK tracking, and BBR congestion phases.
Outcomes and lessons
9 GitHub stars.