when tcp connection is closed?
TCP normal close appears when the client or server decides that all data has been sent to the receiver and we can close the connection. There are three ways a TCP connection is closed: The client initiates closing the connection by sending a FIN packet to the server.