Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Grant Taylor <gtaylor@riverviewtech.net>
To: seberino@spawar.navy.mil
Cc: netfilter@lists.netfilter.org
Subject: Re: not sure ESTABLISHED TCP traffic will have ACK flag setalways...
Date: Sat, 09 Apr 2005 13:33:59 -0500	[thread overview]
Message-ID: <42582017.5030402@riverviewtech.net> (raw)
In-Reply-To: <20050409062431.GA17505@spawar.navy.mil>

> Thanks for your reply.  I did not know you could ACK multiple sequence
> numbers with a single ACK.  That really helps.   You obviously
> have a deep knowledge of TCP.

You are welcome.  I have some info in my head but I'm not entirely sure that it is 100% accurate, I'm hoping that it's close though.  So if you find any thing wrong with what I'm saying please let me know.

> I am still confused why anyone could believe that packets //without//
> the ACK flag set are suspicious.  Going back to your scenario above,
> there is a faster side blasting packets (1234, 1235, 1236, 1237...)
> faster than the other side is sending packets.  Clearly the
> faster side cannot set the ACK bit in all those packets
> (1234, 1235, 1236, 1237...) on because the fast side has fewer
> incoming packets to acknowledge right?

When the faster sending site sends it's packets to the slower receiving site the packets that are sent (1234, 1235, 1236, 1237...) will all have the same Acknowledgment number set in their packet stating that the next packet the faster sender receives from the slower client should be that Sequence number.  I personally do not know of a scenario where it would be plausible to receive a TCP packet with out the ACK bit set except during the SYN, SYN-ACK, ACK-ACK initiation phase and even just the first packet does not have the ACK bit set.  Even if you send a RST (reset), FIN (finish), PSH (push), URG (urgent) (I'm trying to remember my flags here with out looking them up so I could be wrong) flags they will all be during an on going TCP conversation and thus would have the ACK bit / flag set.  The only really questionable flag is the RST where some TCP/IP stacks will send packets with the 
 RST flag set if they mistakenly receive a packet that was not destined to them.  This is i
mplementation dependent and not clearly defined in RFCs and thus a matter of some confusion.  IMHO the stack tat received this packet should just drop the packet as it was obviously not meant for it and there was a failure elsewhere.



Grant. . . .


  reply	other threads:[~2005-04-09 18:33 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-08 15:57 not sure ESTABLISHED TCP traffic will have ACK flag set always Christian Seberino
2005-04-08 19:59 ` Taylor, Grant
2005-04-08 20:52 ` Michele Vetturi
2005-04-08 21:01   ` not sure ESTABLISHED TCP traffic will have ACK flag setalways Taylor, Grant
2005-04-09  6:24     ` seberino
2005-04-09 18:33       ` Grant Taylor [this message]
2005-04-10  3:23         ` seberino
2005-04-10  5:09           ` Grant Taylor
2005-04-10  3:54         ` seberino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42582017.5030402@riverviewtech.net \
    --to=gtaylor@riverviewtech.net \
    --cc=netfilter@lists.netfilter.org \
    --cc=seberino@spawar.navy.mil \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox