Clarification on connections in the ESTABLISHED state...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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. . . .
-
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux