TCP State Transition Diagram

Client path

Closed

Syn_sent

Established

Fin_wait1

Fin_wait2

Time_wait

Server path

Closed

Listen

Syn_Rcvd

Established

Close_wait

Last_ack