TCP closing a connection

client closes socket:

clientSocket.close();


step1 :client sends TCP FIN control segment to server


step2: Server receives FIN,replies with ACK. Closes connection,sends FIN.


time wait 30 seconds(in order to receive the package which already send but unreceived)





TCP waits until it has been three duplicate ACKs before retransmitting the packet

posted @ 2016-01-25 11:03  mengfanrong  阅读(299)  评论(0编辑  收藏  举报