ByteDance Interview Question

What is a TCP protocol, and its difference to UDP

Interview Answer

Anonymous

Oct 10, 2025

There is redundant word in TCP protocol. Because the word TCP is Transmission Control Protocol. TCP is connection-oriented, meaning that before any data is sent, both the sender and receiver establish a reliable connection — similar to making a phone call before speaking. Key Characteristics: 1. Reliable 2. Connection-oriented 3. Ordered delivery Common uses: Web browsing (HTTP/HTTPS) Email (SMTP, IMAP, POP3) File transfers (FTP, SFTP) UDP stands for User Datagram Protocol, and it is connectionless and focuses on speed rather than reliability. It sends packets called datagrams without establishing a prior connection — like sending letters without confirmation they arrive.