New-Bie doubt in TCP-IP 3 way hand shake

Thread Tools Search this Thread
Special Forums IP Networking New-Bie doubt in TCP-IP 3 way hand shake
# 1  
Old 12-02-2013
New-Bie doubt in TCP-IP 3 way hand shake

from my understanding

step 1:

From device A to device B , sending SYN.
Sequence number=2000 [for example]

step 2:

from device B to A , sending SYN-ACK
ACKno=2001 [seq no +1]
Sequence number= 5000 [for example]

Step :3

From device A to B , sending ACK

here is my doubt , as i saw in many examples why Sequence number will be 2001 ....?

hope you guys understood my question...
# 2  
Old 12-02-2013
It means device B is expecting to hear sequence 2001 (ACK=2001). So in step 3, when ACK is send the SEQ will be 2001.

Refer: RFC 793 (Section 3.4)
This User Gave Thanks to Yoda For This Post:
# 3  
Old 12-02-2013
I think you are mixing up the sequence numbers and the acknowledgements numbers. They are not related.
# 4  
Old 12-02-2013
Originally Posted by Yoda
It means device B is expecting to hear sequence 2001 (ACK=2001). So in step 3, when ACK is send the SEQ will be 2001.
thanks , i will be reading the RFC.

but why in step2 , sequence number was having no relation with acknowledge number , but in step3 why sequence number has to be the ACQnumber..?

is there any particular reason for that design..?
# 5  
Old 12-03-2013
As per the design, if the ACK flag is set, then only the value of this field is the next sequence number that the receiver is expecting.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Merge left hand strings mapping to different right hand strings

Hello, I am working on an Urdu to Hindi dictionary which has the following structure: a=b a=c n=d n=q and so on. i.e. Headword separated from gloss by a = I am giving below a live sample بتا=बता بتا=बित्ता بتا=बुत्ता بتان=बतान بتان=बितान بتانا=बिताना I need the following... (3 Replies)
Discussion started by: gimley
3 Replies

2. IP Networking

Doubt regarding TCP Options negotiation

Hi, I am aware that duirng the intial SYN, SYN-ACK, ACK (connection establishment) phase, both TCP ends advertize TCP options (or extended features) each would like to use for the connection. Ultimately both ends end up using TCP options commonly supported and advertized by both. My doubt... (2 Replies)
Discussion started by: jake24
2 Replies

3. UNIX for Dummies Questions & Answers

A complete New Bie Here

Hello Guys I am a complete New bie in UNIX ( Just know a few of the commands ). Please guide how should I learn Unix In a proper way . I am doing a job, so i will have to do the study at home . Which books , Links, Pages you will suggest me so that i can learn UNIX fast . Thanks (5 Replies)
Discussion started by: supercops
5 Replies

4. UNIX for Dummies Questions & Answers

few new bie questions related to gdb , telnet

Hi All, 1. how to what is the current line we are executing. List command will display the 10 lines by default. 2. how to put a pointer to the current excuting line when executing the list. 2. if i have set one break point and i want to set 2nd break point do i need to delete the first break... (1 Reply)
Discussion started by: gauri
1 Replies

5. UNIX for Dummies Questions & Answers

new bie questions

Hi all, I am a new bie and learning linux step by step. I am googling a lot but still unabel to find few things like below: 1. how to clean ipcs if I reboot the system it is cleaned but can I do that with out rebooting the system 2. I don't have any in side the folder /usr/src and one of my... (2 Replies)
Discussion started by: gauri
2 Replies
Login or Register to Ask a Question