TCP vs UDP
Transmission control protocol vs User datagram protocol
TCP: use three handshake to establish connection between sender and receiver, more reliable, has flow control, has ordering, and guarantee data arrived exactly as sent. used on browsing, email
UDP: connectionless, no guarantee on the data sent will be received, order. also no overhead on set up connection error checking, faster and lower latency, best for live streaming, online gaming
Connection:
tcp sets up connection, for any data sent there is a three way handshake, to make sure both the sender and receiver are ready.