Linux Netfilter discussions
 help / color / mirror / Atom feed
* Clarification on connections in the ESTABLISHED state...
@ 2007-10-04 21:11 Grant Taylor
  0 siblings, 0 replies; only message in thread
From: Grant Taylor @ 2007-10-04 21:11 UTC (permalink / raw)
  To: Mail List - Netfilter

I need a little bit of clarification on what packets in a connection are 
considered to be the ESTABLISHED state.

"... ESTABLISHED meaning that the packet is associated with a connection 
which has seen packets in both directions, ..."

In short, does the response packet to the first outgoing request packet 
qualify as ESTABLISHED or is it just NEW because there has not already 
been in the past packets that have gone both directions?

So if you consider the three way TCP handshake, if the current packet 
counts the states would be as such:

Outgoing SYN		NEW
Incoming SYN, ACK	ESTABLISHED
Outgoing ACK, ACK	ESTABLISHED

Or if you only consider the previous packets and not the current packet, 
the states would be as such:

Outgoing SYN		INVALID
Incoming SYN, ACK	NEW
Outgoing ACK,ACK	ESTABLISHED

So, would someone please educate me here and tell me which it is?  Does 
state count only previous packets and not the current packet or does it 
count all packets including the current packet?



Grant. . . .

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-04 21:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-04 21:11 Clarification on connections in the ESTABLISHED state Grant Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox