A training job can have a room full of GPUs ready to work and still spend time waiting for data. A satellite can have a fast laser downlink and lose part of a transmission when the signal fades. Buying more bandwidth helps only if the software can use it and recover what goes missing.
Forward error correction, or FEC, sends extra coded data that lets a receiver reconstruct missing packets. At high link speeds, generating and using that repair data can become a substantial job of its own. vxfec brings that work to GPUs through Vulkan. It is available as a coding library and as a transport plugin for communication between GPUs, so applications can add recovery beneath their existing collective operations.
Spare bandwidth and busy links
Many datacenters use a spine-leaf network. Servers attach to leaf switches, and each leaf connects to several spine switches. Data moving between two racks can take several routes through the spines, giving the network room to carry many transfers at once.
The usual way to choose a route is equal-cost multipath routing, or ECMP. A switch hashes fields such as addresses and ports to pick a path for each flow. Keeping the flow on that path helps packets arrive in order, but the hash knows nothing about how large the transfer will be. Two large transfers can land on the same busy link while another route has room to spare. This is the ECMP collision problem explored by work such as CONGA. 1
During distributed training, GPUs exchange and combine their results through operations such as AllReduce. A late piece of data can delay the next calculation. What matters is getting every required piece through, including those caught behind a busy queue.
A transport can spread a transfer across more flows, or distribute smaller groups of packets across paths. That gives ECMP more chances to use the available capacity, although different ports can still hash to the same route. Packets may also arrive out of order. The receiver has to put them back together and recover any gaps without making the application wait unnecessarily.
When the path is a beam of light
Free-space optics carries data on a beam of light rather than through fiber. On Earth, it can connect buildings or provide backhaul where laying cable is difficult. Fog can weaken the signal, turbulence can make it fluctuate, and a small pointing error can move the beam away from the receiver. 2
In low Earth orbit, a satellite-to-ground link faces the atmosphere as well as the challenge of tracking a moving spacecraft. Links between satellites avoid the weather below them, but the terminals still have to find one another and keep their narrow beams aligned.
These links can be fast. NASA’s TBIRD demonstration sent data from low Earth orbit at 200 Gbit/s and delivered as much as 4.8 TB without errors during a five-minute pass. 3 It used a custom retransmission protocol to recover data lost through atmospheric fading. 4 That is a useful reminder that recovery is already part of making high-speed optical communication work.
FEC offers another recovery option. For example, a Reed–Solomon code can protect 100 equal-sized source packets with 25 repair packets. Any 100 distinct, intact packets from that set are enough to recover the original data. The receiver can finish even when some of the original packets never arrive again.
A fade may erase a whole run of packets at once. Interleaving takes turns sending packets from different blocks, spreading each block over a longer interval. For example, losing 80 consecutive packets spread evenly across 16 blocks leaves five gaps in each. With enough repair data, those smaller gaps become recoverable. vxfec follows this arrangement in GPU memory, where it can reconstruct the missing data in place.
That protection costs bandwidth and buffering time. A prolonged outage can still exhaust it. The transport needs to choose how much repair to send, when to request more, and when to wait or use another path. On a congested datacenter link, it also has to slow down when necessary: adding repair packets to an overloaded queue can make matters worse.
Keeping FEC at wire speed
A 400 Gbit/s link represents 50 GB/s of traffic in one direction. FEC adds calculations and memory accesses to the work of moving those bytes. With several such links, coding can consume a large share of a host’s resources before the application gets its turn.
Optimized CPU code can use vector instructions and multiple cores to reach line rate for suitable workloads. The question is how much of the machine it takes. More cores help with the arithmetic, but they still share memory bandwidth and I/O. At sufficiently high rates, sustaining recovery can leave too little capacity for everything else.
GPUs offer many parallel workers and high memory bandwidth for this repetitive work. They are especially useful when the data is already in GPU memory, as it often is in a training job. Offloading the coding can keep more CPU capacity available for the application and network handling.
The data path still matters. Copying everything to a GPU and back can outweigh the compute savings, and FEC running on a training GPU competes with the model itself. The useful test is whether the application finishes sooner within its CPU, memory and power budget.
Why Vulkan
Vulkan is best known for graphics, but it also lets programs run general computation on GPUs. It is an open standard designed to work across vendors and across devices ranging from PCs to mobile and embedded systems. 5
For vxfec, that means a common way to express the coding work without building the project around one vendor’s compute API. The same approach can reach discrete GPUs in servers and integrated GPUs that share memory with the CPU. vxfec uses Vulkan 1.2 compute shaders: small programs that process many parts of a data buffer in parallel.
Different GPUs still need tuning and testing. A kernel that suits one device’s memory layout may be a poor fit for another. Sharing buffers with a network card or another GPU API also takes platform-specific work. Vulkan provides the common compute interface; efficient delivery into and out of those buffers remains part of the transport design.
Introducing vxfec
vxfec brings nanorq and nanors coding to Vulkan while preserving wire compatibility at the coding layer. Its RFC 6330 RaptorQ path matches nanorq’s source and repair symbols, and its Cauchy Reed–Solomon over GF(256) (RS8) path matches nanors.
With matching coding parameters, data encoded on a CPU by nanorq or nanors can be decoded on a GPU by vxfec, and vice versa. A deployment can add GPU acceleration where it helps and keep CPU processing elsewhere, without changing the encoded payload format.
Having both codecs lets the transport choose how to recover. RS8 suits small blocks with a bounded repair budget, drawing additional repair symbols from a predefined set. Rateless RaptorQ suits larger blocks or less predictable losses: it can generate fresh repair symbols without choosing the total repair count up front, though decoding may need a small surplus. Both identify their symbols, and extra repair need not target a particular missing packet. A large transfer can still use RS8: vxfec divides it into smaller blocks and keeps several in flight.
The CPU prepares the recovery work, while the GPU performs the bulk calculations. vxfec also includes an interleaving buffer for burst losses and can reuse preparation when several blocks are missing the same pieces.
vxfec also has an experimental plugin for the network interface used by NVIDIA’s NCCL and AMD’s RCCL. These libraries coordinate communication among GPUs, with room for transport plugins beneath operations such as AllReduce. A plugin can change how bytes travel between hosts while the application keeps its collective calls. 6
A missing packet does not always justify a GPU decode. The plugin can retransmit a small gap, recover from repair data already received, or request more repair when losses are larger. Congestion feedback also limits its sending rate, so repair traffic shares the available bandwidth with the original data.
The plugin can spread traffic across UDP ports and network interfaces. It also supports RDMA, which lets a network card access registered memory directly. UDP payloads pass through host memory; supported RDMA hardware can access GPU memory, although recovery may still need temporary copies.
Early results
On an RX 7900 XTX, the repository’s GPU recovery benchmarks report rates above one terabit per second. Those rates count the protected data per second of decoding, with the data already in GPU memory; they do not include network transfer.
In a separate CPU-only cloud test, a 512 KiB AllReduce transport benchmark completed in about 50 milliseconds at the median with vxfec, compared with 103 milliseconds using the project’s selective-retransmission baseline. The path had a roughly 24-millisecond round trip and deliberately injected burst loss. That measures transport recovery, not training speed. Other cases favored retransmission on shorter paths with large transfers, where preparing repair data cost more than it saved.
Bringing the pieces together with qlinq
qlinq already provides multipath delivery, FEC and a Linux TUN interface, which appears to applications as a virtual network device. A first experiment could send NCCL or RCCL’s normal socket traffic through a qlinq tunnel between hosts. Its datagram modes are a useful starting point, since adding another reliable, ordered stream beneath TCP can introduce delays of its own. 7
Integrating vxfec as qlinq’s GPU coding backend, and connecting the collective plugin more directly to qlinq, would bring path selection and GPU recovery together. Both remain proposed work.
You can try the recovery pipeline today. After building vxfec, run ./bench_wire_net --self-test. This local UDP demonstration deliberately drops a consecutive run of packets and checks that both RS8 and RaptorQ reconstruct the original bytes. It is a small, repeatable way to explore the problem behind this work: keeping useful data moving when some of it goes missing.
References
Footnotes
-
Mohammad Alizadeh et al. CONGA: Distributed Congestion-Aware Load Balancing for Datacenters. ACM SIGCOMM, 2014. ↩
-
Fraunhofer HHI. Terrestrial Free-Space Laser Links. ↩
-
NASA. NASA’s Record-Breaking Laser Demo Completes Mission, 25 September 2024. ↩
-
Curt M. Schieler et al. Recent On-Orbit Results and ARQ Performance Analysis for the TBIRD 200-Gbps Mission. IEEE ICSOS, 2023. ↩
-
Khronos Group. What is Vulkan?. ↩
-
NVIDIA. NCCL network-plugin API. AMD. Using the NCCL Net plugin API in RCCL. ↩
-
URSOID. qlinq tunnel guide. ↩