Planning · · The Wafflr team

How many SIP channels do you need? Erlang B without the maths

A bar chart in the live pocket of a three by three waffle grid

How many SIP channels do you need? The answer is set by the number of calls in progress at the busiest moment of your busiest hour, not by how many people you employ. Measure that peak, turn it into a figure called traffic, and look the figure up in an Erlang B table: 3 Erlangs of traffic needs 8 channels if you want fewer than one call in a hundred to meet a busy signal. This post shows the arithmetic, gives a table you can use and lists the things that quietly use extra channels.

A SIP channel is one call in progress over a trunk, in either direction. Providers also call them sessions, concurrent calls or simultaneous calls, and some phone systems license by the same figure, as the post on 3CX simultaneous calls describes. Whatever it is called, a channel is occupied for as long as the call lasts.

How many SIP channels do you need? Start with the busy hour

You need a few weeks of call records from the phone system or the carrier's portal, and four steps.

  1. Find the busiest hour of each working day, and pick a high one from several weeks, not an average. The channels you buy have to cope with a bad hour, because that is when callers are turned away.
  2. Count the calls that used the trunk in that hour, inbound and outbound together. Leave out calls between extensions, which normally stay inside the phone system.
  3. Find their average length in minutes.
  4. Work out the traffic in Erlangs: calls in the hour multiplied by the average length in minutes, divided by 60.

One Erlang is one channel busy for a whole hour. If 60 calls in your busiest hour average 3 minutes each, that is 180 call-minutes, which is 3 Erlangs.

Erlang B: from traffic to channels

Erlang B is a standard formula for the chance that a call finds every channel busy, given the traffic and the number of channels. It assumes calls arrive at random and that a caller who meets a busy signal gives up, which is why it describes a trunk well. You choose the chance you can live with: 1 per cent means about one call in a hundred is blocked in the busy hour, and 5 per cent means one in twenty.

The table is computed from the formula, and any Erlang B calculator gives the same figures.

Busy-hour traffic (Erlangs) Channels for 1% blocked Channels for 5% blocked
0.5 4 3
1 5 4
2 7 5
3 8 7
5 11 9
8 15 13
10 18 15
15 24 20
20 30 26
30 42 36

The averages mislead, and this shows why. An office with 3 Erlangs of traffic does not need 3 channels. With 3 channels, about 35 per cent of calls in the busy hour are blocked. With 4 it is about 21 per cent, with 5 about 11, with 6 about 5, with 7 about 2, and with 8 about 0.8. Each extra channel matters less than the one before, which is the point at which to stop paying for more.

A few worked examples, all from the same arithmetic:

  • 30 calls of 4 minutes in the busy hour is 2 Erlangs, so 7 channels at 1 per cent or 5 at 5 per cent.
  • 90 calls of 4 minutes is 6 Erlangs, so 13 channels at 1 per cent or 10 at 5 per cent.
  • 200 calls of 3 minutes is 10 Erlangs, so 18 channels at 1 per cent or 15 at 5 per cent.

What uses extra channels

The count is easy to underestimate, because some calls use more than one channel at once.

  • Forwarding to an outside number. A call forwarded to a mobile uses an inbound channel and an outbound channel for the whole call.
  • Ring groups that ring outside numbers. Each outside leg may use a channel while it rings. Ask how your provider counts ringing time.
  • Transfers to outside numbers. Until the transfer completes, both legs can be on the trunk.
  • Queues. Every caller waiting in a queue holds an inbound channel. Erlang B assumes callers are turned away, not held, so for a queue use Erlang C, which models waiting.
  • Peaks you do not see in a normal week. A sale, a deadline, a closure or a mailing sends a surge, and the call records for a quiet month will not show it.
  • Fax and alarm calls, which hold a channel for their whole duration.

Calls between two extensions on the same system normally do not touch the trunk at all. If yours route out to the carrier and back, that is a dial plan problem that costs channels for nothing.

Check the network too

Every channel needs bandwidth in both directions at the same time, so upload matters as much as download. The arithmetic is short. A call with 20 millisecond packets sends 50 packets a second. With the G.711 codec each packet carries 160 bytes of audio, and the headers add 12 bytes for RTP, 8 for UDP and 20 for IPv4. On Ethernet, 18 more bytes of frame header and check sequence bring each packet to 218 bytes, which is 87.2 kilobits a second in each direction. With the G.729 codec, a 20 byte payload gives 78 bytes a packet, which is 31.2 kilobits a second.

Ten channels of G.711 therefore need a little under 0.9 megabits a second each way, before signalling, before encryption adds a few bytes to each packet and before you leave headroom for everything else on the link. If the access line cannot carry that in both directions during the busy hour, more channels will not help, and the guide to poor audio quality shows what that sounds like.

Questions people ask

Do internal calls use SIP channels?

Not normally. Calls between extensions on the same phone system stay inside it. On a hosted phone system, where every call passes through the provider, the provider's own limit applies to all of them, so ask what it counts.

Is 1 per cent the right target?

It is a common choice, and it is a choice, not a rule. A sales or support line where a busy signal loses a customer justifies the extra channels. A line where a caller will simply try again may be fine at 5 per cent. The table shows both so that you can see what the difference costs.

What if my provider offers unlimited channels?

Then the limits are somewhere else: the phone system's licence if it counts simultaneous calls, the capacity of the router and the firewall, and the bandwidth of the access line. Ask what happens when the busy hour exceeds any of them, because the answer is the same busy signal. The twelve renewal questions cover what you are buying and what next year will cost.

What to do next

Pull a month of call records, find the busiest hours, work out the traffic and read the answer off the table. Compare it with the number of channels you pay for. If you pay for far more than the table gives, you have a saving to ask about at the next renewal, and if you pay for fewer, you now have the figure to take to your provider. The glossary explains terms such as SIP trunk, RTP and codec if a quote uses them without saying what they mean.