Diferencia entre TCP y UDP (con tabla)

In internet networking, multiple protocols are being used for the transmission of data. The common protocols in vogue include TCP y UDP. Both of them transit data over the internet.

Though both terms may be used synonymously due to their use of IP protocol, there is a strong difference between these two concepts as they transmit data differently from a networking perspective.


The difference between TCP and UDP is that TCP is a protocol based on connection i.e. it sets up a connection between the sender and receiver before sending the data, while UDP is a protocol based on no connection i.e. it does not form a connection before sending data.

Sin embargo, lo anterior no es la única diferencia. Una comparación entre ambos términos sobre ciertos parámetros puede arrojar luz sobre aspectos sutiles:


Comparison Table Between TCP and UDP (in Tabular Form)

Parámetro de comparaciónTCPUDP
What does the acronym mean?Transmission Control ProtocolUser Datagram Protocol
Basis of connectionConnection basedNot based on connection
Does it establish a connection between the sender and receiver of data?siNo
Is this a handshake protocol?siNo i.e. no connection
Is it the most commonly used protocol?siNo, but depends on the suitability for certain areas
¿Como funciona?Messages based on TCP are transmitted from one system/computer to another on the internet.One program can send multiple packets of data to another program.
Can the delivery of data be guaranteed?siNo
Which one is more reliable?TCP is more reliable as acknowledgment is received by the senderLess reliable
Are the data packets arranged in any specific order?Yes, sequential orderNo specific order
Does it enable data packets are sent in sequential order?siNo, the data packets are sent in any fashion
From a weight perspective?Heavy-weight due to the requirement of multiple ports for connections setupLightweight because there is no sequential ordering of messages and no connection tracking.
Are there any acknowledgment segments?siNo
From Speed perspectiveSlower than UDP as it performs multiple activities such as connection setup, checking of errors and sequential sending.Faster than TCP
What is the header size?20 bytes8 bytes
Is error recovery performed?Yes, error checking and recovery.Not much
Does it provide an extensive error checking mechanism?siNo, only a single mechanism available
Can it be used for broadcast transmission?Nosi
Does it enable flow control management?siNo, as packets are sent continuously
IdoneidadUsed in cases of FTP (file transfer protocol) internet, email, cases where client and server transmit data packets independentlyUsed in case of live broadcasting, VOIP (Voice over Internet Protocol), video streaming, online gaming, DNS


What is TCP?

TCP means Transmission Control Protocol or Internet Protocol. TCP is a connection-based protocol and one of the commonly used protocols for transmitting internet data.

TCP works in a simple way enabling a two-way communication mechanism, in which one party seeks information, the other party/system sends the data or acknowledges the receipt.

For example, once we load an internet page, the system sends TCP packets to a specific web server asking to send the concerned web page or information. That specific web page will respond by sending a set of TCP packets.

TCP is a reliable protocol meaning there is a tracking of data packets, and no loss or corruption of data during transit and provides for acknowledgment by the recipient. TCP further provides error-checking and guarantees delivery of data and packets are delivered in the order they are sent.

TCP functions separately from the operating system. TCP has an extremely upgradable client-server model.

TCP supports creating a virtual network in case of the connection of multiple system networks. TCP also supports generating a connection between systems and assists multiple routing protocols. TCP provides for an effective flow control management mechanism as it implements flow control by organizing network traffic and congestion

TCP cannot be used for broadcasting transmission. TCP replacement is fraught with challenges. Also, TCP may have hanging issues such as the hanging of web pages unless reloaded again.


What is UDP?

UDP stands for User Datagram Protocol. Datagram in simple terms means a packet of information. UDP is a protocol that is not based on connection.

UDP works in the same way as TCP but does not ensure the delivery of data. In simple words, the recipient will continue receiving data packets and the sender may not be able to validate if the recipient is receiving data or not.

It is quite possible that recipients may miss receiving certain packets but cannot ask for them but all this happens at fast speed. So the biggest benefit of UDP is the high speed with which packets are transferred.

UDP supports packet broadcasting of network transmission. UDP is commonly used in the case of time-sensitive applications. UDP can also be used in the case of DNS (i.e domain name system) and internet gaming. UDP can be used in a scenario where speed is very critical but error correction is not important.

UDP does not guarantee delivery of packet and also there is a possibility of packet/data loss. UDP protocol may support the detection of errors but this can lead to discarding the packets with further retransmission not being attempted.

Further, there remains a possibility of data packets delivered in an incorrect way or receiving the same packets multiple times.

Main Differences Between TCP and UDP

  1. TCP stands for Transmission Control Protocol.  UDP standing for User Datagram Protocol.
  2. TCP is a connection-based protocol i.e. sets up a connection between a sender and receiver before sending the data. UDP is a connection-less protocol and does not require a set up a connection for data movement.
  3. TCP provides error checking techniques. UDP does not provide for such techniques and recipients may receive erroneous data or corrupt data or may not even receive data that may not be asked for again.
  4. TCP is slower and heavyweight as it needs to perform multiple tasks such as connection setup, checking of errors, sequential ordering. UDP is faster as it does not perform such tasks and is a lightweight protocol.
  5. TCP is reliable and data delivery is guaranteed combined with acknowledgment with data loss recovery in practice. UDP is not reliable as it doesn’t ensure data delivery and there remains a possibility of data corruption or loss in transit.
  6. TCP provides for sequential ordering when sending data and also provides a flow control technique to maintain smooth traffic flow and not irritate the receivers with too many packets. UDP does not provide for such a protocol nor any specific order for sending data packets and will send packets in any fashion and does not provide for any flow control mechanism.



TCP y UDP are very much in trend today. Also, there is a tendency to equate both these terms as the same and as a result, one may deploy a TCP instead of UDP y viceversa.

Por lo tanto, sería una idea prudente si la evaluación de sus sutiles diferencias se realizara antes de decidir la compra, ya que ambos difieren entre sí en practicidad y utilización.

Se sugiere un conocimiento y un asesoramiento prácticos completos, especialmente de los especialistas en redes, para aprovechar todos los beneficios de TCP o UDP deployment. The most important focal point which should always be kept in perspective is whether the application in scope is in and will stay connected for the expected time.



  1. https://ieeexplore.ieee.org/abstract/document/751376/
  2. https://core.ac.uk/download/pdf/37832045.pdf
  3. https://smartech.gatech.edu/bitstream/handle/1853/12301/MANIACS_40.pdf?sequence=1&isAllowed=y