Three way handshake


 
Thread Tools Search this Thread
Top Forums Programming Three way handshake
# 1  
Old 04-30-2005
Three way handshake

Hi ,
I am mukesh. i would like to know the procedure of 3 - way handshake.
# 2  
Old 04-30-2005
This is a TCP concept. TCP guarantees reliable dilevery of data. It does this by using sequence numbers. Each byte of data gets a sequence number. Both sides of the connection keep the other side informed of the sequence number of the next byte of data it needs to recieve. The sequence numbers do not start at 0 or 1. The initial sequence number is random. So both sides need to syncronize ISN's. This establishes a TCP connection.

1. The client sends a packet with it's ISN. This packet has a SYN flag. This packet is addressed to some well-known port on the server. And it has the local port number the client has picked for itself.

2. The server send a packet back to client. This packet does two things. First it sets the ACK flag and and sets the ack number to the client's ISN+1. And it sets the SYN flag and sends it's own ISN.

3. The client sends a packet to ACK the server's ISN+1.

At this point both client and server know each other's sequence numbers.
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

No mail sending - Deferred: 403 4.7.0 TLS handshake failed

Please help! I am in urgent need of assistance. What started out as a small problem with IMAP folders not working seems to have spread. Our mail server, Scalix running on CentOS 5.5 isn't sending out any mail. There are now over 400 emails queued waiting to go out, all of which give the... (0 Replies)
Discussion started by: beckyboo
0 Replies

2. Solaris

handshake/connection errors

I'm running solaris openssl 097l and I upgraded to 098h. I see errors in the logs that seem like debugging errors that showed up, but seemed to happen in both versions I believe. I am using a certificate from another machine to test for this server. I believe the error messages generate when I... (4 Replies)
Discussion started by: csross
4 Replies

3. UNIX for Dummies Questions & Answers

windows linux handshake !!

hi i wanted to know how to read the status of RTS/CTS line using ioctl calls....i am programming using c/c++ and linux if someone can post a code snippet or suggest a book for the same...it will be very helpful.... 2. also i will like to know can a windows application and a rtos application... (1 Reply)
Discussion started by: nivea_jmd
1 Replies

4. IP Networking

Incomplete three way handshake

I've got a strange problem with a single mail sender (it is one of those large free mail providers). My mail server works well with thousands of senders but not this one, so we have made a connection dump and it seems that the three way handshake is not completed 15:55:59.177431 IP... (0 Replies)
Discussion started by: 3wayTrouble
0 Replies
Login or Register to Ask a Question