Jitter Buffer Overview
Voice over IP (VoIP) carries a call as a stream of small data chunks called packets. The network rarely delivers those packets on a perfectly even schedule, and uneven delivery is heard as choppy or garbled audio. This page explains what a jitter buffer does, the two buffer types Cloud Voice provides, and when turning one on helps.
Understanding jitter
Section titled “Understanding jitter”Jitter is the variation in timing between when voice packets leave the sender and when they reach the other end. When the network is congested, packets can arrive bunched together, spread apart, in the wrong order, or even at the same time as one another. Any of these disrupts the audio and lowers call quality.
A jitter buffer counteracts this. It holds each incoming packet for a very short time, then releases the packets in line with their expected timing, so the audio plays back as a smooth, evenly spaced stream.
Buffer types
Section titled “Buffer types”Cloud Voice offers two jitter buffer implementations:
- Fixed jitter buffer: Uses a set buffer size. Every packet that leaves the buffer carries the same, constant amount of delay.
- Adaptive jitter buffer: Changes its size in response to the network’s current delay, so the delay applied to outgoing packets varies over time.
When to enable a jitter buffer
Section titled “When to enable a jitter buffer”Turn on a jitter buffer when the network is causing audio problems such as lost packets or packets that arrive in the wrong sequence. The buffer handles each case as follows:
- Packet loss: When some packets go missing, the buffer inserts a replacement for the lost frame (one small unit of audio) and forwards the audio as a steady, evenly spaced stream.
- Out-of-order packets: When packets arrive in the wrong sequence, the buffer reorders them correctly before passing them along in the order the listener expects.
For the steps to set this up, see Configure Jitter Buffer.