What Is VoIP? How a Phone Call Travels as Packets
VoIP (voice over Internet Protocol) carries a phone call as a stream of small data packets over an IP network instead of over a dedicated telephone circuit. The desk phone on an office network, a softphone app on a laptop and an adapter that plugs an ordinary handset into a router all work this way, and many lines that are sold as "landlines" are now IP behind the wall socket.
This page explains how a call travels as packets, what that asks of your network and your power supply, how VoIP differs from a traditional line (especially for emergency calls), and where SIP fits.
How a VoIP call travels
- Setting up the call. Before any voice moves, a signaling protocol finds the other party, rings their phone and agrees which audio format both ends will use. On business systems that protocol is usually SIP, the Session Initiation Protocol (see SIP basics).
- Turning voice into numbers. A codec samples the sound from the microphone and encodes it. The oldest and simplest telephone codec, ITU-T G.711, takes 8,000 samples a second at 8 bits each, which is 64 kbit/s of audio. Other codecs compress the audio further and use less.
- Cutting it into packets. The audio is sent in short slices. The usual default is 20 milliseconds of audio per packet (RFC 3551), so a call sends 50 packets a second in each direction. Each packet travels inside RTP (the Real-time Transport Protocol, RFC 3550), which adds a sequence number and a timestamp, inside UDP, inside IP.
- Crossing the network. Packets share the network with everything else. Some arrive late, some arrive in a burst, some do not arrive.
- Playing it back. The receiving phone holds incoming packets for a moment in a jitter buffer, puts them back in order and plays them at an even pace. A packet that arrives after its turn to play is discarded, so to the listener it counts as lost.
Everything a caller hears as "bad VoIP" comes from steps 4 and 5: too much delay, too much variation in delay (jitter), or too many missing packets.
What VoIP needs from your network
Bandwidth, in both directions
A call uses the same amount of bandwidth upstream as downstream, so the upload speed of an internet connection matters as much as the download speed. You can work out the figure for a codec from its bit rate and the packet headers. For G.711 with 20 ms packets:
- Audio per packet: 64,000 bit/s x 0.020 s = 1,280 bits, or 160 bytes.
- Headers per packet: RTP 12 bytes, UDP 8 bytes and IPv4 20 bytes, so 40 bytes.
- Per call: 200 bytes x 8 x 50 packets a second = 80,000 bit/s, or 80 kbit/s each way, before the overhead of the link itself (Ethernet, Wi-Fi or the broadband line), which adds more.
Ten calls at once on that codec need about 800 kbit/s upstream and 800 kbit/s downstream plus link overhead, with room left for everything else the office does. Other codecs give different figures; take the bit rate from the codec's own specification or from your provider, and multiply by the number of calls you expect at your busiest time.
Low delay, low jitter, little loss
ITU-T Recommendation G.114 says that if one-way, mouth-to-ear delay is kept below 150 ms, most applications will experience essentially transparent interactivity, and that 400 ms should not be exceeded for general network planning. Above that, people start talking over each other. Jitter forces a bigger jitter buffer, which adds delay, and packet loss removes audio outright. The call quality score calculator turns latency, jitter and loss into an estimated MOS; VoIP call quality and MOS explains what the score means and how to measure the inputs.
Priority on a shared link
On a connection shared with computers, a large upload such as a backup or a video can fill the link and delay voice packets queued behind it. Quality of service (QoS) settings on the router let voice go first. Use wired connections for desk phones where you can; Wi-Fi adds its own delay and loss when it is busy or the signal is weak.
What VoIP needs from your power supply
A traditional analog line carries its own power from the telephone exchange, which is why a corded phone on such a line often kept working in a power cut. A VoIP phone does not. The phones, the network switch that powers them, the router, the broadband modem and any adapter all need mains power, and if one of them goes off, calls stop. If phones must work during a power cut, every device in that chain needs backup power, and the backup needs to be tested. An internet outage stops VoIP calls in the same way, even with the power on. Ask your provider whether incoming calls can be forwarded to another number automatically when your phones cannot be reached, and keep a charged mobile phone available.
How VoIP differs from a traditional line
| Traditional analog line | VoIP | |
|---|---|---|
| Path | A dedicated circuit for the call | Packets shared with other traffic |
| Power | Supplied by the exchange over the line | Local power for every device in the chain |
| Location for emergency calls | Tied to the fixed line's address | Depends on a registered or detected location, which must be kept current |
| Where it works | At one address | Anywhere with a suitable internet connection |
| Quality depends on | The line | Your network, the internet path, the codec and the endpoints |
Emergency calls on VoIP
Dial the local emergency number: 911 in the United States, 112 across the European Union, 999 or 112 in the United Kingdom. Because a VoIP phone or softphone can move, the emergency service relies on the location your provider holds or detects. In the United States, the FCC's rules require interconnected VoIP providers to offer 911 service, to provide location information with each 911 call, and to tell every subscriber when 911 may not work or may be limited, for example after moving the equipment, during a broadband failure or a loss of power (47 CFR 9.11). For services that can be used from more than one place, providers may rely on a registered location that the customer must be able to update. Update it whenever a phone or a softphone user moves.
Never call an emergency number to test a phone system. Ask your provider how to test, and in the US ask your local emergency communications authority on its non-emergency line. If you dial an emergency number by mistake, stay on the line and tell the call-taker. Rules vary by country and change; emergency calling on VoIP covers registered locations, multi-line systems and remote workers in more detail.
Where SIP fits
SIP sets calls up, changes them and ends them; RTP carries the audio. A phone or softphone registers to a SIP server with a username and password, and a business phone system reaches the public telephone network through a provider, often over a SIP trunk. The PBX is the part that knows your extensions, ring groups and voicemail; with cloud telephony the provider runs it for you.
What VoIP costs
VoIP does not automatically cost less than any other kind of line. What you pay depends on the plan: per-user or per-line fees, included minutes, per-minute rates for calls outside the plan, billing increments, international rates and number fees. Compare plans with your own call records: the call cost calculator works out the cost of a single call from its duration, rate, connection fee and tax, and how call charges work explains increments and minimum charges.
Before you rely on VoIP
- Measure upload and download capacity at your busiest time and compare with the bandwidth per call times the calls you expect at once.
- Run test calls and look at the latency, jitter and loss your phone system reports.
- Prioritize voice on the router, and use wired connections for desk phones where you can.
- Decide which phones must work in a power cut, and put backup power on every device they depend on.
- Set a registered location for every number and phone, and tell staff to update it when they move.
- Keep a charged mobile phone available for emergencies and outages.