All of lore.kernel.org
 help / color / mirror / Atom feed
From: Henrik Nordstrom <hno@marasystems.com>
To: netfilter-devel <netfilter-devel@lists.samba.org>
Subject: Re: TCP tracking states
Date: Sat, 6 Jul 2002 01:15:39 +0200	[thread overview]
Message-ID: <200207060115.39594@henrik.marasystems.com> (raw)
In-Reply-To: <200207060038.59577@henrik.marasystems.com>

On Saturday 06 July 2002 00.38, Henrik Nordstrom wrote:

> 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

On a second reflection it gets a little bit more complex than this. 
Need to keep track of which side has closed down, causing a small 
explosion in states...

FIN_WAIT_ORIGINAL
FIN_WAIT_REPLY
CLOSE_WAIT_ORIGINAL
CLOSE_WAIT_REPLY
FIN_WAIT2_ORIGINAL
FIN_WAIT2_REPLY
TIME_WAIT

State descriptions:

FIN_WAIT	-> Wait for ACK to FIN

CLOSE_WAIT	-> Wait for FIN in other direction



ESTABLISHED / FIN	-> FIN_WAIT_ORIGINAL

FIN_WAIT_ORIGINAL / ACK(R) -> CLOSE_WAIT_ORIGINAL

FIN_WAIT_ORIGINAL / FIN(R) -> FIN_WAIT2_ORIGINAL

CLOSE_WAIT_ORIGINAL / FIN(R) -> FIN_WAIT2_ORIGINAL

FIN_WAIT2_ORIGINAL / ACK -> TIME_WAIT


And identical in the other direction, s/ORIGINAL/REPLY/


Can be simplified by using TIME_WAIT for FIN_WAIT2_* if one likes, but 
isn't really fair if tuning is to be allowed for FIN_WAIT..

Regards
Henrik

  parent reply	other threads:[~2002-07-05 23:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-05 22:38 TCP tracking states Henrik Nordstrom
2002-07-05 22:50 ` Henrik Nordstrom
2002-07-05 23:15 ` Henrik Nordstrom [this message]
2002-07-09 11:18 ` Jozsef Kadlecsik

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=200207060115.39594@henrik.marasystems.com \
    --to=hno@marasystems.com \
    --cc=netfilter-devel@lists.samba.org \
    /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 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.