Voice Codecs
Pick a codec and packetization (ptime) and I compute the bandwidth per call (with IP/UDP/RTP and layer-2 overhead), compared against other codecs by bitrate, MOS and delay. Multiply by the number of calls for the trunk.
Estimated quality (MOS)
—
Codec comparison
BW per call with the chosen packetization and overhead. The highlighted row is the selected codec. Tap a row to pick it.
| Codec | Bitrate | Sampling | Frame | MOS | Delay | BW/call |
|---|
How it is computed · payload, headers and pps
1. pps = 1000 / ptime. With
20 ms of voice per packet that is 50 pps.
2. payload (B) = bitrate_kbps × ptime_ms / 8. G.711 at
64 kbps with 20 ms = 160 B.
3. Per-packet headers:
IP 20 + UDP 8 + RTP 12 = 40 B plus layer 2
(Ethernet 18 B, +VLAN 22 B,
MPLS 4 B).
4. BW per call (bps) = (payload + 40 + L2) × 8 × pps.
The total = BW per call × number of calls.
5. MOS and
delay are reference values per codec; they do not
depend on packetization but help you trade quality against
bandwidth.
Runs locally in your browser · no sign-up · nothing leaves your browser
How it works
The tool compares the voice codecs most used in IP telephony (G.711, G.729, G.723.1, G.726, iLBC, GSM-FR, Opus, AMR-WB and Speex) by bitrate, sampling rate, frame size, estimated MOS quality (1 to 5 scale) and algorithmic delay. It also calculates the real IP bandwidth per call based on the codec, the packetization interval (ptime) and the layer 2 overhead you choose.
The calculation follows the classic VoIP sizing formula: pps = 1000 / ptime, payload = bitrate × ptime / 8 in bytes, and each packet adds the IP 20 + UDP 8 + RTP 12 = 40 B headers plus the layer 2 frame (Ethernet 18 B, Ethernet with 802.1Q 22 B, or MPLS 4 B). Bandwidth per call is (payload + 40 + L2) × 8 × pps, and the trunk total comes from multiplying by the number of simultaneous calls.
Example: how much bandwidth does a G.711 call use?
- G.711 encodes at 64 kbps; with a 20 ms ptime the payload is
64 × 20 / 8 = 160 Bper packet, at50 pps. - Over Ethernet, each packet adds
40 Bof IP/UDP/RTP plus18 Bof layer 2: 218 B on the wire. - Bandwidth per call:
218 × 8 × 50 = 87,200 bps ≈ 87.2 kbps. For a 10-call trunk: 872 kbps.