265
Appendix D
TCP Status Transitions
The TCP socket status can be confirmed using the socket status data returned for the FINS command
SOCKET STATUS READ (2764).
rcv FIN
snd ACK
CLOSE
rcv ACK of FIN
rcv ACK of SYN
CLOSED
LISTEN
SYN
RECEIVED
SYN
SENT
ESTABLISHED
CLOSING
CLOSED
WAIT
CLOSED
snd SYN,ACK
Passive OPEN
CLOSE
ACTIVE OPEN
snd SYN
snd SYN
SEND
CLOSE
rcv SYN
snd ACK
rcv SYN,ACK
snd ACK
snd FIN
CLOSE
snd ACK
rcv FIN
rcv ACK of FIN
snd FIN
rcv FIN
rcv ACK of FIN
Timeout=2MSL
LAST-ACK
CLOSE
snd FIN
TIME WAIT
FIN
WAIT-1
FIN WAIT-2
rcv SYN
snd ACK