The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
windows linux handshake !! nivea_jmd UNIX for Dummies Questions & Answers 1 01-25-2008 03:23 AM
Incomplete three way handshake 3wayTrouble IP Networking 0 11-23-2007 07:34 AM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-29-2005
Registered User
 

Join Date: Apr 2005
Location: New Delhi(India)
Posts: 1
Three way handshake

Hi ,
I am mukesh. i would like to know the procedure of 3 - way handshake.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-30-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,354
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.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0