How Does Tcp Terminate a Session?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
TCP session termination is handled through a process called a TCP “four-way handshake.” The four way handshake consists of two steps, each with a message from both ends of the connection. The first step is the “FIN” (finish) message. This message from the initiator of the connection tells the receiving end that it no longer needs the connection and is closing it. The receiving end then responds with an “ACK” (acknowledge) message to confirm receipt of the FIN message. The initiator then sends another FIN message, and the receiver responds with another ACK message. When both sides receive the ACK, the connection is terminated.
TCP terminates a session by closing the connection. This is done by sending a FIN (finish) packet from the sender to the receiver. Once the receiver receives the FIN packet, it sends back an ACK (acknowledge) packet to the sender to confirm the session has been closed. The sender then sends back a FIN packet to complete the session termination.