What Is the Difference Between UDP and TCP?

Ask a question


UPD and TCP protocols are used to transmit data, packets of information, across the internet based on IP address. While these are not the only protocols available for transmitting data, TCP is the most commonly used of the two. This article will briefly explain the differences between the two.

UDP Protocol

UDP (User Diagram Protocol) is a non-connection oriented protocol. Simply put, when machine A sends packets to machine B, the stream is nondirectional. The data transmission is done without warning the recipient (the machine B), and the recipient receives the data without making an acknowledgment to the transmitter (the machine A). This is because the data sent by the UDP protocol does not make it possible to transmit the information concerning the transmitter. As a result, the recipient does not know the sender of the data, except his IP.

TCP Protocol

Unlike UDP, TCP (Transmission Control Protocol) is connection oriented. When machine A sends data to machine B, machine B is notified of the arrival of the data and testifies to the good reception of the data by an acknowledgment of receipt. CRC control of data is based on a mathematical equation and verifies the integrity of the data transmitted. Therefore, if the received data is corrupted, the TCP protocol allows the recipients to notify the sender.