Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...thank you for the wonderful resource that you have enabled here. It is clear, concise, well maintained and most importantly, helpful..."

Geography

Where in the world do Tek-Tips members come from?
wolseley (TechnicalUser)
16 Nov 07 1:54
I feel there are contradictions between the phrase below :
http://tldp.org/HOWTO/VoIP-HOWTO-4.html

Quote:


VoIP doesn't use(I feel this is not the right, because VoIP can use TCP) TCP because it is too heavy for real time applications, so instead a UDP (datagram) is used.

And

http://www.jdsu.com/test_and_measurement/technical_resources/product_documents/whitepaper/voipterm_wp_acc_tm_ae_1205.pdf
VoIP utilizes IP as its basic transport method. VoIP utilizes both the TCP and UDP protocols over IP.


http://arstechnica.com/guides/tweaks/voip.ars
Also, SIP can use either TCP or UDP; most providers utilize the UDP method.


http://www.searchvoip.com.au/topics/article.asp?DocID=1230489&NodeID=299014
Why is UDP used more in VoIP than TCP?
If UDP is unreliable, why is it used more in VoIP rather than TCP?
The biggest reason, right off the bat, is that all routers and switches on the Internet have the ability to understand it, and route it fast and with great efficiency. As TCP is a connection-oriented protocol -- it requires a handshake and session between sender and receiver. UDP can route packets based on a variety of factors.

Any comment

Regards
Sympology (MIS)
16 Nov 07 5:39
OK here goes, this realtes to SIP (but most are the same).

TCP is a reliable connection. This doesn't mean it is better. What it means is if some packet fail to arrive, they get resent, so lot's of handshaking take place. This makes it slower and more bandwidth intensive.
In Voip it's used for things like, call set up, tear down, transfers, hold, MWI's etc etc.
UDP does no handshaking and retransmits, therefore is less intensive and faster. In voice, it's used for your real time traffic (voice and video).
So why use UDP?

Well if a couple of voice packets don't arrive, what is the point of sending a messge back, then the device retransmitting and second or two later, it would arrive in the wrong order or the other packets would wait until it arrives before carrying on. This would cause problems with stuttering and delays.
With UDP it fires a constant stream of data, presuming some will get lost on the way. This is where all the cleaver technologies come (algorythms, compressions, CODECS etc), to try and make up for this loss.

As a quick guide>
TCP - Reliable, but slow
UDP - Unreliable but quick

Hope this helps

Only the truly stupid believe they know everything.
Stu.. 2004

wolseley (TechnicalUser)
23 Nov 07 1:03
Thanks StuReeves for that

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close