🇩🇪 DE
Knowledge

TCP vs UDP

The difference between the two most important transport protocols
TCP – Transmission Control Protocol

TCP is a connection-oriented protocol. Before data is transmitted, a connection is established between sender and receiver (3-way handshake). TCP guarantees that all packets arrive in the correct order and requests retransmission if packets are lost.

ConnectionYes (3-way handshake)
ReliabilityHigh – guaranteed delivery
OrderGuaranteed
SpeedSlower (overhead)
Error checkingYes
Use casesHTTP, HTTPS, Email, FTP, SSH
UDP – User Datagram Protocol

UDP is a connectionless protocol. Data is sent without prior connection setup. There is no guarantee that packets arrive, arrive in order, or arrive at all. This makes UDP much faster but less reliable.

ConnectionNo
ReliabilityLow – no guarantee
OrderNot guaranteed
SpeedFast (low overhead)
Error checkingOptional
Use casesDNS, VoIP, video streaming, gaming
When to use which protocol?

The choice between TCP and UDP depends on the application requirements:

Use TCP when...Data integrity is critical – web pages, file transfers, emails, banking
Use UDP when...Speed matters more than reliability – live video, online gaming, VoIP, DNS
Common ports by protocol
PortServiceProtocol
80 / 443HTTP / HTTPSTCP
22SSHTCP
25 / 587SMTP (Email)TCP
53DNSUDP / TCP
67 / 68DHCPUDP
123NTP (Time)UDP
443QUIC / HTTP/3UDP
Related tools
Ping Test (TCP) DNS Lookup (UDP) Port Check
Knowledge Ping Test DNS Lookup Port Check My IP

TCP and UDP – the two transport protocols

TCP and UDP are the two most important transport layer protocols (Layer 4 of the OSI model). TCP provides reliable, ordered data transmission with error checking – ideal for applications where data integrity is paramount. UDP sacrifices reliability for speed, making it ideal for real-time applications like video calls, online gaming and DNS queries where a small amount of data loss is acceptable.

728×90 · Ad slot 3 – Footer Google AdSense · passive Impressionen