How does a TCP connection close?
Hi,
I have few questions based on the quotes you made below
When one end decides there is nothing more to send, it sends a 'FIN' packet (a packet with 'FIN' flag on) to the other end. The other end sends an acknowledgement packet ('ACK') for the 'FIN' it received. Once this happens, one way is closed, and the connection is now half open. The other end meanwhile sends all the data if any, and when it is over it sends a FIN packet and this packet is acknowledged. Now the connection is effectively closed and no communication can take place between the end points.
1.
do u mean to say that the side which is sending FIN will be closed after receiving ACK from other end or the opposite ?
2. when the packet is acknowledged for the latter case, who has acknowledged that packet, because already one way is closed isn't it ?

