Introduction to TCP vs. UDP

TCP protocol is connection oriented protocol, meaning that TCP connection will be reliable. UDP protocol is connection less, meaning some of the UDP transmission packets can be lost. TCP transmissions are needed where data integrity is needed, UDP can be used in cases where some of the data packets can be lost.

For example TCP is used for file transfer, you don't want to end-up with a broken file, because of data transmission issues.

UDP protocol can be used for voice over IP, where loss of a packet of data does not impact conversation. UDP in this case is used to speed up the voice delivery.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator