TCP Connection Establish and Terminate
TCP uses a three-way handshake method to establish a connection between two devices. The process involves the following steps:
The first device sends a SYN (synchronize) packet to the second device, indicating its intent to establish a connection.
The second device receives the SYN packet and sends a SYN-ACK (synchronize-acknowledge) packet back to the first device, indicating its agreement to establish a connection.
The first device receives the SYN-ACK packet and sends an ACK (acknowledge) packet back to the second device, indicating that it has received the second device’s response and is ready to communicate.
Once the three-way handshake is complete, the devices are connected, and data can be exchanged.
To terminate a TCP connection, either device can send a FIN (finish) packet to the other device, indicating that it no longer wants to communicate. The other device responds with an ACK packet, and then sends its own FIN packet to confirm the termination. The first device responds with another ACK packet, and the connection is closed.
Apply for Basic Network Support Certification Now!!
https://www.vskills.in/certification/certified-basic-network-support-professional