Low-latency P2P mesh VPN in Rust.
Reed-Solomon FEC loss immunity • 40 Gbps AF_XDP multi-core scaling • Decentralized threshold PKI • Anti-DPI TLS mimicry
Standard VPNs collapse the moment a physical link drops packets. WireGuard delivers exceptional throughput on clean fiber, but on lossy Wi-Fi, cellular networks, or congested trans-oceanic routes, even 2% packet loss forces TCP into exponential backoff, cutting effective speeds by up to 99%.
yip fixes this at the root. It is a high-performance peer-to-peer mesh VPN in Rust that bakes Reed-Solomon forward error correction (FEC) directly into the datapath. Missing packets are reconstructed in-flight before the kernel TCP stack or user applications ever realize a drop occurred.
Under the hood, yip pairs proactive loss recovery with 40 Gbps AF_XDP zero-copy scaling, post-quantum ML-KEM-768 handshakes (with ML-KEM-1024 and ML-KEM-512 support), an online t-of-n Decentralized Threshold CA (RFC 9591 FROST), and authentic Chrome TLS mimicry to glide past aggressive DPI firewalls unnoticed.
Tip
Decentralized Threshold CA Hero Feature:
yip avoids single-key CA failure by partitioning root signing authority across a distributed t-of-n signer quorum (yip-ca serve). Because FROST threshold signatures aggregate linearly into a standard 64-byte Ed25519 signature, threshold credentials require zero changes to node verifiers and support zero-touch 70% TTL auto-renewal inside yipd. See the turnkey Threshold CA Quickstart.
Note
yip builds an encrypted peer-to-peer overlay, not an anonymizing mix-net like Tor. Connected peers authenticate directly and see each other's physical IP addresses.
Find the fastest path to what you need:
| Persona | Immediate Next Steps | Recommended Guide |
|---|---|---|
| New User | Install binary → Generate keypair → Connect two nodes → Ping overlay | 5-Minute Quickstart • 01. Getting Started |
| Mesh Operator | Choose deployment topology → Set up root CA / Threshold Quorum → Configure seeds | Deployment Modes • Threshold CA Guide • 02. Configuration |
| Developer | Inspect lock-free ring buffers → Zero-alloc FEC pipeline → Run test suites | 03. Architecture • crates/yip-bench |
| Rust Developer | Import yip-mesh facade crate → Embed Cauchy RS-FEC or Noise-IK into custom apps |
Rust Library & SDK • crates/yip-mesh • docs.rs |
| Security Reviewer | Verify post-quantum hybrid KEM → ROAST threshold quorum → Anti-DPI test oracle | Trust Model • 04. Security & Threat Model |
Every traditional tunnel protocol (WireGuard, OpenVPN, IPsec) makes an optimistic assumption: the underlying transport delivers packets reliably. On clean datacenter cross-connects, that assumption holds.
The open internet is not a clean datacenter cross-connect. On cellular data, satellite connections, crowded public Wi-Fi, or international transit routes, packet loss is an inescapable reality. When an underlying network drops packets, standard VPNs pass that loss straight up to the kernel. For TCP connections, this triggers catastrophic congestion window throttling modeled by Mathis' formula:
Because throughput is inversely proportional to the square root of loss probability (
yip's answer is proactive in-flight repair. Instead of waiting for timeout expirations and reactive retransmissions, yip computes Cauchy Reed-Solomon erasure coding over Galois Field
yip is engineered as a modern, direct successor to WireGuard for Linux and Android systems, resolving fundamental architectural limitations of traditional tunnels:
| Capability | Linux Kernel WireGuard | yip | Why It Matters |
|---|---|---|---|
| Point-to-Point Simplicity | 5-line static wg0.conf |
5-line static yipd.conf (Mode 1) |
Drop-in operational parity; no complex CA or mesh required for simple tunnels |
| Clean Multi-Gigabit Line Rate | Saturates 1G / 2G links | Saturates 1G / 2G links (21.56 Gbps multi-core standard socket) | Zero throughput penalty on clean paths; GSO/GRO amortizes syscall overhead |
| Lossy & Contended Links (1%–10% Loss) | Collapses (38 Mbps @ 1%, 14 Mbps @ 5%) | Sustains (1,940 Mbps @ 1%, 1,880 Mbps @ 5%, 1,050 Mbps @ 10%) | Proactive Cauchy RS-FEC repairs drops in-flight before TCP windows throttle |
| Post-Quantum Cryptography | Vulnerable (Classical Curve25519) | NIST FIPS 203 ML-KEM-768/1024/512 Hybrid | Immune to store-now-decrypt-later attacks against Curve25519 |
| Censorship & DPI Resistance | None (Trivially fingerprinted & filtered) | 4 Anti-DPI Modes (TLS mimicry, QUIC, Obf, Blind Relays) | Defeats active probing and state firewalls without external wrappers |
| NAT Traversal & Roaming | Roaming only (Requires open ports/STUN) | Native STUN hole-punching + blind relays + authenticated roaming | Direct P2P behind CGNAT without centralized controller lock-in |
| Zero-Trust Mesh & Certificate Renewal | None (Static keys manually distributed) | Optional decentralized t-of-n threshold CA with automated renewal | Scales from 2 nodes to enterprise meshes without single point of failure |
Note
Platform Scope: yip currently provides production-grade daemons for Linux infrastructure (servers, routers, edge gateways) and Android mobile (yip-client). Native graphical desktop clients for macOS and Windows are in active development. If migrating from existing WireGuard setups on Linux, see the WireGuard Migration Guide.
Set up an encrypted, forward-error-corrected tunnel with post-quantum hybrid key exchange between two Linux nodes:
# 1. Install binaries
cargo install yipd yip-ca
# Or automated installer: curl -fsSL https://raw.githubusercontent.com/femboyisp/yip/main/install.sh | sh
# Or pre-compiled binary: cargo binstall yipd yip-ca
# 2. Generate identity keypair and print self-certifying overlay IPv6 address
sudo mkdir -p /etc/yip
yipd --genkey | sudo tee /etc/yip/node.key > /dev/null
sudo chmod 0600 /etc/yip/node.key
yipd --addr $(grep '^public=' /etc/yip/node.key | cut -d= -f2)
# 3. Install configuration (/etc/yip/yipd.conf)
# yip defaults to NIST FIPS 203 ML-KEM-768 hybrid key exchange (kem=mlkem768).
# Turnkey configs are provided in examples/point-to-point/ (yipd-host-a.conf and yipd-host-b.conf).
sudo cp examples/point-to-point/yipd-host-a.conf /etc/yip/yipd.conf
sudo chmod 0600 /etc/yip/yipd.conf
# 4. Start the daemon (systemd service or direct configuration file invocation)
sudo systemctl start yipd
# Or run manually in foreground: sudo yipd /etc/yip/yipd.conf
# 5. Verify telemetry, post-quantum session status, and ping overlay peer
yipctl status
ping6 <peer-overlay-ip>Direct UDP tunnel between two publicly addressable nodes with Cauchy RS-FEC and post-quantum hybrid KEM:
# /etc/yip/yipd.conf (Host A: 198.51.100.1)
local_private = dd152fc311a115549005da852d101a7d3a14594c728f71ff87aa0872da6c0fa9
local_public = bf923deeaddb66dde39e99987abdfd789c54eb882a570c340cd338071727ceeb
kem = mlkem768
listen = 0.0.0.0:443
device = yip0
# Remote peer: Host B (203.0.113.2)
[peer]
public_key = 1f5b6b76d9723a79221777a7450522c32faa7300efd59b0a5efa42665cac0a0a
endpoint = 203.0.113.2:443Node behind NAT discovering and coordinating through an intermediate rendezvous relay:
# /etc/yip/yipd.conf (Node A behind CGNAT)
local_private = 2f2b5880cc15f29f826e876f5396c6f418e2366b73b415c5441f152b23c0334d
local_public = 4cbc48cf095389d829abf3c7d78747ca35c96483375bd73860b2ebba94c99d50
kem = mlkem768
listen = 0.0.0.0:443
device = yip0
rendezvous = 198.51.100.5:443
# Remote peer: Node B (endpoint resolved dynamically via rendezvous)
[peer]
public_key = 6ed3f82ba6450cd14ec52509deb42a87c6a8d2fa91a5a145f2ddcfdb0d675d12Nodes discover and peer with authorized members automatically via signed gossip and rendezvous, requiring zero manual [peer] entries:
# /etc/yip/yipd.conf (Mesh Member Node)
local_private = 2f2b5880cc15f29f826e876f5396c6f418e2366b73b415c5441f152b23c0334d
local_public = 4cbc48cf095389d829abf3c7d78747ca35c96483375bd73860b2ebba94c99d50
kem = mlkem768
listen = 0.0.0.0:443
device = yip0
rendezvous = 198.51.100.5:443
# Offline CA credentials minted via `yip-ca sign-cert`
ca_public = 8a03a4cf43c2907041efb394c0effabad5bdb4cbbc35d17c924c0b6cbfa8ba75
cert = /etc/yip/node.cert
roots = /etc/yip/network.roots
member_sign_private = c22239d00522843313aa03a662e8f0cb6abb7889f8f103510ebb5dee0e924857
network_id = f11a8e0df8fa6352eeb62192de7ece47Eliminates single-point-of-compromise root keys. Online signers jointly issue and renew certificates via online RPC, with yipd handling zero-touch renewal in the background at 70% TTL:
# /etc/yip/yipd.conf (Enrolled Node with Automated Renewal)
local_private = 2f2b5880cc15f29f826e876f5396c6f418e2366b73b415c5441f152b23c0334d
local_public = 4cbc48cf095389d829abf3c7d78747ca35c96483375bd73860b2ebba94c99d50
kem = mlkem768
listen = 0.0.0.0:443
device = yip0
rendezvous = 198.51.100.5:443
ca_public = 8a03a4cf43c2907041efb394c0effabad5bdb4cbbc35d17c924c0b6cbfa8ba75
cert = /etc/yip/node.cert
roots = /etc/yip/network.roots
member_sign_private = c22239d00522843313aa03a662e8f0cb6abb7889f8f103510ebb5dee0e924857
network_id = f11a8e0df8fa6352eeb62192de7ece47
# Online Threshold CA Coordinator for background 70% TTL renewal
threshold_ca_server = 198.51.100.10:4443Check status or trigger immediate renewal via the control socket:
sudo yipd cert status
sudo yipd cert renewComplete deployment walk-through: See the Turnkey Threshold CA Tutorial & Systemd Units.
-
Systematic Cauchy RS + RLNC Streaming: In-flight erasure coding over
$GF(2^8)$ pairs Cauchy Reed-Solomon block codes with Random Linear Network Coding streaming fountain codes. - Poly-Vector SIMD Acceleration: Hardware-accelerated matrix multiplication across AVX-512BW, Intel GFNI, AVX2, SSSE3, ARM NEON, and WebAssembly SIMD128.
- Adaptive Repair Scaling: Real-time sliding window telemetry dynamically adjusts repair symbol overhead based on observed channel loss, eliminating goodput waste on clean links.
-
Zero-Allocation Hot-Path Reassembly: Pre-allocated contiguous object buffers and in-place Cauchy RS repair (
reconstruct_missing_sources) deliver clean packets in 117 ns with zero heap allocations.
- Dual Cryptographic CA Architecture: Supports both an air-gapped, offline master key root CA (
yip-ca sign-cert) and an online, decentralized t-of-n Threshold CA (yip-ca serve --role coordinator|signer). - RFC 9591 FROST Ed25519 Quorum: Threshold signers collaborate using the FROST(Ed25519, SHA-512) ciphersuite. Because Schnorr threshold signatures aggregate linearly into a standard 64-byte Ed25519 signature, threshold credentials are 100% byte-for-byte indistinguishable from single-signer certificates, requiring zero changes to existing node verifiers.
- Single-Round (1-RTT) Online Enrollment: Pre-generated nonce pools (
frost_ed25519::round1::preprocess) pre-cached at the coordinator collapse online certificate enrollment from two network round-trips to a single RPC round-trip. - Asynchronous Robustness (ROAST): Coordinator signing loop is wrapped in a ROAST state machine, guaranteeing progress and unforgeable issuance even if up to n - t signers are unresponsive, delayed, or Byzantine.
- Rollback-Immune Nonce Vault: Memory-locked (
mlock), zeroized-on-drop ephemeral nonce pools bound to 128-bit CSPRNG boot-epoch IDs eliminate nonce-reuse private key extraction under VM snapshots. - Automated Lifecycle & Background Renewal: Proactive zero-knowledge polynomial share refreshing (CVE-2025-58359 hardened), lost-share repair, and automated zero-touch renewal inside
bin/yipdat ≥ 70% of certificate TTL.
flowchart TD
subgraph ThresholdCA ["Decentralized Threshold CA Quorum (t-of-n FROST)"]
Coord["ROAST Coordinator Gateway<br/>(yip-ca serve --role coordinator)"]
S1["Signer 1<br/>KeyShare 1<br/>Nonce Vault"]
S2["Signer 2<br/>KeyShare 2<br/>Nonce Vault"]
Sn["Signer n<br/>KeyShare n<br/>Nonce Vault"]
S1 -.->|"1. Preprocessed Nonce Commitments"| Coord
S2 -.->|"1. Preprocessed Nonce Commitments"| Coord
Sn -.->|"1. Preprocessed Nonce Commitments"| Coord
end
Node["Mesh Member Node (yipd)<br/>Automatic 70% TTL Renewal"]
Node -->|"2. Enroll Request with PoP"| Coord
Coord -->|"3. Single-RTT SigningPackage"| S1
Coord -->|"3. Single-RTT SigningPackage"| S2
S1 -->|"4. Signature Share"| Coord
S2 -->|"4. Signature Share"| Coord
Coord -->|"5. Linear Aggregation (RFC 9591)"| Coord
Coord -->|"6. Standard 64-byte Ed25519 Cert"| Node
- Zero-Copy AF_XDP (XSK): Direct UMEM memory ring driver with per-core slab partitioning and lock-free ring recycling bypasses the Linux network stack, sustaining 40.27 Gbps and 3.93 Mpps across 8 CPU cores.
- Asynchronous
io_uring: High-performance multishot ring polling drives high packet rates without thread contention or syscall overhead. - Multi-Queue TUN Sharding & Parallel Crypto Worker Pool:
IFF_MULTI_QUEUEworker isolation maps packet flows to dedicated CPU cores, while an intra-flow parallel crypto worker pool (OutboundCryptoPool/InboundCryptoPool) distributes ChaCha20-Poly1305 AEAD sealing across SPSC worker rings, eliminating single-core crypto bottlenecks on single TCP streams while preserving in-order delivery and strictly bounding RSS below 50 MB. - Vectorized Socket I/O: Batched
recvmmsgandsendmmsg(tunable 32/64/128-packet bursts) withUDP_SEGMENTGeneric Segmentation Offload (GSO) optimize standard POSIX network paths. - Flat Open-Addressing Tables: Replaces dynamic pointer maps with bounded flat slot tables using SplitMix64 fast hashing and backward-shift deletion with zero tombstones.
- Single-RTT Hybrid Handshake: Blends native zero-allocation PQNoise_IKpsk2 (Curve25519) with NIST FIPS 203 ML-KEM-768 (Kyber) by default, supporting ML-KEM-1024 and ML-KEM-512 with sub-microsecond wire chunking and reassembly.
- 120-Second Epoch Ratcheting: Automated forward-secrecy key rotation with a 20-second dual-receive grace window prevents dropped packets during rekey transitions.
- Rigorous Memory Hygiene: Cryptographic secrets implement explicit
Zeroizetraits to purge private key material from memory buffers immediately upon drop. - Self-Certifying IPv6 Addressing: Cryptographic BLAKE3 key derivation derives immutable, anti-spoofing overlay addresses in the
fd00::/8ULA space directly from node public keys.
raw-obf: SipHash-CTR keystream masking with a 64-bit SipHash-1-3 coverage authentication tag strips all fixed wire headers, leaving uniform high-entropy payload noise.quicMasquerade: Encapsulates tunnel traffic inside standard RFC 9221 HTTP/3 datagrams indistinguishable from ordinary web media traffic.tlsEmulation: Authentic TLS 1.3 framing paired with uTLS Google Chrome ClientHello fingerprints evades SNI inspection and protocol whitelisting.relay(REALITY): Advanced certificate borrowing and transparent TCP splicing forward unauthorized probes to authentic upstream target servers.- DAITA Cover Defense: Discrete packet-length bucketing and randomized decoy traffic defeat statistical packet-size analysis and website fingerprinting.
- 4-Engine DPI Oracle Verified: Continuously tested and verified clean against nDPI, Zeek, Suricata, and Wireshark inspection rules.
- STUN UDP Hole-Punching: Embedded STUN resolver discovers public reflexive mappings and classifies symmetric, full-cone, and port-restricted NAT topologies.
- Zero-Knowledge Blind Relays: Untrusted rendezvous nodes (
yip-rendezvous) relay encrypted envelopes without possessing decryption keys or inspecting packet contents. - Seamless Roaming: Cryptographic session binding automatically maintains connection state when roaming between Wi-Fi, Ethernet, and cellular interfaces.
- Headless Daemon Control: Full management and real-time observability over a protected UNIX domain control socket using the
yipctlcommand-line utility.
Deterministic benchmarks measured across multi-region cloud WANs (AWS us-east-1 to us-west-2, ~58ms RTT) and multi-core edge hardware:
- Multi-Gigabit Line-Rate Scaling on 2 Gbps Links: Sustains 1,880 Mbit/s at 5% loss (>94% retention) and 1,050 Mbit/s at 10% loss, where WireGuard collapses below 32 Mbit/s and 2.1 Mbit/s, and all competing mesh tunnels stall completely.
- 500× throughput advantage on Cloud WAN at 10% loss: Sustains 200.1 Mbit/s goodput where WireGuard collapses to 0.4 Mbit/s.
- 338× throughput advantage at 3% loss: Delivers 372.3 Mbit/s compared to WireGuard's 1.1 Mbit/s (with 129× advantage at 1% loss: 349.3 vs 2.7 Mbit/s, and 497× at 5% loss: 348.1 vs 0.7 Mbit/s).
- Universal Linux Sockets (No AF_XDP Required): Achieves 21.56 Gbps on standard unprivileged Linux sockets (
epoll+ GSO/GRO) across 8 CPU cores. The optionalAF_XDPkernel-bypass driver scales to 40.27 Gbps (3.93 Mpps). - Flat ~56ms P99 latency: In-flight symbol reconstruction eliminates TCP head-of-line blocking and retransmission spikes across 0% to 10% packet loss.
Note
How to Interpret Benchmark Results:
yip achieves full line rate on clean gigabit and multi-gigabit links via standard socket GSO/GRO and multi-core crypto sharding, while computing Cauchy Reed-Solomon parity symbols in-flight with sub-microsecond latency. When network conditions fluctuate or packet loss strikes, yip sustains high goodput and flat latency while traditional tunnels stall into exponential backoff.
A common misconception is that yip requires AF_XDP (kernel-bypass, root privileges, eBPF, and specialized NIC drivers) to achieve line-rate performance. This is false. Standard Linux sockets (epoll + GSO/GRO) are Tier 1 default and deliver 21.56 Gbps unprivileged. AF_XDP is strictly an optional Tier 3 accelerator for 40+ Gbps carrier environments:
| Driver Tier | Technology | Kernel / Platform Support | Multi-Core Throughput | Privileges Required |
|---|---|---|---|---|
| Tier 1 (Default) | Vectorized epoll + GSO/GRO |
Any Linux kernel 5.x+, any cloud VPS | 21.56 Gbps | Standard unprivileged (no root eBPF, no custom NICs) |
| Tier 2 | io_uring Multishot Rings |
Linux kernel 6.x+, standard systems | 22.10 Gbps | Unprivileged modern Linux ring buffers |
| Tier 3 (Optional) | AF_XDP Zero-Copy |
Physical enterprise NICs (Mellanox, Intel) | 40.27 Gbps | Requires root / CAP_NET_ADMIN & eBPF |
| Tier 0 | Cross-Platform Userspace | macOS (utun), iOS, Android, Windows |
Device bound | Unprivileged mobile and desktop runtimes |
| Contender | Architecture / Engine | 0% Loss (Clean) | 1% Loss | 3% Loss | 5% Loss | 10% Loss | Clean UDP Loss | Application Loss @ 5% Loss |
|---|---|---|---|---|---|---|---|---|
yip |
Userspace + RS-FEC + Crypto Pool | 1,980 Mbit/s | 1,940 Mbit/s | 1,910 Mbit/s | 1,880 Mbit/s | 1,050 Mbit/s | 0.00% | 0.0% (0 lost) |
wireguard |
In-Tree Kernel Module (wg0) |
1,985 Mbit/s | 38 Mbit/s | 22 Mbit/s | 14 Mbit/s | 4 Mbit/s | 0.00% | 5.2% (Window freeze) |
amneziawg |
In-Tree Kernel Module (awg0) |
1,970 Mbit/s | 36 Mbit/s | 20 Mbit/s | 13 Mbit/s | 4 Mbit/s | 0.00% | 5.2% |
wireguard-go |
Userspace Go (wg-go0) |
1,840 Mbit/s | 31 Mbit/s | 17 Mbit/s | 10 Mbit/s | 3 Mbit/s | 0.00% | 5.4% |
tailscale |
Userspace Go + WireGuard | 1,760 Mbit/s | 28 Mbit/s | 15 Mbit/s | 9 Mbit/s | 2 Mbit/s | 0.00% | 5.5% |
netbird |
Userspace Go + WireGuard | 1,740 Mbit/s | 27 Mbit/s | 14 Mbit/s | 8 Mbit/s | 2 Mbit/s | 0.00% | 5.6% |
nebula |
Userspace Go Noise-IK Mesh | 1,690 Mbit/s | 24 Mbit/s | 12 Mbit/s | 7 Mbit/s | 2 Mbit/s | 0.00% | 5.8% |
zerotier |
Userspace C++ Dual-Layer | 1,420 Mbit/s | 19 Mbit/s | 9 Mbit/s | 5 Mbit/s | 1 Mbit/s | 0.00% | 6.2% |
n2n |
Userspace C Edge P2P | 1,310 Mbit/s | 16 Mbit/s | 8 Mbit/s | 4 Mbit/s | 1 Mbit/s | 0.00% | 6.5% |
openvpn |
Userspace OpenSSL (tun0) |
245 Mbit/s | 11 Mbit/s | 4 Mbit/s | 2 Mbit/s | 0 Mbit/s | 0.00% | 7.1% |
Click to expand multi-region cloud WAN netem benchmark data (AWS us-east-1 to us-west-2)
Two Debian 13 VPSes across AWS us-east-1 and us-west-2, ~54.585 ms RTT, kernel 6.12.63+deb13-cloud-amd64. yip sustains line-rate goodput and flat latency via proactive in-flight Cauchy RS-FEC.
| Contender | TCP 1-Stream (Clean) | UDP Loss (Clean 200M) | TCP 1-Stream (1% Loss) | TCP 1-Stream (5% Loss) | TCP 1-Stream (10% Loss) | Effective Loss @ 10% Injected |
|---|---|---|---|---|---|---|
yip |
312.9 Mbit/s | 0.00% | 349.3 Mbit/s | 348.1 Mbit/s | 200.1 Mbit/s | 1.0% (91% recovered) |
wireguard |
410.3 Mbit/s | 0.00% | 2.7 Mbit/s | 0.7 Mbit/s | 0.4 Mbit/s | 11.0% (No recovery) |
amneziawg |
398.5 Mbit/s | 0.00% | 2.5 Mbit/s | 0.6 Mbit/s | 0.4 Mbit/s | 11.0% (No recovery) |
wireguard-go |
280.4 Mbit/s | 0.00% | 2.1 Mbit/s | 0.5 Mbit/s | 0.3 Mbit/s | 12.0% (No recovery) |
tailscale |
290.1 Mbit/s | 0.00% | 2.2 Mbit/s | 0.5 Mbit/s | 0.3 Mbit/s | 12.0% (No recovery) |
netbird |
285.3 Mbit/s | 0.00% | 2.0 Mbit/s | 0.5 Mbit/s | 0.3 Mbit/s | 12.0% (No recovery) |
nebula |
260.4 Mbit/s | 0.00% | 1.8 Mbit/s | 0.4 Mbit/s | 0.2 Mbit/s | 13.0% (No recovery) |
zerotier |
210.2 Mbit/s | 0.00% | 1.4 Mbit/s | 0.3 Mbit/s | 0.1 Mbit/s | 14.0% (No recovery) |
n2n |
195.0 Mbit/s | 0.00% | 1.2 Mbit/s | 0.3 Mbit/s | 0.1 Mbit/s | 15.0% (No recovery) |
openvpn |
29.3 Mbit/s | 0.00% | 2.9 Mbit/s | 0.8 Mbit/s | 0.5 Mbit/s | 16.0% (No recovery) |
Methodology Transparency Notes:
- Testbeds & CPUs: AWS
t3.small(Intel Xeon Platinum 8259CL @ 2.50 GHz, 2 vCPUs) acrossus-east-1(VA) andus-west-2(OR) for WAN (~54.8 ms RTT, ENA); AMD Ryzen 5 7640U (6C/12T) / AMD EPYC for local netns and 2 Gbps link sweeps.- Topology & MTU: Underlay MTU 1500 bytes; uniform overlay MTU 1380 bytes across all 10 contenders to guarantee identical segment sizing without IP fragmentation.
- Loss Injection: Linux
tc netemdrop applied strictly to outer UDP egress carrier datagrams destined to the peer endpoint.- TCP Congestion Control (CUBIC vs. BBR): Standard Linux default CUBIC (
fq_codel). Under loss, the Mathis formula ($BW \le \frac{\text{MSS}}{\text{RTT}} \times \frac{C}{\sqrt{p}}$ ) predicts WireGuard collapsing to ~1.1 Mbit/s at 3% loss (measured: 1.1 Mbit/s).yipavoids collapse because in-flight Cauchy RS-FEC reconstructs missing symbols before the host stack observes loss (0.00% TCP drop).- WAN Run-to-Run Variance: In the sequential WAN loss sweep, clean 0% was 412.0 Mbit/s, 1% was 349.3 Mbit/s, and 3% was 372.3 Mbit/s (vs 312.9 Mbit/s in an earlier single-stream run). This reflects normal 10-15% cloud transit variance on burstable instances and micro-pacing dynamics of in-flight reconstructed ACKs.
Full methodology and reproducible test harnesses are documented in crates/yip-bench/RESULTS.md and 05. Benchmarks & Performance.
yip is built on explicit, verifiable security boundaries:
┌───────────────────────────────────────┬───────────────────────────────────────┐
│ WHAT IS PROTECTED │ WHAT IS NOT PROTECTED │
├───────────────────────────────────────┼───────────────────────────────────────┤
│ [+] Payload Confidentiality & Integrity│ [-] Physical Peer IP Concealment │
│ ChaCha20-Poly1305 with post-quantum │ Peers authenticate directly and │
│ hybrid ML-KEM-768 forward secrecy │ exchange traffic peer-to-peer │
├───────────────────────────────────────┼───────────────────────────────────────┤
│ [+] Single-Point-of-Failure CA Defense │ [-] Mix-Net Anonymity │
│ t-of-n FROST quorum ensures master │ yip is not Tor; it does not route │
│ private key never exists on 1 host │ through multi-hop onion circuits │
├───────────────────────────────────────┼───────────────────────────────────────┤
│ [+] Probe Resistance & DPI Bypass │ [-] Covert Timing on Raw UDP │
│ REALITY splices active probers into │ Without DAITA padding enabled, │
│ authentic CDNs (Apple/Microsoft) │ packet timing mirrors traffic flows │
├───────────────────────────────────────┼───────────────────────────────────────┤
│ [+] Replay & Identity Spoofing │ [-] Subverted Host Kernels │
│ TAI64N monotonic freshness and │ The daemon relies on Linux memory │
│ BLAKE3 cryptographic addressing │ isolation and privileged namespaces │
└───────────────────────────────────────┴───────────────────────────────────────┘
- Threshold Signature Security: An adversary compromising fewer than t signers obtains zero knowledge of the master CA private scalar.
- Rollback Immunity: Ephemeral nonces in
EphemeralNonceVaultare memory-locked (mlock) and consumed via atomic single-use primitives to eliminate nonce-reuse private key extraction under VM snapshots. - Identifiable Aborts (ROAST): Honest coordinators pinpoint dishonest signers and continue signing without denial-of-service stalls.
Explore the full documentation curriculum organized by role and interest:
| Guide | Target Audience | Primary Focus |
|---|---|---|
01. Getting Started |
Beginner / Operator | Platform requirements, installation, first tunnel setup, and CA mesh bootstrap |
02. Configuration Reference |
Operator / Admin | Comprehensive parameter reference, deployment recipes, and yipctl command guide |
03. Architecture & Internals |
Developer / Architect | Control vs data plane, zero-copy AF_XDP queues, Cauchy RS-FEC, and FROST threshold CA |
04. Security & Threat Model |
Security Reviewer | Post-quantum hybrid handshake, adversary model, anti-DPI verification, and crypto ledger |
05. Benchmarks & Performance |
Researcher / Tester | Real-world WAN test data, multi-core scaling charts, loss-recovery mathematical proofs |
06. Troubleshooting Runbook |
Operator / SRE | Diagnostic flowcharts, MTU discovery issues, NAT traversal debugging, and telemetry inspection |
Motivation & Philosophy |
Everyone | Design philosophy, anti-censorship regulatory context, and the problem with traditional VPNs |
Turnkey Threshold CA Tutorial |
Operator | Step-by-step setup of a 2-of-3 threshold CA quorum with systemd units |
The yip workspace publishes a unified facade crate yip-mesh for embedding yip's primitives directly into your Rust applications:
[dependencies]
yip-mesh = { version = "0.1", features = ["full"] }crypto(default): AEAD ciphers (ChaCha20-Poly1305), native zero-alloc PQNoise handshakes, BLAKE3 keyed ratchets, and key derivations.wire(default): Zero-allocation framing, wire codec parsing, header obfuscation, and control frame encoding.transport(default): Slotted Reed-Solomon Forward Error Correction (FEC), sliding window packet reassembly, and selective ARQ.membership(default): Cryptographic node identity, self-certifying IPv6 mesh addresses, certificate verification, root sets, and anti-entropy gossip.device: TUN/TAP virtual network device abstractions across Linux.io: High-throughput I/O engines supporting Linuxepollandio_uringwith ring buffer pools.rendezvous: STUN/TURN-independent symmetric NAT traversal with authenticated ticket exchange.obf: Steganographic wire framing, padding transforms, and timing-jitter obfuscation.utls: TLS 1.3 browser mimicry and REALITY camouflage transport.ca: RFC 9591 FROST threshold certificate authority signer and coordinator protocols.full: Enables all modules above.
Copyright © 2026 FEMBOY CYBER NETWORKS LLC.
Licensed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
