News

News

NAT Traversal for VoIP: STUN, TURN, and ICE Explained

VoIP often fails behind NAT because SIP controls the call but RTP carries the audio—and NAT hides the private IP the endpoints think they should use. STUN, TURN, and ICE are the tools that fix this.

Definition: NAT traversal is the set of techniques that let VoIP signaling and media cross a Network Address Translation boundary so internal phones can call external ones.

The three helpers

Tool Role When used
STUN Discover public IP:port Most home/office NATs
TURN Relay media when direct fails Symmetric NAT / strict firewalls
ICE Negotiate best path (STUN then TURN) Endpoint candidates

Why SIP needs help

SIP messages embed the private IP in the SDP. Without correction, the far end tries to send RTP to an unreachable address. STUN reveals the public mapping; an SBC or ALG rewrites the SDP so media flows.

Practical fixes

  • Enable SIP ALG only if it works—many break SIP; prefer an SBC.
  • Use an SBC at the edge to handle NAT and security uniformly.
  • For remote workers, use a VPN or TURN relay.
  • Set consistent RTP ports and open UDP ranges on the firewall.

Newrock perspective

A Newrock SBC terminates NAT and normalizes SIP/RTP for both on-prem and remote users, removing the need to juggle ALG settings per site.

FAQ

Is STUN enough?

For typical NAT yes; for symmetric/strict NAT you need TURN relay or an SBC.

Does an SBC replace STUN/TURN?

It performs the NAT handling centrally, so endpoints behind it don't each need their own traversal config.

Why is one-way audio common?

Classic NAT/SDP mismatch—fix with SBC or correct NAT settings.

UDP or TCP for SIP/RTP?

SIP often UDP or TCP; RTP is UDP. Keep both allowed through the firewall.

Conclusion

NAT is the #1 cause of VoIP one-way-audio and registration failures. An SBC (or correct STUN/TURN/ICE) solves it cleanly and centrally.

The five cost buckets of a business phone system

Phone system quotes are usually compared on a single number, which makes them almost impossible to compare. Splitting the total into five buckets makes like-for-like comparison possible.

Cost bucketWhat it coversWhy it surprises people
PlatformPBX hardware or subscription, licences, and the management softwareOften compared directly, which flatters whichever model is cheaper up front
MigrationConfiguration labour, cabling, cut-over support, and user retrainingRarely quoted at all, and it is usually the largest one-off item
EndpointsDesk phones, soft clients, adapters for analogue devicesEndpoint count is usually higher than extension count
Gateways and trunksFXS/FXO gateways, SIP trunk channels, carrier feesGateway port count must cover analogue and legacy devices, not just staff
OperationsManagement time, upgrades, monitoring, and the cost of the next migrationThe only bucket that recurs, and the one most often ignored

Once the five buckets are separated, two systems that looked similar on the quote often differ sharply in the second and third buckets. That difference is where most surprises come from.

Why total cost of ownership beats purchase price

Purchase price measures one point in time. Total cost of ownership measures the period you will actually run the system. The gap between the two is usually largest for hardware that has to be replaced on a fixed cycle.

  • The hardware refresh cycle arrives whether or not the platform is still functionally adequate.
  • Support and licence terms change over the ownership period, and the same platform can be priced very differently at renewal.
  • Migration effort is not linear — the second migration is usually cheaper than the first, but never free.
  • Configuration drift accumulates quietly, and manual administration of many sites is where time actually disappears.

None of this is an argument for one delivery model over another. It is an argument for comparing the two over a realistic period rather than over a procurement cycle.

Related reading on the Newrock site

Customer-centric, focus on customer value

Consult now

Copyright © New Rock Technologies, Inc. All Rights Reserved. 沪ICP备15008515号-1