[Ilugc] packets and TCP
- From: bala150985@xxxxxxxxx (Balasubramaniam Natarajan)
- Date: Wed, 20 Jun 2012 23:00:24 +0530
Syn, ACK and ACK ACK or something.
Let us suppose A and B wants to talk with each other. Then
Step1: Machine_A will set one of the TCP flags to 1 and send it with a
random sequence number, I have assumed it to be 1 here in this example.
A
---------------------SYN_A=1--------------------------------------------------->
B
Step2: Here Machine_B will send its own random sequence number, I assumed
it as 1 and I till add one to the SYN number of A and send it back as
ACK_A=2, By that Machine A will know that B received the initial SYN
packet which it sent.
B ------------------SYN_B=1 & ACK_B=2 (SYN_A+1) -------------------> A
Step3: Here machine_A will do the samething of adding one to the syn_B.
A ------------------ACK_A=2 (SYN_B+1)
--------------------------------------> B
These three steps are the sole reason why TCP is called a connection
oriented connections and we can resend a packet if the acknowledgement is
not received.
Regards,
Balasubramaniam Natarajan
www.etutorshop.com/moodle/
Other related posts: