TCP and UDP both are used for transferring data or packets on internet or Intranet.. Both perform the same job but the way is different. TCP stands for “Transmission Control Protocol”. UDP stands for “User datagram Protocol”. The main difference between them is that the TCP is connection oriented while UDP is connectionless. In TCP after the connection is setup, bidirectional sending of data is possible but in UDP, packets are sent in chunks. TCP is more reliable than UDP but UDP is faster than TCP. Header size of TCP is 20 bytes while Header size of UDP is 8 bytes. UDP don’t have error checking mechanism that is why it is less reliable but is faster in data transferring while TCP is reliable but comparatively slow as it keeps the data smooth and checks error.

Key Differences

  • TCP stands for “Transmission Control Protocol” while UDP stands for “User datagram Protocol”.
  • TCP is connection oriented protocol while UDP is connectionless protocol.
  • TCP is more reliable than UDP.
  • TCP uses both error detection and error recovery .UDP works on a “best-effort” basis
  • UDP is faster for data sending than TCP.
  • UDP makes error checking but no reporting but TCP makes checks for errors and reporting.
  • TCP gives guarantee that the order of data at receiving end is same as on sending end while UDP has no such guarantee.
  • Header size of TCP is 20 bytes while that of UDP is 8 bytes.
  • TCP is heavy weight as it needs three packets to setup a connection while UDP is light weight.
  • TCP has acknowledgement segments but UDP has no acknowledgement.
  • TCP is used for application that require high reliability but less time critical whereas UDP is used for application that are time sensitive but require less reliability.


A More detail comparison between both the protocols is shared below –

Reference :-

Please follow and like us:


Related Posts

Add Comment

Social Media Auto Publish Powered By :
Select your currency
USD United States (US) dollar

Checkout : E-STORE for latest release "JNCIP-SEC & JNCIA-SEC Interview Q&A " Dismiss