Interview Prep/Linux/Networking, SSH & Scheduling

What is the difference between TCP and UDP in practice?

IntermediateConceptNetworking, SSH & Scheduling
Answer

TCP is connection-oriented: handshake, ordered and reliable delivery, retransmission, flow and congestion control (HTTP/1.1, HTTP/2, SSH, databases). UDP is connectionless: no handshake, no ordering or delivery guarantees, lower latency (DNS, NTP, syslog, VXLAN, QUIC/HTTP3). Testing UDP ports is harder because there is no handshake to confirm.

nc -zv db 5432
nc -zuv dns 53
All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling