All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: about the sctpCurrEstab MIB item
Date: Tue, 13 Jul 2010 15:05:41 +0000	[thread overview]
Message-ID: <4C3C80C5.6060809@hp.com> (raw)
In-Reply-To: <4C3C1539.5030302@cn.fujitsu.com>

On 07/13/2010 03:26 AM, Shan Wei wrote:
> The sctpCurrEstab MIB item is defined in RFC3873 as 
> the number of associations for which the current state is
> either ESTABLISHED, SHUTDOWN-RECEIVED or SHUTDOWN-PENDING.
> 
> So, an association for which the current state is SHUTDOWN-SENT
> or SHUTDOWN-ACK-SENT should not counted in SctpCurrEstab. Right?
> 
> But, actually, the implementation of Linux is not consistent with the spec.
> An association is thought as "established" with the current state of
> ESTABLISHED, SHUTDOWN-RECEIVED, SHUTDOWN-PENDING. SHUTDOWN-SENT
> or SHUTDOWN-ACK-SENT.
> 
> Has any reasons for this implementation?
> If not, I think we should fix it.
> 

I don't know of any reason other then it makes a whole lot more sense then
what's stated in the RFC.

Why would SHUTDOWN_SENT be treated any different then SHUTDOWN_RECEIVED?

Think of this situation.  You have a server streaming data to the client.
The client crashes for some reason, and that triggers a SHUTDOWN to be sent.
The server still has a bunch of data buffered as it's trying to write stuff
the wire.  In this case, our association count would be inconsistent if we
followed the spec.  On the client we would not count an association that's
still alive and consuming resources, while on the server side we would.

I really think that this is an oversight of the MIB spec and in my personal
opinion it is not worth fixing.

I am, however, open to counter-arguments.

-vlad

      reply	other threads:[~2010-07-13 15:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13  7:26 about the sctpCurrEstab MIB item Shan Wei
2010-07-13 15:05 ` Vlad Yasevich [this message]

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=4C3C80C5.6060809@hp.com \
    --to=vladislav.yasevich@hp.com \
    --cc=linux-sctp@vger.kernel.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.