VoIP SIP Trunk Bandwidth (G.711 / Opus) & Erlang B Sizing Calculator
Interactive VoIP SIP Trunk Bandwidth & Erlang B Lines Calculator
?
Calls active at the same time (peak concurrency, not total users). It drives the bandwidth and the packet rate: the reserve uses the larger of this value and the channels Erlang B needs. Range: 1 to 2000 calls, step 1.?
Voice codec, which sets the payload rate: G.711 (u-law or A-law) at 64 kbps, Opus wideband at 32 kbps, G.729 at 8 kbps. Use the codec your PBX or session border controller negotiates.?
Busy-hour offered traffic in Erlangs: calls per hour multiplied by average holding time in hours. It drives the Erlang B trunk count; it changes the reserved bandwidth only when those trunks exceed the calls above. Range: 1 to 1500 Erlangs, step 1.?
Whether voice frames carry an 802.1Q tag, which adds 4 bytes per frame. Check the switch port's voice VLAN setting.?
Share of call attempts you accept to be blocked in the busy hour: 0.1, 0.5, 1, 2 or 5 %. A lower target needs more channels. The default is 1 % (P.01).?
Optional. Channels you have today. The calculator then gives the Erlang B blocking those lines would see at the busy-hour Erlangs above. Leave 0 to skip it. Range: 0 to 5,000 lines.Use the VoIP SIP Trunk Bandwidth & Erlang B Lines Calculator to evaluate BW_call = R_codec + ((H_hdr + 20 B) · 8 · 50 pps) / 1000 | BW_trunk = N_channels · BW_call for enterprise PBX SIP trunks, contact center QoS DSCP EF queues. With the defaults (Simultaneous Active VoIP Calls = 50, Voice Audio Codec = G.711 · 64 kbps, Busy-Hour Traffic Load = 38 Erlangs) it returns L2 frame rate per call (EXCL. preamble and IFG): 88.8 kbps per leg at 20 ms / 50 pps.
Governing equationBW_call = R_codec + ((H_hdr + 20 B) · 8 · 50 pps) / 1000 | BW_trunk = N_channels · BW_call (ITU-T G.711, IETF RFC 3550 & IEEE 802.3 framing)
Model assumptions
SRTP, IPsec and session border controller overhead are not modelled, and layer 1 applies only to Ethernet. RTCP reports and SIP signalling are not included: the totals count RTP media only, at 20 ms packetization, so add an allowance for them. Erlang B assumes blocked calls are cleared.
Why a G.711 Call Reserves 96.8 kbps on the Wire, Not 64 kbps
The codec rate is only part of the bandwidth. G.711 carries 64 kbit/s, from an 8 kHz sampling rate and 8 bits per sample (Wikipedia, G.711). With 20 ms packets, each direction sends 50 packets per second, and each packet carries 160 bytes of voice.
Every packet also carries headers: a 12-byte RTP fixed header (IETF RFC 3550, section 5.1), an 8-byte UDP header, a 20-byte IPv4 header and an 18-byte Ethernet frame header including FCS. That is 58 bytes, plus 4 bytes for an 802.1Q tag. The frame rate (layer 2) is codec rate + header bytes × 8 × 50 / 1000, which for a tagged G.711 call is 64 + 62 × 8 × 50 / 1000 = 88.8 kbps (87.2 kbps untagged). On the wire each frame is also preceded by an 8-byte preamble with its start-frame delimiter and followed by a 12-byte inter-frame gap, 20 bytes that are not part of the frame size (Wikipedia, Ethernet frame). The calculator shows the wire rate with them added: 64 + 82 × 8 × 50 / 1000 = 96.8 kbps per call (95.2 kbps untagged), 9 % more than the layer-2 figure. At the IP layer a G.711 call is 160 B of voice + 12 B RTP + 8 B UDP + 20 B IP = 200 B × 8 × 50 = 80 kbps (IETF RFC 3550), listed as its own output.
| Codec | Voice Payload | L1 Wire Rate (802.1Q) | 10 Calls (Mbps per direction) | 50 Calls (Mbps per direction) | 100 Calls (Mbps per direction) |
|---|---|---|---|---|---|
| G.711 | 64.0 kbps | 96.8 kbps | 0.97 Mbps | 4.84 Mbps | 9.68 Mbps |
| Opus | 32.0 kbps | 64.8 kbps | 0.65 Mbps | 3.24 Mbps | 6.48 Mbps |
| G.729 | 8.0 kbps | 40.8 kbps | 0.41 Mbps | 2.04 Mbps | 4.08 Mbps |
Erlang B: How Many Trunks Does a Blocking Target Need?
Trunk count depends on offered traffic, not on the number of concurrent calls. One Erlang is one hour of call traffic in the busy hour. The trunk count is the smallest N for which the Erlang B blocking probability B(E, N) = (E^N / N!) / Σ(E^k / k!) is at most the blocking target you select, 0.01 at the default 1 % (Wikipedia, Erlang (unit)). The formula assumes blocked calls are cleared, which is how a trunk group behaves when it returns a busy signal.
At 1 % blocking, 10 Erlangs need 18 channels (the Edesy Erlang B calculator also gives 18), 38 need 51 and 100 need 117; 10 Erlangs need 21 at 0.1 % and 15 at 5 %. Enter your current lines and the card returns their blocking. The trunk is reserved for the larger of the requested concurrent calls and the Erlang B channels, and the bandwidth and packet rate follow that channel count. The default case (50 G.711 calls, 38 Erlangs, 802.1Q tagged) gives 88.8 kbps per call at layer 2 (without preamble and gap) and 96.8 kbps on the wire. The card total, 4.94 Mbps per direction (9.87 Mbps both ways), is for the 51 reserved channels: 51 × 96.8 kbps, with 5,100 packets per second in both directions together. The 50-call column in the first table, 4.84 Mbps per direction, is for exactly 50 calls.
| Busy-Hour Traffic (Erlangs) | Required SIP Channels (P.01) | G.711 L1 Bandwidth (Mbps per direction) | Bidirectional PPS |
|---|---|---|---|
| 10 Erlangs | 18 channels | 1.74 Mbps | 1,800 pps |
| 20 Erlangs | 30 channels | 2.90 Mbps | 3,000 pps |
| 38 Erlangs | 51 channels | 4.94 Mbps | 5,100 pps |
| 60 Erlangs | 75 channels | 7.26 Mbps | 7,500 pps |
| 100 Erlangs | 117 channels | 11.33 Mbps | 11,700 pps |
| 200 Erlangs | 221 channels | 21.39 Mbps | 22,100 pps |
Worked Examples: Two Presets Calculated with BW_call = R_codec + ((H_hdr + 20 B) · 8 · 50 pps) / 1000 | BW_trunk = N_channels · BW_call
Worked Example 1 (Branch SIP trunk: 200 G.729 calls, 150 Erlangs, untagged LAN): This preset sets Simultaneous Active VoIP Calls = 200, Voice Audio Codec = G.729 · 8 kbps, Busy-Hour Traffic Load = 150 Erlangs, 802.1Q Voice VLAN Tagging = Untagged Ethernet, Blocking Probability Target = 1 %. Evaluating BW_call = R_codec + ((H_hdr + 20 B) · 8 · 50 pps) / 1000 | BW_trunk = N_channels · BW_call gives: L2 call rate = 31.2 kbps, L1 call rate = 39.2 kbps, IP-layer rate per call = 24.0 kbps, IP-layer total = 4.8 Mbps, total bandwidth = 7.84 Mbps, packet rate = 20000 pps, 1 % trunks = 170, reserved channels = 200, traffic = 150.0 Erl. Related in the Network, Fiber, PoE & Rack Hub: PoE Switch Power Budget Calculator (IEEE 802.3af/at/bt) and VPN Tunnel MTU & TCP MSS Clamping Calculator.
Worked Example 2 (Hosted UC: 120 Opus calls, 95 Erlangs, 802.1Q tagged): This preset shifts the operating inputs to Simultaneous Active VoIP Calls = 120, Voice Audio Codec = Opus wideband · 32 kbps, Busy-Hour Traffic Load = 95 Erlangs, 802.1Q Voice VLAN Tagging = 802.1Q tagged, Blocking Probability Target = 1 % to size a hosted unified-communications trunk for 120 simultaneous Opus calls at 95 Erlangs: each call takes 64.8 kbps on the Ethernet wire, and the group sizes 120 channels (the larger of the 120 requested calls and the 112 Erlang B channels): 7.78 Mbps per direction at wire rate, 5.76 Mbps at the IP layer and 12,000 packets per second. Reserving only 32 kbps per Opus call would leave the queue short, because the headers and the 802.1Q tag raise each call to 56.8 kbps at layer 2. The calculator returns: L2 call rate = 56.8 kbps, L1 call rate = 64.8 kbps, IP-layer rate per call = 48.0 kbps, IP-layer total = 5.76 Mbps, total bandwidth = 7.78 Mbps, packet rate = 12000 pps, 1 % trunks = 112, reserved channels = 120, traffic = 95.0 Erl. You can compare these limits with other calculators in the Engineering Studio.
How to Evaluate Priority Queuing for Voice Traffic?
Size the priority queue from the IP-layer or layer-2 rate of the link that carries the calls, not from the codec rate. Classify RTP with DSCP EF (decimal 46) and give the queue at least that rate on each link that carries the calls. The totals count RTP media only: RTCP reports and SIP signalling are excluded as a model assumption, so allow for them separately.
Sources
- IETF RFC 3550 · RTPThe RTP fixed header is 12 octets in every packet, the basis of the 12-byte RTP term in the per-call header count.
- Wikipedia · G.711 General definitionG.711 bit rate is 64 kbit/s, from an 8 kHz sampling rate with 8 bits per sample; the 64 kbps payload used for G.711 calls.
- Wikipedia · Erlang (unit) General definitionErlang B blocking formula B(E,m) = (E^m/m!)/sum(E^i/i!) for a loss system where blocked traffic is cleared; used for the trunk count at 1 % blocking.
- Wikipedia · Ethernet frame General definitionEach frame is preceded by a 7-octet preamble and a 1-octet start frame delimiter and followed by a minimum 12-octet interpacket gap, none of it counted in the frame size; the 20 bytes added in the layer-1 reserve.
- Edesy · Erlang B calculatorWorked case used as a check: 10 Erlangs at 1 % blocking needs 18 lines (0.71 % blocking at 18 lines).
Method and test suite: Calculation Methodology.
Frequently Asked Questions: VoIP SIP Trunk Bandwidth & Erlang B Lines Calculator
Why is the G.729 wire rate about five times its codec rate?
G.729 carries 8 kbps of voice in 20-byte packets, but each packet also carries 58 bytes of headers, plus 20 bytes of preamble and inter-frame gap on the wire. The total is 98 bytes × 8 × 50 = 39.2 kbps untagged, about 4.9 times the codec rate. Size the link from the IP-layer or layer-2 rate (24 kbps at the IP layer for G.729).
What does preset 2 need, a 200-call G.729 branch on an untagged LAN?
It reserves 200 channels, the larger of the 200 requested calls and the 170 channels that 150 Erlangs need at 1 % blocking. At 39.2 kbps per call, that is 7.84 Mbps per direction and 20,000 packets per second in both directions together.
Can packetization time be changed to save bandwidth?
The model fixes packetization at 20 ms, which means 50 packets per second per direction. Longer packets reduce the header share but add delay and lose more audio when one packet is dropped. The calculator does not model a different packet interval.
Is this Erlang B or Erlang C?
Erlang B, for trunk groups where blocked calls are cleared. Erlang C, for queued callers waiting for an agent, is not modelled here. The Wikipedia article on the Erlang unit describes the cleared-traffic assumption used by Erlang B.
Why does the trunk reserve use channels and not only calls?
Concurrent calls are what you expect at once. Erlang B channels are what a trunk group needs to keep blocking at or below the selected target (1 % by default) for the offered traffic. The calculator reserves bandwidth for the larger of the two, so the reserve never falls below the channels the traffic needs. Preset 3, 120 Opus calls at 95 Erlangs, needs 112 channels at 1 % blocking, so the 120 calls set the reserve: 120 × 64.8 kbps = 7.78 Mbps per direction.