UDP vs TCP. What are these ? What are their Differences, pros and cons ?
|
feedback
|
|
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. | |||||||||
feedback
|
|
You should read followings: | |||
|
feedback
|