TCP Working: 3-Way Handshake & Reliable Communication


Before there is tranfer of data between client and server .The tcp do three way handshake.In general the client send the tcp segment which contains the synchronize sequence number to the server , then server send sement which contains both the syn no and the acknowledgement no to the client. agian the client send the acknowledgement on . if both the syn no and acknowledge no match from the both client and server side, then connection is established else connection is rejected .Now lets discuss in detail about it with the help of diagram

There are two host P and Q.The host P send the seq ‘X‘ to host q , for the acknowledgement host Q send its own seq no ‘Y‘ and ACK no =X+1.again the host P send the ack no =Y+1 which is received by the HOST Q.



