From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: linux-sctp@vger.kernel.org
Subject: Re: SCTP Association Restart
Date: Wed, 28 Oct 2009 13:48:16 +0000 [thread overview]
Message-ID: <4AE84BA0.2030507@hp.com> (raw)
In-Reply-To: <90243C8A881F8D419D855264D9636F3A01EA5740@zcarhxm2.corp.nortel.com>
Gregory Waines wrote:
> Vlad Yasevich wrote:
>> Gregory Waines wrote:
> < SNIP >
>>> - If I have a Linux process with an established SCTP connection/
>>> association, is there a socket option that prevents the kernel from
>>> ABORTing the association if this Linux process fails unexpectedly ?
>>>
>> Nope. When the socket is closed, the association is closed as well.
>> Depending on your settings, it will either be ABORTed or
>> closed with SHUTDOWN.
>>
> < SNIP >
>
> ... a followup question on this ...
>
> remember that
> - I am trying to build a 1:1 (active / standby) type application
> which uses an SCTP connection.
> - And I am trying to take advantage of the ASSOCIATION RESTART
> behaviour (i.e. section 5.2.4.1) in order to allow the
> Standby Instance of the Application, when becomingActive, to take
> over the SCTP connection without the far-end of the SCTP connection
> terminating or aborting the connection.
> - typically the Standby Instance of the Application is on a different
> card/processor,
> - and for full Card/Processor failures, which result in the Kernel
> having
> no chance to send an ABORT to the far-end,
> I believe I have no issues with this approach.
>
> ... but I would like to also support Application Process Failures,
> in the same way.
>
> This is why I was asking about the socket option above ...
> i.e. a socket option that, if the Linux Process dies,
> the kernel would still clean up the SCTP Association locally,
> BUT would NOT send an ABORT to the far-end of the Association.
>
>
> If I was going to implement this socket option myself,
> would you recommend:
> - a new socket option e.g. SO_NO_ABORT_ON_FAIL
> or
> - use an existing socket option e.g. SO_LINGER
>
I think you should keep it as clean and simple as possible and make it its own
socket option.
One item of note. When association restarts, any queued data, that's awaiting
reassembly or ordering is discarded. The reason is that on restarted
associations, TSN and SSN sequences begin anew and there is no way to
re-assemble or re-order old data.
-vlad
> Any thoughts / recommendations ?
>
>
> thanks in advance,
> Greg.
>
>
>
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
prev parent reply other threads:[~2009-10-28 13:48 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-14 11:53 SCTP Association Restart Gregory Waines
2009-10-14 13:07 ` Vlad Yasevich
2009-10-14 13:51 ` Gregory Waines
2009-10-14 15:09 ` Vlad Yasevich
2009-10-28 12:00 ` Gregory Waines
2009-10-28 13:48 ` 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=4AE84BA0.2030507@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).