IAX vs SIP

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

IAX vs SIP

Postby delox » Fri Apr 08, 2005 12:37 am

What are the big differences between IAX and SIP? How is IAX better behind NATs than SIP. Will IAX ever take over SIP?

Thank you
delox
Newsterisk
 
Posts: 7
Joined: Thu Dec 21, 2006 10:56 pm

Postby SineApps » Fri Apr 08, 2005 1:08 am

What are the big differences between IAX and SIP?


IAX uses one port for all information travelling between two servers and only one port per phone.

SIP is effectively the signalling for RTP.

So, in a call you have two components; the voice and the signalling. Signalling is usually things like DTMF (pressing buttons on the phone).

The actual voice is on a seperate port (RTP) and the SIP messages contain information about the call and location of the RTP etc.

One of the problems with SIP is that it breaks a few networking rules. I.E. inside the network packet it writes in text what it thinks its own address is. This means for example, say you're on a LAN and you have an IP address of 192.168.1.2 or something. This is an internal IP address. It can't be used on the internet. The way that your network gets around this is by rewriting the source IP address and port on the way out.

So, you can see the problem, if you have the IP address not only stored in the packet header, but also inside the data.

There are now a few ways around this such as STUN etc to allow an internal client to contact an external server, which will return the address it sees the data coming from (effectively your NAT).

IAX is a binary protocol. This means it's not written in text and so requires less space.

If you have a server behind NAT it can just register to another server (and hold open a hole in te NAT) and that server will respond to the source IP of the packet, which in turn gets passed to the correct machine.

Also, IAX does something called trunking.

Basically what this means is that it puts a whole lot of calls into each packet.

What this means is that you have a lot less IP overhead.

How is IAX better behind NATs than SIP.


Well, it doesn't require any opening of ports for the client or any funky STUN etc.

Will IAX ever take over SIP?


One would hope so. It is vastly superior. I guess we shall see.
Matt Riddell
_______________________________________________

<A HREF="http://www.sineapps.com/news.php">http://www.sineapps.com/news.php</A> (Daily Asterisk News - html)
<A HREF="http://www.sineapps.com/rssfeed.php">http://www.sineapps.com/rssfeed.ph
SineApps
Newsterisk
 
Posts: 4
Joined: Tue Aug 02, 2005 8:35 pm


Return to Asterisk Support

Who is online

Users browsing this forum: No registered users and 1 guest