When looking at the monitor, sometimes some of the state will not familiar shorthand can be achieved by this picture.
Understanding of the various indicators, to put tcp three-way handshake, waving in the course of four to see.
First, the three-way handshake
Involving state: LISTEN, ESTABLISHED, SYN_RECV, SYN_SENT
Two, four wave
涉及状态:FIN_WAIT1、FIN_WAIT2、CLOSED、TIME_WAIT、CLOSED、CLOSE_WAIT、LAST_ACK
Supplementary: the CLOSING : said the two sides at the same time close the connection. If the two sides almost simultaneously calls the close function, then both parties will simultaneously send FIN messages, this time there will be CLOSING state, said the two sides are in close connection.
reference
TCP / IP Comments - connection state transition diagram CLOSE_WAIT
TCP three-way handshake, waving four times - explained in great detail
tips
If you do not know or want to be friends of the students can micro-channel contact me: qq981145483 (Note: csdn tcp)