Tcp Uses A Four-Step Process Called A Four-Way Handshake To Establish A Tcp Connection?
Tcp Uses A Four-Step Process Called A Four-Way Handshake To Establish A Tcp Connection?
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 Uses A Four-step Process Called a Four-way Handshake To Establish A TCP Connection.
Let us discuss the four-way handshake. It is a process in which the source material is converted into the form of data encryption material. It can be used to encrypt the actual data frames. The abbreviation of the TCP is transmission control protocol. For data communication, when two nodes consist of the same data that is to be sent from one node to another node. Let say if the client wants to send a message to the server, this is the work on the TCP. It establishes a connection between the client and the server-side. This connection is called two one-way stations from the client and the server and vice versa. Once the data has been sent to the server and the server has made use of the connection that is established. Those connections should get closed. To close this TCP protocol we use the header part of the segment that exchanges between the client and the server.
In the four-way, handshake the client and the server will terminate independently. Before we go into the four-way handshake, let us understand how the three-way handshake works in detail. The connection exists between the two sockets even though the TCP header has no single socket field of the three parts of the socket the IP address or implied on the base of source and destination IP address in the IP header. The destination port and the source port are only the two components that define the function of the socket.
Firstly the packet is sent to the server in order to initiate a communication, to know whether the sent packet is SYN or the acknowledgment packet if the SYN bit is turned on in the TCP header that represents it is a simple packet, for a client to establish a communication with the server there must be a source port because to the same source port the webserver will respond. After the web server receives the first packet, the second packet will be initiated by the webserver. In that, the TCP header will have two fields that are SYN and ACK. These both will be on the webserver field. The client can understand that the packet sent by the server is an acknowledgment of the packet I sent.
But How the client and server can identify which SYN and acknowledgment packet came from?. To know this they have some of the numbers called sequence numbers. Let us take an example, the client sends the packet with the sequence number of 1 and the server responds to the packet with the same sequence number 1. In this way, we can know which packet is sending through which server. This entire communication is managed by multiplexing. And the third packet is again sent by the client as an acknowledgment packet by adding the source port and the destination port, This three-way step we call the three-way handshake protocol. After this, the session will be closed where the client and server will be informing each other that the session is being closed. Now let us know how the communication gets closed with the TCP communication, it uses an additional flag called the fin bit. In the TCP header, we will see the SYN, ACK, and the fin bit. The fin is nothing but the finish bit. If one computer 1 requests some website, it browsed all the information that is required and the computer 1 wants to close the session, now, it sends the ACK and fin, this acknowledgment is for the previous packet that sent by the server and the other side of the computer sends ack packet that sent as the TCP header. It again sends a finish and ACK packet in a separate packet. In the end, computer 1 sends the acknowledgment. This is the process of the four steps. This is the four-way handshake.