Lesson 4 of 6 · OSI Layer 4
How TCP builds a reliable connection, and what UDP skips
TCP numbers every byte, acknowledges what arrives, and resends what does not, so applications get a reliable stream. UDP skips all of that and sends independent datagrams, which suits traffic where speed matters more than perfect delivery.
A TCP connection from open to close
Step through the lifecycle, including a lost segment, then compare with UDP.
STEP 01 / 07
The three-way handshake
The client sends SYN with its starting sequence number. The server answers SYN-ACK with its own, acknowledging the client's. The client's ACK completes it, and both sides are now established.
State
- Client
- ESTABLISHED
- Server
- ESTABLISHED
Example numbers. Real initial sequence numbers are random, and real stacks add window sizes and timers.
Check your understanding
How TCP builds a reliable connection, and what UDP skips
All 1 sections · no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.