UDP vs TCP. What are these ? What are their Differences, pros and cons ?
closed as too broad by slhck♦ Nov 22 '13 at 6:08
There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.
TCP is the Transmission Control Protocol. It is a connection-oriented protocol meaning it will establish a session by means of 3-way handshake. TCP provides error checking although it comes at the cost of overhead traffic. TCP is best used with applications that need to maintain a constant connection, such as FTP or SSH.
UDP is the User Datagram Protocol. Unlike TCP, UDP is a connectionless protocol. It is much like when you send a letter in the mail. What I mean by this is there is no guarantee that you will receive your mail, you send it and hope it gets there (best-effort delivery). Since there isn't error checking like TCP, it is much faster, although more prone to errors. Due to it's speed it is ideal for time-critical applications such as games. Some streaming video applications will also use UDP for it's speed.
This is a very brief overview of the protocols, they go much much more in-depth than this. I would suggest reading into them more if you are curious as to the specifics and how they operate in a layered model.