Back to course
animation2 min
Lesson 18 of 24
TCP vs UDP — when to use which
Card 1 of 425%
Two Ways to Send Data
TCP (Transmission Control Protocol): Reliable, ordered delivery. Sets up a connection first (3-way handshake: SYN → SYN-ACK → ACK). Retransmits lost packets. Used for web browsing, email, file transfer.
UDP (User Datagram Protocol): Unreliable but fast. No connection setup, no retransmission. Used for real-time applications where speed matters more than perfection — voice calls, video streaming, online gaming.