TCP vs UDP?

TCP is connection-oriented: three-way handshake, ordered and reliable delivery, flow control (HTTP, SSH). UDP is connectionless with no delivery guarantee and lower overhead (DNS queries, VoIP, streaming).