Concepts / TCP connections

TCP connections

Three-way handshake

Also called SYN, SYN-ACK, handshake, FIN

SYN, SYN-ACK, ACK: how TCP opens a connection, each side agreeing on starting sequence numbers.

The client asks (SYN), the server agrees and acknowledges (SYN-ACK), the client acknowledges (ACK); then data flows. Each side closes its direction with a FIN. Options like the MSS and window scaling are agreed in the SYNs.

See it on real machines

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Start with a free account: Google or email, no card.

Start this lab, free