Re: [Tsvwg] SCTP stream EOF
Florian Niederbacher <florian.niederbacher@student.uibk.ac.at> Wed, 17 September 2008 14:55 UTC
Return-Path: <tsvwg-bounces@ietf.org>
X-Original-To: tsvwg-archive@optimus.ietf.org
Delivered-To: ietfarch-tsvwg-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 69B153A6A34; Wed, 17 Sep 2008 07:55:07 -0700 (PDT)
X-Original-To: tsvwg@core3.amsl.com
Delivered-To: tsvwg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 0BA9128C151 for <tsvwg@core3.amsl.com>; Wed, 17 Sep 2008 07:55:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.5
X-Spam-Level:
X-Spam-Status: No, score=-4.5 tagged_above=-999 required=5 tests=[AWL=0.929, BAYES_00=-2.599, HELO_EQ_AT=0.424, HOST_EQ_AT=0.745, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pE+gQENz0pkR for <tsvwg@core3.amsl.com>; Wed, 17 Sep 2008 07:55:06 -0700 (PDT)
Received: from smtp.uibk.ac.at (lmr1.uibk.ac.at [138.232.1.142]) by core3.amsl.com (Postfix) with ESMTP id BE9F83A69B9 for <tsvwg@ietf.org>; Wed, 17 Sep 2008 07:55:05 -0700 (PDT)
Received: from [192.168.1.4] (host72-12-dynamic.13-87-r.retail.telecomitalia.it [87.13.12.72] florian.niederbacher@student.uibk.ac.at) (authenticated bits=0) by smtp.uibk.ac.at (8.13.8/8.13.8/F1) with ESMTP id m8HEsaHA001705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Sep 2008 16:54:37 +0200
Message-ID: <48D11A2C.8020005@student.uibk.ac.at>
Date: Wed, 17 Sep 2008 16:54:36 +0200
From: Florian Niederbacher <florian.niederbacher@student.uibk.ac.at>
User-Agent: Thunderbird 2.0.0.16 (X11/20080724)
MIME-Version: 1.0
To: Randy Stewart <randall@lakerest.net>
References: <48D10AD3.10307@student.uibk.ac.at> <D914D831-188B-4194-835F-E2A6EDD495B3@lakerest.net>
In-Reply-To: <D914D831-188B-4194-835F-E2A6EDD495B3@lakerest.net>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Scanned-By: MIMEDefang 2.61 at uibk.ac.at on 138.232.1.140
Cc: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP stream EOF
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://www.ietf.org/mailman/private/tsvwg>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org
Randy Stewart schrieb: > Florian: > > What do you mean by an EOF? Same as EOF for files. That blocking recv and recvmsg can be stopped. > > For messages there is a SCTP_EOR to tell you a "message" as ended. Yes, but only for message you pick up from recv- buffer if I interpret it right from socket_api-spec. E.g. transfer Hello in to messages hel - lo. After 'lo' I get an EOF. SCTP_EOR does only indicate that the message can be read in full in one read/recv, or not? Because i get always SCTP_EOR in my app, only if the messagesize is bigger then the buffer for recv\recv_msg. > > > If you were using stream reset, and the peer decides to "reset" a stream > and then use the stream for some other purpose (this is what I think you > are stating).... then the user would get a STREAM_RESET event for that > stream. > > I don't see the difference (other than name) in stream-x has been reset > vs stream X receives a EOF. Note that an app MAY choose to use a RESET > as a EOF.. but it can also mean something different to an app.. I am done > sending this type of message, I will now send other types of messages. > Which is different than an EOF.... Yes I agree. I didn't know that STREAM_RESET is handled as event. This would definitely solve my case. But is this already implemented in LKSCTP? > > Note also that the socket-api section is still missing (if I remember > right) from > the stream-reconfig draft... I do need to add this. But I really think > the Stream-Reset serves the purpose you are looking for. > > R > On Sep 17, 2008, at 9:49 AM, Florian Niederbacher wrote: > >> Hi, >> I would ask what are you thinking about a definition for an EOF on >> streams in SCTP. My problem is that I would need a signaling method >> to report an EOF without closing the whole SCTP association. If I am >> right, socket connections get only an EOF if the connection will be >> closed (no sending of EOF on socktes in another way is possible). In >> draft-stewart-tsvwg-sctpstrrst-00 the possibility the reset of >> streams is discussed. This would also be a solution if you can check >> the numbering sequence in User Space. >> A proposal would be to generate an SCTP_EVENT e.g. SCTP_STREAM_EOF to >> signal EOF on streams. In this way you can stop receiving and also >> reuse the stream or at least continue in multi-streamed network >> applications, if you use different threads or processes for the >> receiving procedure on streams. Maybe an other possibility exists to >> signal an EOF on SCTP streams, but at the moment I can't find any >> solution to deal with this problem. What are your proposals and >> comments? >> >> Best regards >> Florian Niederbacher > > ----- > Randall Stewart > randall@lakerest.net > > > > > - Regards Florian
- [Tsvwg] SCTP stream EOF Florian Niederbacher
- Re: [Tsvwg] SCTP stream EOF Randy Stewart
- Re: [Tsvwg] SCTP stream EOF Florian Niederbacher
- Re: [Tsvwg] SCTP stream EOF Michael Tüxen
- Re: [Tsvwg] SCTP stream EOF Michael Tüxen
- Re: [Tsvwg] SCTP stream EOF Randy Stewart
- Re: [Tsvwg] SCTP stream EOF Florian Niederbacher
- Re: [Tsvwg] SCTP stream EOF Michael Tüxen