Portfolio Blog Code Repository Contact

UDP over QUIC: The Next Frontier for Circumvention BPP Blog

This is part 13 of the Black Phoenix Protocol (BPP) engineering blog series. Start with Part 00 if you are new here.


The Black Phoenix Protocol, as it currently stands, operates over TCP. Like Shadowsocks, Trojan, and early V2Ray architectures, we rely on the reliability guarantees of TCP to ensure our encrypted byte streams arrive intact.

But TCP is aging, and in the context of adversarial networks and heavy censorship, TCP's built-in "features" are actually vulnerabilities. The future of circumvention lies in UDP, specifically through the QUIC protocol and HTTP/3.

The Problem with TCP in Hostile Networks

State-controlled firewalls don't just block connections; they throttle them, inject noise, and aggressively drop packets to degrade the user experience of encrypted tunnels.

When this happens over a TCP connection, we encounter Head-of-Line (HoL) Blocking.

Imagine BPP is multiplexing 10 different web requests (images, HTML, CSS) over a single TCP socket. If the firewall drops a single packet belonging to an image, the OS TCP stack halts everything. The HTML and CSS cannot be processed by the BPP client until that one missing image packet is retransmitted and acknowledged.

In a congested, throttled network environment (typical of international routing out of heavily censored countries), this turns a high-speed proxy into a crawling, unusable mess.

Enter QUIC

QUIC is a modern transport protocol built on top of UDP. It powers HTTP/3 and is currently being deployed by Google, Cloudflare, and major CDNs.

QUIC solves the HoL blocking problem. It implements multiplexing at the transport layer. If a packet is dropped, only the specific stream associated with that packet is delayed; the rest of the streams continue processing immediately.

But for circumvention, QUIC offers something even more valuable: Deep Encryption.

Why QUIC is a Censor's Nightmare

In traditional TLS over TCP, the TCP headers (sequence numbers, acknowledgment numbers, window sizes) are in plaintext. Deep Packet Inspection (DPI) uses these plaintext headers to identify the OS, infer latency, and sometimes fingerprint the proxy software based on how it handles TCP window scaling.

QUIC encrypts almost everything. The packet numbers, the acknowledgments, and the flow control data are all wrapped in encryption. To a DPI box, a QUIC stream looks like a pure, opaque flow of UDP packets.

The Challenge of Spoofing QUIC

While QUIC is highly secure, it presents a new challenge for camouflage (the Chameleon Engine discussed in Part 02).

Because QUIC's handshake is so tightly integrated with TLS 1.3, it is incredibly difficult to cleanly separate the transport layer from the cryptographic layer. You cannot easily do "PeekConn" tricks over UDP to impersonate a Google QUIC server without actually possessing Google's private keys.

If BPP were to migrate to QUIC, we would likely have to abandon XTLS-REALITY's impersonation model and rely on different techniques, such as:

  1. Masquerading as HTTP/3 API traffic: Using legitimate domains we control but mimicking the traffic patterns of popular REST APIs.
  2. WebTransport: A new W3C standard that allows building proxy tunnels natively within a browser's HTTP/3 connection, shifting the proxy client directly into the browser tab.

Conclusion of the Series

Building the Black Phoenix Protocol has been an intense journey into the lowest levels of networking and cryptography. We've explored the limitations of encryption, the necessity of camouflage, the power of active DPI probing, and the operational reality of running burner infrastructure.

The cat-and-mouse game of censorship will never end. As ML models get smarter and firewalls get faster, protocols like BPP will have to adapt perhaps moving entirely to QUIC, or perhaps shifting to entirely new paradigms we haven't invented yet.

Thank you for reading the BPP Engineering Blog Series.

Stay secure, and keep building.


End of Series.

Amine Boutouil

Cybersecurity & Infrastructure Engineer | Network Architecture & Secure Systems Design

boutouil.me →