FIN WAIT-1 --> if client sent FIN segment to the server and waiting for the ACK of its own FIN segment
Now after FIN WAIT-1 there are two possibility --
(1) if client receives ACK for its own FIN then client move to FIN-wait-2 and waiting for FIN from server side
after reciving the FIN from server client will send ACK then connection is not closed immediately it wait for some time and then closed and this wait time is called TIME-WAIT state.
(2)if client not recive ACK instead of ACK if it recived FIN from server side now client will ackonwledge this FIN and move to close state
Here Client will wait for the ACK for its own FIN.
After receiving ACK, client will move to TIME-WAIT state.