Free tech learning for everyone, from basics to pro

Network FundamentalsNetworking SecurityBeginner

How VoIP works: SIP, RTP, codecs, and why jitter and loss ruin calls

In short: A VoIP call uses two kinds of traffic: SIP messages that set up and end the call, and RTP packets that carry the audio, usually 50 per second in each direction. Codecs decide the quality and bandwidth. Voice is very sensitive to delay, jitter and packet loss, so networks give it its own VLAN, QoS priority and careful NAT handling.

Two conversations in every call

A phone call over IP has a signalling part and a media part.

  • SIP (Session Initiation Protocol) does the signalling: register the phone with the call server, ring the other phone, answer, hold, transfer and hang up. It uses UDP or TCP 5060, or TLS on 5061. SIP messages look a lot like HTTP.
  • RTP (Real-time Transport Protocol) carries the voice itself, over UDP on a range of high ports agreed during call setup. SRTP is the encrypted version.

Platforms such as Microsoft Teams, Zoom and Webex use their own signalling, but the media behaves in the same way.

Making a VoIP callPhone ASIP INVITECall serverfinds phone BPhone Brings, answersRTP mediavoice packetsdirectBYEcall ends
Figure 1. SIP sets up and ends the call; RTP carries the actual voice.

Codecs and bandwidth

A codec turns sound into data. The phone usually sends one packet every 20 milliseconds (50 packets per second each way). The IP, UDP and RTP headers add 40 bytes to each packet, plus Ethernet overhead, so header overhead is significant:

CodecAudio data rateApprox. on Ethernet (one direction)Notes
G.71164 kbpsabout 87 kbpsClassic phone quality, no compression
G.7298 kbpsabout 31 kbpsCompressed, for low-bandwidth links
G.72264 kbpsabout 87 kbpsHD voice (wideband)
Opus6 to 510 kbpsvariesAdaptive, used by Teams, Zoom, WebRTC

What makes calls sound bad

  • Latency: one-way delay above about 150 ms makes people talk over each other.
  • Jitter: variation in delay. Phones buffer packets to smooth it out, but too much jitter means late packets are thrown away.
  • Packet loss: even 1 percent loss is audible as clipping or robotic voice. Lost voice packets are never resent.

Call quality is often reported as a MOS (mean opinion score) from 1 to 5; above about 4 is good.

What the network should provide

  • A voice VLAN so phones are separated from PCs and easy to prioritise.
  • QoS: phones mark voice packets DSCP EF (46) and signalling CS3 (24). Trust those markings on phone ports and give EF a priority queue on WAN links.
  • PoE on access switches so desk phones need no power adapter, with a UPS so phones keep working in a power cut.
  • Careful NAT handling: SIP carries IP addresses inside its messages. "SIP ALG" features on many routers try to rewrite them and often break calls (one-way audio, calls dropping after 30 seconds). Most hosted phone providers recommend turning SIP ALG off.

Real-world example: one-way audio

A small office moved to a hosted phone system. Calls connected, but staff often could not hear the caller. The broadband router's SIP ALG was rewriting the SIP messages incorrectly, so the provider sent the audio to the wrong port. Disabling SIP ALG, as the provider's guide said, fixed every call.

Practice

Which protocol carries the actual voice in a VoIP call?
RTP (or SRTP when encrypted), over UDP.
Approximately how much bandwidth does a G.711 call use in one direction on Ethernet?
About 87 kbps.
Which DSCP value do phones normally use for voice packets?
EF, decimal 46.

Key takeaways

  • SIP sets up calls; RTP carries the voice over UDP.
  • Codecs and packet headers decide bandwidth per call.
  • Latency, jitter and loss ruin call quality; lost voice is never resent.
  • Use a voice VLAN, QoS with DSCP EF, PoE and turn off problematic SIP ALG.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: