Glossary
Forward Error Correction (FEC)
Repair without the round trip. FEC sends a little extra data with every burst of packets so the receiver can rebuild what the network dropped, which is why a call can lose packets and still sound clean.
General definition
Forward Error Correction (FEC) is the opposite strategy to retransmission. Instead of waiting for the receiver to notice a gap and ask for the missing packet, the sender includes redundant information up front, so the receiver can repair a loss immediately from what it already has. The cost is bandwidth: the redundancy is sent whether or not anything is lost. The benefit is time: there is no round trip, which matters for real-time media where a retransmitted packet often arrives too late to be useful.
- Opus in-band FEC: the Opus audio codec (RFC 6716) can embed a low-bitrate copy of the previous frame inside each packet, so a single lost packet is recovered from its successor; the encoder switches it on when the application reports expected loss
- RED (Redundant Audio Data, RFC 2198): an RTP payload format that packs one or more earlier frames into the current packet, a codec-independent form of audio redundancy
- ULPFEC (RFC 5109) and FlexFEC (RFC 8627): parity packets computed across a group of video packets, so a lost packet in the group can be rebuilt
- Beyond media: the same idea underlies the error-correcting codes in storage, satellite links and mobile radio
FEC and NACK retransmission complement each other. NACK, carried in RTCP feedback, costs no bandwidth until something is lost but needs a round trip, so it works well when latency is low and loss is sporadic. FEC costs bandwidth all the time but repairs instantly, so it wins on long, lossy paths and for audio, where even a short gap is audible. Neither handles long bursts well: FEC can only repair as many packets as the redundancy covers, and NACK needs the retransmission to arrive before the playout deadline.
WebRTC implementations switch these on dynamically. Audio typically uses Opus in-band FEC, with RED available in recent browsers; video relies on NACK first and adds FEC when loss rises. The congestion controller counts the redundancy as part of the send rate, so heavy packet loss can mean both more FEC and a lower media bitrate at the same time.
Adding calls to your product? The Ethora voice chat SDK is built on WebRTC, with 1:1 calls, group voice rooms and push-to-talk for web, iOS and Android.
In the Ethora ecosystem
Ethora calls are built on WebRTC, so forward error correction is negotiated and applied by the standard WebRTC stack in each client rather than configured by the application: Opus audio with in-band FEC where the browser or native client supports it, and NACK plus FEC for video as loss conditions require. The SFU forwards media without decoding it and serves retransmissions from its own cache, which shortens the NACK round trip for participants on a group call.
For buyers the practical outcome is resilience on real networks: a home visit on patchy mobile data or a field worker on hotel Wi-Fi stays intelligible because loss is repaired before anyone hears it. The voice and video call API page covers the calling features, and a dedicated or self-hosted deployment lets you put the media server where the path to your users is shortest.