TCP State Transition Diagram

This interactive visualization demonstrates the TCP connection establishment (3-way handshake), data transfer, and connection termination (4-way handshake) between a client and server.

Click the buttons below to step through the TCP state transitions or run the full animation.

State Information

Client TCP Connection Server
CLOSED
LISTEN
SYN_SENT/SYN_RCVD
FIN_WAIT
ESTABLISHED
CLOSE_WAIT/LAST_ACK
TIME_WAIT