Home / Networking / TCP vs UDP

TCP vs UDP

  • TCP stands for “Transmission Control Protocol” whereas UDP stands for “User Datagram Protocol”.
  • TCP is more stable than UDP.
  • TCP is connection oriented protocol while UDP is connectionless protocol.
  • UDP is faster for data sending than TCP.
  • UDP gives error checking but no reporting, but TCP provides checks for errors and reporting.
  • TCP provides guaranteed 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 whereas that of UDP is 8 bytes.
  • TCP is heavy weight as it needs three packets to setup a connection while UDP is lightweight.
  • TCP has acknowledgement segments, but UDP has no acknowledgement.
  • TCP is used for an application that requires high reliability but less time-critical whereas UDP is used for an application that is time sensitive but requires less reliability.

Check Also

OSI Layers Model Explained With Examples

OSI  Layers ModelApplication LayerPresentation layerThe Session LayerTransport LayerSegmentation Connection managementUDPTCPReliabilityFlow controlConnection Multiplexing/Application MappingNetwork LayerIP addressIP packetDatagramData …

Power of OSI Layer Model

International Organization for Standardization (ISO) developed the seven-layer model or i.e call OSI(Open System Interconnection) …

Leave a Reply