From: "Taylor, Grant" <gtaylor@riverviewtech.net>
To: Christian Seberino <seberino@spawar.navy.mil>,
netfilter@lists.netfilter.org
Subject: Re: not sure ESTABLISHED TCP traffic will have ACK flag set always...
Date: Fri, 8 Apr 2005 14:59:23 -0500 [thread overview]
Message-ID: <00b101c53c75$7670eec0$f5001eac@riverview.office> (raw)
In-Reply-To: 1112975844.3544.94.camel@seberino.spawar.navy.mil
Yes it is plausable (and common) for one side to send more traffic than the
other side (pick your favorite downloading client for downloading ISOs).
Something to keep in mind (at least as far as I know it) is that for TCP to
operate packets that get sent MUST be ACKnowledged with in the TCP Window
size. The WINDOW is how many packets can be out in the ether
unACKnowledged. If a packet goes too long unACKnowledged the sending side
will resend the packet assuming that the packet has been lost somewhere.
That being said for at least 1 packet in every TCP WINDOW size received the
client will send an ACK with the ACK number set to the next Sequence number
that it is expecting to receive. This is where Window sizeing comes to play
when you try to optimize transmition of data. ...pause to think about the
question some more... Something to keep in mind is that just because I'm
receiving data from the server does not mean that I can NOT respond to the
traffic that it has received. Restated the client has to respond to the
server stating that it did receive the traffic that was sent to it. Also
any traffic in an established TCP converstaion will have an ACK bit set
acknowlidgeing that it received traffic prior and a sequence number set to
the number of the next packet that it sees. Thus the server will send a LOT
of packets to the client with the same Sequence number associated with the
ACK field. I may have some terms / names of fields incorrect but this is
the conceptual understanding that I have of TCP conversations.
Grant. . . .
> Firewall packet filter question.....
>
>
> **After** setting up a TCP connection, it may seem to make
> sense that ALL future packets would set the ACK flag.
>
> (ACK is important in 2 way communication since both sides
> need to constantly confirm //receipt// of _past_ packets.)
>
> Therefore, you might think it would be a good idea to
> set up you firewall to drop packets on ESTABLISHED
> connections that don't have ACK bit set.
>
> However, here is an apparent case where non-ACKs exist!!!...
>
> 1. One way traffic!!! --- sender has nothing to ACK!
>
> 2. One side sends LESS packets then the other! --
> fast side doesn't have enough incoming to ACK either!
>
> Agree? Why then do people say to drop non-ACK'd packets
> as suspicious??.... I would think it would be common
> for one side to send more packets then the other. I could
> be wrong.
>
> Chris
>
>
>
next prev parent reply other threads:[~2005-04-08 19:59 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 [this message]
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
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='00b101c53c75$7670eec0$f5001eac@riverview.office' \
--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