Sign in to follow this  
Followers 0
clearguy

TCP or UDP ?

5 posts in this topic

Hi,

I've already made a search but I havn't found something.

I understand so far, that that 2 protocols are mainly the same:sending and receiving data between two entities, and that TCP structure is more complex as UDP's one.

But you autoit-scripters who are knowing much more about it, would you make a little summary for me?

Thanx :whistle:

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

The protocol to choose depends heavily on what you are going to use the protocol for. Programs that require massive amounts of data to be sent, and where lost data is not much of a problem, almost always use the UDP protocol. Because UDP is slightly faster then TCP. UDP is used in applications like Limewire, or applications that use Video streaming. TCP is a lot more reliable in contrast to UDP. UDP even sometimes is called the Unreliable Datagram Protocol. So, if you are not going to build something that requires massive amounts of data to be sent, go with UDP. I myself am a big fan of using TCP all of the time.

Here's a list of the advantages of TCP over UDP:

  • Error-free data transfer
  • Ordered-data transfer
  • Retransmission of lost packets
  • Discarding duplicate packets
  • Congestion throttling
References

User Datagram Protocol - Wiki

Transmission Control Protocol - Wiki

Edited by Manadar

Share this post


Link to post
Share on other sites

Check my TCP thread for tons of info and a good start.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0