yip, a peer-to-peer mesh VPN written in Rust and released under the AGPL-3.0 license, is pitched as a WireGuard replacement for lossy links: according to its developers, at 5% packet loss on a 2 Gbit/s link it holds 1,880 Mbit/s, while in-kernel WireGuard drops from 1,985 to 14 Mbit/s. The key is forward error correction (FEC), which rebuilds lost packets before the TCP connection inside the tunnel ever notices. The idea is technically sound, but the numbers in the announcement do not match the ones the repository itself publishes, so they deserve a careful read and your own measurements before anything changes in production.
Key points on yip and packet loss in VPNs in 20 seconds
- yip uses Reed-Solomon FEC to recover lost packets without retransmission, something WireGuard does not do.
- The announcement claims 1,880 Mbit/s at 5% loss, but the README shows tests on single-vCPU VPSes with far lower figures.
- It is Linux-only, has no published releases and no external security audit.
The problem it tackles is real. WireGuard, like most VPNs, wraps packets in UDP and does nothing when they are lost in transit: the loss reaches the TCP flow inside the tunnel untouched. Classic congestion control algorithms such as CUBIC or Reno treat every lost packet as a congestion signal and shrink the send window. On datacenter fiber, loss is close to zero and nothing happens; on 5G, satellite, maritime links or congested international transit, throughput collapses.
Why 5% loss sinks TCP
The Mathis formula, a classic approximation for TCP Reno, puts maximum throughput at roughly MSS / (RTT × √p) times a constant of about 1.22. With a 1,460-byte segment, 60 ms of latency and 5% loss, the result is around 1 Mbit/s, whether the link is 2 Gbit/s or 10. That is the same order of magnitude as the 0.7 Mbit/s yip’s developers report for WireGuard between AWS Virginia and Oregon, with about 60 ms of round-trip time. The number is not a WireGuard bug; it is the TCP flow riding inside it.
yip attacks the problem one layer down. It uses a systematic Cauchy Reed-Solomon code over GF(2^8): for every group of packets it sends extra parity packets, and if any original is lost, the receiver rebuilds it from the rest. According to the announcement, reconstruction takes 117 nanoseconds and redundancy is adaptive. Neither the announcement nor the README says how much parity is added, and that matters: FEC consumes extra bandwidth whenever it is active, and if loss exceeds what the code can correct, the inner TCP sees gaps again.
The idea itself is not new. Tools such as UDPspeeder and kcptun have applied Reed-Solomon over UDP for bad links for years, usually as an extra layer in front of another VPN. What yip proposes is building it into the mesh itself, alongside encryption and routing.
The announcement’s numbers versus the repository’s
The v0.2.0 announcement compares yip with nine alternatives on a 2 Gbit/s link at 5% loss: in-kernel WireGuard would reach 14 Mbit/s, AmneziaWG 13, WireGuard-Go 10, Tailscale 9, NetBird 8, Nebula 7, ZeroTier 5, n2n 4 and OpenVPN 2. At 10% loss, yip would still hold 1,050 Mbit/s, and between AWS US-East and US-West it would sustain 348.1 Mbit/s at 5% loss, 497 times WireGuard. On multi-core scaling, the developers cite 21.56 Gbit/s unprivileged with epoll and GSO/GRO, 22.10 Gbit/s with io_uring and 40.27 Gbit/s with AF_XDP across eight cores.
The repository README does not line up with those figures. Its raw-data table uses two single-vCPU Debian 13 VPSes about 55.5 ms apart, and in that test yip delivers 128.8 Mbit/s of clean-path TCP against 408.4 Mbit/s for WireGuard; the text itself admits that yip trades raw clean-path throughput for loss resilience. Elsewhere in the same README, a comparison table claims 800 Mbit/s retained at 5% loss, and a tc netem demo reports 98.5 Mbit/s. iperf settings, the inner TCP congestion control and the number of runs are not given, and the project points to a RESULTS.md file instead. No hardware is listed for the 40.27 Gbit/s figure.
None of this invalidates the approach, but it means the announcement’s numbers should be treated as the developer’s own measurements, pending independent reproduction. Maturity matters too: the repository’s releases section is empty, only Linux on x86_64 and aarch64 is supported, and Android, macOS, Windows and iOS clients are announced as coming later. No external security audit is mentioned. Copyright is held by FEMBOY CYBER NETWORKS LLC.
Post-quantum crypto, a distributed CA and traffic camouflage
Beyond FEC, yip bundles an unusual feature set. The handshake combines Noise_IKpsk2 with ML-KEM-512, the post-quantum mechanism standardized by NIST in FIPS 203, and traffic is encrypted with ChaCha20-Poly1305, with keys rotated roughly every 120 seconds. Mesh membership is controlled by a threshold certificate authority based on FROST (RFC 9591), so t of n signers are needed to issue certificates and there is no single root key or central cloud controller. Addresses are IPv6 in the fd00::/8 range, derived from Ed25519 keys.
For networks that block VPNs, yip offers direct UDP, hole-punched UDP, relays, QUIC and TLS 1.3 that mimics Chrome’s fingerprint, plus the REALITY technique used by Xray. The developers say CI checks that nDPI, Zeek, Suricata and tshark fail to identify it, although the README acknowledges that defense against timing and burst-size analysis is still in development. It also claims to forbid unsafe code in protocol and crypto logic and to have run 1,020 test mutants with none surviving. All of these figures are self-reported.
How to measure packet loss impact on your own VPN
Before considering a VPN switch, the problem is easy to reproduce with tc netem in a lab with two Linux machines. This example adds 50 ms of latency and 5% loss on one machine’s physical interface and runs iperf3 through the tunnel:
# Simulate 50 ms of latency and 5% loss on eth0
sudo tc qdisc add dev eth0 root netem delay 50ms loss 5%
# On the other end of the tunnel
iperf3 -s
# Measure for 30 seconds through the tunnel IP
iperf3 -c 10.0.0.2 -t 30
# Remove the simulation when done
sudo tc qdisc del dev eth0 rootCode language: PHP (php)
There is one mitigation that does not require a new VPN: using BBR as the congestion control algorithm on the hosts sending the traffic. BBR estimates bandwidth and latency instead of reacting to every loss, and usually copes far better than CUBIC on links with moderate loss. It takes two lines in a sysctl file:
# /etc/sysctl.d/90-bbr.conf
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
# Apply and verify
sudo sysctl --system
sysctl net.ipv4.tcp_congestion_controlCode language: PHP (php)
Repeating the iperf3 test with CUBIC, with BBR and, if you want, with yip gives you your own data instead of a vendor table. BBR does not recover lost packets the way FEC does, but in many cases it is enough to get out of the 1 Mbit/s range. For anyone running remote sites, fleets or satellite links, yip is an interesting project to follow and test in a lab; for production, it still needs stable releases, cross-platform clients and an audit.
Frequently asked questions
Why does WireGuard lose so much throughput under packet loss?
WireGuard does not recover lost packets, and the TCP flow inside the tunnel treats every loss as congestion and shrinks its send window. With high latency, 5% loss is enough to collapse throughput.
What is the FEC used by yip?
Forward error correction with Reed-Solomon codes: extra parity packets are sent so lost ones can be rebuilt without retransmission, at the cost of some extra bandwidth.
Is yip ready for production?
The repository has no published releases, it only runs on Linux and no external audit is mentioned. Testing it in a lab before any deployment is the sensible path.
Can I improve things without changing VPN?
Yes. Enabling BBR congestion control on the sending hosts often improves throughput a lot on links with moderate loss, although it does not recover lost packets.
Sources:
