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
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerHow do you use `dig` for DNS troubleshooting?Beginner