SIP/TCP instead of SIP/UDP

tzury
Posts: 1
Member Since:
2008-02-04

Hi,

I am using Trixbox CE 2.6.1 and I would like to know how can one configure the trixbox so it will use TCP instead of UDP for SIP.

I am also wondering whether it is possible to configure asterisk so RTP would be using TCP as well but this is another issue.



SkykingOH
Posts: 9538
Member Since:
2007-12-17
I can understand a few

I can understand a few applications where you might need TCP for SIP. What possible reason for RTP real time and TCP don't mix.

I will quote Columbia University on the subject:

Quote:
However, for real-time delivery of audio and video, TCP and other reliable transport protocols such as XTP are inappropriate. The three main reasons are:

* Reliable transmission is inappropriate for delay-sensitive data such as real-time audio and video. By the time the sender has discovered the missing packet and retransmitted it, at least one round-trip time, likely more, has elapsed. The receiver either has to wait for the retransmission, increasing delay and incurring an audible gap in playout, or discard the retransmitted packet, defeating the TCP mechanism. Standard TCP implementations force the receiver application to wait, so that packet losses would always yield increased delay. Note that a single packet lost repeatedly could drastically increase delay, which would persist at least until the end of talkspurt.
* TCP cannot support multicast.
* The TCP congestion control mechanisms decreases the congestion window when packet losses are detected ("slow start"). Audio and video, on the other hand, have "natural" rates that cannot be suddenly decreased without starving the receiver. For example, standard PCM audio requires 64 kb/s, plus any header overhead, and cannot be delivered in less than that. Video could be more easily throttled simply by slowing the acquisition of frames at the sender when the transmitter's send buffer is full, with the corresponding delay. The correct congestion response for these media is to change the audio/video encoding, video frame rate, or video image size at the transmitter, based, for example, on feedback received through RTCP receiver report packets.

An additional small disadvantage is that the TCP and XTP headers are larger than a UDP header (40 bytes for TCP and XTP 3.6, 32 bytes for XTP 4.0, compared to 8 bytes). Also, these reliable transport protocols do not contain the necessary timestamp and encoding information needed by the receiving application, so that they cannot replace RTP. (They would not need the sequence number as these protocols assure that no losses or reordering takes place.)

While LANs often have sufficient bandwidth and low enough losses not to trigger these problems, TCP does not offer any advantages in that scenario either, except for the recovery from rare packet losses. Even in a LAN with no losses, the TCP slow start mechanism would limit the initial rate of the source for the first few round-trip times.

--

Scott

aka "Skyking"



16again
Posts: 370
Member Since:
2007-03-04
AFAIK TCP use is restricted

AFAIK TCP use is restricted to SIP signaling port 5060 only. (or 5061 TLS encrypted)
Work is being done on asterisk to support SIP/TCP too.
For now, all you can do is add a SIP proxy to translate TCPUDP



webberz
Posts: 3
Member Since:
2007-03-14
how to TCP to UPD

Our ISP has blocked inbound UPD, so remote extensions do not work. How can I setup as suggested abive:

add a SIP proxy to translate TCPUDP



andrew
Posts: 1472
Member Since:
2006-05-30
Sip over tcp is not a

Sip over tcp is not a feature of trixbox 2.6.2.2. You need to use trixbox 2.8 to support SIP over TCP.



joshpatten
Posts: 733
Member Since:
2007-01-20
webberz wrote: Our ISP has
webberz wrote:
Our ISP has blocked inbound UPD, so remote extensions do not work.

I'm sorry to say this, but this is a good indicator you need to change ISP's, if possible. My guess is you are on a cut-rate cable modem connection (correct me if I'm wrong).



Atamido
Posts: 115
Member Since:
2006-06-16
We use SipX to translate

We use SipX to translate between TCP and UDP for us. It works pretty flawlessly to get our Trixbox to talk to our Exchange 2007 UM.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.