Skip to content
Contents
GuidesOpenWrt

Measure the trade-off of FEC on a lossy UDP tunnel

FEC sends additional error-correction data, allowing the receiver to attempt recovery of lost data packets.

FEC sends additional error-correction data, allowing the receiver to attempt recovery of lost data packets. When data loss can be recovered, the application waits less for a retransmission. However, excessive error correction can further fill an already tight uplink.

Simultaneous loss and redundancy on controlled links

Use own end-to-end setups with fixed link rate, RTT, packet size, and original send rate. Measure scenarios with no redundancy, low redundancy, and higher redundancy. In addition to independent random packet loss, simulate a burst of packet loss. Record original traffic, redundancy overhead, recovery rate, and application p95 latency.

On the same packet loss baseline, the cost of FEC

Simulate packet loss on an isolated link by introducing retransmission, using the same UDP application without FEC initially. Then, enable FEC and compare the recovery rate, transmission volume, and additional latency introduced.

Congestion occurs on the user access side: first reduce load, then evaluate whether redundancy still provides benefit. During testing, verify that both ends use the same protocol and encapsulation, and check MTU after header addition. Remove FEC under identical background load for retesting, and retain a baseline configuration that both ends can recover from.

Use only when weak network quality is improved and bandwidth remains available. When the link is fully loaded, prioritize reducing transmission volume to avoid exacerbating queue buildup.

Reference

Reference screenshot · Forward Error Correction (FEC) Framework
Reference screenshot · Forward Error Correction (FEC) Framework
Reference screenshot · Forward Error Correction (FEC) Framework Open the original image

IETF RFC 6363 · IETF Trust Legal Provisions © IETF Trust and the RFC authors.

Related guides

Reference

Check the model, region and hardware revision on the label before selecting firmware.

Explore hardware

Comments