All of lore.kernel.org
 help / color / mirror / Atom feed
* TCP tracking states
@ 2002-07-05 22:38 Henrik Nordstrom
  2002-07-05 22:50 ` Henrik Nordstrom
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Henrik Nordstrom @ 2002-07-05 22:38 UTC (permalink / raw)
  To: netfilter-devel

The recent discussions and Oskar Andreassons work on a iptables 
tutorial made me take a closer look into the TCP tracking states, and 
I notices a couple of odd things that looks like they may be bugs..


1. What is the use of LAST_ACK? From what I can tell this state can 
only be reached if the connection is already in the LAST_ACK state..

2. The support for half-closed connections is very poor, and differs a 
lot depending on which side closed first.


To deal with 2, may I propose that the following symmetric FIN state 
machine is used instead of the odd assymetric one used today:


ESTABLISHED / FIN  -> FIN_WAIT

FIN_WAIT / ACK(R) -> CLOSE_WAIT

CLOSE_WAIT / FIN(R) -> TIME_WAIT (or a new FIN_WAIT2 state)

TIME_WAIT / ACK -> TIME_WAIT


And for completeness

FIN_WAIT / FIN(R) -> TIME_WAIT (or a new FIN_WAIT2 state)


Regards
Henrik

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-07-09 11:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-05 22:38 TCP tracking states Henrik Nordstrom
2002-07-05 22:50 ` Henrik Nordstrom
2002-07-05 23:15 ` Henrik Nordstrom
2002-07-09 11:18 ` Jozsef Kadlecsik

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.