LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-21-2006, 12:22 PM   #1
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Rep: Reputation: 31
Disntiguishing between ACK packets in a TCP connection!!


Hi to all,

I would like to know if there's a way to distinguish between the ACK packet sent during the connection establishment phase of a TCP connection and subsequent ACK packets sent during the data transfer phase.

Warm regards,
Visham
 
Old 05-21-2006, 01:34 PM   #2
Intimidator
Member
 
Registered: Mar 2005
Distribution: FC4
Posts: 83

Rep: Reputation: 15
Since ACK number is the sequence number that this host is expecting to achieve..

The ACK number sent during the conn establishment will be 'sequence number of the SYN packets which is used to initiate the connection' + 1

Last edited by Intimidator; 05-21-2006 at 01:42 PM.
 
Old 05-21-2006, 02:38 PM   #3
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Mant thx for the reply..

Quote:
The ACK number sent during the conn establishment will be 'sequence number of the SYN packets which is used to initiate the connection' + 1
That would actually be true for SYN/ACK packet. In the ACK packet (3rd packet), the sequence number will be equal to the 'sequence number for the SYN in the SYN/ACK packet' + 1

Is there a way to distinguish between this 3rd packet and any other ACK packet during data transfer w/o having to keep track of sequence numbers? Are there other characteristics or options that are set in the former and not in the latter?

Warm regards,
Visham
 
Old 05-23-2006, 01:08 AM   #4
vishamr2000
Member
 
Registered: Aug 2004
Posts: 210

Original Poster
Rep: Reputation: 31
Does anyone know what physical or logical characteristics can help make this distinction? Could it be the size of the packets?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP connection setup packets... shrishailnk Linux - Networking 1 05-03-2006 09:14 PM
searching for a WLAN card which is able to capture ACK and other management packets! lackyg Linux - Wireless Networking 1 02-03-2006 09:34 PM
TCP retransmission and duplicated ack enjoyzj Linux - Networking 0 06-05-2004 06:19 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Forwarding ACK Packets snufferz Linux - Newbie 0 05-12-2004 02:10 AM


All times are GMT -5. The time now is 04:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration