From tsvwg-bounces@ietf.org Sun Jan 01 00:05:42 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EsvPa-0008CY-5Z; Sun, 01 Jan 2006 00:05:42 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsvPY-0008CQ-AV
	for tsvwg@megatron.ietf.org; Sun, 01 Jan 2006 00:05:40 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA18610
	for <tsvwg@ietf.org>; Sun, 1 Jan 2006 00:04:27 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsvUJ-0004Uv-6O
	for tsvwg@ietf.org; Sun, 01 Jan 2006 00:10:38 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	FGG37413; Sat, 31 Dec 2005 22:05:13 -0700
Message-ID: <43B76313.2000101@middle.net>
Date: Sat, 31 Dec 2005 22:05:23 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7655788c23eb79e336f5f8ba8bce7906
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP Socket Errata: SCTP_ADAPTATION_LAYER vs.
	SCTP_ADAPTION_LAYER
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org


  In the current sctp socket draft the standard networking term 
"adaptation layer" is mis-spelled as "adaption layer", notably in the 
symbol SCTP_ADAPTION_LAYER (sic).  That should be corrected to 
SCTP_ADAPTATION_LAYER.   Implementations could certainly maintain an 
alias for backward compatibilty.

The addip draft always uses the term "adaptation layer", although it 
also uses the term "adaption code" which is inconsistent. Unless 
adaptation codes are only intended for use in "rate adaption", the 
spelling should be changed to match.  I am curious what current 
adaptation codes are used.  The addip draft strangely introduces the 
parameter without specifiying any.

Also, why should the adaptation code be defined to be left in network 
byte order by the API, unless it is really a character string instead of 
a normal 32 bit value?

Comments anyone?

 - Mark



_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 03 06:26:10 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EtkIs-0008K4-UQ; Tue, 03 Jan 2006 06:26:10 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EtkIq-0008Il-EA
	for tsvwg@megatron.ietf.org; Tue, 03 Jan 2006 06:26:08 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA10989
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 06:24:51 -0500 (EST)
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EtkO2-0007Kk-FE
	for tsvwg@ietf.org; Tue, 03 Jan 2006 06:31:33 -0500
Received: from jurassic.eng.sun.com ([129.146.106.31])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k03BPt3F009375
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 04:25:55 -0700 (MST)
Received: from [192.9.61.50] (punchin-kcpoon.SFBay.Sun.COM [192.9.61.50])
	by jurassic.eng.sun.com (8.13.5+Sun/8.13.5) with ESMTP id
	k03BPrc8511285
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 03:25:54 -0800 (PST)
Message-ID: <43BA5F40.1070705@sun.com>
Date: Tue, 03 Jan 2006 19:25:52 +0800
From: Kacheong Poon <kacheong.poon@sun.com>
Organization: Sun Microsystems, Inc.
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: TSWG <tsvwg@ietf.org>
Subject: Re: [Tsvwg] SCTP Socket API
References: <43AA9BE2.7070901@stewart.chicago.il.us>
In-Reply-To: <43AA9BE2.7070901@stewart.chicago.il.us>
X-Enigmail-Version: 0.90.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 97c820c82c68af374c4e382a80dc5017
Content-Transfer-Encoding: 7bit
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote:

> We have had a LONG thread discussion of the socket API changes
> that have been suggested. Here is a summary of the changes
> (At least I think) that have been proposed:


Thank you Randy for providing a summary of the long thread.
I didn't follow the thread and I just took a very quick
glance at what have been discussed.  Please let me know if
I've missed some important points in the following reply.


> A) SOCK_DGRAM as an option for the socket creation besides
>    SOCK_STREAM and SOCK_SEQ_PACKET. A SOCK_DGRAM descriptor would
>    be one that:
>    1) Is fully reliable.. aka its NOT UDP, msg's are delivered
>    2) Is atomic, i.e. if I do a read() of 100 bytes and a
>       200 byte message is in queue to me, the data would
>       be truncated and I would loose the other 100 bytes of
>       the message aka no MSG_EOR flag.


Let's not discuss the new socket type for SCTP.  I think we
should first decide if the above feature is actually a
good thing to have in SCTP.  I believe the only valid point
raised in the long thread in support of this feature is
preventing denial of service attack.  The kind of attack is
to send a huge message which is larger than the receive
buffer of the victim SCTP socket so that partial delivery
is triggered and thus blocking the delivery of other messages.
I think some people have already pointed out that it is trivial
to guard against this attack as an app should know how big
the app protocol message is.  So it can just abort the
offending association when it detects such a huge message.
I don't see why this defense is not effective.

The other point supporting this feature is ease of app
programming.  But I actually find this feature confusing
for app programmers.  First of all, I think a well defined
message oriented app protocol should have a limit of how
big a message is.  IMHO, unbounded message does not make
much sense in real world app.  SCTP does not impose a limit
on message size does not necessarily mean that a well defined
app protocol should use unbounded message size.  And if an
app knows how big a valid message is, I believe the current
API draft already provides the so called atomic message delivery
mechanism.  Having the suggested feature is confusing for app
writers.  What is the point of using this feature to only allow
100 bytes message delivery if a correctly written app will
never write more than 100 bytes in a message?  This feature
seems redundant.

The example given for the use of this feature, running SMTP
over SCTP, does not seem right.  If we are going to run
SMTP over SCTP, I guess it is not correct to send the whole
message as one SCTP message.  Is there a technical advantage
for doing it this way?

As some people have pointed out, the semantics also seems
counter intuitive to app writer requiring a reliable message
delivery transport protocol.  To put it this way, this feature
provides a "reliable message delivery service, but sometimes
the message received is not the whole message sent."  It does
not sound right, does it?

Moreover, using this feature does not mean that it is easier
for an app writer to program against the aforementioned DoS
attack.  So instead of checking for partial message using the
current API draft to abort an offending association, it now
needs to check for truncated message.  What is the difference?


> B) A new set/get option, SCTP_MAXMSGSIZE. This option
>    would set a point in a message size where the stack
>    would discard the rest of a fragmented message when
>    the size is exceeded... gee I did not say that very
>    well ... basically the idea is:
> 
>    senderA                                receiverB (
>                                           maxmsg set at 4000)
> 
>    --------TSN=1 B bit set, 1000 bytes----->
>    --------TSN=2,no bits, 1000 bytes------->
>    --------TSN=3,no bits, 1000 bytes------->
>    --------TSN=4,no bits, 1000 bytes------->
>    --------TSN=5,no bits, 1000 bytes------->
>    --------TSN=6,E bit set, 1000 bytes----->
> 
>    Now when receiverB gets TSN 1, 2 and 3, it
>    does its normal thing, but when number 4
>    arrives without the E bit set, it delivers
>    the 4000 bytes to the upper layer, sets some
>    sort of MSG_TRUNC flag, maybe we need a
>    SCTP_MSG_TRUN_TOBIG.. or something?? and then
>    leaves a dead marker in place so that when 5
>    and 6 arrive they are immediately freed and
>    discarded as if they had been read.
> 
>    For the new SOCK_DGRAM the default would be that
>    the SCTP_MAXMSGSIZE is 1/2 the initial
>    socket receive window. For SOCK_STREAM and
>    SOCK_SEQPACKET the default would be 0, which
>    indicates there is NO LIMIT to how big the
>    message would be.


This seems to me to be a change in the protocol, rather
than a suggestion on changing the API draft.  And I don't
really understand the rationale behind this protocol change.
Does it help the stack reduce memory usage?  Probably not, as
it is obvious from the semantics above that the stack can
have the chance the discard packets only if they are arrived
in order, with no drop.  Otherwise, the stack probably does
not have enough info to decide if out of order TSNs can be
dropped or not.  So any attack using large message should
still have the same effect.

Does it help app writer?  Probably not.  As discussed above,
a well defined app protocol should never need such option.
Why does an app protocol want to use SCTP if it does not
want to receive its message intact?  If I have missed some
important points in the long thread, please raise them again.


> C) new socket option SCTP_FRAGMENT_INTERLEAVE. This
>    would be at a minimum a gettable option that would
>    tell the user if the stack interleaves messages
>    from different streams and/or associations. So
>    in other words, if a partial delivery is started
>    on stream 1, and a message arrives on stream 2 that
>    can be delivered. Will the stack send up the message
>    on stream 2 while its waiting for more data (a retransmit
>    say) on stream 1. The user, if the value returned from
>    this is 1, must make sure and read the ancillary data
>    on every message... or else it might have an issue
>    with mixing up a message from stream one vs stream two :-d
>    If the stack allows this option to be set, then it enables/disables
>    this behavior.


SCTP has partial delivery mechanism to avoid a deadlock in the
protocol layer because SCTP supports message delivery.  When a
message is as big as the receive buffer, SCTP has to partially
deliver the message as it is not allowed to consume more than the
receive buffer.  So it only happens if an app sends a message
as big as the buffer size.  How can this happen?  The app
protocol should have control on what to send.  So the partial
delivery mechanism should never be triggered.  In a sense, the
mechanism is there to safe guard against poorly written app.  I
don't see the need to really make it very efficient, hence no
need to have this option.


> D) new socket option SCTP_PARTIAL_DELIVERY_POINT. Note that
>    this was suggested off-list... This value would be a
>    message size that the application would like partial
>    delivery to begin at. Normally the stack decides this
>    based on resources and other hueristics. If this value is
>    set then the application requests that as soon as that
>    much information is received (in order) start delivering the message.
>    Setting this value to 0, tells t the stack that it should use
>    its judgment as to when to start the pd-api.


I don't understand the rational of this option.  It seems to me
that this option is for those app protocols which choose the wrong
message size.  If it wants the receive call to return for
every X bytes, it should only send message of at most X bytes
big.  Using the current API draft, I believe an app protocol
writer already has control on whether partial delivery will be
triggered or not.  So it seems to me that this option is not
really about partial delivery.  Again, if I have missed an
important point why this option is really needed, please raise
it again.


> Now, I think all of the above are reasonable requests... IMO.. and I
> don't have a problem with them being added to the socket api.. however
> I would like to hear your opinion.. especially from those who
> have not joined the discussion and are responsible for the
> stacks out there (Michael, Kacheong, Shridhar .. come to
> mind and are in my address book.. others as well that
> implement SCTP please respond to this :-D)
> 
> If I hear no strong objections... I will see if I can
> wordsmith up something for the next socket-api iteration ;-D


I don't really see the reason why any app writer needs the above
suggested features.  So I object to all of them.


-- 

						K. Poon.
						kacheong.poon@sun.com


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 03 08:16:13 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Etm1M-0002Mb-U7; Tue, 03 Jan 2006 08:16:12 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Etm1H-0002LW-Tf
	for tsvwg@megatron.ietf.org; Tue, 03 Jan 2006 08:16:10 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA22137
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 08:14:52 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Etm6Y-0002b0-He
	for tsvwg@ietf.org; Tue, 03 Jan 2006 08:21:35 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k03DFwXE055367; 
	Tue, 3 Jan 2006 08:15:58 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43BA790E.4000403@stewart.chicago.il.us>
Date: Tue, 03 Jan 2006 08:15:58 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Kacheong Poon <kacheong.poon@sun.com>
Subject: Re: [Tsvwg] SCTP Socket API
References: <43AA9BE2.7070901@stewart.chicago.il.us> <43BA5F40.1070705@sun.com>
In-Reply-To: <43BA5F40.1070705@sun.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a4e5f67c5e230eddf754446d1a2201a4
Content-Transfer-Encoding: 7bit
Cc: TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Kacheong:


Kacheong Poon wrote:
> Randall Stewart wrote:
> 
> 
>>We have had a LONG thread discussion of the socket API changes
>>that have been suggested. Here is a summary of the changes
>>(At least I think) that have been proposed:
> 
> 
> 
> Thank you Randy for providing a summary of the long thread.
> I didn't follow the thread and I just took a very quick
> glance at what have been discussed.  Please let me know if
> I've missed some important points in the following reply.

Your welcome, Kacheong.. I am glad you have joined the
discussion :-D

I think you have hit all the major points of the discussion .. at
least as I have understood them... and in fact I like the
way you have raised it to a "meta-point" ... I often
get too bound up in trying to make sure we have
the right feature set for the app writer.. without
looking at the higher level :-D

I think I am in agreement with your assessment with
respect to all but <C>... see below..

> 
> 
> 
>>A) SOCK_DGRAM as an option for the socket creation besides
>>   SOCK_STREAM and SOCK_SEQ_PACKET. A SOCK_DGRAM descriptor would
>>   be one that:
>>   1) Is fully reliable.. aka its NOT UDP, msg's are delivered
>>   2) Is atomic, i.e. if I do a read() of 100 bytes and a
>>      200 byte message is in queue to me, the data would
>>      be truncated and I would loose the other 100 bytes of
>>      the message aka no MSG_EOR flag.
> 
> 
> 
> Let's not discuss the new socket type for SCTP.  I think we
> should first decide if the above feature is actually a
> good thing to have in SCTP.  I believe the only valid point
> raised in the long thread in support of this feature is
> preventing denial of service attack.  The kind of attack is
> to send a huge message which is larger than the receive
> buffer of the victim SCTP socket so that partial delivery
> is triggered and thus blocking the delivery of other messages.
> I think some people have already pointed out that it is trivial
> to guard against this attack as an app should know how big
> the app protocol message is.  So it can just abort the
> offending association when it detects such a huge message.
> I don't see why this defense is not effective.
> 
> The other point supporting this feature is ease of app
> programming.  But I actually find this feature confusing
> for app programmers.  First of all, I think a well defined
> message oriented app protocol should have a limit of how
> big a message is.  IMHO, unbounded message does not make
> much sense in real world app.  SCTP does not impose a limit
> on message size does not necessarily mean that a well defined
> app protocol should use unbounded message size.  And if an
> app knows how big a valid message is, I believe the current
> API draft already provides the so called atomic message delivery
> mechanism.  Having the suggested feature is confusing for app
> writers.  What is the point of using this feature to only allow
> 100 bytes message delivery if a correctly written app will
> never write more than 100 bytes in a message?  This feature
> seems redundant.
> 
> The example given for the use of this feature, running SMTP
> over SCTP, does not seem right.  If we are going to run
> SMTP over SCTP, I guess it is not correct to send the whole
> message as one SCTP message.  Is there a technical advantage
> for doing it this way?
> 
> As some people have pointed out, the semantics also seems
> counter intuitive to app writer requiring a reliable message
> delivery transport protocol.  To put it this way, this feature
> provides a "reliable message delivery service, but sometimes
> the message received is not the whole message sent."  It does
> not sound right, does it?
> 
> Moreover, using this feature does not mean that it is easier
> for an app writer to program against the aforementioned DoS
> attack.  So instead of checking for partial message using the
> current API draft to abort an offending association, it now
> needs to check for truncated message.  What is the difference?
> 
> 
> 
>>B) A new set/get option, SCTP_MAXMSGSIZE. This option
>>   would set a point in a message size where the stack
>>   would discard the rest of a fragmented message when
>>   the size is exceeded... gee I did not say that very
>>   well ... basically the idea is:
>>
>>   senderA                                receiverB (
>>                                          maxmsg set at 4000)
>>
>>   --------TSN=1 B bit set, 1000 bytes----->
>>   --------TSN=2,no bits, 1000 bytes------->
>>   --------TSN=3,no bits, 1000 bytes------->
>>   --------TSN=4,no bits, 1000 bytes------->
>>   --------TSN=5,no bits, 1000 bytes------->
>>   --------TSN=6,E bit set, 1000 bytes----->
>>
>>   Now when receiverB gets TSN 1, 2 and 3, it
>>   does its normal thing, but when number 4
>>   arrives without the E bit set, it delivers
>>   the 4000 bytes to the upper layer, sets some
>>   sort of MSG_TRUNC flag, maybe we need a
>>   SCTP_MSG_TRUN_TOBIG.. or something?? and then
>>   leaves a dead marker in place so that when 5
>>   and 6 arrive they are immediately freed and
>>   discarded as if they had been read.
>>
>>   For the new SOCK_DGRAM the default would be that
>>   the SCTP_MAXMSGSIZE is 1/2 the initial
>>   socket receive window. For SOCK_STREAM and
>>   SOCK_SEQPACKET the default would be 0, which
>>   indicates there is NO LIMIT to how big the
>>   message would be.
> 
> 
> 
> This seems to me to be a change in the protocol, rather
> than a suggestion on changing the API draft.  And I don't
> really understand the rationale behind this protocol change.
> Does it help the stack reduce memory usage?  Probably not, as
> it is obvious from the semantics above that the stack can
> have the chance the discard packets only if they are arrived
> in order, with no drop.  Otherwise, the stack probably does
> not have enough info to decide if out of order TSNs can be
> dropped or not.  So any attack using large message should
> still have the same effect.
> 
> Does it help app writer?  Probably not.  As discussed above,
> a well defined app protocol should never need such option.
> Why does an app protocol want to use SCTP if it does not
> want to receive its message intact?  If I have missed some
> important points in the long thread, please raise them again.
> 
> 
> 
>>C) new socket option SCTP_FRAGMENT_INTERLEAVE. This
>>   would be at a minimum a gettable option that would
>>   tell the user if the stack interleaves messages
>>   from different streams and/or associations. So
>>   in other words, if a partial delivery is started
>>   on stream 1, and a message arrives on stream 2 that
>>   can be delivered. Will the stack send up the message
>>   on stream 2 while its waiting for more data (a retransmit
>>   say) on stream 1. The user, if the value returned from
>>   this is 1, must make sure and read the ancillary data
>>   on every message... or else it might have an issue
>>   with mixing up a message from stream one vs stream two :-d
>>   If the stack allows this option to be set, then it enables/disables
>>   this behavior.
> 
> 
> 
> SCTP has partial delivery mechanism to avoid a deadlock in the
> protocol layer because SCTP supports message delivery.  When a
> message is as big as the receive buffer, SCTP has to partially
> deliver the message as it is not allowed to consume more than the
> receive buffer.  So it only happens if an app sends a message
> as big as the buffer size.  How can this happen?  The app
> protocol should have control on what to send.  So the partial
> delivery mechanism should never be triggered.  In a sense, the
> mechanism is there to safe guard against poorly written app.  I
> don't see the need to really make it very efficient, hence no
> need to have this option.
> 
> 

I understand your point here.. but I think there is one
case in which having the FRAGEMENT_INTERLEAVE option might
be a good thing.. for the 1-2-many socket. In this case
you could have two different associations actively
sending data.. and one sends a large message blocking
the other....

Now its true a app could peel off the one giving the
pd-api.. so that might be one solution.. but
one thing that makes me wonder is the MPI folks.

A group up at the Univ of BC in Vancouver have been
working on making MPI run over the SCTP stack on FreeBSD
to do various testing... one of the first things that they
assumed was that the partial delivery worked with inter-leave.
Basically they assumed that they could get other messages
in-between a large pd-api.... which they were using (found
a lot of interesting bugs too I might add :-D)

The fact that they assumed interleave was the way things
work tell me either:

a) It might be a good thing to have..
and
b) At a minimum we need more details on this in the socket
    api document .
and even
c) There may be some SCTP stacks that do this.. I believe
    Brian said his does..

So one would at LEAST want a way to see if the stack
was doing this... aka a read only option that
told you if it did interleave or not.. and for the 1-2-many
model I am not to sure it would not be a good idea to have
this capability..

Of course it would make an application harder to write
since every time it read... if the MSG_EOF is not set
the next read it would have to validate that its part
of the same assoc-id... where-as if its blocked (aka no
interleave) then just reading the rest of the message
until a MSG_EOR would work...

R


> 
>>D) new socket option SCTP_PARTIAL_DELIVERY_POINT. Note that
>>   this was suggested off-list... This value would be a
>>   message size that the application would like partial
>>   delivery to begin at. Normally the stack decides this
>>   based on resources and other hueristics. If this value is
>>   set then the application requests that as soon as that
>>   much information is received (in order) start delivering the message.
>>   Setting this value to 0, tells t the stack that it should use
>>   its judgment as to when to start the pd-api.
> 
> 
> 
> I don't understand the rational of this option.  It seems to me
> that this option is for those app protocols which choose the wrong
> message size.  If it wants the receive call to return for
> every X bytes, it should only send message of at most X bytes
> big.  Using the current API draft, I believe an app protocol
> writer already has control on whether partial delivery will be
> triggered or not.  So it seems to me that this option is not
> really about partial delivery.  Again, if I have missed an
> important point why this option is really needed, please raise
> it again.
> 
> 
> 
>>Now, I think all of the above are reasonable requests... IMO.. and I
>>don't have a problem with them being added to the socket api.. however
>>I would like to hear your opinion.. especially from those who
>>have not joined the discussion and are responsible for the
>>stacks out there (Michael, Kacheong, Shridhar .. come to
>>mind and are in my address book.. others as well that
>>implement SCTP please respond to this :-D)
>>
>>If I hear no strong objections... I will see if I can
>>wordsmith up something for the next socket-api iteration ;-D
> 
> 
> 
> I don't really see the reason why any app writer needs the above
> suggested features.  So I object to all of them.
> 
> 


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 03 16:17:14 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EttWs-0005qO-5k; Tue, 03 Jan 2006 16:17:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EttWq-0005p5-Au
	for tsvwg@megatron.ietf.org; Tue, 03 Jan 2006 16:17:12 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA08431
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 16:15:57 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ettc5-0006Np-Qu
	for tsvwg@ietf.org; Tue, 03 Jan 2006 16:22:43 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	HWT06241; Tue, 3 Jan 2006 14:16:41 -0700
Message-ID: <43BAE9C1.7000209@middle.net>
Date: Tue, 03 Jan 2006 14:16:49 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: TSWG <tsvwg@ietf.org>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us> <43BA5F40.1070705@sun.com>
In-Reply-To: <43BA5F40.1070705@sun.com>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 9b157e6e8a3799aef911c0bc37fc93a6
Cc: Randall Stewart <randall@stewart.chicago.il.us>,
	Kacheong Poon <kacheong.poon@sun.com>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0191267161=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============0191267161==
Content-Type: multipart/alternative;
	boundary="------------070800000100070904060008"

This is a multi-part message in MIME format.
--------------070800000100070904060008
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Kacheong Poon wrote:

>Randall Stewart wrote:
>  
>
>>A) SOCK_DGRAM as an option for the socket creation besides
>>   SOCK_STREAM and SOCK_SEQ_PACKET. 
>>
>
>Let's not discuss the new socket type for SCTP.  I think we
>should first decide if the above feature is actually a
>good thing to have in SCTP.  I believe the only valid point
>raised in the long thread in support of this feature is
>preventing denial of service attack.  The kind of attack is
>to send a huge message which is larger than the receive
>buffer of the victim SCTP socket so that partial delivery
>is triggered and thus blocking the delivery of other messages.
>I think some people have already pointed out that it is trivial
>to guard against this attack as an app should know how big
>the app protocol message is.  So it can just abort the
>offending association when it detects such a huge message.
>I don't see why this defense is not effective.
>  
>

There is no way for an application to have any idea how an incoming 
message is until the first delivery (partial or otherwise).  By that 
time, the message may have consumed a large portion of a shared buffer.  
That is not the worst problem, however - locked partial delivery is 
fundamentally unsafe on a one-to-many socket.  There is no way to know 
when the rest of the message will arrive, if ever.  Meanwhile nothing 
else gets delivered, likely for several seconds.  If you have a several 
peers over slow connections, a partial delivery on a one-to-many socket 
will block everything else for at least hundreds of milliseconds, 
possibly much longer (depending on the size of the message), even though 
packets are arriving from each as fast as possible.  It is not an 
accident POSIX doesn't even define a non-atomic one-to-many socket 
type.  It is SOCK_DGRAM or nothing, as far as they are concerned. 

>The other point supporting this feature is ease of app
>programming.  But I actually find this feature confusing
>for app programmers.  
>
SOCK_DGRAM is confusing?  Compared to what we have now?

>First of all, I think a well defined
>message oriented app protocol should have a limit of how
>big a message is.  IMHO, unbounded message does not make
>much sense in real world app.  SCTP does not impose a limit
>on message size does not necessarily mean that a well defined
>app protocol should use unbounded message size.  And if an
>app knows how big a valid message is, I believe the current
>API draft already provides the so called atomic message delivery
>mechanism.  
>
Not in the slightest. 

>Having the suggested feature is confusing for app
>writers.  What is the point of using this feature to only allow
>100 bytes message delivery if a correctly written app will
>never write more than 100 bytes in a message?  This feature
>seems redundant.
>  
>
Because you cannot control who your peers are, generally speaking.

>The example given for the use of this feature, running SMTP
>over SCTP, does not seem right.  If we are going to run
>SMTP over SCTP, I guess it is not correct to send the whole
>message as one SCTP message.  Is there a technical advantage
>for doing it this way?
>  
>
That is a hypothetical example, given to demonstrate why locked partial 
delivery is a bad idea on a one-to-many socket.  However, there are 
large numbers of applications that have relatively large messages (at 
least 64K) on one to many sockets.  NFS and MPI are good examples.  It 
is not wise to lock up a file server for several seconds at a time.

>As some people have pointed out, the semantics also seems
>counter intuitive to app writer requiring a reliable message
>delivery transport protocol.  To put it this way, this feature
>provides a "reliable message delivery service, but sometimes
>the message received is not the whole message sent."  It does
>not sound right, does it?
>  
>
Sure it does, if messages larger than some tolerance is an indication of 
an attack or a sender defect.  Is there any real application that is 
going to accept a 3 TB message on a one-to-many socket? Or a 3 GB one? 
How many want to accept 3 MB ones?

SCTP does not provide (nor can it provide) guaranteed reliability in the 
first place.  Only applications can do that, by writing messages to 
redundant durable media and exchanging application level confirmations. 
If not, messages or parts of messages will be lost when the receiver 
crashes.   Any system providing "whole message" reliability has implicit 
or explicit message size limits, because no system has infinite ram nor 
disk space.

Messages *will* be truncated.  That is why there are partial delivery 
abort events.  They are just an unusually obtruse means of signalling 
that fact.  The simple POSIX standard for message truncation signalling 
is MSG_TRUNC.

>Moreover, using this feature does not mean that it is easier
>for an app writer to program against the aforementioned DoS
>attack.  So instead of checking for partial message using the
>current API draft to abort an offending association, it now
>needs to check for truncated message.  What is the difference?
>  
>
Partial deliveries may occur on a one-to-many socket for nearly any 
message size, there is no guarantee - strictly best effort, if at all.  
So you have to receive in a loop like TCP, and keep a running total of 
the message size, and adjust the passed read buffer size accordingly.   
Checking the message size is just the beginning - every one to many 
SOCK_SEQPACKET application must subscribe to partial delivery abort 
events, or it will run messages together.  The only way to fix that is 
for the implemenation to return a zero size read with MSG_EOR and 
MSG_TRUNC set after an aborted partial delivery.  Checking for MSG_TRUNC 
is ridiculously simpler than mandatory event processing.

>>B) A new set/get option, SCTP_MAXMSGSIZE. 
>>    
>>
><snip>
>
>This seems to me to be a change in the protocol, rather
>than a suggestion on changing the API draft.  And I don't
>really understand the rationale behind this protocol change.
>Does it help the stack reduce memory usage?  Probably not, as
>it is obvious from the semantics above that the stack can
>have the chance the discard packets only if they are arrived
>in order, with no drop.  Otherwise, the stack probably does
>not have enough info to decide if out of order TSNs can be
>dropped or not.  So any attack using large message should
>still have the same effect.
>  
>
If you are going to be strict about it, the protocol has no support for 
one-to-many relationships, period. All this one-to-many stuff is another 
_extensive_ layer added on top of the protocol, which is strictly 
one-to-one. It is basically a ULP implemented at the socket layer.  And 
like any ULP it comes with its own requirements.  And one of those is 
limited message sizes on one-to-many sockets, at least if latency and 
throughput are any consideration whatsoever.

>>C) new socket option SCTP_FRAGMENT_INTERLEAVE. 
>>    
>>
>
>
>SCTP has partial delivery mechanism to avoid a deadlock in the
>protocol layer because SCTP supports message delivery.  When a
>message is as big as the receive buffer, SCTP has to partially
>deliver the message as it is not allowed to consume more than the
>receive buffer.  So it only happens if an app sends a message
>as big as the buffer size.  
>
Solving the deadlock problem on a one-to-many socket that way just 
replaces it with a different problem, a very serious one, namely 
indefinite stalling.

>How can this happen?  The app
>protocol should have control on what to send.  So the partial
>delivery mechanism should never be triggered.  In a sense, the
>mechanism is there to safe guard against poorly written app.  I
>don't see the need to really make it very efficient, hence no
>need to have this option.
>  
>
Again, there is no general way to control who sends messages to you.  
Even if you have perfect control, partial delivery is triggered on a 
regular basis under heavy load, even with very small (<4K) messages,  as 
the Redhat cluster DLM people found out rather surprisingly. (They were 
expecting standard atomic SOCK_SEQPACKET semantics, and ended up having 
to re-insert the same layer they were using previously with TCP).

>>D) new socket option SCTP_PARTIAL_DELIVERY_POINT. 
>>    
>>
>
>
>I don't understand the rational of this option.  It seems to me
>that this option is for those app protocols which choose the wrong
>message size.  If it wants the receive call to return for
>every X bytes, it should only send message of at most X bytes
>big.  Using the current API draft, I believe an app protocol
>writer already has control on whether partial delivery will be
>triggered or not.  So it seems to me that this option is not
>really about partial delivery.  Again, if I have missed an
>important point why this option is really needed, please raise
>it again.
>  
>
Again, not in the slightest.  The draft makes no guarantees about when 
partial delivery will be started.  Specifying early delivery on a 
one-to-one socket is extremely useful for some applications.  Message 
boundaries are there to convey useful information - if you have to 
insert them willy nilly, you defeat their primary purpose.  Suppose 
someone calls sendfile() on an SCTP socket - should the sendfile() 
handler insert message boundaries every 4K or whatever?  Or what if you 
have plenty of buffer space on the receiving side - should you 
necessarily have to be woken up every 4K just because someone has 
downgraded all the message sizes to support least common denominator 
clients?

What about implementations that can copy directly to user memory? - then 
there is no corresponding socket buffer requirement at all.  Downsizing 
messages is a bad idea on ULPs designed to work over one-to-one 
sockets.  DECnet, XNS, SPX, and Unix SOCK_SEQPACKET sockets all support 
arbitrary record lengths and partial reads.  Certainly if you ever want 
to properly support TCP semantics you need both partial reads and 
partial writes, with early delivery in both directions.

There is a large body of software that could benefit from SCTP if 
standard SOCK_STREAM, SOCK_DGRAM, or SOCK_SEQPACKET semantics were 
supported.  Right now none of them are.  Not only that, they can't be 
emulated effectively at the application level, because deliveries are 
uncontrollable in one or both directions, or require either application 
or socket buffers as large as the message size.  If SCTP can't be used 
with POSIX standard socket semantics, it is likely to remain a specialty 
protocol for obscure telephony applications.  I think it is capable of 
much better than that.

Finally, if complexity is the issue - these proposed options are in the 
direction of the common, the simple, and the expected - *especially* 
with standard socket types.  We have an enormous number of socket 
options providing fine granualarity control over and statistics for 
things that the majority of applications will never need.  Some TCP 
implementations have similar options, and they are rarely necessary.  
Very helpful for some, but neglectable by most.  These extremely simple 
and basic options have much greater general benefit than virtually every 
option implemented so far.  The only reason for their existence is a 
shortage of socket types, and the fact that existing applications depend 
on non-standard semantics for the existing ones.   Ideally, POSIX socket 
semantics should have been the default in the first place, such that one 
would have to use options to get unusual behavior.  Assuming they ever 
get around to it, are they likely to bless default semantics that are 
such an unusual, unexpected, and unnecessary departure from what they 
have already standardized? Especially, if there isn't even an option to 
get normal behavior?

   - Mark


--------------070800000100070904060008
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Kacheong Poon wrote:
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">Randall Stewart wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">A) SOCK_DGRAM as an option for the socket creation besides
   SOCK_STREAM and SOCK_SEQ_PACKET. </pre>
  </blockquote>
  <pre wrap="">

Let's not discuss the new socket type for SCTP.  I think we
should first decide if the above feature is actually a
good thing to have in SCTP.  I believe the only valid point
raised in the long thread in support of this feature is
preventing denial of service attack.  The kind of attack is
to send a huge message which is larger than the receive
buffer of the victim SCTP socket so that partial delivery
is triggered and thus blocking the delivery of other messages.
I think some people have already pointed out that it is trivial
to guard against this attack as an app should know how big
the app protocol message is.  So it can just abort the
offending association when it detects such a huge message.
I don't see why this defense is not effective.
  </pre>
</blockquote>
<br>
There is no way for an application to have any idea how an incoming
message is until the first delivery (partial or otherwise).&nbsp; By that
time, the message may have consumed a large portion of a shared
buffer.&nbsp; That is not the worst problem, however - locked partial
delivery is fundamentally unsafe on a one-to-many socket.&nbsp; There is no
way to know when the rest of the message will arrive, if ever.&nbsp;
Meanwhile nothing else gets delivered, likely for several seconds.&nbsp; If
you have a several peers over slow connections, a partial delivery on a
one-to-many socket will block everything else for at least hundreds of
milliseconds, possibly much longer (depending on the size of the
message), even though packets are arriving from each as fast as
possible.&nbsp; It is not an accident POSIX doesn't even define a non-atomic
one-to-many socket type.&nbsp; It is SOCK_DGRAM or nothing, as far as they
are concerned.&nbsp; <br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">
The other point supporting this feature is ease of app
programming.  But I actually find this feature confusing
for app programmers.  </pre>
</blockquote>
SOCK_DGRAM is confusing?&nbsp; Compared to what we have now?<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">First of all, I think a well defined
message oriented app protocol should have a limit of how
big a message is.  IMHO, unbounded message does not make
much sense in real world app.  SCTP does not impose a limit
on message size does not necessarily mean that a well defined
app protocol should use unbounded message size.  And if an
app knows how big a valid message is, I believe the current
API draft already provides the so called atomic message delivery
mechanism.  </pre>
</blockquote>
Not in the slightest.&nbsp; <br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">Having the suggested feature is confusing for app
writers.  What is the point of using this feature to only allow
100 bytes message delivery if a correctly written app will
never write more than 100 bytes in a message?  This feature
seems redundant.
  </pre>
</blockquote>
Because you cannot control who your peers are, generally speaking.<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">
The example given for the use of this feature, running SMTP
over SCTP, does not seem right.  If we are going to run
SMTP over SCTP, I guess it is not correct to send the whole
message as one SCTP message.  Is there a technical advantage
for doing it this way?
  </pre>
</blockquote>
That is a hypothetical example, given to demonstrate why locked partial
delivery is a bad idea on a one-to-many socket.&nbsp; However, there are
large numbers of applications that have relatively large messages (at
least 64K) on one to many sockets.&nbsp; NFS and MPI are good examples.&nbsp; It
is not wise to lock up a file server for several seconds at a time.<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">
As some people have pointed out, the semantics also seems
counter intuitive to app writer requiring a reliable message
delivery transport protocol.  To put it this way, this feature
provides a "reliable message delivery service, but sometimes
the message received is not the whole message sent."  It does
not sound right, does it?
  </pre>
</blockquote>
Sure it does, if messages larger than some tolerance is an indication
of an attack or a sender defect.&nbsp; Is there any real application that is
going to accept a 3 TB message on a one-to-many socket? Or a 3 GB one?
How many want to accept 3 MB ones? <br>
<br>
SCTP does not provide (nor can it provide) guaranteed reliability in
the first place.&nbsp; Only applications can do that, by writing messages to
redundant durable media and exchanging application level confirmations.
If not, messages or parts of messages will be lost when the receiver
crashes.&nbsp;&nbsp; Any system providing "whole message" reliability has
implicit or explicit message size limits, because no system has
infinite ram nor disk space.<br>
<br>
Messages *will* be truncated.&nbsp; That is why there are partial delivery
abort events.&nbsp; They are just an unusually obtruse means of signalling
that fact.&nbsp; The simple POSIX standard for message truncation signalling
is MSG_TRUNC.<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">
Moreover, using this feature does not mean that it is easier
for an app writer to program against the aforementioned DoS
attack.  So instead of checking for partial message using the
current API draft to abort an offending association, it now
needs to check for truncated message.  What is the difference?
  </pre>
</blockquote>
Partial deliveries may occur on a one-to-many socket for nearly any
message size, there is no guarantee - strictly best effort, if at all.&nbsp;
So you have to receive in a loop like TCP, and keep a running total of
the message size, and adjust the passed read buffer size accordingly.&nbsp;&nbsp;
Checking the message size is just the beginning - every one to many
SOCK_SEQPACKET application must subscribe to partial delivery abort
events, or it will run messages together.&nbsp; The only way to fix that is
for the implemenation to return a zero size read with MSG_EOR and
MSG_TRUNC set after an aborted partial delivery.&nbsp; Checking for
MSG_TRUNC is ridiculously simpler than mandatory event processing.<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">B) A new set/get option, SCTP_MAXMSGSIZE. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->&lt;snip&gt;

This seems to me to be a change in the protocol, rather
than a suggestion on changing the API draft.  And I don't
really understand the rationale behind this protocol change.
Does it help the stack reduce memory usage?  Probably not, as
it is obvious from the semantics above that the stack can
have the chance the discard packets only if they are arrived
in order, with no drop.  Otherwise, the stack probably does
not have enough info to decide if out of order TSNs can be
dropped or not.  So any attack using large message should
still have the same effect.
  </pre>
</blockquote>
If you are going to be strict about it, the protocol has no support for
one-to-many relationships, period. All this one-to-many stuff is
another _extensive_ layer added on top of the protocol, which is
strictly one-to-one. It is basically a ULP implemented at the socket
layer.&nbsp; And like any ULP it comes with its own requirements.&nbsp; And one
of those is limited message sizes on one-to-many sockets, at least if
latency and throughput are any consideration whatsoever.<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">C) new socket option SCTP_FRAGMENT_INTERLEAVE. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->

SCTP has partial delivery mechanism to avoid a deadlock in the
protocol layer because SCTP supports message delivery.  When a
message is as big as the receive buffer, SCTP has to partially
deliver the message as it is not allowed to consume more than the
receive buffer.  So it only happens if an app sends a message
as big as the buffer size.  </pre>
</blockquote>
Solving the deadlock problem on a one-to-many socket that way just
replaces it with a different problem, a very serious one, namely
indefinite stalling.<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <pre wrap="">How can this happen?  The app
protocol should have control on what to send.  So the partial
delivery mechanism should never be triggered.  In a sense, the
mechanism is there to safe guard against poorly written app.  I
don't see the need to really make it very efficient, hence no
need to have this option.
  </pre>
</blockquote>
Again, there is no general way to control who sends messages to you.&nbsp;
Even if you have perfect control, partial delivery is triggered on a
regular basis under heavy load, even with very small (&lt;4K)
messages,&nbsp; as the Redhat cluster DLM people found out rather
surprisingly. (They were expecting standard atomic SOCK_SEQPACKET
semantics, and ended up having to re-insert the same layer they were
using previously with TCP).<br>
<br>
<blockquote cite="mid43BA5F40.1070705@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">D) new socket option SCTP_PARTIAL_DELIVERY_POINT. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I don't understand the rational of this option.  It seems to me
that this option is for those app protocols which choose the wrong
message size.  If it wants the receive call to return for
every X bytes, it should only send message of at most X bytes
big.  Using the current API draft, I believe an app protocol
writer already has control on whether partial delivery will be
triggered or not.  So it seems to me that this option is not
really about partial delivery.  Again, if I have missed an
important point why this option is really needed, please raise
it again.
  </pre>
</blockquote>
Again, not in the slightest.&nbsp; The draft makes no guarantees about when
partial delivery will be started.&nbsp; Specifying early delivery on a
one-to-one socket is extremely useful for some applications.&nbsp; Message
boundaries are there to convey useful information - if you have to
insert them willy nilly, you defeat their primary purpose.&nbsp; Suppose
someone calls sendfile() on an SCTP socket - should the sendfile()
handler insert message boundaries every 4K or whatever?&nbsp; Or what if you
have plenty of buffer space on the receiving side - should you
necessarily have to be woken up every 4K just because someone has
downgraded all the message sizes to support least common denominator
clients?<br>
<br>
What about implementations that can copy directly to user memory? -
then there is no corresponding socket buffer requirement at all.&nbsp;
Downsizing messages is a bad idea on ULPs designed to work over
one-to-one sockets.&nbsp; DECnet, XNS, SPX, and Unix SOCK_SEQPACKET sockets
all support arbitrary record lengths and partial reads.&nbsp; Certainly if
you ever want to properly support TCP semantics you need both partial
reads and partial writes, with early delivery in both directions. <br>
<br>
There is a large body of software that could benefit from SCTP if
standard SOCK_STREAM, SOCK_DGRAM, or SOCK_SEQPACKET semantics were
supported.&nbsp; Right now none of them are.&nbsp; Not only that, they can't be
emulated effectively at the application level, because deliveries are
uncontrollable in one or both directions, or require either application
or socket buffers as large as the message size.&nbsp; If SCTP can't be used
with POSIX standard socket semantics, it is likely to remain a
specialty protocol for obscure telephony applications.&nbsp; I think it is
capable of much better than that.<br>
<br>
Finally, if complexity is the issue - these proposed options are in the
direction of the common, the simple, and the expected - *especially*
with standard socket types.&nbsp; We have an enormous number of socket
options providing fine granualarity control over and statistics for
things that the majority of applications will never need.&nbsp; Some TCP
implementations have similar options, and they are rarely necessary.&nbsp;
Very helpful for some, but neglectable by most.&nbsp; These extremely simple
and basic options have much greater general benefit than virtually
every option implemented so far.&nbsp; The only reason for their existence
is a shortage of socket types, and the fact that existing applications
depend on non-standard semantics for the existing ones.&nbsp;&nbsp; Ideally,
POSIX socket semantics should have been the default in the first place,
such that one would have to use options to get unusual behavior.&nbsp;
Assuming they ever get around to it, are they likely to bless default
semantics that are such an unusual, unexpected, and unnecessary
departure from what they have already standardized? Especially, if
there isn't even an option to get normal behavior?<br>
<br>
&nbsp;&nbsp; - Mark<br>
<br>
</body>
</html>

--------------070800000100070904060008--


--===============0191267161==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============0191267161==--




From tsvwg-bounces@ietf.org Tue Jan 03 18:40:57 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Etvlx-00086A-Kn; Tue, 03 Jan 2006 18:40:57 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Etvlv-000865-JK
	for tsvwg@megatron.ietf.org; Tue, 03 Jan 2006 18:40:55 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA05137
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 18:39:40 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EtvrE-000607-Nf
	for tsvwg@ietf.org; Tue, 03 Jan 2006 18:46:28 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k03NeiXE066408; 
	Tue, 3 Jan 2006 18:40:45 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43BB0B7C.6010008@stewart.chicago.il.us>
Date: Tue, 03 Jan 2006 18:40:44 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
In-Reply-To: <43BAE9C1.7000209@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 24d000849df6f171c5ec1cca2ea21b82
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>, TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

A couple of comments.. I will let Kacheong
answer most of these (trying to stay out of
the debate.. :-D)

Mark Butler wrote:
> Kacheong Poon wrote:
> 
>> Randall Stewart wrote:
>>  
>>
>>> A) SOCK_DGRAM as an option for the socket creation besides
>>>   SOCK_STREAM and SOCK_SEQ_PACKET.
>>
>>
>> Let's not discuss the new socket type for SCTP.  I think we
>> should first decide if the above feature is actually a
>> good thing to have in SCTP.  I believe the only valid point
>> raised in the long thread in support of this feature is
>> preventing denial of service attack.  The kind of attack is
>> to send a huge message which is larger than the receive
>> buffer of the victim SCTP socket so that partial delivery
>> is triggered and thus blocking the delivery of other messages.
>> I think some people have already pointed out that it is trivial
>> to guard against this attack as an app should know how big
>> the app protocol message is.  So it can just abort the
>> offending association when it detects such a huge message.
>> I don't see why this defense is not effective.
>>  
>>
> 
> There is no way for an application to have any idea how an incoming 
> message is until the first delivery (partial or otherwise).  By that 
> time, the message may have consumed a large portion of a shared buffer.  
> That is not the worst problem, however - locked partial delivery is 
> fundamentally unsafe on a one-to-many socket.  There is no way to know 
> when the rest of the message will arrive, if ever.  Meanwhile nothing 
> else gets delivered, likely for several seconds.  If you have a several 
> peers over slow connections, a partial delivery on a one-to-many socket 
> will block everything else for at least hundreds of milliseconds, 
> possibly much longer (depending on the size of the message), even though 
> packets are arriving from each as fast as possible.  It is not an 
> accident POSIX doesn't even define a non-atomic one-to-many socket 
> type.  It is SOCK_DGRAM or nothing, as far as they are concerned.
> 
>> The other point supporting this feature is ease of app
>> programming.  But I actually find this feature confusing
>> for app programmers. 
> 
> SOCK_DGRAM is confusing?  Compared to what we have now?
> 
>> First of all, I think a well defined
>> message oriented app protocol should have a limit of how
>> big a message is.  IMHO, unbounded message does not make
>> much sense in real world app.  SCTP does not impose a limit
>> on message size does not necessarily mean that a well defined
>> app protocol should use unbounded message size.  And if an
>> app knows how big a valid message is, I believe the current
>> API draft already provides the so called atomic message delivery
>> mechanism. 
> 
> Not in the slightest.
> 
>> Having the suggested feature is confusing for app
>> writers.  What is the point of using this feature to only allow
>> 100 bytes message delivery if a correctly written app will
>> never write more than 100 bytes in a message?  This feature
>> seems redundant.
>>  
>>
> Because you cannot control who your peers are, generally speaking.
> 
>> The example given for the use of this feature, running SMTP
>> over SCTP, does not seem right.  If we are going to run
>> SMTP over SCTP, I guess it is not correct to send the whole
>> message as one SCTP message.  Is there a technical advantage
>> for doing it this way?
>>  
>>
> That is a hypothetical example, given to demonstrate why locked partial 
> delivery is a bad idea on a one-to-many socket.  However, there are 
> large numbers of applications that have relatively large messages (at 
> least 64K) on one to many sockets.  NFS and MPI are good examples.  It 
> is not wise to lock up a file server for several seconds at a time.


I agree.. MPI usually sends Megabyte messages.. to me the
fragment inter-leave helps in this (if using the 1-2-many model)..

>> As some people have pointed out, the semantics also seems
>> counter intuitive to app writer requiring a reliable message
>> delivery transport protocol.  To put it this way, this feature
>> provides a "reliable message delivery service, but sometimes
>> the message received is not the whole message sent."  It does
>> not sound right, does it?
>>  
>>
> Sure it does, if messages larger than some tolerance is an indication of 
> an attack or a sender defect.  Is there any real application that is 
> going to accept a 3 TB message on a one-to-many socket? Or a 3 GB one? 
> How many want to accept 3 MB ones?
> 
> SCTP does not provide (nor can it provide) guaranteed reliability in the 
> first place.  Only applications can do that, by writing messages to 
> redundant durable media and exchanging application level confirmations. 
> If not, messages or parts of messages will be lost when the receiver 
> crashes.   Any system providing "whole message" reliability has implicit 
> or explicit message size limits, because no system has infinite ram nor 
> disk space.
> 
> Messages *will* be truncated.  That is why there are partial delivery 
> abort events.  They are just an unusually obtruse means of signalling 
> that fact.  The simple POSIX standard for message truncation signalling 
> is MSG_TRUNC.
> 

This is arguable.. the pdapi event is a convience only.. one could
easily look at the sndrcvinfo structure that comes up.. assuming
you are doing a sctp_recvmsg OR a recvmsg() with ancillary
data... of course you have to turn on the sndrcvinfo stuff
so in that sense you do need to do something.. but the pdapi
truncation is NOT the only way...

Usually a pdapi trunction is closely followed by an ABORT or
COMM_LOST more correctly... one could come up with the
same thing without it.. its just you would need to subscribe
to other things too... of course if you are doing 1-2-many you
really should be doing association events anyway...

>> Moreover, using this feature does not mean that it is easier
>> for an app writer to program against the aforementioned DoS
>> attack.  So instead of checking for partial message using the
>> current API draft to abort an offending association, it now
>> needs to check for truncated message.  What is the difference?
>>  
>>
> Partial deliveries may occur on a one-to-many socket for nearly any 
> message size, there is no guarantee - strictly best effort, if at all.  
> So you have to receive in a loop like TCP, and keep a running total of 
> the message size, and adjust the passed read buffer size accordingly.   
> Checking the message size is just the beginning - every one to many 
> SOCK_SEQPACKET application must subscribe to partial delivery abort 
> events, or it will run messages together.  The only way to fix that is 
> for the implemenation to return a zero size read with MSG_EOR and 
> MSG_TRUNC set after an aborted partial delivery.  Checking for MSG_TRUNC 
> is ridiculously simpler than mandatory event processing.

No .. see above.. you can use other than the pd-api event to figure
out its been aborted..

> 
>>> B) A new set/get option, SCTP_MAXMSGSIZE.   
>>
>> <snip>
>>
>> This seems to me to be a change in the protocol, rather
>> than a suggestion on changing the API draft.  And I don't
>> really understand the rationale behind this protocol change.
>> Does it help the stack reduce memory usage?  Probably not, as
>> it is obvious from the semantics above that the stack can
>> have the chance the discard packets only if they are arrived
>> in order, with no drop.  Otherwise, the stack probably does
>> not have enough info to decide if out of order TSNs can be
>> dropped or not.  So any attack using large message should
>> still have the same effect.
>>  
>>
> If you are going to be strict about it, the protocol has no support for 
> one-to-many relationships, period. All this one-to-many stuff is another 
> _extensive_ layer added on top of the protocol, which is strictly 
> one-to-one. It is basically a ULP implemented at the socket layer.  And 
> like any ULP it comes with its own requirements.  And one of those is 
> limited message sizes on one-to-many sockets, at least if latency and 
> throughput are any consideration whatsoever.

I am not so sure about the above statements.. I think just having
fragment interleave really is a big help..

As to trunctation.. I am ambivilent.. it may be a useful
feature.. I can go either way on it :-)

I will see how your discussion with Kacheong goes ;-)

> 
>>> C) new socket option SCTP_FRAGMENT_INTERLEAVE.   
>>
>>
>>
>> SCTP has partial delivery mechanism to avoid a deadlock in the
>> protocol layer because SCTP supports message delivery.  When a
>> message is as big as the receive buffer, SCTP has to partially
>> deliver the message as it is not allowed to consume more than the
>> receive buffer.  So it only happens if an app sends a message
>> as big as the buffer size. 
> 
> Solving the deadlock problem on a one-to-many socket that way just 
> replaces it with a different problem, a very serious one, namely 
> indefinite stalling.
> 
>> How can this happen?  The app
>> protocol should have control on what to send.  So the partial
>> delivery mechanism should never be triggered.  In a sense, the
>> mechanism is there to safe guard against poorly written app.  I
>> don't see the need to really make it very efficient, hence no
>> need to have this option.
>>  
>>
> Again, there is no general way to control who sends messages to you.  
> Even if you have perfect control, partial delivery is triggered on a 
> regular basis under heavy load, even with very small (<4K) messages,  as 
> the Redhat cluster DLM people found out rather surprisingly. (They were 
> expecting standard atomic SOCK_SEQPACKET semantics, and ended up having 
> to re-insert the same layer they were using previously with TCP).

Hmm.. interesting... I am surprised that at less than 4k you would
get pd-api... I doubt you would see this on FreeBSD.. maybe.. but
I would be surprised if you did....

R
> 
>>> D) new socket option SCTP_PARTIAL_DELIVERY_POINT.   
>>
>>
>>
>> I don't understand the rational of this option.  It seems to me
>> that this option is for those app protocols which choose the wrong
>> message size.  If it wants the receive call to return for
>> every X bytes, it should only send message of at most X bytes
>> big.  Using the current API draft, I believe an app protocol
>> writer already has control on whether partial delivery will be
>> triggered or not.  So it seems to me that this option is not
>> really about partial delivery.  Again, if I have missed an
>> important point why this option is really needed, please raise
>> it again.
>>  
>>
> Again, not in the slightest.  The draft makes no guarantees about when 
> partial delivery will be started.  Specifying early delivery on a 
> one-to-one socket is extremely useful for some applications.  Message 
> boundaries are there to convey useful information - if you have to 
> insert them willy nilly, you defeat their primary purpose.  Suppose 
> someone calls sendfile() on an SCTP socket - should the sendfile() 
> handler insert message boundaries every 4K or whatever?  Or what if you 
> have plenty of buffer space on the receiving side - should you 
> necessarily have to be woken up every 4K just because someone has 
> downgraded all the message sizes to support least common denominator 
> clients?
> 
> What about implementations that can copy directly to user memory? - then 
> there is no corresponding socket buffer requirement at all.  Downsizing 
> messages is a bad idea on ULPs designed to work over one-to-one 
> sockets.  DECnet, XNS, SPX, and Unix SOCK_SEQPACKET sockets all support 
> arbitrary record lengths and partial reads.  Certainly if you ever want 
> to properly support TCP semantics you need both partial reads and 
> partial writes, with early delivery in both directions.
> 
> There is a large body of software that could benefit from SCTP if 
> standard SOCK_STREAM, SOCK_DGRAM, or SOCK_SEQPACKET semantics were 
> supported.  Right now none of them are.  Not only that, they can't be 
> emulated effectively at the application level, because deliveries are 
> uncontrollable in one or both directions, or require either application 
> or socket buffers as large as the message size.  If SCTP can't be used 
> with POSIX standard socket semantics, it is likely to remain a specialty 
> protocol for obscure telephony applications.  I think it is capable of 
> much better than that.
> 
> Finally, if complexity is the issue - these proposed options are in the 
> direction of the common, the simple, and the expected - *especially* 
> with standard socket types.  We have an enormous number of socket 
> options providing fine granualarity control over and statistics for 
> things that the majority of applications will never need.  Some TCP 
> implementations have similar options, and they are rarely necessary.  
> Very helpful for some, but neglectable by most.  These extremely simple 
> and basic options have much greater general benefit than virtually every 
> option implemented so far.  The only reason for their existence is a 
> shortage of socket types, and the fact that existing applications depend 
> on non-standard semantics for the existing ones.   Ideally, POSIX socket 
> semantics should have been the default in the first place, such that one 
> would have to use options to get unusual behavior.  Assuming they ever 
> get around to it, are they likely to bless default semantics that are 
> such an unusual, unexpected, and unnecessary departure from what they 
> have already standardized? Especially, if there isn't even an option to 
> get normal behavior?
> 
>   - Mark
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 03 21:45:43 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Etyel-0001Kt-MX; Tue, 03 Jan 2006 21:45:43 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Etyej-0001Ko-98
	for tsvwg@megatron.ietf.org; Tue, 03 Jan 2006 21:45:41 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA24116
	for <tsvwg@ietf.org>; Tue, 3 Jan 2006 21:44:27 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Etyk6-0003Io-SD
	for tsvwg@ietf.org; Tue, 03 Jan 2006 21:51:16 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	IDX23427; Tue, 3 Jan 2006 19:45:27 -0700
Message-ID: <43BB36D0.8030204@middle.net>
Date: Tue, 03 Jan 2006 19:45:36 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Randall Stewart <randall@stewart.chicago.il.us>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BB0B7C.6010008@stewart.chicago.il.us>
In-Reply-To: <43BB0B7C.6010008@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 856eb5f76e7a34990d1d457d8e8e5b7f
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote: 

> Usually a pdapi trunction is closely followed by an ABORT or
> COMM_LOST more correctly... one could come up with the
> same thing without it.. its just you would need to subscribe
> to other things too... of course if you are doing 1-2-many you
> really should be doing association events anyway...

There is another case - if PR-SCTP is enabled, an implementation can 
receive a pertinent FORWARD TSN after a partial delivery has already 
occurred.  Then the delivery needs to be aborted without aborting the 
association, or PR-SCTP is hazardous to use in real life.  In short 
PR-SCTP implies truncated messages, whenever and wherever partial 
deliveries are allowed.

- Mark



_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 04 06:22:42 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Eu6j4-00034Y-JQ; Wed, 04 Jan 2006 06:22:42 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Eu6j2-00034B-6p
	for tsvwg@megatron.ietf.org; Wed, 04 Jan 2006 06:22:40 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA15062
	for <tsvwg@ietf.org>; Wed, 4 Jan 2006 06:21:25 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Eu6oS-0003Xh-Iu
	for tsvwg@ietf.org; Wed, 04 Jan 2006 06:28:19 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k04BMYXE071165; 
	Wed, 4 Jan 2006 06:22:35 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43BBAFFA.7070707@stewart.chicago.il.us>
Date: Wed, 04 Jan 2006 06:22:34 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BB0B7C.6010008@stewart.chicago.il.us>
	<43BB36D0.8030204@middle.net>
In-Reply-To: <43BB36D0.8030204@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark Butler wrote:
> Randall Stewart wrote:
> 
>> Usually a pdapi trunction is closely followed by an ABORT or
>> COMM_LOST more correctly... one could come up with the
>> same thing without it.. its just you would need to subscribe
>> to other things too... of course if you are doing 1-2-many you
>> really should be doing association events anyway...
> 
> 
> There is another case - if PR-SCTP is enabled, an implementation can 
> receive a pertinent FORWARD TSN after a partial delivery has already 
> occurred.  Then the delivery needs to be aborted without aborting the 
> association, or PR-SCTP is hazardous to use in real life.  In short 
> PR-SCTP implies truncated messages, whenever and wherever partial 
> deliveries are allowed.
True, but all things can be hazardous to use, at least if
they have any power of flexibility.

This is another area where the app designer should think
about what they are doing. If I design a application that
is sending 1Meg PR-SCTP messages then I had best be
prepared for having pd-api's be aborted... and thus
turn on notifications...

The reality of it, however IMO, are that a pd-api
writer is NOT going to send a 1Meg message.. more
like 160 bytes messages ... and should not ever
see any message fragmentation...

R

> 
> - Mark
> 
> 
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
> 
> 


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 04 23:56:38 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EuNB0-0005uF-MN; Wed, 04 Jan 2006 23:56:38 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EuNAy-0005uA-4b
	for tsvwg@megatron.ietf.org; Wed, 04 Jan 2006 23:56:36 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA20589
	for <tsvwg@ietf.org>; Wed, 4 Jan 2006 23:55:20 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EuNGX-0001tq-2h
	for tsvwg@ietf.org; Thu, 05 Jan 2006 00:02:24 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JFJ51513; Wed, 4 Jan 2006 21:56:13 -0700
Message-ID: <43BCA6F9.3080807@middle.net>
Date: Wed, 04 Jan 2006 21:56:25 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BB0B7C.6010008@stewart.chicago.il.us>
	<43BB36D0.8030204@middle.net>
	<43BBAFFA.7070707@stewart.chicago.il.us>
In-Reply-To: <43BBAFFA.7070707@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a7d6aff76b15f3f56fcb94490e1052e4
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] PR-SCTP truncation
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote:

> Mark Butler wrote:
>
>>
>> There is another case - if PR-SCTP is enabled, an implementation can 
>> receive a pertinent FORWARD TSN after a partial delivery has already 
>> occurred.  Then the delivery needs to be aborted without aborting the 
>> association, or PR-SCTP is hazardous to use in real life.  In short 
>> PR-SCTP implies truncated messages, whenever and wherever partial 
>> deliveries are allowed.
>
> True, but all things can be hazardous to use, at least if
> they have any power of flexibility.

I agree.  Rhetorical question: So if we allow senders to abandon 
messages mid transfer for PR-SCTP, resulting in arbitrary truncation at 
any threshold, why is predictable truncation at a specified threshold 
supposed to be a problem?

>
> This is another area where the app designer should think
> about what they are doing. If I design a application that
> is sending 1Meg PR-SCTP messages then I had best be
> prepared for having pd-api's be aborted... and thus
> turn on notifications...
>
> The reality of it, however IMO, are that a pd-api
> writer is NOT going to send a 1Meg message.. more
> like 160 bytes messages ... and should not ever
> see any message fragmentation...

Most of the time yes.  An implemenation may split even relatively small 
messages (ones smaller than the fragmentation point) across two 
different packets for efficiency, especially if it was pre-fragmented at 
too large a threshold for the necessary control chunks.   In general I 
think that a PR-SCTP sender should never unilaterally abandon 
multi-fragment messages mid or post transmission.  If the receiver wants 
to abandon it, that is another story...

- Mark


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 05 05:41:37 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EuSYr-0004Ub-TB; Thu, 05 Jan 2006 05:41:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EuSYq-0004UW-8w
	for tsvwg@megatron.ietf.org; Thu, 05 Jan 2006 05:41:36 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA24247
	for <tsvwg@ietf.org>; Thu, 5 Jan 2006 05:40:21 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EuSeV-0004ak-Pu
	for tsvwg@ietf.org; Thu, 05 Jan 2006 05:47:28 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k05AeCed003862; 
	Thu, 5 Jan 2006 05:40:35 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43BCF77D.5090306@stewart.chicago.il.us>
Date: Thu, 05 Jan 2006 05:39:57 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] PR-SCTP truncation
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BB0B7C.6010008@stewart.chicago.il.us>	<43BB36D0.8030204@middle.net>	<43BBAFFA.7070707@stewart.chicago.il.us>
	<43BCA6F9.3080807@middle.net>
In-Reply-To: <43BCA6F9.3080807@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4b800b1eab964a31702fa68f1ff0e955
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark Butler wrote:
> Randall Stewart wrote:
> 
>> Mark Butler wrote:
>>
>>>
>>> There is another case - if PR-SCTP is enabled, an implementation can 
>>> receive a pertinent FORWARD TSN after a partial delivery has already 
>>> occurred.  Then the delivery needs to be aborted without aborting the 
>>> association, or PR-SCTP is hazardous to use in real life.  In short 
>>> PR-SCTP implies truncated messages, whenever and wherever partial 
>>> deliveries are allowed.
>>
>>
>> True, but all things can be hazardous to use, at least if
>> they have any power of flexibility.
> 
> 
> I agree.  Rhetorical question: So if we allow senders to abandon 
> messages mid transfer for PR-SCTP, resulting in arbitrary truncation at 
> any threshold, why is predictable truncation at a specified threshold 
> supposed to be a problem?


Good point... Kacheong... I am still waiting to see
your reply to Mark's original response :-D

> 
>>
>> This is another area where the app designer should think
>> about what they are doing. If I design a application that
>> is sending 1Meg PR-SCTP messages then I had best be
>> prepared for having pd-api's be aborted... and thus
>> turn on notifications...
>>
>> The reality of it, however IMO, are that a pd-api
>> writer is NOT going to send a 1Meg message.. more
>> like 160 bytes messages ... and should not ever
>> see any message fragmentation...
> 
> 
> Most of the time yes.  An implemenation may split even relatively small 
> messages (ones smaller than the fragmentation point) across two 
> different packets for efficiency, especially if it was pre-fragmented at 
> too large a threshold for the necessary control chunks.   In general I 
> think that a PR-SCTP sender should never unilaterally abandon 
> multi-fragment messages mid or post transmission.  If the receiver wants 
> to abandon it, that is another story...

Hmm.. that makes sense... but it really is an implementation choice.
I can't even remember if we (in the bsd world) make that decision.. I
know once one fragment is considered old they all are marked for
skipping.. but I can't remember if this is only pre-ack of a piece...

R
> 
> - Mark
> 
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
> 
> 


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 05 11:21:00 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EuXrI-0002vo-LU; Thu, 05 Jan 2006 11:21:00 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EuXrG-0002vg-Fc
	for tsvwg@megatron.ietf.org; Thu, 05 Jan 2006 11:20:58 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA04125
	for <tsvwg@ietf.org>; Thu, 5 Jan 2006 11:19:41 -0500 (EST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EuXwr-0008RS-Nd
	for tsvwg@ietf.org; Thu, 05 Jan 2006 11:26:51 -0500
Received: from jurassic.eng.sun.com ([129.146.17.57])
	by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id k05GKiuf019893
	for <tsvwg@ietf.org>; Thu, 5 Jan 2006 09:20:44 -0700 (MST)
Received: from [192.9.61.50] (punchin-kcpoon.SFBay.Sun.COM [192.9.61.50])
	by jurassic.eng.sun.com (8.13.5+Sun/8.13.5) with ESMTP id
	k05GKg3R578944
	for <tsvwg@ietf.org>; Thu, 5 Jan 2006 08:20:43 -0800 (PST)
Message-ID: <43BD475A.90304@sun.com>
Date: Fri, 06 Jan 2006 00:20:42 +0800
From: Kacheong Poon <kacheong.poon@sun.com>
Organization: Sun Microsystems, Inc.
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: TSWG <tsvwg@ietf.org>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
In-Reply-To: <43BAE9C1.7000209@middle.net>
X-Enigmail-Version: 0.90.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Content-Transfer-Encoding: 7bit
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Instead of replying point by point (which will likely
lead to a long thread), let me try to summarize the
reasons posted so far to support what I call "truncated
message" delivery.

1. Partial delivery can happen any time and the app cannot
control it.
2. Partial delivery will block 1-N style socket.
3. Because of 2, partial delivery can lead to DoS attack.
4. "Truncated message" delivery can already happen with
PR-SCTP.

I think the major reason why this thread was brought up
is because of 1.  But in reality, I think this is an
implementation issue rather than an API issue.  To make
it clear, we can easily solve this by saying that if an
app specifies the receive buffer to be X bytes, no partial
delivery will be performed for message smaller than X
(or X - a fixed number of bytes).  This avoids the protocol
deadlock issue.  And an app can control when partial
delivery can happen.  As Randy has pointed out, this
is what implementations should probably do.  Note that
this is different from the SCTP_PARTIAL_DELIVERY_POINT
option.

So if 1 is not an issue, 2 should not be an issue.  The
app can avoid partial delivery altogether if it desires.
As I have mentioned, 3 is not an issue because an app
can just abort the offending association if it receives
an invalid message (in this case, a message too big).
And because an app can control when partial delivery
can happen, it means that even with PR-SCTP, no truncated
message will ever be received if an app desires.

There are other minor points in saying that the current
API is not usable by many apps.  For example, sendfile()
cannot be used efficiently.  But it seems to me that it is
because of app architecture design, not because of the
API itself.  Otherwise, I can't see how there can be many
SCTP apps running in production environment using the draft
API at this very moment.


-- 

						K. Poon.
						kacheong.poon@sun.com


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 05 17:16:01 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EudOr-0001FU-G2; Thu, 05 Jan 2006 17:16:01 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EudOp-0001FP-Td
	for tsvwg@megatron.ietf.org; Thu, 05 Jan 2006 17:16:00 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA00608
	for <tsvwg@ietf.org>; Thu, 5 Jan 2006 17:14:44 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EudUb-0000iI-AZ
	for tsvwg@ietf.org; Thu, 05 Jan 2006 17:21:57 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JXU12445; Thu, 5 Jan 2006 15:15:45 -0700
Message-ID: <43BD9A98.5010200@middle.net>
Date: Thu, 05 Jan 2006 15:15:52 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: TSWG <tsvwg@ietf.org>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net> <43BD475A.90304@sun.com>
In-Reply-To: <43BD475A.90304@sun.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6d95a152022472c7d6cdf886a0424dc6
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Kacheong Poon wrote:

>Instead of replying point by point (which will likely
>lead to a long thread), let me try to summarize the
>reasons posted so far to support what I call "truncated
>message" delivery.
>
>1. Partial delivery can happen any time and the app cannot
>control it.
>2. Partial delivery will block 1-N style socket.
>3. Because of 2, partial delivery can lead to DoS attack.
>4. "Truncated message" delivery can already happen with
>PR-SCTP.
>
>I think the major reason why this thread was brought up
>is because of 1.  But in reality, I think this is an
>implementation issue rather than an API issue.  To make
>it clear, we can easily solve this by saying that if an
>app specifies the receive buffer to be X bytes, no partial
>delivery will be performed for message smaller than X
>(or X - a fixed number of bytes).  This avoids the protocol
>deadlock issue.  
>

Having a tolerance below which atomic deliveries would always be 
performed is a good thing.  However, basing the tolerance on the receive 
buffer size is problematic.  In many environments setsockopt(SO_RCVBUF) 
silently clips your request to system limits and succeeds.  This is done 
at the socket level, so the protocol driver doesn't know what was 
originally requested.  

With shared buffer implementations, if the tolerance is near the receive 
buffer size, then any comparably sized message still serializes the 
whole socket, stalling as if a partial delivery had been performed.   
Basically, the stack would have to decide which message it is going to 
deliver, renege everything else, advertise a zero window for every other 
association, and so on. A user specified threshold a fraction of the 
shared buffer space would be much more appropriate.  If messages greater 
than or equal to that size are ULP violations, you want to know about it 
as soon as possible.  So we need something like 
SCTP_PARTIAL_DELIVERY_POINT (with slightly altered semantics) regardless.

However, there are also people who want to reliably receive large 
messages on one-to-many sockets.  With locked partial delivery, it can't 
be done.  Locked partial delivery is fundamentally flawed on one-to-many 
sockets - so you either force  the ULP to use small messages, or allow 
fragment interleaving.  Artificially limiting the message size is a bad 
idea for many reasons.  Fragment interleaving is a much better 
alternative for applications like MPI, hence the proposed 
SCTP_FRAGMENT_INTERLEAVE option.

>And an app can control when partial
>delivery can happen.  As Randy has pointed out, this
>is what implementations should probably do.  Note that
>this is different from the SCTP_PARTIAL_DELIVERY_POINT
>option.
>
>So if 1 is not an issue, 2 should not be an issue.  The
>app can avoid partial delivery altogether if it desires.
>  
>
If we change the specification accordingly...

>As I have mentioned, 3 is not an issue because an app
>can just abort the offending association if it receives
>an invalid message (in this case, a message too big).
>And because an app can control when partial delivery
>can happen, it means that even with PR-SCTP, no truncated
>message will ever be received if an app desires.
>  
>
It can only control partial delivery effectively on a shared buffer if 
there is an option to specify what the threshold is.

>There are other minor points in saying that the current
>API is not usable by many apps.  For example, sendfile()
>cannot be used efficiently.  But it seems to me that it is
>because of app architecture design, not because of the
>API itself.  Otherwise, I can't see how there can be many
>SCTP apps running in production environment using the draft
>API at this very moment.
>  
>
Are there any non-telephony SCTP applications in wide distribution? I 
don't think so.  SCTP is a natural replacement for UDP, but there is no 
SOCK_DGRAM.   It is a natural replacement for TCP, but there are no 
partial writes or early delivery.  It can't be used to multi-stream 
large messages because there is no interleaving.  These are primarily 
API, not protocol limitations.

Even where traditional semantics are not strictly necessary, most 
applications have to work in environments where SCTP support is not 
available or where SCTP is blocked or hindered by firewalls.  An 
application that supports SCTP must generally also support either TCP or 
UDP.  If it is difficult to use the same code base for both protocols, 
an application developer is likely to dispense with SCTP support completely.

The main issue is should SCTP be a general purpose transport protocol or 
not?  I can understand the sentiment to stay focused on supporting small 
messages well, and letting adaptation layers handle larger ones.  I 
would like to see those adaptation layers in-kernel, but that is beside 
the point.

Comments anyone?

 - Mark




_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Fri Jan 06 22:40:35 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ev4wV-0002FW-0Z; Fri, 06 Jan 2006 22:40:35 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ev4wT-0002Dd-C2
	for tsvwg@megatron.ietf.org; Fri, 06 Jan 2006 22:40:33 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA09691
	for <tsvwg@ietf.org>; Fri, 6 Jan 2006 22:39:15 -0500 (EST)
Received: from brmea-mail-3.sun.com ([192.18.98.34])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ev52R-0005LM-0x
	for tsvwg@ietf.org; Fri, 06 Jan 2006 22:46:46 -0500
Received: from jurassic.eng.sun.com ([129.146.17.55])
	by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id k073eJ3F026725
	for <tsvwg@ietf.org>; Fri, 6 Jan 2006 20:40:24 -0700 (MST)
Received: from [192.9.61.50] (punchin-kcpoon.SFBay.Sun.COM [192.9.61.50])
	by jurassic.eng.sun.com (8.13.5+Sun/8.13.5) with ESMTP id
	k073eIL3468902
	for <tsvwg@ietf.org>; Fri, 6 Jan 2006 19:40:19 -0800 (PST)
Message-ID: <43BF3821.5010700@sun.com>
Date: Sat, 07 Jan 2006 11:40:17 +0800
From: Kacheong Poon <kacheong.poon@sun.com>
Organization: Sun Microsystems, Inc.
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: TSWG <tsvwg@ietf.org>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
In-Reply-To: <43BD9A98.5010200@middle.net>
X-Enigmail-Version: 0.90.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cd3fc8e909678b38737fc606dec187f0
Content-Transfer-Encoding: 7bit
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark Butler wrote:

> Having a tolerance below which atomic deliveries would always be
> performed is a good thing.  However, basing the tolerance on the receive
> buffer size is problematic.  In many environments setsockopt(SO_RCVBUF)
> silently clips your request to system limits and succeeds.  This is done
> at the socket level, so the protocol driver doesn't know what was
> originally requested. 


This is an implementation issue, not a specification issue.  So
if an implementation cannot honor a requested buffer size, it
should report an error.  If it silently rejects the request yet
returns no error, I consider this a bug.  And to make it worse,
the above seems to suggest that there is no communication between
the socket layer and the protocol stack.  This seems to be a
serious bug.  And for those apps which need to run on this buggy
stack, I guess a getsockopt() afterwards can be a workaround.
Anyway, I don't think the above implementation issue should
interfere with the specification.


> With shared buffer implementations, if the tolerance is near the receive
> buffer size, then any comparably sized message still serializes the
> whole socket, stalling as if a partial delivery had been performed.  


I think the socket draft actually recommends stack not to use a
shared buffer for 1-N style socket because of many difficulties.
It is difficult, but not doable.  The implementation needs to
be very careful.


> Basically, the stack would have to decide which message it is going to
> deliver, renege everything else, advertise a zero window for every other
> association, and so on. A user specified threshold a fraction of the
> shared buffer space would be much more appropriate.  If messages greater
> than or equal to that size are ULP violations, you want to know about it
> as soon as possible.  So we need something like
> SCTP_PARTIAL_DELIVERY_POINT (with slightly altered semantics) regardless.


If we think about it, the above implementation already breaks
an important protocol recommendation, not to shrink the receive
window.  So what the above says is that a receiver A tells a
sender B that its receive window is X.  Then after B sends A 10
bytes, A tells B that the receive window, without ack'ing that 10
bytes, is now much less than X - 10 because a sender of another
association controlled under the same 1-N style socket has sent
64K bytes.  I consider this a bug in the implementation.

So again, this is an implementation issue.


> However, there are also people who want to reliably receive large
> messages on one-to-many sockets.  With locked partial delivery, it can't
> be done.  Locked partial delivery is fundamentally flawed on one-to-many
> sockets - so you either force  the ULP to use small messages, or allow
> fragment interleaving.  Artificially limiting the message size is a bad
> idea for many reasons.  Fragment interleaving is a much better
> alternative for applications like MPI, hence the proposed
> SCTP_FRAGMENT_INTERLEAVE option.


I don't see why there is a lock in partial delivery for normal
app.  Using the proposed wording change (no code change for most
implementations out there) I made in last email, an app specifies
a receive buffer size of 128KB as it is the app protocol message
size.  Will the app then send a 200KB message just to trigger
partial delivery?

It seems that the above point is that the draft cannot specify
certain things if an implementation chooses not to follow what
the draft specifies nor what the protocol specifies.  The draft
does not artificially limit the message size.  The app chooses
what the message size should be.  And by doing that, the app expects
certain API behavior.  The app has all the controls.

Having said that, if people really want this option, I will not
object to it.  I guess this is what Randy thinks too.


> It can only control partial delivery effectively on a shared buffer if
> there is an option to specify what the threshold is.


I guess the above point is that if an implementation chooses to
use a shared buffer for all associations in a 1-N style socket,
it should be very careful in how to manipulate that buffer.
Otherwise, it will run into all sorts of problems and may break
the protocol as mentioned above.


> Are there any non-telephony SCTP applications in wide distribution? I
> don't think so.  SCTP is a natural replacement for UDP, but there is no
> SOCK_DGRAM.   It is a natural replacement for TCP, but there are no
> partial writes or early delivery.  


I will let Randy and other comment on the above.  But I don't
think I have ever heard people who were involved in the SCTP
protocol specification effort make the above claim regarding
TCP/UDP and SCTP.


> It can't be used to multi-stream
> large messages because there is no interleaving.  These are primarily
> API, not protocol limitations.


As I have mentioned a couple times, this is an implementation
issue.  I don't think we should mix implementation and
specification together.


> Even where traditional semantics are not strictly necessary, most
> applications have to work in environments where SCTP support is not
> available or where SCTP is blocked or hindered by firewalls.  An
> application that supports SCTP must generally also support either TCP or
> UDP.  If it is difficult to use the same code base for both protocols,
> an application developer is likely to dispense with SCTP support
> completely.


I still do not see a strong example about the difficulty in using
SCTP.  It all seems to be an app architecture design issue.  For
example, I read a claim that to use 1-1 style socket, accept() and
then fork() should be done.  This is simply a design choice and is
not true in general.  It seems that there are many "myths" in using
1-1 style socket...  And FWIW, I believe most, if not all, current
TCP apps can be changed to use SCTP with very minor changes or
even just one line change, the socket() call.  I remember Randy
and/or Peter has changed the Apache web server to run on top of
SCTP by making some very minor changes.

And it is an "interesting" claim that most UDP apps can be changed
to use SCTP.  People writing VoIP software using UDP may
experiment with DCCP.  But I don't think they will ever consider
using SCTP for that.  I believe this is applicable to most UDP apps.


> The main issue is should SCTP be a general purpose transport protocol or
> not?  I can understand the sentiment to stay focused on supporting small
> messages well, and letting adaptation layers handle larger ones.  I
> would like to see those adaptation layers in-kernel, but that is beside
> the point.


Why can't an app utilizing large messages be run on top of SCTP?
Can one write a user land NFS server using 64K message size running
on top of the current draft API?  Sure.  I don't see a problem in
message delivery locking.  Is the above claim made because of certain
experience with a specific implementation?  And how can a "truncated
message" delivery mechanism help at all?  Does a NFS server want
to receive a truncated message?


-- 

						K. Poon.
						kacheong.poon@sun.com


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sat Jan 07 00:47:40 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ev6vU-00052U-8e; Sat, 07 Jan 2006 00:47:40 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ev6vR-00052P-F8
	for tsvwg@megatron.ietf.org; Sat, 07 Jan 2006 00:47:37 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA16757
	for <tsvwg@ietf.org>; Sat, 7 Jan 2006 00:46:21 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[HE9s52uYH3njuVIXPh2xLYRXgqDkfN1X])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ev71T-0000Ep-2R
	for tsvwg@ietf.org; Sat, 07 Jan 2006 00:53:51 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:SO5s+FKo23NhSFE96Lbv5xazPICH4Wkb@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k075lRw19082;
	Fri, 6 Jan 2006 22:47:27 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k075lLJ30825;
	Fri, 6 Jan 2006 22:47:21 -0700
Date: Fri, 6 Jan 2006 22:47:21 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Message-ID: <20060106224721.A30197@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, TSWG <tsvwg@ietf.org>,
	Kacheong Poon <kacheong.poon@sun.com>
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43BD9A98.5010200@middle.net>;
	from butlerm@middle.net on Thu, Jan 05, 2006 at 03:15:52PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 932cba6e0228cc603da43d861a7e09d8
Cc: Kacheong Poon <kacheong.poon@sun.com>, TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark,

Mark Butler wrote:                               (Thu, 05 Jan 2006 15:15:52)
> Kacheong Poon wrote:
> >There are other minor points in saying that the current
> >API is not usable by many apps.  For example, sendfile()
> >cannot be used efficiently.  But it seems to me that it is
> >because of app architecture design, not because of the
> >API itself.  Otherwise, I can't see how there can be many
> >SCTP apps running in production environment using the draft
> >API at this very moment.
> >  
> >
> Are there any non-telephony SCTP applications in wide distribution? I 
> don't think so.

Yes there are non-telephony SCTP applications in wide distribution.

A couple of examples: SCTP has been used by the SCIOP for RT-CORBA.  TAO
has supported it for some time.  It is interesting that CORBA was first
specified by the OMG using UDP, then TCP, and finally SCTP.  NFS also
went from UDP to TCP and will likely land on SCTP.

Another is iSCSI and, of course, DDP.

SCTP is also a natural replacement for Ethernet bonding on cPCI
backplanes.  That is, instead of Ethernet bonding two rails together,
SCTP is used to achieve redundancy across both rails while permitting
twice the failure scenario throughput.  CGL specified this and I think
the SAF too.

Of course BICC, SIP, TI-SCCP, MEGACO/H.248, H.225/H.323, and SIGTRAN UAs
are existing implementations of SCTP, however, any application that does
not wish to experience degraded performance in a noisy environment and
is currently using TCP (such as the RT CORBA was and NFS is) will
benefit and eventually move to SCTP.

Then there is Randall's SCTP web server...

> SCTP is a natural replacement for UDP, but there is no SOCK_DGRAM.

Well, no, it is not a natural replacement for UDP.  UDP is a
connectionless datagram protocol.  SCTP is a connection oriented
protocol.

> It is a natural replacement for TCP, but there are no partial writes
> or early delivery.

Well, no, not a natural replacement.  SCTP preserves (well, is capable
of preserving) record boundaries and TCP cannot.  Partial writes to SCTP
are simple when emulating TCP: the implementation can simply close the
SSN at the end of the partial write (because record boundaries are to be
ignored).  Multiple stream interleaving is not an issue, because when
emulating TCP, the implementation uses only one one stream (that is all
that TCP has).  That is, under a SOCK_STREAM type of socket, it is
possible for an SCTP implementation to exactly mimic the TCP Sockets API
(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
the only required standard TCP options).

> It can't be used to multi-stream large messages because there is no
> interleaving.

Well, neither can TCP.

> These are primarily API, not protocol limitations.

SCTP's inability to multi-stream large messages is not a limitation of
the API, it is a limitation of the protocol.

I think you are finally back to where I was with SCCP and the SIGTRAN
SUA.  We had the choice of either letting SCTP do all segmentation and
reassembly of messages for SUA, or putting SCCP's segmentation and
reassembly into SUA on top of SCTP.  That latter was necessary because
of SCTP's inability to interleave large messages.  Therefore, the
application (SUA) fragments and reassembles messages across the SCTP
association.

It is something that SCTP forces on the API and application, but let's
be clear: it is a protocol limitation.

If SCTP had included a segment number in the DATA chunk header, instead
of just a beginning and ending flag, there would be not problem
interleaving any messages.

Strangely, it looks like we are doomed to this limitation because the
editors of the protocol will not change it.

> 
> Even where traditional semantics are not strictly necessary, most 
> applications have to work in environments where SCTP support is not 
> available or where SCTP is blocked or hindered by firewalls.  An 
> application that supports SCTP must generally also support either TCP or 
> UDP.  If it is difficult to use the same code base for both protocols, 
> an application developer is likely to dispense with SCTP support completely.

Well, no, that is really not the case either.  When some application or
protocol is adapted to SCTP, is it because SCTP provides some capability
that is lacking in TCP (such as multi-homing, multi-streaming, unordered
and ordered delivery, quick association setup and tear-down, better
attack resilience).  Of all these, taking advantage of multi-streaming,
in particular, requires changes in the application and the API.  An
application cannot take advantage of multi-streaming without specifying
on send what stream to which to place a message.  Also on the receive
side, the application might need to know (or specify) what stream it
came from (or is to be read from).

> 
> The main issue is should SCTP be a general purpose transport protocol or 
> not?  I can understand the sentiment to stay focused on supporting small 
> messages well, and letting adaptation layers handle larger ones.  I 
> would like to see those adaptation layers in-kernel, but that is beside 
> the point.

Well, it is a general purpose transport protocol.  One that has clear
and specific advantages over other available protocols, but also has its
own limitations, artificial or otherwise.

Get real: any application that is passing records across TCP is already
performing its own segmentation and reassembly, and, of course, even has
to detect its own record boundaries.  The same application running over
UDP cannot exceed a rather restrictive maximum message size.  Does this
mean that UDP and TCP are not general purpose transport protocols in
your view?

If the application uses UDP it is already restricting message size to a
maximum.  If the application uses TCP it already segments and
reassembles large records, and must detect record boundaries within the
data stream.  Doing either is certainly not a limitation for SCTP in
comparison to UDP or TCP.

OTOH, ISO protocols do not require application segmentation, reassembly
or record boundary detection and yet support partial writes and reads.
Therefore, SCTP is only limited when compared to ISO protocols, but then
so are TCP and UDP.

--brian

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sat Jan 07 00:48:52 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ev6we-0005Q4-1C; Sat, 07 Jan 2006 00:48:52 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ev6wc-0005Oa-7e
	for tsvwg@megatron.ietf.org; Sat, 07 Jan 2006 00:48:50 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA16855
	for <tsvwg@ietf.org>; Sat, 7 Jan 2006 00:47:34 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[O+pNGSfsYqSRf+tyZ5zFe8kGgASWoZLr])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ev72d-0000Hk-AB
	for tsvwg@ietf.org; Sat, 07 Jan 2006 00:55:04 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:M0n4IJuQ4c5jw95q2GFnr7eVsfwX1HBl@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k075mlw19106;
	Fri, 6 Jan 2006 22:48:47 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k075mkF30846;
	Fri, 6 Jan 2006 22:48:46 -0700
Date: Fri, 6 Jan 2006 22:48:46 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Kacheong Poon <kacheong.poon@sun.com>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Message-ID: <20060106224846.B30197@openss7.org>
Mail-Followup-To: Kacheong Poon <kacheong.poon@sun.com>, TSWG <tsvwg@ietf.org>
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<43BF3821.5010700@sun.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43BF3821.5010700@sun.com>;
	from kacheong.poon@sun.com on Sat, Jan 07, 2006 at 11:40:17AM
	+0800
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Cc: TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Kacheong,

Kacheong Poon wrote:                      (Sat, 07 Jan 2006 11:40:17)
> 
> 
> > It can't be used to multi-stream
> > large messages because there is no interleaving.  These are primarily
> > API, not protocol limitations.
> 
> 
> As I have mentioned a couple times, this is an implementation
> issue.  I don't think we should mix implementation and
> specification together.
> 
> 

No, this one is definitely a protocol limitation.

--brian

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sun Jan 08 04:44:16 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EvX60-0004XK-6U; Sun, 08 Jan 2006 04:44:16 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EvX5y-0004WH-Cu
	for tsvwg@megatron.ietf.org; Sun, 08 Jan 2006 04:44:14 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA12988
	for <tsvwg@ietf.org>; Sun, 8 Jan 2006 04:42:56 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EvXCE-0004Nu-4W
	for tsvwg@ietf.org; Sun, 08 Jan 2006 04:50:43 -0500
Received: from [192.168.1.101] (p5481F216.dip.t-dialin.net [84.129.242.22])
	by ilsa.franken.de (Postfix) with ESMTP
	id 78AFA245C5; Sun,  8 Jan 2006 10:44:04 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43BD475A.90304@sun.com>
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com>
Mime-Version: 1.0 (Apple Message framework v623)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <8c6c14829cb6bf3c861cb1e9f96525f6@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Date: Sun, 8 Jan 2006 10:43:56 +0100
To: Kacheong Poon <kacheong.poon@sun.com>
X-Mailer: Apple Mail (2.623)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a8a20a483a84f747e56475e290ee868e
Content-Transfer-Encoding: 7bit
Cc: TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Dear all,

I would like to look at a specific case suggested by Kacheong.
Assume that we want to use SCTP for an application which has
a maximum message size M and we want to use the 1-to-M model.

The code for the receiver would provide a buffer of size M and
call a receive function in a loop until the MSG_EOR flag is set
or the partial delivery is aborted. Since no messages are interleaved,
one can arrange that the whole message is in the provided buffer
after the loop.

The problem I see here is that if partial delivery happens an
attacker can just send some data chunks containing M-1 bytes
and never the data chunk with the end bit set. The application
might get the starting of the packet, but never receives it
completely and can not determine that this is an attacker because
a message of length M is possible. So it can not abort the association.
How can this DOS attack be avoided?

The SCTP_FRAGMENT_INTERLEAVE option would help here, but makes the
receiving code a bit more complex. I need for each incomplete message
a separate buffer of size M and an additional one for reading. After
I read the fragment, I need to decide for which message it is and copy
to to the right buffer at the right offset.
This is more complex, but using the option the DOS attack can be 
avoided.

But what are you going to do, if this M does not exist (like in the case
of SIGTRAN protocols). You do have a size of messages which you need to 
support
and which is large enough to carry all important stuff. But there are 
other
messages (BEAT, for example) which might be larger.
So you can use Kacheong method of just aborting the association. But the
alternative would be (and I think it is a good one) to send back an 
application
error message. This would require that I can receive a arbitrary large 
message
without blocking other associations. The only way to handle this, is the
SCTP_FRAGMENT_INTERLEAVE option. Or am I missing something?

Best regards
Michael


On Jan 5, 2006, at 17:20 Uhr, Kacheong Poon wrote:

> Instead of replying point by point (which will likely
> lead to a long thread), let me try to summarize the
> reasons posted so far to support what I call "truncated
> message" delivery.
>
> 1. Partial delivery can happen any time and the app cannot
> control it.
> 2. Partial delivery will block 1-N style socket.
> 3. Because of 2, partial delivery can lead to DoS attack.
> 4. "Truncated message" delivery can already happen with
> PR-SCTP.
>
> I think the major reason why this thread was brought up
> is because of 1.  But in reality, I think this is an
> implementation issue rather than an API issue.  To make
> it clear, we can easily solve this by saying that if an
> app specifies the receive buffer to be X bytes, no partial
> delivery will be performed for message smaller than X
> (or X - a fixed number of bytes).  This avoids the protocol
> deadlock issue.  And an app can control when partial
> delivery can happen.  As Randy has pointed out, this
> is what implementations should probably do.  Note that
> this is different from the SCTP_PARTIAL_DELIVERY_POINT
> option.
>
> So if 1 is not an issue, 2 should not be an issue.  The
> app can avoid partial delivery altogether if it desires.
> As I have mentioned, 3 is not an issue because an app
> can just abort the offending association if it receives
> an invalid message (in this case, a message too big).
> And because an app can control when partial delivery
> can happen, it means that even with PR-SCTP, no truncated
> message will ever be received if an app desires.
>
> There are other minor points in saying that the current
> API is not usable by many apps.  For example, sendfile()
> cannot be used efficiently.  But it seems to me that it is
> because of app architecture design, not because of the
> API itself.  Otherwise, I can't see how there can be many
> SCTP apps running in production environment using the draft
> API at this very moment.
>
>
> -- 
>
> 						K. Poon.
> 						kacheong.poon@sun.com
>
>
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sun Jan 08 19:55:38 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EvlJx-0000Jc-V9; Sun, 08 Jan 2006 19:55:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EvlJw-0000JS-9K
	for tsvwg@megatron.ietf.org; Sun, 08 Jan 2006 19:55:36 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA01006
	for <tsvwg@ietf.org>; Sun, 8 Jan 2006 19:54:15 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EvlQE-0001hT-Lx
	for tsvwg@ietf.org; Sun, 08 Jan 2006 20:02:12 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NBM51504; Sun, 8 Jan 2006 17:55:04 -0700
Message-ID: <43C1B471.3050909@middle.net>
Date: Sun, 08 Jan 2006 17:55:13 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<43BD9A98.5010200@middle.net> <43BF3821.5010700@sun.com>
In-Reply-To: <43BF3821.5010700@sun.com>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 4b21264b25b2584da3ddf2bd579ca48f
Cc: Kacheong Poon <kacheong.poon@sun.com>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0626799002=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============0626799002==
Content-Type: multipart/alternative;
	boundary="------------090903060502030005050407"

This is a multi-part message in MIME format.
--------------090903060502030005050407
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Comments inline....

Kacheong Poon wrote:

>Mark Butler wrote:
>  
>
>>Having a tolerance below which atomic deliveries would always be
>>performed is a good thing.  However, basing the tolerance on the receive
>>buffer size is problematic.  In many environments setsockopt(SO_RCVBUF)
>>silently clips your request to system limits and succeeds.  This is done
>>at the socket level, so the protocol driver doesn't know what was
>>originally requested. 
>>    
>>
>
>This is an implementation issue, not a specification issue.  So
>if an implementation cannot honor a requested buffer size, it
>should report an error.  If it silently rejects the request yet
>returns no error, I consider this a bug.  And to make it worse,
>the above seems to suggest that there is no communication between
>the socket layer and the protocol stack.  This seems to be a
>serious bug.  And for those apps which need to run on this buggy
>stack, I guess a getsockopt() afterwards can be a workaround.
>Anyway, I don't think the above implementation issue should
>interfere with the specification.
>  
>
First of all, the exact semantics of SO_RCVBUF and SO_SNDBUF are not 
available to be specified at the protocol level because both options are 
specified with SOL_SOCKET, not IPPROTO_SCTP or whatever.  Both BSD and 
Linux silently clip SO_RCVBUF and SO_SNDBUF at the socket layer, by 
design.  Applications should not depend on getting a specific buffer 
size, but should get as much as possible when they request more than 
they are allowed.  Otherwise every application would have to do a binary 
search to reach the maximum buffer size.  Of course there is 
communication between the socket layer and the protocol stack - it is 
just the size actually granted, not what was requested.


>>With shared buffer implementations, if the tolerance is near the receive
>>buffer size, then any comparably sized message still serializes the
>>whole socket, stalling as if a partial delivery had been performed.  
>>    
>>
>
>
>I think the socket draft actually recommends stack not to use a
>shared buffer for 1-N style socket because of many difficulties.
>It is difficult, but not doable.  The implementation needs to
>be very careful.
>  
>
RFC2960 recommends that space be reserved for each association, which 
can be difficult to accomplish with a small shared buffer.  However, as 
far as the API is concerned SO_RCVBUF and SO_SNDBUF are not available to 
be re-defined on a lower level.  SOL_SOCKET again.  Per association 
buffers should be specified with a different option.  At some point you 
run out of memory - you can't guarantee fixed association buffers for an 
arbitrary number of associations.  Systems that do socket level 
accounting just impose a different limit than implementations with a 
system level pool.

>>Basically, the stack would have to decide which message it is going to
>>deliver, renege everything else, advertise a zero window for every other
>>association, and so on. A user specified threshold a fraction of the
>>shared buffer space would be much more appropriate.  If messages greater
>>than or equal to that size are ULP violations, you want to know about it
>>as soon as possible.  So we need something like
>>SCTP_PARTIAL_DELIVERY_POINT (with slightly altered semantics) regardless.
>>    
>>
>
>
>If we think about it, the above implementation already breaks
>an important protocol recommendation, not to shrink the receive
>window.  So what the above says is that a receiver A tells a
>sender B that its receive window is X.  Then after B sends A 10
>bytes, A tells B that the receive window, without ack'ing that 10
>bytes, is now much less than X - 10 because a sender of another
>association controlled under the same 1-N style socket has sent
>64K bytes.  I consider this a bug in the implementation.
>  
>
SO_RCVBUF is generally interpreted as a limit, not a reservation.  Let's 
say you have 10MB of system buffer space, and you set per association 
buffering to 1 MB - are you really going to start rejecting connections 
after the first ten or are you going to overcommit?  Most operating 
systems overcommit socket buffers, which leaves the possibility that 
packets will be dropped no matter what the advertised window is.   If 
overcommitting were not a net gain, no one would do it.

>>However, there are also people who want to reliably receive large
>>messages on one-to-many sockets.  With locked partial delivery, it can't
>>be done.  Locked partial delivery is fundamentally flawed on one-to-many
>>sockets - so you either force  the ULP to use small messages, or allow
>>fragment interleaving.  Artificially limiting the message size is a bad
>>idea for many reasons.  Fragment interleaving is a much better
>>alternative for applications like MPI, hence the proposed
>>SCTP_FRAGMENT_INTERLEAVE option.
>>    
>>
>
>
>I don't see why there is a lock in partial delivery for normal
>app.  Using the proposed wording change (no code change for most
>implementations out there) I made in last email, an app specifies
>a receive buffer size of 128KB as it is the app protocol message
>size.  Will the app then send a 200KB message just to trigger
>partial delivery?
>  
>
Partial delivery is either locked or unlocked, regardless of whether 
there is any impact.  In order for partial delivery to be avoided in 
your scenario, the implementation must actually _reserve_ space for each 
association, not just set a limit. If you have one thousand peers, are 
you going to reserve 200MB of memory so that partial delivery is 
guaranteed not be incurred with 128KB messages?    If not, stalling is 
actually _more_ likely because of early partial delivery on a non-shared 
buffer implementation, than one with the equivalent usage of a shared 
buffer.

>>It can't be used to multi-stream
>>large messages because there is no interleaving.  These are primarily
>>API, not protocol limitations.
>>    
>>
>
>
>As I have mentioned a couple times, this is an implementation
>issue.  I don't think we should mix implementation and
>specification together.
>  
>
Changing the semantics of SOL_SOCKET options is not just an 
implementation issue.  But more to the point, specifying critical 
semantics that cannot be widely implemented is a prescription for 
irrelevance.


>>Even where traditional semantics are not strictly necessary, most
>>applications have to work in environments where SCTP support is not
>>available or where SCTP is blocked or hindered by firewalls.  An
>>application that supports SCTP must generally also support either TCP or
>>UDP.  If it is difficult to use the same code base for both protocols,
>>an application developer is likely to dispense with SCTP support
>>completely.
>>    
>>
>
>
>I still do not see a strong example about the difficulty in using
>SCTP.  It all seems to be an app architecture design issue.  For
>example, I read a claim that to use 1-1 style socket, accept() and
>then fork() should be done.  This is simply a design choice and is
>not true in general.  It seems that there are many "myths" in using
>1-1 style socket...  And FWIW, I believe most, if not all, current
>TCP apps can be changed to use SCTP with very minor changes or
>even just one line change, the socket() call.  I remember Randy
>and/or Peter has changed the Apache web server to run on top of
>SCTP by making
>
> some very minor changes.
>  
>
There is no reason to add an SCTP support to a TCP application, unless 
considerable advantage can be gained by doing so.  For many 
applications, those advantages are hard to come by because you cannot 
easily control where the message boundaries are.  So you either get too 
many where they are unnecessary, or you get them in the wrong places. 

To provide a significant advantage HTTP over SCTP would need MSG_EOR 
control on writes, an SCTP_CORK option, SCTP_PARTIAL_DELIVERY_POINT or 
equivalent,  stream specific sockets, and a protocol extension for 
transmit interleaving across streams.  One-to-many implementations would 
need SCTP_FRAGMENT_INTERLEAVE as well.

>And it is an "interesting" claim that most UDP apps can be changed
>to use SCTP.  People writing VoIP software using UDP may
>experiment with DCCP.  But I don't think they will ever consider
>using SCTP for that.  I believe this is applicable to most UDP apps.
>  
>
That is not what I said.  Reliable delivery is commonly implemented over 
UDP to avoid head of line blocking, or to implement partial 
reliability.  NFS, ONC RPC, and Tibco Rendezvous are typical examples.

PR-SCTP is preferable to DCCP whenever you need a mixture of reliable 
and unreliable data. DCCP doesn't do that.  All blocking on the 
unreliable PR-SCTP streams can be eliminated by using  unordered 
messages with an appropriate time to live.


>Why can't an app utilizing large messages be run on top of SCTP?
>Can one write a user land NFS server using 64K message size running
>on top of the current draft API?  Sure.  I don't see a problem in
>message delivery locking.  
>
Not with one-to-many sockets, unless your operating system never 
overcommits socket buffers.  Are there any modern ones that do not? I 
doubt it.  Kernel space servers generally use the same protocol stack, 
and similar interfaces, so the same restrictions would normally apply 
there.  There is not a lot of reason to add features to the stack for 
kernel space clients and not expose them to user space as well.


>Is the above claim made because of certain
>experience with a specific implementation?  
>
General engineering principles.  Worst case, not normal case design.

>And how can a "truncated
>message" delivery mechanism help at all? 
>
Again SOCK_DGRAM is only thing POSIX considers reliable or useful enough 
to standardize for one-to-many sockets. AF_UNIX sockets use truncated 
reads with both SOCK_DGRAM (one-to-many) and SOCK_SEQPACKET (one-to-one, 
where implemented), in addition to the traditional SOCK_STREAM mode. 

There is no standard for arbitrarily sized messages over a one-to-many 
socket, nor any existing protocols that support it other than SCTP, as 
far as I know.  SCTP_FRAGMENT_INTERLEAVE and SCTP_PARTIAL_DELIVERY_POINT 
or the equivalent are practical necessities if there is no limit to the 
size of well formed messages.

> Does a NFS server want
>to receive a truncated message?
>  
>
Absolutely.  It allows proper error handling.  Better than letting buggy 
clients or attackers consume a large shared buffer before the server has 
a clue. The only other alternative is have the stack abort associations 
when oversize messages arrive, or to have an SCTP_PARTIAL_DELIVERY_POINT 
appropriately low, so the application can do it.  

NFS runs over UDP,  and somehow does not have a problem with messages 
getting truncated. If I am running with 8K read/write sizes, the read 
buffer will be comparable, and anything larger will be truncated.  But 
with the API as specified, an illegitimate message may not be delivered 
until the receive buffer is almost full, which is wasteful, unnecessary 
and a potentially serious vulnerability. 

- Mark



--------------090903060502030005050407
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Comments inline....<br>
<br>
Kacheong Poon wrote:
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap="">Mark Butler wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Having a tolerance below which atomic deliveries would always be
performed is a good thing.  However, basing the tolerance on the receive
buffer size is problematic.  In many environments setsockopt(SO_RCVBUF)
silently clips your request to system limits and succeeds.  This is done
at the socket level, so the protocol driver doesn't know what was
originally requested. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
This is an implementation issue, not a specification issue.  So
if an implementation cannot honor a requested buffer size, it
should report an error.  If it silently rejects the request yet
returns no error, I consider this a bug.  And to make it worse,
the above seems to suggest that there is no communication between
the socket layer and the protocol stack.  This seems to be a
serious bug.  And for those apps which need to run on this buggy
stack, I guess a getsockopt() afterwards can be a workaround.
Anyway, I don't think the above implementation issue should
interfere with the specification.
  </pre>
</blockquote>
First of all, the exact semantics of SO_RCVBUF and SO_SNDBUF are not
available to be specified at the protocol level because both options
are specified with SOL_SOCKET, not IPPROTO_SCTP or whatever.&nbsp; Both BSD
and Linux silently clip SO_RCVBUF and SO_SNDBUF at the socket layer, by
design.&nbsp; Applications should not depend on getting a specific buffer
size, but should get as much as possible when they request more than
they are allowed.&nbsp; Otherwise every application would have to do a
binary search to reach the maximum buffer size.&nbsp; Of course there is
communication between the socket layer and the protocol stack - it is
just the size actually granted, not what was requested. <br>
<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">With shared buffer implementations, if the tolerance is near the receive
buffer size, then any comparably sized message still serializes the
whole socket, stalling as if a partial delivery had been performed.  
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I think the socket draft actually recommends stack not to use a
shared buffer for 1-N style socket because of many difficulties.
It is difficult, but not doable.  The implementation needs to
be very careful.
  </pre>
</blockquote>
RFC2960 recommends that space be reserved for each association, which
can be difficult to accomplish with a small shared buffer.&nbsp; However, as
far as the API is concerned SO_RCVBUF and SO_SNDBUF are not available
to be re-defined on a lower level.&nbsp; SOL_SOCKET again.&nbsp; Per association
buffers should be specified with a different option.&nbsp; At some point you
run out of memory - you can't guarantee fixed association buffers for
an arbitrary number of associations.&nbsp; Systems that do socket level
accounting just impose a different limit than implementations with a
system level pool. <br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">Basically, the stack would have to decide which message it is going to
deliver, renege everything else, advertise a zero window for every other
association, and so on. A user specified threshold a fraction of the
shared buffer space would be much more appropriate.  If messages greater
than or equal to that size are ULP violations, you want to know about it
as soon as possible.  So we need something like
SCTP_PARTIAL_DELIVERY_POINT (with slightly altered semantics) regardless.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

If we think about it, the above implementation already breaks
an important protocol recommendation, not to shrink the receive
window.  So what the above says is that a receiver A tells a
sender B that its receive window is X.  Then after B sends A 10
bytes, A tells B that the receive window, without ack'ing that 10
bytes, is now much less than X - 10 because a sender of another
association controlled under the same 1-N style socket has sent
64K bytes.  I consider this a bug in the implementation.
  </pre>
</blockquote>
SO_RCVBUF is generally interpreted as a limit, not a reservation.&nbsp;
Let's say you have 10MB of system buffer space, and you set per
association buffering to 1 MB - are you really going to start rejecting
connections after the first ten or are you going to overcommit?&nbsp; Most
operating systems overcommit socket buffers, which leaves the
possibility that packets will be dropped no matter what the advertised
window is.&nbsp;&nbsp; If overcommitting were not a net gain, no one would do it.<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">However, there are also people who want to reliably receive large
messages on one-to-many sockets.  With locked partial delivery, it can't
be done.  Locked partial delivery is fundamentally flawed on one-to-many
sockets - so you either force  the ULP to use small messages, or allow
fragment interleaving.  Artificially limiting the message size is a bad
idea for many reasons.  Fragment interleaving is a much better
alternative for applications like MPI, hence the proposed
SCTP_FRAGMENT_INTERLEAVE option.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I don't see why there is a lock in partial delivery for normal
app.  Using the proposed wording change (no code change for most
implementations out there) I made in last email, an app specifies
a receive buffer size of 128KB as it is the app protocol message
size.  Will the app then send a 200KB message just to trigger
partial delivery?
  </pre>
</blockquote>
Partial delivery is either locked or unlocked, regardless of whether
there is any impact.&nbsp; In order for partial delivery to be avoided in
your scenario, the implementation must actually _reserve_ space for
each association, not just set a limit. If you have one thousand peers,
are you going to reserve 200MB of memory so that partial delivery is
guaranteed not be incurred with 128KB messages?&nbsp;&nbsp;&nbsp; If not, stalling is
actually _more_ likely because of early partial delivery on a
non-shared buffer implementation, than one with the equivalent usage of
a shared buffer.<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">It can't be used to multi-stream
large messages because there is no interleaving.  These are primarily
API, not protocol limitations.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

As I have mentioned a couple times, this is an implementation
issue.  I don't think we should mix implementation and
specification together.
  </pre>
</blockquote>
Changing the semantics of SOL_SOCKET options is not just an
implementation issue.&nbsp; But more to the point, specifying critical
semantics that cannot be widely implemented is a prescription for
irrelevance.<br>
<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <blockquote type="cite">
    <pre wrap="">Even where traditional semantics are not strictly necessary, most
applications have to work in environments where SCTP support is not
available or where SCTP is blocked or hindered by firewalls.  An
application that supports SCTP must generally also support either TCP or
UDP.  If it is difficult to use the same code base for both protocols,
an application developer is likely to dispense with SCTP support
completely.
    </pre>
  </blockquote>
  <pre wrap=""><!---->

I still do not see a strong example about the difficulty in using
SCTP.  It all seems to be an app architecture design issue.  For
example, I read a claim that to use 1-1 style socket, accept() and
then fork() should be done.  This is simply a design choice and is
not true in general.  It seems that there are many "myths" in using
1-1 style socket...  And FWIW, I believe most, if not all, current
TCP apps can be changed to use SCTP with very minor changes or
even just one line change, the socket() call.  I remember Randy
and/or Peter has changed the Apache web server to run on top of
SCTP by making</pre>
</blockquote>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap=""> some very minor changes.
  </pre>
</blockquote>
There is no reason to add an SCTP support to a TCP application, unless
considerable advantage can be gained by doing so.&nbsp; For many
applications, those advantages are hard to come by because you cannot
easily control where the message boundaries are.&nbsp; So you either get too
many where they are unnecessary, or you get them in the wrong places.&nbsp; <br>
<br>
To provide a significant advantage HTTP over SCTP would need MSG_EOR
control on writes, an SCTP_CORK option, SCTP_PARTIAL_DELIVERY_POINT or
equivalent,&nbsp; stream specific sockets, and a protocol extension for
transmit interleaving across streams.&nbsp; One-to-many implementations
would need SCTP_FRAGMENT_INTERLEAVE as well. <br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap="">
And it is an "interesting" claim that most UDP apps can be changed
to use SCTP.  People writing VoIP software using UDP may
experiment with DCCP.  But I don't think they will ever consider
using SCTP for that.  I believe this is applicable to most UDP apps.
  </pre>
</blockquote>
That is not what I said.&nbsp; Reliable delivery is commonly implemented
over UDP to avoid head of line blocking, or to implement partial
reliability.&nbsp; NFS, ONC RPC, and Tibco Rendezvous are typical examples.<br>
<br>
PR-SCTP is preferable to DCCP whenever you need a mixture of reliable
and unreliable data. DCCP doesn't do that.&nbsp; All blocking on the
unreliable PR-SCTP streams can be eliminated by using&nbsp; unordered
messages with an appropriate time to live. <br>
<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap="">Why can't an app utilizing large messages be run on top of SCTP?
Can one write a user land NFS server using 64K message size running
on top of the current draft API?  Sure.  I don't see a problem in
message delivery locking.  </pre>
</blockquote>
Not with one-to-many sockets, unless your operating system never
overcommits socket buffers.&nbsp; Are there any modern ones that do not? I
doubt it.&nbsp; Kernel space servers generally use the same protocol stack,
and similar interfaces, so the same restrictions would normally apply
there.&nbsp; There is not a lot of reason to add features to the stack for
kernel space clients and not expose them to user space as well.<br>
<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap="">Is the above claim made because of certain
experience with a specific implementation?  </pre>
</blockquote>
General engineering principles.&nbsp; Worst case, not normal case design.<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap="">And how can a "truncated
message" delivery mechanism help at all? </pre>
</blockquote>
Again SOCK_DGRAM is only thing POSIX considers reliable or useful
enough to standardize for one-to-many sockets. AF_UNIX sockets use
truncated reads with both SOCK_DGRAM (one-to-many) and SOCK_SEQPACKET
(one-to-one, where implemented), in addition to the traditional
SOCK_STREAM mode.&nbsp; <br>
<br>
There is no standard for arbitrarily sized messages over a one-to-many
socket, nor any existing protocols that support it other than SCTP, as
far as I know.&nbsp; SCTP_FRAGMENT_INTERLEAVE and
SCTP_PARTIAL_DELIVERY_POINT or the equivalent are practical necessities
if there is no limit to the size of well formed messages.<br>
<br>
<blockquote cite="mid43BF3821.5010700@sun.com" type="cite">
  <pre wrap=""> Does a NFS server want
to receive a truncated message?
  </pre>
</blockquote>
Absolutely.&nbsp; It allows proper error handling.&nbsp; Better than letting
buggy clients or attackers consume a large shared buffer before the
server has a clue. The only other alternative is have the stack abort
associations when oversize messages arrive, or to have an
SCTP_PARTIAL_DELIVERY_POINT appropriately low, so the application can
do it.&nbsp;&nbsp; <br>
<br>
NFS runs over UDP,&nbsp; and somehow does not have a problem with messages
getting truncated. If I am running with 8K read/write sizes, the read
buffer will be comparable, and anything larger will be truncated.&nbsp; But
with the API as specified, an illegitimate message may not be delivered
until the receive buffer is almost full, which is wasteful, unnecessary
and a potentially serious vulnerability.&nbsp; <br>
<br>
- Mark<br>
<br>
<br>
</body>
</html>

--------------090903060502030005050407--


--===============0626799002==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============0626799002==--




From tsvwg-bounces@ietf.org Sun Jan 08 21:32:15 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EvmpT-0007bx-Be; Sun, 08 Jan 2006 21:32:15 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EvmpR-0007bs-Ss
	for tsvwg@megatron.ietf.org; Sun, 08 Jan 2006 21:32:13 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA06552
	for <tsvwg@ietf.org>; Sun, 8 Jan 2006 21:30:55 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Evmvq-0004FF-Cp
	for tsvwg@ietf.org; Sun, 08 Jan 2006 21:38:51 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NDO68759; Sun, 8 Jan 2006 19:31:59 -0700
Message-ID: <43C1CB29.7070402@middle.net>
Date: Sun, 08 Jan 2006 19:32:09 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bidulock@openss7.org
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org>
In-Reply-To: <20060106224721.A30197@openss7.org>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: d094b18a574860cb9e2fe5fedfbcc179
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1964622205=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1964622205==
Content-Type: multipart/alternative;
	boundary="------------040409030708090004000503"

This is a multi-part message in MIME format.
--------------040409030708090004000503
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Brian F. G. Bidulock wrote:

>Mark,
>
>Mark Butler wrote:                               (Thu, 05 Jan 2006 15:15:52)
>  
>
>>Are there any non-telephony SCTP applications in wide distribution? I 
>>don't think so.
>>    
>>
>
>Yes there are non-telephony SCTP applications in wide distribution.
>
>A couple of examples: SCTP has been used by the SCIOP for RT-CORBA.  TAO
>has supported it for some time.  It is interesting that CORBA was first
>specified by the OMG using UDP, then TCP, and finally SCTP.  NFS also
>went from UDP to TCP and will likely land on SCTP.
>  
>
Okay - that is a good example.

>Another is iSCSI and, of course, DDP.
>  
>
Sure there are specifications - but who actually runs iSCSI or DDP over 
SCTP yet, let alone has an implementation in wide distribution?  I 
believe both are pretty much at the testing stage.

>SCTP is also a natural replacement for Ethernet bonding on cPCI
>backplanes.  That is, instead of Ethernet bonding two rails together,
>SCTP is used to achieve redundancy across both rails while permitting
>twice the failure scenario throughput.  CGL specified this and I think
>the SAF too.
>
>Of course BICC, SIP, TI-SCCP, MEGACO/H.248, H.225/H.323, and SIGTRAN UAs
>are existing implementations of SCTP, however, any application that does
>not wish to experience degraded performance in a noisy environment and
>is currently using TCP (such as the RT CORBA was and NFS is) will
>benefit and eventually move to SCTP.
>
>Then there is Randall's SCTP web server...
>
>  
>
>>SCTP is a natural replacement for UDP, but there is no SOCK_DGRAM.
>>    
>>
>
>Well, no, it is not a natural replacement for UDP.  UDP is a
>connectionless datagram protocol.  SCTP is a connection oriented
>protocol.
>  
>
DCCP, the IETF anointed replacement for UDP, is connection oriented.  
There are several reasons why - number one is congestion control,  
number two is reliable control, number three is middlebox traversal.

Most common UDP applications are implicitly connection oriented.  The 
notable exception is DNS.  Virtually everything else could be handled 
nicely using SCTP or DCCP.

>>It is a natural replacement for TCP, but there are no partial writes
>>or early delivery.
>>    
>>
>
>Well, no, not a natural replacement.  SCTP preserves (well, is capable
>of preserving) record boundaries and TCP cannot.  
>
Adding record boundaries in convenient places doesn't break anything.

>Partial writes to SCTP
>are simple when emulating TCP: the implementation can simply close the
>SSN at the end of the partial write (because record boundaries are to be
>ignored).  
>
However, presumably one supports SCTP to get better semantics, which 
means controlling record boundaries in SCTP mode, which you can't do, 
and which causes efficiency problems even if you don't care.

>Multiple stream interleaving is not an issue, because when
>emulating TCP, the implementation uses only one one stream (that is all
>that TCP has).  That is, under a SOCK_STREAM type of socket, it is
>possible for an SCTP implementation to exactly mimic the TCP Sockets API
>(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
>the only required standard TCP options).
>  
>
A proper socket API should provide stream specific sockets to support a 
bundle of SOCK_STREAM style connections on the same association.

>  
>
>>It can't be used to multi-stream large messages because there is no
>>interleaving.
>>    
>>
>
>Well, neither can TCP.
>  
>
Again, presumably one would support SCTP to take advantage of 
capabilities it provides (or could easily provide) that TCP does not.  
Otherwise what is the point? 


>  
>
>>These are primarily API, not protocol limitations.
>>    
>>
>
>SCTP's inability to multi-stream large messages is not a limitation of
>the API, it is a limitation of the protocol.
>  
>
I said "primarily".  The protocol limitiation could be taken care of 
with a trivial extension - an INIT / INIT ACK parameter signalling 
support for interleaved messages (e.g. when SCTP_FRAGMENT_INTERLEAVE is 
enabled or if the implementation does direct placement where possible).

>I think you are finally back to where I was with SCCP and the SIGTRAN
>SUA.  We had the choice of either letting SCTP do all segmentation and
>reassembly of messages for SUA, or putting SCCP's segmentation and
>reassembly into SUA on top of SCTP.  That latter was necessary because
>of SCTP's inability to interleave large messages.  Therefore, the
>application (SUA) fragments and reassembles messages across the SCTP
>association.
>
>It is something that SCTP forces on the API and application, but let's
>be clear: it is a protocol limitation.
>
>If SCTP had included a segment number in the DATA chunk header, instead
>of just a beginning and ending flag, there would be not problem
>interleaving any messages.
>  
>
I would prefer an offset, for out of order direct placement.  By the way 
who uses the ppid field and for what? 

>Strangely, it looks like we are doomed to this limitation because the
>editors of the protocol will not change it.
>  
>
A negotiated interleave option would work around that problem.

>>Even where traditional semantics are not strictly necessary, most 
>>applications have to work in environments where SCTP support is not 
>>available or where SCTP is blocked or hindered by firewalls.  An 
>>application that supports SCTP must generally also support either TCP or 
>>UDP.  If it is difficult to use the same code base for both protocols, 
>>an application developer is likely to dispense with SCTP support completely.
>>    
>>
>
>Well, no, that is really not the case either.  When some application or
>protocol is adapted to SCTP, is it because SCTP provides some capability
>that is lacking in TCP (such as multi-homing, multi-streaming, unordered
>and ordered delivery, quick association setup and tear-down, better
>attack resilience).  Of all these, taking advantage of multi-streaming,
>in particular, requires changes in the application and the API.  An
>application cannot take advantage of multi-streaming without specifying
>on send what stream to which to place a message.  Also on the receive
>side, the application might need to know (or specify) what stream it
>came from (or is to be read from).
>  
>
Stream specific sockets would fix the stream specification problem quite 
nicely.  All the other stuff can share a code base with TCP with only 
trivial changes when in SCTP mode.

>>The main issue is should SCTP be a general purpose transport protocol or 
>>not?  I can understand the sentiment to stay focused on supporting small 
>>messages well, and letting adaptation layers handle larger ones.  I 
>>would like to see those adaptation layers in-kernel, but that is beside 
>>the point.
>>    
>>
>
>Well, it is a general purpose transport protocol.  One that has clear
>and specific advantages over other available protocols, but also has its
>own limitations, artificial or otherwise.
>  
>
It could be, if the socket API were equally general.

>Get real: any application that is passing records across TCP is already
>performing its own segmentation and reassembly, and, of course, even has
>to detect its own record boundaries.  The same application running over
>UDP cannot exceed a rather restrictive maximum message size.  Does this
>mean that UDP and TCP are not general purpose transport protocols in
>your view?
>  
>
No, not in the sense I mean here. 

>If the application uses UDP it is already restricting message size to a
>maximum.  If the application uses TCP it already segments and
>reassembles large records, and must detect record boundaries within the
>data stream.  
>
Record boundaries yes, SAR no, on TCP that is. 

>Doing either is certainly not a limitation for SCTP in
>comparison to UDP or TCP.
>
>OTOH, ISO protocols do not require application segmentation, reassembly
>or record boundary detection and yet support partial writes and reads.
>Therefore, SCTP is only limited when compared to ISO protocols, but then
>so are TCP and UDP.
>  
>
DECnet supports partial writes and arbitrary record boundaries too.  
Doing it only on reads but not on writes is rather odd.

 - Mark



--------------040409030708090004000503
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brian F. G. Bidulock wrote:<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">Mark,

Mark Butler wrote:                               (Thu, 05 Jan 2006 15:15:52)
  </pre>
  <blockquote type="cite">
    <pre wrap="">Are there any non-telephony SCTP applications in wide distribution? I 
don't think so.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yes there are non-telephony SCTP applications in wide distribution.

A couple of examples: SCTP has been used by the SCIOP for RT-CORBA.  TAO
has supported it for some time.  It is interesting that CORBA was first
specified by the OMG using UDP, then TCP, and finally SCTP.  NFS also
went from UDP to TCP and will likely land on SCTP.
  </pre>
</blockquote>
Okay - that is a good example.<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
Another is iSCSI and, of course, DDP.
  </pre>
</blockquote>
Sure there are specifications - but who actually runs iSCSI or DDP over
SCTP yet, let alone has an implementation in wide distribution?&nbsp; I
believe both are pretty much at the testing stage.<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
SCTP is also a natural replacement for Ethernet bonding on cPCI
backplanes.  That is, instead of Ethernet bonding two rails together,
SCTP is used to achieve redundancy across both rails while permitting
twice the failure scenario throughput.  CGL specified this and I think
the SAF too.

Of course BICC, SIP, TI-SCCP, MEGACO/H.248, H.225/H.323, and SIGTRAN UAs
are existing implementations of SCTP, however, any application that does
not wish to experience degraded performance in a noisy environment and
is currently using TCP (such as the RT CORBA was and NFS is) will
benefit and eventually move to SCTP.

Then there is Randall's SCTP web server...

  </pre>
  <blockquote type="cite">
    <pre wrap="">SCTP is a natural replacement for UDP, but there is no SOCK_DGRAM.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, no, it is not a natural replacement for UDP.  UDP is a
connectionless datagram protocol.  SCTP is a connection oriented
protocol.
  </pre>
</blockquote>
DCCP, the IETF anointed replacement for UDP, is connection oriented.&nbsp;
There are several reasons why - number one is congestion control,&nbsp;
number two is reliable control, number three is middlebox traversal. <br>
<br>
Most common UDP applications are implicitly connection oriented.&nbsp; The
notable exception is DNS.&nbsp; Virtually everything else could be handled
nicely using SCTP or DCCP.<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">It is a natural replacement for TCP, but there are no partial writes
or early delivery.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, no, not a natural replacement.  SCTP preserves (well, is capable
of preserving) record boundaries and TCP cannot.  </pre>
</blockquote>
Adding record boundaries in convenient places doesn't break anything.<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">Partial writes to SCTP
are simple when emulating TCP: the implementation can simply close the
SSN at the end of the partial write (because record boundaries are to be
ignored).  </pre>
</blockquote>
However, presumably one supports SCTP to get better semantics, which
means controlling record boundaries in SCTP mode, which you can't do,
and which causes efficiency problems even if you don't care.<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">Multiple stream interleaving is not an issue, because when
emulating TCP, the implementation uses only one one stream (that is all
that TCP has).  That is, under a SOCK_STREAM type of socket, it is
possible for an SCTP implementation to exactly mimic the TCP Sockets API
(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
the only required standard TCP options).
  </pre>
</blockquote>
A proper socket API should provide stream specific sockets to support a
bundle of SOCK_STREAM style connections on the same association. <br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">It can't be used to multi-stream large messages because there is no
interleaving.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, neither can TCP.
  </pre>
</blockquote>
Again, presumably one would support SCTP to take advantage of
capabilities it provides (or could easily provide) that TCP does not.&nbsp;
Otherwise what is the point?&nbsp; <br>
<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">These are primarily API, not protocol limitations.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
SCTP's inability to multi-stream large messages is not a limitation of
the API, it is a limitation of the protocol.
  </pre>
</blockquote>
I said "primarily".&nbsp; The protocol limitiation could be taken care of
with a trivial extension - an INIT / INIT ACK parameter signalling
support for interleaved messages (e.g. when SCTP_FRAGMENT_INTERLEAVE is
enabled or if the implementation does direct placement where possible).<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">I think you are finally back to where I was with SCCP and the SIGTRAN
SUA.  We had the choice of either letting SCTP do all segmentation and
reassembly of messages for SUA, or putting SCCP's segmentation and
reassembly into SUA on top of SCTP.  That latter was necessary because
of SCTP's inability to interleave large messages.  Therefore, the
application (SUA) fragments and reassembles messages across the SCTP
association.

It is something that SCTP forces on the API and application, but let's
be clear: it is a protocol limitation.

If SCTP had included a segment number in the DATA chunk header, instead
of just a beginning and ending flag, there would be not problem
interleaving any messages.
  </pre>
</blockquote>
I would prefer an offset, for out of order direct placement.&nbsp; By the
way who uses the ppid field and for what?&nbsp; <br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
Strangely, it looks like we are doomed to this limitation because the
editors of the protocol will not change it.
  </pre>
</blockquote>
A negotiated interleave option would work around that problem. <br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">Even where traditional semantics are not strictly necessary, most 
applications have to work in environments where SCTP support is not 
available or where SCTP is blocked or hindered by firewalls.  An 
application that supports SCTP must generally also support either TCP or 
UDP.  If it is difficult to use the same code base for both protocols, 
an application developer is likely to dispense with SCTP support completely.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, no, that is really not the case either.  When some application or
protocol is adapted to SCTP, is it because SCTP provides some capability
that is lacking in TCP (such as multi-homing, multi-streaming, unordered
and ordered delivery, quick association setup and tear-down, better
attack resilience).  Of all these, taking advantage of multi-streaming,
in particular, requires changes in the application and the API.  An
application cannot take advantage of multi-streaming without specifying
on send what stream to which to place a message.  Also on the receive
side, the application might need to know (or specify) what stream it
came from (or is to be read from).
  </pre>
</blockquote>
Stream specific sockets would fix the stream specification problem
quite nicely.&nbsp; All the other stuff can share a code base with TCP with
only trivial changes when in SCTP mode.<br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">The main issue is should SCTP be a general purpose transport protocol or 
not?  I can understand the sentiment to stay focused on supporting small 
messages well, and letting adaptation layers handle larger ones.  I 
would like to see those adaptation layers in-kernel, but that is beside 
the point.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well, it is a general purpose transport protocol.  One that has clear
and specific advantages over other available protocols, but also has its
own limitations, artificial or otherwise.
  </pre>
</blockquote>
It could be, if the socket API were equally general. <br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">Get real: any application that is passing records across TCP is already
performing its own segmentation and reassembly, and, of course, even has
to detect its own record boundaries.  The same application running over
UDP cannot exceed a rather restrictive maximum message size.  Does this
mean that UDP and TCP are not general purpose transport protocols in
your view?
  </pre>
</blockquote>
No, not in the sense I mean here.&nbsp; <br>
<br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">
If the application uses UDP it is already restricting message size to a
maximum.  If the application uses TCP it already segments and
reassembles large records, and must detect record boundaries within the
data stream.  </pre>
</blockquote>
Record boundaries yes, SAR no, on TCP that is.&nbsp; <br>
<blockquote cite="mid20060106224721.A30197@openss7.org" type="cite">
  <pre wrap="">Doing either is certainly not a limitation for SCTP in
comparison to UDP or TCP.

OTOH, ISO protocols do not require application segmentation, reassembly
or record boundary detection and yet support partial writes and reads.
Therefore, SCTP is only limited when compared to ISO protocols, but then
so are TCP and UDP.
  </pre>
</blockquote>
DECnet supports partial writes and arbitrary record boundaries too.&nbsp;
Doing it only on reads but not on writes is rather odd.<br>
<br>
&nbsp;- Mark<br>
<br>
<br>
</body>
</html>

--------------040409030708090004000503--


--===============1964622205==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1964622205==--




From tsvwg-bounces@ietf.org Sun Jan 08 22:27:10 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Evngc-0007Nu-Jw; Sun, 08 Jan 2006 22:27:10 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Evnga-0007Nm-9x
	for tsvwg@megatron.ietf.org; Sun, 08 Jan 2006 22:27:08 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA09467
	for <tsvwg@ietf.org>; Sun, 8 Jan 2006 22:25:50 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[XNVm9tiwTUb15PCymkuundW6yjMwvMY8])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Evnn0-0005ZR-Bs
	for tsvwg@ietf.org; Sun, 08 Jan 2006 22:33:46 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:BEovH7zAcS9CX3W8Q/BmpToSbdY5XHLa@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k093Qvw04681;
	Sun, 8 Jan 2006 20:26:57 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k093QvJ08429;
	Sun, 8 Jan 2006 20:26:57 -0700
Date: Sun, 8 Jan 2006 20:26:57 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Message-ID: <20060108202657.A8327@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43C1CB29.7070402@middle.net>;
	from butlerm@middle.net on Sun, Jan 08, 2006 at 07:32:09PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6cca30437e2d04f45110f2ff8dc1b1d5
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark,

Mark Butler wrote:                                                                    (Sun, 08 Jan 2006 19:32:09)
> 
> Partial writes to SCTP
> are simple when emulating TCP: the implementation can simply close the
> SSN at the end of the partial write (because record boundaries are to be
> ignored).  
> 
>    However,  presumably  one supports SCTP to get better semantics, which
>    means  controlling record boundaries in SCTP mode, which you can't do,
>    and which causes efficiency problems even if you don't care.

No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.

> 
> Multiple stream interleaving is not an issue, because when
> emulating TCP, the implementation uses only one one stream (that is all
> that TCP has).  That is, under a SOCK_STREAM type of socket, it is
> possible for an SCTP implementation to exactly mimic the TCP Sockets API
> (right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
> the only required standard TCP options).
>   
> 
>    A  proper socket API should provide stream specific sockets to support
>    a bundle of SOCK_STREAM style connections on the same association.

Why?  Where is it necessary?

> It can't be used to multi-stream large messages because there is no
> interleaving.
>     
> 
> Well, neither can TCP.
>   
> 
>    Again,  presumably  one  would  support  SCTP  to  take  advantage  of
>    capabilities  it provides (or could easily provide) that TCP does not.
>    Otherwise what is the point?

SCTP does not support multistreaming of large messages either.

>    I  would  prefer an offset, for out of order direct placement.  By the
>    way who uses the ppid field and for what?

SIGTRAN UAs, to identify the protocol.

> Strangely, it looks like we are doomed to this limitation because the
> editors of the protocol will not change it.
>   
>    A negotiated interleave option would work around that problem.

Not in the protocol.

>    Stream  specific  sockets  would  fix the stream specification problem
>    quite nicely.  All the other stuff can share a code base with TCP with
>    only trivial changes when in SCTP mode.

There is no such thing as a stream socket.  The protocol does not support one
either.

> 
> Well, it is a general purpose transport protocol.  One that has clear
> and specific advantages over other available protocols, but also has its
> own limitations, artificial or otherwise.
>   
> 
>    It could be, if the socket API were equally general.

A protocol and an interface are two different things.  The protocol is general
purpose, the API is what you make of it.

--brian

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sun Jan 08 23:47:09 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Evow1-00036m-4F; Sun, 08 Jan 2006 23:47:09 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Evovz-00036C-Hi
	for tsvwg@megatron.ietf.org; Sun, 08 Jan 2006 23:47:07 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA14362
	for <tsvwg@ietf.org>; Sun, 8 Jan 2006 23:45:48 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Evp2O-0007j0-0j
	for tsvwg@ietf.org; Sun, 08 Jan 2006 23:53:46 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NFD65652; Sun, 8 Jan 2006 21:46:52 -0700
Message-ID: <43C1EAC6.9000906@middle.net>
Date: Sun, 08 Jan 2006 21:47:02 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org>
In-Reply-To: <20060108202657.A8327@openss7.org>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 578c2c9d0cb01ffe6e1ca36540edd070
Cc: bidulock@openss7.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1892890458=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1892890458==
Content-Type: multipart/alternative;
	boundary="------------080601070102040701010409"

This is a multi-part message in MIME format.
--------------080601070102040701010409
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Brian F. G. Bidulock wrote:

>Mark,
>
>Mark Butler wrote:                                                                    (Sun, 08 Jan 2006 19:32:09)
>  
>
>>Partial writes to SCTP
>>are simple when emulating TCP: the implementation can simply close the
>>SSN at the end of the partial write (because record boundaries are to be
>>ignored).  
>>
>>   However,  presumably  one supports SCTP to get better semantics, which
>>   means  controlling record boundaries in SCTP mode, which you can't do,
>>   and which causes efficiency problems even if you don't care.
>>    
>>
>
>No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.
>  
>
That is a non sequitur.  An advantage does not need to be endorsed to be 
desirable.   Furthermore, SCTP is only available to most through the 
available socket API.  The standard socket API might as well be the 
protocol, for most practical purposes.  It is a common metonymy.

>>Multiple stream interleaving is not an issue, because when
>>emulating TCP, the implementation uses only one one stream (that is all
>>that TCP has).  That is, under a SOCK_STREAM type of socket, it is
>>possible for an SCTP implementation to exactly mimic the TCP Sockets API
>>(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
>>the only required standard TCP options).
>>  
>>
>>   A  proper socket API should provide stream specific sockets to support
>>   a bundle of SOCK_STREAM style connections on the same association.
>>    
>>
>
>Why?  Where is it necessary?
>  
>
Not necessary just desirable.  iSCSI, DDP, HTTP, NFS,  and SMB often 
establish multiple parallel TCP connections. The advantage of running 
them as streams on the same association is lower setup latency.  If the 
protocol is stateless like HTTP or LDAP, you can eliminate connection 
establishment delay completely for follow-on requests.   Another example 
is OpenSSH, which internally multiplexes multiple flow controlled 
streams over a single TCP connection. Running each as an SCTP stream on 
the same association would perform better without the adverse 
authentication overhead of multiple TCP connections.

>  
>
>>It can't be used to multi-stream large messages because there is no
>>interleaving.
>>    
>>
>>Well, neither can TCP.
>>  
>>
>>   Again,  presumably  one  would  support  SCTP  to  take  advantage  of
>>   capabilities  it provides (or could easily provide) that TCP does not.
>>   Otherwise what is the point?
>>    
>>
>
>SCTP does not support multistreaming of large messages either.
>  
>
It could and it should.

>  
>
>>   I  would  prefer an offset, for out of order direct placement.  By the
>>   way who uses the ppid field and for what?
>>    
>>
>
>SIGTRAN UAs, to identify the protocol.
>  
>
Well, I think it is dead weight.  Headers like that should be done at 
the ULP level, once per message, not once per fragment.    It would be 
nice if an application could say, I don't need ppids, you may use the 
slot for other purposes (like direct placement).

>>Strangely, it looks like we are doomed to this limitation because the
>>editors of the protocol will not change it.
>>  
>>   A negotiated interleave option would work around that problem.
>>    
>>
>
>Not in the protocol.
>  
>
No kidding. One would add it to the protocol, like PR-SCTP.  Twenty 
lines of code, tops.

>  
>
>>   Stream  specific  sockets  would  fix the stream specification problem
>>   quite nicely.  All the other stuff can share a code base with TCP with
>>   only trivial changes when in SCTP mode.
>>    
>>
>
>There is no such thing as a stream socket.  The protocol does not support one
>either.
>  
>
Yet, that is.  The protocol has nothing to do with whether there are 
stream level sockets or not. You simply serialize access to the 
association appropriately.

 - Mark

--------------080601070102040701010409
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brian F. G. Bidulock wrote:<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <pre wrap="">Mark,

Mark Butler wrote:                                                                    (Sun, 08 Jan 2006 19:32:09)
  </pre>
  <blockquote type="cite">
    <pre wrap="">Partial writes to SCTP
are simple when emulating TCP: the implementation can simply close the
SSN at the end of the partial write (because record boundaries are to be
ignored).  

   However,  presumably  one supports SCTP to get better semantics, which
   means  controlling record boundaries in SCTP mode, which you can't do,
   and which causes efficiency problems even if you don't care.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.
  </pre>
</blockquote>
That is a non sequitur.&nbsp; An advantage does not need to be endorsed to
be desirable.&nbsp;&nbsp; Furthermore, SCTP is only available to most through the
available socket API.&nbsp; The standard socket API might as well be the
protocol, for most practical purposes.&nbsp; It is a common metonymy.<br>
<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">Multiple stream interleaving is not an issue, because when
emulating TCP, the implementation uses only one one stream (that is all
that TCP has).  That is, under a SOCK_STREAM type of socket, it is
possible for an SCTP implementation to exactly mimic the TCP Sockets API
(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
the only required standard TCP options).
  

   A  proper socket API should provide stream specific sockets to support
   a bundle of SOCK_STREAM style connections on the same association.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Why?  Where is it necessary?
  </pre>
</blockquote>
Not necessary just desirable.&nbsp; iSCSI, DDP, HTTP, NFS,&nbsp; and SMB often
establish multiple parallel TCP connections. The advantage of running
them as streams on the same association is lower setup latency.&nbsp; If the
protocol is stateless like HTTP or LDAP, you can eliminate connection
establishment delay completely for follow-on requests.&nbsp;&nbsp; Another
example is OpenSSH, which internally multiplexes multiple flow
controlled streams over a single TCP connection. Running each as an
SCTP stream on the same association would perform better without the
adverse authentication overhead of multiple TCP connections.<br>
<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">It can't be used to multi-stream large messages because there is no
interleaving.
    

Well, neither can TCP.
  

   Again,  presumably  one  would  support  SCTP  to  take  advantage  of
   capabilities  it provides (or could easily provide) that TCP does not.
   Otherwise what is the point?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
SCTP does not support multistreaming of large messages either.
  </pre>
</blockquote>
It could and it should.<br>
<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">   I  would  prefer an offset, for out of order direct placement.  By the
   way who uses the ppid field and for what?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
SIGTRAN UAs, to identify the protocol.
  </pre>
</blockquote>
Well, I think it is dead weight.&nbsp; Headers like that should be done at
the ULP level, once per message, not once per fragment.&nbsp;&nbsp;&nbsp; It would be
nice if an application could say, I don't need ppids, you may use the
slot for other purposes (like direct placement).<br>
<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">Strangely, it looks like we are doomed to this limitation because the
editors of the protocol will not change it.
  
   A negotiated interleave option would work around that problem.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Not in the protocol.
  </pre>
</blockquote>
No kidding. One would add it to the protocol, like PR-SCTP.&nbsp; Twenty
lines of code, tops.<br>
<br>
<blockquote cite="mid20060108202657.A8327@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">   Stream  specific  sockets  would  fix the stream specification problem
   quite nicely.  All the other stuff can share a code base with TCP with
   only trivial changes when in SCTP mode.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
There is no such thing as a stream socket.  The protocol does not support one
either.
  </pre>
</blockquote>
Yet, that is.&nbsp; The protocol has nothing to do with whether there are
stream level sockets or not. You simply serialize access to the
association appropriately. <br>
<br>
&nbsp;- Mark<br>
</body>
</html>

--------------080601070102040701010409--


--===============1892890458==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1892890458==--




From tsvwg-bounces@ietf.org Mon Jan 09 00:57:55 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Evq2V-0005Db-52; Mon, 09 Jan 2006 00:57:55 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Evq2S-0005D3-5y
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 00:57:52 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id AAA17846
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 00:56:33 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[A6EjCxY88JlWDaXjPOgi5wMg77FH1sbF])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Evq8r-00016X-KJ
	for tsvwg@ietf.org; Mon, 09 Jan 2006 01:04:32 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:I/QMMrAmRfoftaxqrTJYY7+dZrsHv6Xc@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k095viw07012;
	Sun, 8 Jan 2006 22:57:44 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k095vhp09633;
	Sun, 8 Jan 2006 22:57:43 -0700
Date: Sun, 8 Jan 2006 22:57:43 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Message-ID: <20060108225743.A9590@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org> <43C1EAC6.9000906@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43C1EAC6.9000906@middle.net>;
	from butlerm@middle.net on Sun, Jan 08, 2006 at 09:47:02PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93e7fb8fef2e780414389440f367c879
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark,

Mark Butler wrote:                                                    (Sun, 08 Jan 2006 21:47:02)
> 
>    Brian F. G. Bidulock wrote:
> 
> Mark,
> 
> Mark Butler wrote:                                                             
>        (Sun, 08 Jan 2006 19:32:09)
>   
> 
> Partial writes to SCTP
> are simple when emulating TCP: the implementation can simply close the
> SSN at the end of the partial write (because record boundaries are to be
> ignored).  
> 
>    However,  presumably  one supports SCTP to get better semantics, which
>    means  controlling record boundaries in SCTP mode, which you can't do,
>    and which causes efficiency problems even if you don't care.
>     
> 
> No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.
>   
> 
>    That  is a non sequitur.  An advantage does not need to be endorsed to
>    be  desirable.    Furthermore,  SCTP is only available to most through
>    the  available  socket  API.  The standard socket API might as well be
>    the protocol, for most practical purposes.  It is a common metonymy.

The draft API is not a standard of any kind.

> 
> Multiple stream interleaving is not an issue, because when
> emulating TCP, the implementation uses only one one stream (that is all
> that TCP has).  That is, under a SOCK_STREAM type of socket, it is
> possible for an SCTP implementation to exactly mimic the TCP Sockets API
> (right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
> the only required standard TCP options).
>   
> 
>    A  proper socket API should provide stream specific sockets to support
>    a bundle of SOCK_STREAM style connections on the same association.

You are free to use whatever API you feel meets your needs.

>     
> 
> Why?  Where is it necessary?
>   
> 
>    Not  necessary  just desirable.  iSCSI, DDP, HTTP, NFS,  and SMB often
>    establish  multiple parallel TCP connections. The advantage of running
>    them  as  streams  on the same association is lower setup latency.  If
>    the  protocol  is  stateless  like  HTTP  or  LDAP,  you can eliminate
>    connection  establishment  delay  completely  for  follow-on requests.
>    Another example is OpenSSH, which internally multiplexes multiple flow
>    controlled  streams  over  a single TCP connection. Running each as an
>    SCTP  stream  on the same association would perform better without the
>    adverse authentication overhead of multiple TCP connections.
> 
>   
> 
> It can't be used to multi-stream large messages because there is no
> interleaving.
>     
> 
> Well, neither can TCP.
>   
> 
>    Again,  presumably  one  would  support  SCTP  to  take  advantage  of
>    capabilities  it provides (or could easily provide) that TCP does not.
>    Otherwise what is the point?
>     
> 
> SCTP does not support multistreaming of large messages either.
>   
> 
>    It could and it should.

Then request the protocol be changed, not just the API.

> 
>   
> 
>    I  would  prefer an offset, for out of order direct placement.  By the
>    way who uses the ppid field and for what?
>     
> 
> SIGTRAN UAs, to identify the protocol.
>   
> 
>    Well,  I think it is dead weight.  Headers like that should be done at
>    the ULP level, once per message, not once per fragment.    It would be
>    nice  if an application could say, I don't need ppids, you may use the
>    slot for other purposes (like direct placement).

That was never the purpose of the PPID.

> 
> Strangely, it looks like we are doomed to this limitation because the
> editors of the protocol will not change it.
>   
>    A negotiated interleave option would work around that problem.
>     
> 
> Not in the protocol.
>   
> 
>    No  kidding.  One  would add it to the protocol, like PR-SCTP.  Twenty
>    lines of code, tops.

Then request the protocol be changed.  See how far you get.

> 
>   
> 
>    Stream  specific  sockets  would  fix the stream specification problem
>    quite nicely.  All the other stuff can share a code base with TCP with
>    only trivial changes when in SCTP mode.
>     
> 
> There is no such thing as a stream socket.  The protocol does not support one
> either.
>   
> 
>    Yet,  that  is.  The protocol has nothing to do with whether there are
>    stream  level  sockets  or  not.  You  simply  serialize access to the
>    association appropriately.

Streams are unidirectional.

--brian

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 06:32:59 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EvvGk-0000bk-W9; Mon, 09 Jan 2006 06:32:59 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EvvGj-0000be-5Q
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 06:32:57 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA07205
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 06:31:38 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EvvNC-0001Q1-JK
	for tsvwg@ietf.org; Mon, 09 Jan 2006 06:39:40 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k09BVQed023638; 
	Mon, 9 Jan 2006 06:31:47 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43C24985.10509@stewart.chicago.il.us>
Date: Mon, 09 Jan 2006 06:31:17 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>	<43BD9A98.5010200@middle.net>
	<43BF3821.5010700@sun.com> <43C1B471.3050909@middle.net>
In-Reply-To: <43C1B471.3050909@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 52f7a77164458f8c7b36b66787c853da
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>, tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark Butler wrote:

>>  
>>
> First of all, the exact semantics of SO_RCVBUF and SO_SNDBUF are not 
> available to be specified at the protocol level because both options are 
> specified with SOL_SOCKET, not IPPROTO_SCTP or whatever.  Both BSD and 
> Linux silently clip SO_RCVBUF and SO_SNDBUF at the socket layer, by 
> design.  Applications should not depend on getting a specific buffer 
> size, but should get as much as possible when they request more than 
> they are allowed.  Otherwise every application would have to do a binary 
> search to reach the maximum buffer size.  Of course there is 
> communication between the socket layer and the protocol stack - it is 
> just the size actually granted, not what was requested.


This made me curious..

So here is a little test program I wrote:
#include <stdio.h>
#include <sys/types.h>
#include <sys/errno.h>
#include <sys/socket.h>
#include <netinet/in.h>

main()
{
         int ret;
         int fd;
         int optval, optlen;


         fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
         if(fd == -1) {
                 printf("No sctp support error %d\n", errno);
                 exit(1);
         }
         optval = 0x70000000;
         if(setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, optlen) != 0){
                 printf("err:%d could not set rcvbuf to %x 
bytes\n",errno, optval
);
         }
}


Here is the result
bash-stewlap: ./test
err:55 could not set rcvbuf to 70000000 bytes



Now I am running on a FreeBSD 7.0 system.. don't know if 5 or 6 have
the same error.. I suspect so..

55 is ENOBUFS

R




-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 06:57:32 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EvveW-000619-3X; Mon, 09 Jan 2006 06:57:32 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EvveU-00060d-Av
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 06:57:30 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA08831
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 06:56:10 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Evvkx-00028J-7l
	for tsvwg@ietf.org; Mon, 09 Jan 2006 07:04:13 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k09BuAed023694; 
	Mon, 9 Jan 2006 06:56:26 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43C24F50.8090807@stewart.chicago.il.us>
Date: Mon, 09 Jan 2006 06:56:00 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>,
	Kacheong Poon <kacheong.poon@sun.com>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<8c6c14829cb6bf3c861cb1e9f96525f6@lurchi.franken.de>
In-Reply-To: <8c6c14829cb6bf3c861cb1e9f96525f6@lurchi.franken.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0ff9c467ad7f19c2a6d058acd7faaec8
Content-Transfer-Encoding: 7bit
Cc: TSWG <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Michael:

I have read over this thread now... and I think
Kacheong is not objectioning to SCTP_FRAGMENT_INTERLEAVE
(correct me if I am wrong Kacheong).

What I am unclear of is what option Kacheong is proposing
or not for controlling when partial delivery is not
allowed.


Kacheong... do you propose an option like:

SCTP_DONT_PARTIAL_DELIVER_BELOW

(the name is probably bad).. but the idea being
the app can call this and it tells SCTP that
it MUST NOT partial deliver message below a
set threshold...

Is this what you propose Kacheon? Or am I mis-understanding
and you are proposing just to have a fixed limit
against the rwnd...

???

R


Michael Tuexen wrote:
> Dear all,
> 
> I would like to look at a specific case suggested by Kacheong.
> Assume that we want to use SCTP for an application which has
> a maximum message size M and we want to use the 1-to-M model.
> 
> The code for the receiver would provide a buffer of size M and
> call a receive function in a loop until the MSG_EOR flag is set
> or the partial delivery is aborted. Since no messages are interleaved,
> one can arrange that the whole message is in the provided buffer
> after the loop.
> 
> The problem I see here is that if partial delivery happens an
> attacker can just send some data chunks containing M-1 bytes
> and never the data chunk with the end bit set. The application
> might get the starting of the packet, but never receives it
> completely and can not determine that this is an attacker because
> a message of length M is possible. So it can not abort the association.
> How can this DOS attack be avoided?
> 
> The SCTP_FRAGMENT_INTERLEAVE option would help here, but makes the
> receiving code a bit more complex. I need for each incomplete message
> a separate buffer of size M and an additional one for reading. After
> I read the fragment, I need to decide for which message it is and copy
> to to the right buffer at the right offset.
> This is more complex, but using the option the DOS attack can be avoided.
> 
> But what are you going to do, if this M does not exist (like in the case
> of SIGTRAN protocols). You do have a size of messages which you need to 
> support
> and which is large enough to carry all important stuff. But there are other
> messages (BEAT, for example) which might be larger.
> So you can use Kacheong method of just aborting the association. But the
> alternative would be (and I think it is a good one) to send back an 
> application
> error message. This would require that I can receive a arbitrary large 
> message
> without blocking other associations. The only way to handle this, is the
> SCTP_FRAGMENT_INTERLEAVE option. Or am I missing something?
> 
> Best regards
> Michael
> 
> 
> On Jan 5, 2006, at 17:20 Uhr, Kacheong Poon wrote:
> 
>> Instead of replying point by point (which will likely
>> lead to a long thread), let me try to summarize the
>> reasons posted so far to support what I call "truncated
>> message" delivery.
>>
>> 1. Partial delivery can happen any time and the app cannot
>> control it.
>> 2. Partial delivery will block 1-N style socket.
>> 3. Because of 2, partial delivery can lead to DoS attack.
>> 4. "Truncated message" delivery can already happen with
>> PR-SCTP.
>>
>> I think the major reason why this thread was brought up
>> is because of 1.  But in reality, I think this is an
>> implementation issue rather than an API issue.  To make
>> it clear, we can easily solve this by saying that if an
>> app specifies the receive buffer to be X bytes, no partial
>> delivery will be performed for message smaller than X
>> (or X - a fixed number of bytes).  This avoids the protocol
>> deadlock issue.  And an app can control when partial
>> delivery can happen.  As Randy has pointed out, this
>> is what implementations should probably do.  Note that
>> this is different from the SCTP_PARTIAL_DELIVERY_POINT
>> option.
>>
>> So if 1 is not an issue, 2 should not be an issue.  The
>> app can avoid partial delivery altogether if it desires.
>> As I have mentioned, 3 is not an issue because an app
>> can just abort the offending association if it receives
>> an invalid message (in this case, a message too big).
>> And because an app can control when partial delivery
>> can happen, it means that even with PR-SCTP, no truncated
>> message will ever be received if an app desires.
>>
>> There are other minor points in saying that the current
>> API is not usable by many apps.  For example, sendfile()
>> cannot be used efficiently.  But it seems to me that it is
>> because of app architecture design, not because of the
>> API itself.  Otherwise, I can't see how there can be many
>> SCTP apps running in production environment using the draft
>> API at this very moment.
>>
>>
>> -- 
>>
>>                         K. Poon.
>>                         kacheong.poon@sun.com
>>
>>
>> _______________________________________________
>> tsvwg mailing list
>> tsvwg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/tsvwg
>>
> 
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
> 
> 


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 11:40:54 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ew04k-0003cp-63; Mon, 09 Jan 2006 11:40:54 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ew04i-0003bg-Bu
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 11:40:52 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA00086
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 11:39:33 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ew0BC-00037A-Rv
	for tsvwg@ietf.org; Mon, 09 Jan 2006 11:47:37 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NRX95335; Mon, 9 Jan 2006 09:40:35 -0700
Message-ID: <43C29213.1020305@middle.net>
Date: Mon, 09 Jan 2006 09:40:51 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Randall Stewart <randall@stewart.chicago.il.us>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>	<43BD9A98.5010200@middle.net>
	<43BF3821.5010700@sun.com> <43C1B471.3050909@middle.net>
	<43C24985.10509@stewart.chicago.il.us>
In-Reply-To: <43C24985.10509@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4b800b1eab964a31702fa68f1ff0e955
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote:

> Mark Butler wrote:
>
>>>  
>>>
>> First of all, the exact semantics of SO_RCVBUF and SO_SNDBUF are not 
>> available to be specified at the protocol level because both options 
>> are specified with SOL_SOCKET, not IPPROTO_SCTP or whatever.  Both 
>> BSD and Linux silently clip SO_RCVBUF and SO_SNDBUF at the socket 
>> layer, by design.  Applications should not depend on getting a 
>> specific buffer size, but should get as much as possible when they 
>> request more than they are allowed.  Otherwise every application 
>> would have to do a binary search to reach the maximum buffer size.  
>> Of course there is communication between the socket layer and the 
>> protocol stack - it is just the size actually granted, not what was 
>> requested.
>
>
>
> This made me curious..
>
> So here is a little test program I wrote:
> #include <stdio.h>
> #include <sys/types.h>
> #include <sys/errno.h>
> #include <sys/socket.h>
> #include <netinet/in.h>
>
> main()
> {
>         int ret;
>         int fd;
>         int optval, optlen;
>
>
>         fd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP);
>         if(fd == -1) {
>                 printf("No sctp support error %d\n", errno);
>                 exit(1);
>         }
>         optval = 0x70000000;
>         if(setsockopt(fd, SOL_SOCKET, SO_RCVBUF, &optval, optlen) != 0){
>                 printf("err:%d could not set rcvbuf to %x 
> bytes\n",errno, optval
> );
>         }
> }
>
>
> Here is the result
> bash-stewlap: ./test
> err:55 could not set rcvbuf to 70000000 bytes
>
>
>
> Now I am running on a FreeBSD 7.0 system.. don't know if 5 or 6 have
> the same error.. I suspect so..
>
> 55 is ENOBUFS
>
Comments in the Linux 2.6 code indicate that they were duplicating BSD 
behavior.  It must have changed in the past few years.

 - Mark






_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 12:03:40 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ew0Qm-0000W1-Qq; Mon, 09 Jan 2006 12:03:40 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ew0Qk-0000VU-ON
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 12:03:38 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA01866
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 12:02:19 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ew0XE-0003po-PI
	for tsvwg@ietf.org; Mon, 09 Jan 2006 12:10:23 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NSM90625; Mon, 9 Jan 2006 10:03:25 -0700
Message-ID: <43C2976D.1000408@middle.net>
Date: Mon, 09 Jan 2006 10:03:41 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: bidulock@openss7.org
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org> <43C1EAC6.9000906@middle.net>
	<20060108225743.A9590@openss7.org>
In-Reply-To: <20060108225743.A9590@openss7.org>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: f460acdc4aacf7fc5e6f9bd32f8fd8c6
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1639223115=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1639223115==
Content-Type: multipart/alternative;
	boundary="------------020604070809000208030507"

This is a multi-part message in MIME format.
--------------020604070809000208030507
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Brian F. G. Bidulock wrote:

>Mark,
>
>Mark Butler wrote:                                                    (Sun, 08 Jan 2006 21:47:02)
>  
>
>>   Brian F. G. Bidulock wrote:
>>
>>Mark,
>>
>>Mark Butler wrote:                                                             
>>       (Sun, 08 Jan 2006 19:32:09)
>>  
>>
>>Partial writes to SCTP
>>are simple when emulating TCP: the implementation can simply close the
>>SSN at the end of the partial write (because record boundaries are to be
>>ignored).  
>>
>>   However,  presumably  one supports SCTP to get better semantics, which
>>   means  controlling record boundaries in SCTP mode, which you can't do,
>>   and which causes efficiency problems even if you don't care.
>>    
>>
>>No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.
>>  
>>
>>   That  is a non sequitur.  An advantage does not need to be endorsed to
>>   be  desirable.    Furthermore,  SCTP is only available to most through
>>   the  available  socket  API.  The standard socket API might as well be
>>   the protocol, for most practical purposes.  It is a common metonymy.
>>    
>>
>
>The draft API is not a standard of any kind.
>  
>
Which dictionary do you draw that conclusion from?  As if there were no 
such thing as a de-facto standard.

>>Multiple stream interleaving is not an issue, because when
>>emulating TCP, the implementation uses only one one stream (that is all
>>that TCP has).  That is, under a SOCK_STREAM type of socket, it is
>>possible for an SCTP implementation to exactly mimic the TCP Sockets API
>>(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
>>the only required standard TCP options).
>>  
>>
>>   A  proper socket API should provide stream specific sockets to support
>>   a bundle of SOCK_STREAM style connections on the same association.
>>    
>>
>
>You are free to use whatever API you feel meets your needs.
>  
>
Sorry, I didn't know that.

>  
>
>>    
>>
>>Why?  Where is it necessary?
>>  
>>
>>   Not  necessary  just desirable.  iSCSI, DDP, HTTP, NFS,  and SMB often
>>   establish  multiple parallel TCP connections. The advantage of running
>>   them  as  streams  on the same association is lower setup latency.  If
>>   the  protocol  is  stateless  like  HTTP  or  LDAP,  you can eliminate
>>   connection  establishment  delay  completely  for  follow-on requests.
>>   Another example is OpenSSH, which internally multiplexes multiple flow
>>   controlled  streams  over  a single TCP connection. Running each as an
>>   SCTP  stream  on the same association would perform better without the
>>   adverse authentication overhead of multiple TCP connections.
>>
>>  
>>
>>It can't be used to multi-stream large messages because there is no
>>interleaving.
>>    
>>
>>Well, neither can TCP.
>>  
>>
>>   Again,  presumably  one  would  support  SCTP  to  take  advantage  of
>>   capabilities  it provides (or could easily provide) that TCP does not.
>>   Otherwise what is the point?
>>    
>>
>>SCTP does not support multistreaming of large messages either.
>>  
>>
>>   It could and it should.
>>    
>>
>
>Then request the protocol be changed, not just the API.
>  
>
The base protocol does not have to be changed - an extension would need 
to be documented.

>  
>
>>  
>>
>>   I  would  prefer an offset, for out of order direct placement.  By the
>>   way who uses the ppid field and for what?
>>    
>>
>>SIGTRAN UAs, to identify the protocol.
>>  
>>
>>   Well,  I think it is dead weight.  Headers like that should be done at
>>   the ULP level, once per message, not once per fragment.    It would be
>>   nice  if an application could say, I don't need ppids, you may use the
>>   slot for other purposes (like direct placement).
>>    
>>
>
>That was never the purpose of the PPID.
>  
>
So what?  Has the PPID slot an eternally ordained purpose that requires 
it not be used for things it was not intended for?

>  
>
>>Strangely, it looks like we are doomed to this limitation because the
>>editors of the protocol will not change it.
>>  
>>   A negotiated interleave option would work around that problem.
>>    
>>
>>Not in the protocol.
>>  
>>
>>   No  kidding.  One  would add it to the protocol, like PR-SCTP.  Twenty
>>   lines of code, tops.
>>    
>>
>
>Then request the protocol be changed.  See how far you get.
>
>  
>
>>  
>>
>>   Stream  specific  sockets  would  fix the stream specification problem
>>   quite nicely.  All the other stuff can share a code base with TCP with
>>   only trivial changes when in SCTP mode.
>>    
>>
>>There is no such thing as a stream socket.  The protocol does not support one
>>either.
>>  
>>
>>   Yet,  that  is.  The protocol has nothing to do with whether there are
>>   stream  level  sockets  or  not.  You  simply  serialize access to the
>>   association appropriately.
>>    
>>
>
>Streams are unidirectional.
>  
>
You keep talking about terms as if they were timeless Platonic objects 
with one and only one fixed and unchangable meaning.  There are other 
types of streams besides SCTP protocol level streams.  Most of the world 
uses bidirectional streams.  There is nothing stopping someone from 
mapping a normal bidirectional stream to a pair of lower level ones.  
DDP/SCTP does this for example. 

 - Mark

--------------020604070809000208030507
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Brian F. G. Bidulock wrote:<br>
<blockquote cite="mid20060108225743.A9590@openss7.org" type="cite">
  <pre wrap="">Mark,

Mark Butler wrote:                                                    (Sun, 08 Jan 2006 21:47:02)
  </pre>
  <blockquote type="cite">
    <pre wrap="">   Brian F. G. Bidulock wrote:

Mark,

Mark Butler wrote:                                                             
       (Sun, 08 Jan 2006 19:32:09)
  

Partial writes to SCTP
are simple when emulating TCP: the implementation can simply close the
SSN at the end of the partial write (because record boundaries are to be
ignored).  

   However,  presumably  one supports SCTP to get better semantics, which
   means  controlling record boundaries in SCTP mode, which you can't do,
   and which causes efficiency problems even if you don't care.
    

No, see RFC 3257.  API semantics is not one of the stated advantages of SCTP.
  

   That  is a non sequitur.  An advantage does not need to be endorsed to
   be  desirable.    Furthermore,  SCTP is only available to most through
   the  available  socket  API.  The standard socket API might as well be
   the protocol, for most practical purposes.  It is a common metonymy.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The draft API is not a standard of any kind.
  </pre>
</blockquote>
Which dictionary do you draw that conclusion from?&nbsp; As if there were no
such thing as a de-facto standard.<br>
<br>
<blockquote cite="mid20060108225743.A9590@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">Multiple stream interleaving is not an issue, because when
emulating TCP, the implementation uses only one one stream (that is all
that TCP has).  That is, under a SOCK_STREAM type of socket, it is
possible for an SCTP implementation to exactly mimic the TCP Sockets API
(right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
the only required standard TCP options).
  

   A  proper socket API should provide stream specific sockets to support
   a bundle of SOCK_STREAM style connections on the same association.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
You are free to use whatever API you feel meets your needs.
  </pre>
</blockquote>
Sorry, I didn't know that.<br>
<br>
<blockquote cite="mid20060108225743.A9590@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">    

Why?  Where is it necessary?
  

   Not  necessary  just desirable.  iSCSI, DDP, HTTP, NFS,  and SMB often
   establish  multiple parallel TCP connections. The advantage of running
   them  as  streams  on the same association is lower setup latency.  If
   the  protocol  is  stateless  like  HTTP  or  LDAP,  you can eliminate
   connection  establishment  delay  completely  for  follow-on requests.
   Another example is OpenSSH, which internally multiplexes multiple flow
   controlled  streams  over  a single TCP connection. Running each as an
   SCTP  stream  on the same association would perform better without the
   adverse authentication overhead of multiple TCP connections.

  

It can't be used to multi-stream large messages because there is no
interleaving.
    

Well, neither can TCP.
  

   Again,  presumably  one  would  support  SCTP  to  take  advantage  of
   capabilities  it provides (or could easily provide) that TCP does not.
   Otherwise what is the point?
    

SCTP does not support multistreaming of large messages either.
  

   It could and it should.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Then request the protocol be changed, not just the API.
  </pre>
</blockquote>
The base protocol does not have to be changed - an extension would need
to be documented.<br>
<br>
<blockquote cite="mid20060108225743.A9590@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">  

   I  would  prefer an offset, for out of order direct placement.  By the
   way who uses the ppid field and for what?
    

SIGTRAN UAs, to identify the protocol.
  

   Well,  I think it is dead weight.  Headers like that should be done at
   the ULP level, once per message, not once per fragment.    It would be
   nice  if an application could say, I don't need ppids, you may use the
   slot for other purposes (like direct placement).
    </pre>
  </blockquote>
  <pre wrap=""><!---->
That was never the purpose of the PPID.
  </pre>
</blockquote>
So what?&nbsp; Has the PPID slot an eternally ordained purpose that requires
it not be used for things it was not intended for?<br>
<br>
<blockquote cite="mid20060108225743.A9590@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">Strangely, it looks like we are doomed to this limitation because the
editors of the protocol will not change it.
  
   A negotiated interleave option would work around that problem.
    

Not in the protocol.
  

   No  kidding.  One  would add it to the protocol, like PR-SCTP.  Twenty
   lines of code, tops.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Then request the protocol be changed.  See how far you get.

  </pre>
  <blockquote type="cite">
    <pre wrap="">  

   Stream  specific  sockets  would  fix the stream specification problem
   quite nicely.  All the other stuff can share a code base with TCP with
   only trivial changes when in SCTP mode.
    

There is no such thing as a stream socket.  The protocol does not support one
either.
  

   Yet,  that  is.  The protocol has nothing to do with whether there are
   stream  level  sockets  or  not.  You  simply  serialize access to the
   association appropriately.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Streams are unidirectional.
  </pre>
</blockquote>
You keep talking about terms as if they were timeless Platonic objects
with one and only one fixed and unchangable meaning.&nbsp; There are other
types of streams besides SCTP protocol level streams.&nbsp; Most of the
world uses bidirectional streams.&nbsp; There is nothing stopping someone
from mapping a normal bidirectional stream to a pair of lower level
ones.&nbsp; DDP/SCTP does this for example.&nbsp; <br>
<br>
&nbsp;- Mark<br>
</body>
</html>

--------------020604070809000208030507--


--===============1639223115==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1639223115==--




From tsvwg-bounces@ietf.org Mon Jan 09 13:45:43 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ew21X-00010q-2y; Mon, 09 Jan 2006 13:45:43 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ew21V-0000zK-0s
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 13:45:41 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA11389
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 13:44:21 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[2Q5vWEK0eF2lPzWTsjluYK53f/p0FDPv])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ew281-0007k3-PE
	for tsvwg@ietf.org; Mon, 09 Jan 2006 13:52:27 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:DGrvOWDxmiyAHf7CuKaXaw405nYJm7I5@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k09IjZw20973;
	Mon, 9 Jan 2006 11:45:35 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k09IjYp12840;
	Mon, 9 Jan 2006 11:45:34 -0700
Date: Mon, 9 Jan 2006 11:45:34 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
Message-ID: <20060109114534.A12775@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org> <43C1EAC6.9000906@middle.net>
	<20060108225743.A9590@openss7.org> <43C2976D.1000408@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43C2976D.1000408@middle.net>;
	from butlerm@middle.net on Mon, Jan 09, 2006 at 10:03:41AM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d17f825e43c9aed4fd65b7edddddec89
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark,

I look forward to commenting on your extension draft.  When
will the first version be available?

--brian

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 14:49:18 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ew314-00028r-SJ; Mon, 09 Jan 2006 14:49:18 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ew313-000263-8g
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 14:49:17 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id OAA16453
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 14:47:57 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ew37a-0001D9-SZ
	for tsvwg@ietf.org; Mon, 09 Jan 2006 14:56:04 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	NUG73402; Mon, 9 Jan 2006 12:49:02 -0700
Message-ID: <43C2BE3E.5050304@middle.net>
Date: Mon, 09 Jan 2006 12:49:18 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP protocol extensions
References: <43BA5F40.1070705@sun.com> <43BAE9C1.7000209@middle.net>
	<43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org> <43C1EAC6.9000906@middle.net>
	<20060108225743.A9590@openss7.org> <43C2976D.1000408@middle.net>
	<20060109114534.A12775@openss7.org>
In-Reply-To: <20060109114534.A12775@openss7.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d6b246023072368de71562c0ab503126
Content-Transfer-Encoding: 7bit
Cc: bidulock@openss7.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Brian F. G. Bidulock wrote:

>Mark,
>
>I look forward to commenting on your extension draft.  When
>will the first version be available?
>
>--brian
>
>  
>
The socket API extensions have priority. 

 - Mark






_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 09 17:26:47 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ew5TT-0008DI-Iq; Mon, 09 Jan 2006 17:26:47 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ew5TR-0008DD-Vx
	for tsvwg@megatron.ietf.org; Mon, 09 Jan 2006 17:26:46 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id RAA03659
	for <tsvwg@ietf.org>; Mon, 9 Jan 2006 17:25:27 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[0JWDR54diDhVgraceSDLHkcvYzJTBYuA])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ew5a1-0008HV-5k
	for tsvwg@ietf.org; Mon, 09 Jan 2006 17:33:34 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:ZalkXYmU01gVXn/9JlNF8l8pfk9EeWkE@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id k09MQew24482;
	Mon, 9 Jan 2006 15:26:41 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id k09MQdl15132;
	Mon, 9 Jan 2006 15:26:39 -0700
Date: Mon, 9 Jan 2006 15:26:39 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP protocol extensions
Message-ID: <20060109152639.C15027@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43BD475A.90304@sun.com> <43BD9A98.5010200@middle.net>
	<20060106224721.A30197@openss7.org> <43C1CB29.7070402@middle.net>
	<20060108202657.A8327@openss7.org> <43C1EAC6.9000906@middle.net>
	<20060108225743.A9590@openss7.org> <43C2976D.1000408@middle.net>
	<20060109114534.A12775@openss7.org> <43C2BE3E.5050304@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <43C2BE3E.5050304@middle.net>;
	from butlerm@middle.net on Mon, Jan 09, 2006 at 12:49:18PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ea4ac80f790299f943f0a53be7e1a21a
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: bidulock@openss7.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark,

It is rather pointless for the API to support it if the protocol does not.

--brian

Mark Butler wrote:                                                    (Mon, 09 Jan 2006 12:49:18)
> Brian F. G. Bidulock wrote:
> 
> >Mark,
> >
> >I look forward to commenting on your extension draft.  When
> >will the first version be available?
> >
> >--brian
> >
> >  
> >
> The socket API extensions have priority. 
> 
>  - Mark
> 
> 
> 
> 

-- 
Brian F. G. Bidulock
bidulock@openss7.org
http://www.openss7.org/

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 10 07:14:25 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwIOP-0001x8-Hd; Tue, 10 Jan 2006 07:14:25 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwIOM-0001wE-UB
	for tsvwg@megatron.ietf.org; Tue, 10 Jan 2006 07:14:23 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id HAA25820
	for <tsvwg@ietf.org>; Tue, 10 Jan 2006 07:13:02 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EwIV3-0006mK-Hk
	for tsvwg@ietf.org; Tue, 10 Jan 2006 07:21:18 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k0ACDAed028068; 
	Tue, 10 Jan 2006 07:13:31 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43C3A4CE.5020402@stewart.chicago.il.us>
Date: Tue, 10 Jan 2006 07:13:02 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<43BD9A98.5010200@middle.net>	<20060106224721.A30197@openss7.org>
	<43C1CB29.7070402@middle.net>	<20060108202657.A8327@openss7.org>
	<43C1EAC6.9000906@middle.net>	<20060108225743.A9590@openss7.org>
	<43C2976D.1000408@middle.net>
In-Reply-To: <43C2976D.1000408@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0bb031f3a6fb29f760794ac9bf1997ae
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark:

A few comments.. in-line...

Mark Butler wrote:
> Brian F. G. Bidulock wrote:
> 
>> Mark,
>>
>> Mark Butler wrote:                                                    
>> (Sun, 08 Jan 2006 21:47:02)
>>  
>>
>>>   Brian F. G. Bidulock wrote:
>>>
>>> Mark,
>>>
>>> Mark Butler 
>>> wrote:                                                             
>>>       (Sun, 08 Jan 2006 19:32:09)
>>>  
>>>
>>> Partial writes to SCTP
>>> are simple when emulating TCP: the implementation can simply close the
>>> SSN at the end of the partial write (because record boundaries are to be
>>> ignored). 
>>>   However,  presumably  one supports SCTP to get better semantics, which
>>>   means  controlling record boundaries in SCTP mode, which you can't do,
>>>   and which causes efficiency problems even if you don't care.
>>>   
>>> No, see RFC 3257.  API semantics is not one of the stated advantages 
>>> of SCTP.
>>>  
>>>
>>>   That  is a non sequitur.  An advantage does not need to be endorsed to
>>>   be  desirable.    Furthermore,  SCTP is only available to most through
>>>   the  available  socket  API.  The standard socket API might as well be
>>>   the protocol, for most practical purposes.  It is a common metonymy.
>>>   
>>
>>
>> The draft API is not a standard of any kind.
>>  
>>
> Which dictionary do you draw that conclusion from?  As if there were no 
> such thing as a de-facto standard.

Brian is correct here.. the api document will NOT
have any IETF standards track designation... that
being said we all know that some documents, though
not standards, end up being de-facto as you suggest.

I am not sure that the api document will ever reach that
level.... maybe.. there are at least few implementations
that one can write code to and use moving the src from
one machine to another (solaris/linux w+lk-sctp/BSD+kame/HP/IOS)
but it is not global. Many implemenations that have
been at bakeoff's have had had their own private interface
that allowed different things :-D

Even IOS was this way until recently... But thats
another story...

Time will be the teller of if this reaches "de-facto"
standard or not :-D

> 
>>> Multiple stream interleaving is not an issue, because when
>>> emulating TCP, the implementation uses only one one stream (that is all
>>> that TCP has).  That is, under a SOCK_STREAM type of socket, it is
>>> possible for an SCTP implementation to exactly mimic the TCP Sockets API
>>> (right down to TCP_MAXSEG, TCP_NODELAY, TCP_KEEPALIVE, being, of course,
>>> the only required standard TCP options).
>>>  
>>>
>>>   A  proper socket API should provide stream specific sockets to support
>>>   a bundle of SOCK_STREAM style connections on the same association.
>>>   
>>
>>
>> You are free to use whatever API you feel meets your needs.
>>  
>>
> Sorry, I didn't know that.
Many do use different API's but I think that a large number
of app developers are not wanting to go build their
own interface to an SCTP stack.. but you are free to
do this if you so desire :-D

> 
>>  
>>
>>>   
>>> Why?  Where is it necessary?
>>>  
>>>
>>>   Not  necessary  just desirable.  iSCSI, DDP, HTTP, NFS,  and SMB often
>>>   establish  multiple parallel TCP connections. The advantage of running
>>>   them  as  streams  on the same association is lower setup latency.  If
>>>   the  protocol  is  stateless  like  HTTP  or  LDAP,  you can eliminate
>>>   connection  establishment  delay  completely  for  follow-on requests.
>>>   Another example is OpenSSH, which internally multiplexes multiple flow
>>>   controlled  streams  over  a single TCP connection. Running each as an
>>>   SCTP  stream  on the same association would perform better without the
>>>   adverse authentication overhead of multiple TCP connections.
>>>
>>>  
>>>
>>> It can't be used to multi-stream large messages because there is no
>>> interleaving.
>>>   
>>> Well, neither can TCP.
>>>  
>>>
>>>   Again,  presumably  one  would  support  SCTP  to  take  advantage  of
>>>   capabilities  it provides (or could easily provide) that TCP does not.
>>>   Otherwise what is the point?
>>>   
>>> SCTP does not support multistreaming of large messages either.
>>>  
>>>
>>>   It could and it should.
>>>   
>>
>>
>> Then request the protocol be changed, not just the API.
>>  
>>
> The base protocol does not have to be changed - an extension would need 
> to be documented.

Extensions are welcome for comment and review.. now has to
two specific points in this discussion

PPID field and the idea of a fragement/offset.. some
history so to speak..

1) Some of the original versions of the spec (MDTP I know for
    sure and maybe even some of the SCTP ones) had a of and part
    field. Two 16 bit fields part for the part number.. and of
    for how many chunks were in this message. That was stripped
    away when all fragmentation was taken out of SCTP. It was
    later then, re-added when folks realized that they might
    have XML type signalling messages that. Now I did, at that
    time, want to read-add the part/of fields.. but as in many
    things we do not always get what we want when we do
    standards.... in the end I was just happy that fragmentation
    was back in the protocol ;-D

2) The PPID field was added by the IESG more or less. They
    wanted a way to, in the future, try to seperate the
    port number from being a de-multiplexor and a protocol
    indicator... I argued strongly against this, felling that
    32 bits per message was a LOT to waste for a "future" field
    that I did not think could be used as was desired. However
    again we don't always get what we want.. and actually
    ethereal (and possibly other network equipment) actually
    use this field so that they can display contents based
    on assigned PPID format... which is probably a good
    thing...




> 
>>  
>>
>>>  
>>>
>>>   I  would  prefer an offset, for out of order direct placement.  By the
>>>   way who uses the ppid field and for what?
>>>   
>>> SIGTRAN UAs, to identify the protocol.
>>>  
>>>
>>>   Well,  I think it is dead weight.  Headers like that should be done at
>>>   the ULP level, once per message, not once per fragment.    It would be
>>>   nice  if an application could say, I don't need ppids, you may use the
>>>   slot for other purposes (like direct placement).
>>>   
>>
>>
>> That was never the purpose of the PPID.
>>  
>>
> So what?  Has the PPID slot an eternally ordained purpose that requires 
> it not be used for things it was not intended for?
> 

I am not to sure one can use the PPID field for anything
but what it was designed for..


>>  
>>
>>> Strangely, it looks like we are doomed to this limitation because the
>>> editors of the protocol will not change it.
>>>  
>>>   A negotiated interleave option would work around that problem.
>>>   
>>> Not in the protocol.
>>>  
>>>
>>>   No  kidding.  One  would add it to the protocol, like PR-SCTP.  Twenty
>>>   lines of code, tops.
>>>   
>>
>>
>> Then request the protocol be changed.  See how far you get.
>>

Adding a protocol extension is something that anyone can do by
writting a draft and maybe it will proceed. The big thing
here is I would suggest creating a "new" data type chunk
that could have this different format that you desire. That
way old implementations that do not use this "new" format
could still talk to "new" ones :-D

Of course don't think that if you submit any idea it
will not get changed/re-arranged/ and generally reshaped
by the WG.. this is a good thing (more or less :-D)

R
--
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 10 09:40:06 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwKfO-0004Ic-Bm; Tue, 10 Jan 2006 09:40:06 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwKfM-0004IU-BQ
	for tsvwg@megatron.ietf.org; Tue, 10 Jan 2006 09:40:04 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA07091
	for <tsvwg@ietf.org>; Tue, 10 Jan 2006 09:38:43 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EwKm2-0003CJ-Gh
	for tsvwg@ietf.org; Tue, 10 Jan 2006 09:47:01 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	OPX14042; Tue, 10 Jan 2006 07:39:42 -0700
Message-ID: <43C3C735.4070108@middle.net>
Date: Tue, 10 Jan 2006 07:39:49 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP PPID field
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<43BD9A98.5010200@middle.net>	<20060106224721.A30197@openss7.org>
	<43C1CB29.7070402@middle.net>	<20060108202657.A8327@openss7.org>
	<43C1EAC6.9000906@middle.net>	<20060108225743.A9590@openss7.org>
	<43C2976D.1000408@middle.net>
	<43C3A4CE.5020402@stewart.chicago.il.us>
In-Reply-To: <43C3A4CE.5020402@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4b800b1eab964a31702fa68f1ff0e955
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote:

>
> Extensions are welcome for comment and review.. now has to
> two specific points in this discussion
>
> PPID field and the idea of a fragement/offset.. some
> history so to speak..
>
> 1) Some of the original versions of the spec (MDTP I know for
>    sure and maybe even some of the SCTP ones) had a of and part
>    field. Two 16 bit fields part for the part number.. and of
>    for how many chunks were in this message. That was stripped
>    away when all fragmentation was taken out of SCTP. It was
>    later then, re-added when folks realized that they might
>    have XML type signalling messages that. Now I did, at that
>    time, want to read-add the part/of fields.. but as in many
>    things we do not always get what we want when we do
>    standards.... in the end I was just happy that fragmentation
>    was back in the protocol ;-D
>
> 2) The PPID field was added by the IESG more or less. They
>    wanted a way to, in the future, try to seperate the
>    port number from being a de-multiplexor and a protocol
>    indicator... I argued strongly against this, felling that
>    32 bits per message was a LOT to waste for a "future" field
>    that I did not think could be used as was desired. However
>    again we don't always get what we want.. and actually
>    ethereal (and possibly other network equipment) actually
>    use this field so that they can display contents based
>    on assigned PPID format... which is probably a good
>    thing...

Is there a PPID registry somewhere then?  The DCCP specification takes 
the same attitude - it is a protocol violation not to specify a service 
code.  You can't connect without a matching service code, you can't 
listen without specifying one. Zero is not allowed.   But the service 
code is only specified at connect time, not every packet.

You can't demux using chunk level PPIDs in the current scheme unless 
everything is handled by the same process.  A traditional socket API 
certainly can't handle system level associations without another layer 
of protocol support.  And if you have system level associations, then 
the port fields are redundant.  So presumably the PPID should have been 
added as a parameter to the INIT chunk, in a manner similar to DCCP, to 
serve the intended purpose.

However, my observation is that the PPID information only needs to be 
carried for the first fragment.  So subsequent fragments could use it as 
a fragment offset field without breaking ULPs that depend on it (with 
protocol level negotiation of course).

>
> Adding a protocol extension is something that anyone can do by
> writting a draft and maybe it will proceed. The big thing
> here is I would suggest creating a "new" data type chunk
> that could have this different format that you desire. That
> way old implementations that do not use this "new" format
> could still talk to "new" ones :-D

I certainly wouldn't suggest breaking interoperability.  There would 
have to be negotiation. 

> Of course don't think that if you submit any idea it
> will not get changed/re-arranged/ and generally reshaped
> by the WG.. this is a good thing (more or less :-D)

Of course.

 - Mark

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 10 11:38:15 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwMVj-00022N-Tv; Tue, 10 Jan 2006 11:38:15 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwMVh-00021Z-4b
	for tsvwg@megatron.ietf.org; Tue, 10 Jan 2006 11:38:13 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA19513
	for <tsvwg@ietf.org>; Tue, 10 Jan 2006 11:36:53 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EwMcL-0008RI-Cw
	for tsvwg@ietf.org; Tue, 10 Jan 2006 11:45:11 -0500
Received: from [10.0.1.4] (unknown [194.95.73.175])
	by ilsa.franken.de (Postfix) with ESMTP
	id 37AC6245CC; Tue, 10 Jan 2006 17:37:55 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43C3C735.4070108@middle.net>
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<43BD9A98.5010200@middle.net>	<20060106224721.A30197@openss7.org>
	<43C1CB29.7070402@middle.net>	<20060108202657.A8327@openss7.org>
	<43C1EAC6.9000906@middle.net>	<20060108225743.A9590@openss7.org>
	<43C2976D.1000408@middle.net>
	<43C3A4CE.5020402@stewart.chicago.il.us>
	<43C3C735.4070108@middle.net>
Mime-Version: 1.0 (Apple Message framework v623)
Content-Type: text/plain; charset=US-ASCII; format=flowed
Message-Id: <92d77054025fc850a95f4410161fdea9@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP PPID field
Date: Tue, 10 Jan 2006 17:37:53 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.623)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a8a20a483a84f747e56475e290ee868e
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>, tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi Mark,

see my comments in-line.

Best regards
Michael

On Jan 10, 2006, at 15:39 Uhr, Mark Butler wrote:

> Randall Stewart wrote:
>
>>
>> Extensions are welcome for comment and review.. now has to
>> two specific points in this discussion
>>
>> PPID field and the idea of a fragement/offset.. some
>> history so to speak..
>>
>> 1) Some of the original versions of the spec (MDTP I know for
>>    sure and maybe even some of the SCTP ones) had a of and part
>>    field. Two 16 bit fields part for the part number.. and of
>>    for how many chunks were in this message. That was stripped
>>    away when all fragmentation was taken out of SCTP. It was
>>    later then, re-added when folks realized that they might
>>    have XML type signalling messages that. Now I did, at that
>>    time, want to read-add the part/of fields.. but as in many
>>    things we do not always get what we want when we do
>>    standards.... in the end I was just happy that fragmentation
>>    was back in the protocol ;-D
>>
>> 2) The PPID field was added by the IESG more or less. They
>>    wanted a way to, in the future, try to seperate the
>>    port number from being a de-multiplexor and a protocol
>>    indicator... I argued strongly against this, felling that
>>    32 bits per message was a LOT to waste for a "future" field
>>    that I did not think could be used as was desired. However
>>    again we don't always get what we want.. and actually
>>    ethereal (and possibly other network equipment) actually
>>    use this field so that they can display contents based
>>    on assigned PPID format... which is probably a good
>>    thing...
>
> Is there a PPID registry somewhere then?  The DCCP specification takes 
> the same attitude - it is a protocol violation not to specify a 
> service code.  You can't connect without a matching service code, you 
> can't listen without specifying one. Zero is not allowed.   But the 
> service code is only specified at connect time, not every packet.
In contrast to Randy I really like the PPID. There is a registry at
http://www.iana.org/assignments/sctp-parameters
It is very useful to be able to specify the ULP per DATA chunk. First 
of all, tracers
like ethereal can find the ULP without looking at the port numbers. 
Second, you can
have multiple ULP in one association. This is used, for example, in 
ASAP, an RSerPool protocol.
>
> You can't demux using chunk level PPIDs in the current scheme unless 
> everything is handled by the same process.  A traditional socket API 
> certainly can't handle system level associations without another layer 
> of protocol support.  And if you have system level associations, then 
> the port fields are redundant.  So presumably the PPID should have 
> been added as a parameter to the INIT chunk, in a manner similar to 
> DCCP, to serve the intended purpose.
Why can't you demux? You just can not wait for it.
>
> However, my observation is that the PPID information only needs to be 
> carried for the first fragment.  So subsequent fragments could use it 
> as a fragment offset field without breaking ULPs that depend on it 
> (with protocol level negotiation of course).
Your observation is correct. But I think it is a very bad idea to use 
this field with
multiple semantics.

If you want to have a DATA chunk with segment offset or number 
information, define
a new chunk type. This would also allow implementations not supporting 
your extension
to react appropriate.
>
>>
>> Adding a protocol extension is something that anyone can do by
>> writting a draft and maybe it will proceed. The big thing
>> here is I would suggest creating a "new" data type chunk
>> that could have this different format that you desire. That
>> way old implementations that do not use this "new" format
>> could still talk to "new" ones :-D
>
> I certainly wouldn't suggest breaking interoperability.  There would 
> have to be negotiation.
>> Of course don't think that if you submit any idea it
>> will not get changed/re-arranged/ and generally reshaped
>> by the WG.. this is a good thing (more or less :-D)
>
> Of course.
>
> - Mark
>
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 11 06:32:14 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EweD8-0007Q5-5e; Wed, 11 Jan 2006 06:32:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EweD6-0007Pv-FA
	for tsvwg@megatron.ietf.org; Wed, 11 Jan 2006 06:32:12 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA03902
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 06:30:52 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EweJz-0007ev-Rl
	for tsvwg@ietf.org; Wed, 11 Jan 2006 06:39:20 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k0BBUmed032131; 
	Wed, 11 Jan 2006 06:31:03 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43C4EC61.8040504@stewart.chicago.il.us>
Date: Wed, 11 Jan 2006 06:30:41 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP PPID field
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>	<43BD9A98.5010200@middle.net>	<20060106224721.A30197@openss7.org>	<43C1CB29.7070402@middle.net>	<20060108202657.A8327@openss7.org>	<43C1EAC6.9000906@middle.net>	<20060108225743.A9590@openss7.org>	<43C2976D.1000408@middle.net>	<43C3A4CE.5020402@stewart.chicago.il.us>	<43C3C735.4070108@middle.net>
	<92d77054025fc850a95f4410161fdea9@lurchi.franken.de>
In-Reply-To: <92d77054025fc850a95f4410161fdea9@lurchi.franken.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 200d029292fbb60d25b263122ced50fc
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Michael:

A comment or two :-D

Michael Tuexen wrote:
> Hi Mark,
> 
> see my comments in-line.
> 
> Best regards
> Michael
> 
> On Jan 10, 2006, at 15:39 Uhr, Mark Butler wrote:
> 
>> Randall Stewart wrote:
>>
>>>
>>> Extensions are welcome for comment and review.. now has to
>>> two specific points in this discussion
>>>
>>> PPID field and the idea of a fragement/offset.. some
>>> history so to speak..
>>>
>>> 1) Some of the original versions of the spec (MDTP I know for
>>>    sure and maybe even some of the SCTP ones) had a of and part
>>>    field. Two 16 bit fields part for the part number.. and of
>>>    for how many chunks were in this message. That was stripped
>>>    away when all fragmentation was taken out of SCTP. It was
>>>    later then, re-added when folks realized that they might
>>>    have XML type signalling messages that. Now I did, at that
>>>    time, want to read-add the part/of fields.. but as in many
>>>    things we do not always get what we want when we do
>>>    standards.... in the end I was just happy that fragmentation
>>>    was back in the protocol ;-D
>>>
>>> 2) The PPID field was added by the IESG more or less. They
>>>    wanted a way to, in the future, try to seperate the
>>>    port number from being a de-multiplexor and a protocol
>>>    indicator... I argued strongly against this, felling that
>>>    32 bits per message was a LOT to waste for a "future" field
>>>    that I did not think could be used as was desired. However
>>>    again we don't always get what we want.. and actually
>>>    ethereal (and possibly other network equipment) actually
>>>    use this field so that they can display contents based
>>>    on assigned PPID format... which is probably a good
>>>    thing...
>>
>>
>> Is there a PPID registry somewhere then?  The DCCP specification takes 
>> the same attitude - it is a protocol violation not to specify a 
>> service code.  You can't connect without a matching service code, you 
>> can't listen without specifying one. Zero is not allowed.   But the 
>> service code is only specified at connect time, not every packet.
> 
> In contrast to Randy I really like the PPID. There is a registry at
> http://www.iana.org/assignments/sctp-parameters
> It is very useful to be able to specify the ULP per DATA chunk. First of 
> all, tracers
> like ethereal can find the ULP without looking at the port numbers. 
> Second, you can
> have multiple ULP in one association. This is used, for example, in 
> ASAP, an RSerPool protocol.

Well.. I was giving a history lesson on SCTP development... as
to how I feel about the field now.. I must admit it HAS grown
on me .. I might not be has pleased with the field as you.. but
I really do see its relevance for sniffers and such.. So even
though I did not like it orginally.. I am ok with it now... :-D

> 
>>
>> You can't demux using chunk level PPIDs in the current scheme unless 
>> everything is handled by the same process.  A traditional socket API 
>> certainly can't handle system level associations without another layer 
>> of protocol support.  And if you have system level associations, then 
>> the port fields are redundant.  So presumably the PPID should have 
>> been added as a parameter to the INIT chunk, in a manner similar to 
>> DCCP, to serve the intended purpose.
> 
> Why can't you demux? You just can not wait for it.
> 
>>
>> However, my observation is that the PPID information only needs to be 
>> carried for the first fragment.  So subsequent fragments could use it 
>> as a fragment offset field without breaking ULPs that depend on it 
>> (with protocol level negotiation of course).
> 
> Your observation is correct. But I think it is a very bad idea to use 
> this field with
> multiple semantics.

I agree here.. If mark wants a fragment/offset type data chunk
then he needs to write a draft and submit it (hint hint mark).
Then he can use the supported chunk types field (in the INIT
and INIT-ACK.. this is in addip) to be able to recognize
that his peer supports his new data chunk... That will
allow interoperability  and no problems :-D

R

> 
> If you want to have a DATA chunk with segment offset or number 
> information, define
> a new chunk type. This would also allow implementations not supporting 
> your extension
> to react appropriate.
> 
>>
>>>
>>> Adding a protocol extension is something that anyone can do by
>>> writting a draft and maybe it will proceed. The big thing
>>> here is I would suggest creating a "new" data type chunk
>>> that could have this different format that you desire. That
>>> way old implementations that do not use this "new" format
>>> could still talk to "new" ones :-D
>>
>>
>> I certainly wouldn't suggest breaking interoperability.  There would 
>> have to be negotiation.
>>
>>> Of course don't think that if you submit any idea it
>>> will not get changed/re-arranged/ and generally reshaped
>>> by the WG.. this is a good thing (more or less :-D)
>>
>>
>> Of course.
>>
>> - Mark
>>
>> _______________________________________________
>> tsvwg mailing list
>> tsvwg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/tsvwg
>>
> 
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
> 
> 


-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 11 09:24:59 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwguJ-0001MT-Ul; Wed, 11 Jan 2006 09:24:59 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwguI-0001MO-0f
	for tsvwg@megatron.ietf.org; Wed, 11 Jan 2006 09:24:58 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA16024
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 09:23:36 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ewh1B-0004WD-4o
	for tsvwg@ietf.org; Wed, 11 Jan 2006 09:32:06 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	PPJ51634; Wed, 11 Jan 2006 07:24:34 -0700
Message-ID: <43C51531.1000203@middle.net>
Date: Wed, 11 Jan 2006 07:24:49 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP PPID field
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>
	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>
	<43BD9A98.5010200@middle.net>	<20060106224721.A30197@openss7.org>
	<43C1CB29.7070402@middle.net>	<20060108202657.A8327@openss7.org>
	<43C1EAC6.9000906@middle.net>	<20060108225743.A9590@openss7.org>
	<43C2976D.1000408@middle.net>
	<43C3A4CE.5020402@stewart.chicago.il.us>
	<43C3C735.4070108@middle.net>
	<92d77054025fc850a95f4410161fdea9@lurchi.franken.de>
In-Reply-To: <92d77054025fc850a95f4410161fdea9@lurchi.franken.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cd26b070c2577ac175cd3a6d878c6248
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>, tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hello Michael - comments below:

Michael Tuexen wrote:

>
> On Jan 10, 2006, at 15:39 Uhr, Mark Butler wrote:
>
>>
>> You can't demux using chunk level PPIDs in the current scheme unless 
>> everything is handled by the same process.  A traditional socket API 
>> certainly can't handle system level associations without another 
>> layer of protocol support.  And if you have system level 
>> associations, then the port fields are redundant.  So presumably the 
>> PPID should have been added as a parameter to the INIT chunk, in a 
>> manner similar to DCCP, to serve the intended purpose.
>
> Why can't you demux? You just can not wait for it.

My point is simply that PPID cannot be used to demultiplex the way the 
port number is used, with different processes using PPID bound sockets, 
without additional support. Hypothetically, such support would have to 
include advertisement / verification of PPID capability on an 
association, a PPID to port mapping scheme, and so on.

In practice, PPID standardization is useful for network analyzers, but 
which PPIDs are used has little other practical consequence outside the 
scope of two communicating processes.  The fact that an arbitrary number 
of associated PPIDs may be used by the same ULP makes PPID a poor choice 
for a service code.  A service code would normally be associated with 
one ULP, so that you could look up connection port / address information 
by service code, in DNS or wherever.   This is not a bad thing, I am 
just saying that PPIDs and DCCP-like service codes are different - 
service codes are used at the connection / association level and PPIDs 
are a step lower than that.

An association that handles more than one ULP is really implementing a 
higher level Meta-ULP, with a set of conventions on which lower level 
protocols are supported, on which streams, how each session is initiated 
/ terminated if necessary, and so on.   ULP use of the PPID field is 
convenient because it is already there, but normally each layer should 
add / strip its own headers.  Not that the PPID is going anywhere...

>>
>> However, my observation is that the PPID information only needs to be 
>> carried for the first fragment.  So subsequent fragments could use it 
>> as a fragment offset field without breaking ULPs that depend on it 
>> (with protocol level negotiation of course).
>
> Your observation is correct. But I think it is a very bad idea to use 
> this field with
> multiple semantics.
>
> If you want to have a DATA chunk with segment offset or number 
> information, define
> a new chunk type. This would also allow implementations not supporting 
> your extension
> to react appropriate.

Nothing would happen without negotiation, so that wouldn't be a 
problem.  I am not suggesting changing the header length or layout.  A 
supporting implementation would use the B flag to determine whether the 
PPID slot contained a PPID or an offset.  DCCP uses the X flag to make a 
much more radical change  - 24 bit vs. 48 bit serial number - it changes 
the header length, and changes bit field alignment accordingly.

There would need to be two advertised capabilities - one would indicate 
"I understand message offsets", the other would indicate "I can handle 
message interleaving".  The first would allow a receiver to do direct 
placement of incoming data, including careful parallel checksum / 
placement like some TCP implementations do.  

Both together would allow arbitrary message interleaving on the same 
association, e.g. for applications that set SCTP_MESSAGE_INTERLEAVE.  
Notably, this would allow small high priority messages to be delivered 
while larger messages are pending.

 - Mark



_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 11 09:46:56 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwhFY-0000B7-B0; Wed, 11 Jan 2006 09:46:56 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwhFW-0000Az-AX
	for tsvwg@megatron.ietf.org; Wed, 11 Jan 2006 09:46:54 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA17377
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 09:45:33 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EwhMP-00057f-Mq
	for tsvwg@ietf.org; Wed, 11 Jan 2006 09:54:04 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	PPF29737; Wed, 11 Jan 2006 07:46:37 -0700
Message-ID: <43C51A5C.3060407@middle.net>
Date: Wed, 11 Jan 2006 07:46:52 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>	<8c6c14829cb6bf3c861cb1e9f96525f6@lurchi.franken.de>
	<43C24F50.8090807@stewart.chicago.il.us>
In-Reply-To: <43C24F50.8090807@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0bc60ec82efc80c84b8d02f4b0e4de22
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>,
	Randall Stewart <randall@stewart.chicago.il.us>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Randall Stewart wrote:

> Kacheong... do you propose an option like:
>
> SCTP_DONT_PARTIAL_DELIVER_BELOW
>
> (the name is probably bad).. but the idea being
> the app can call this and it tells SCTP that
> it MUST NOT partial deliver message below a
> set threshold...
>
> Is this what you propose Kacheon? Or am I mis-understanding
> and you are proposing just to have a fixed limit
> against the rwnd...
>
I think an option like that would solve the problem.  Doing it based on 
the receive buffer size is problematic for a variety of reasons, 
especially shared buffers.

However, why don't we just use SCTP_PARTIAL_DELIVERY_POINT and define it 
with similar semantics, such that partial deliveries must not occur 
below the specified threshold, but is requested when the threshold is 
reached.  That way applications can get early notification of 
illegitimately sized messages and take the appropriate action.

Is that reasonable?

- Mark

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 11 11:46:42 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ewj7S-0003He-SB; Wed, 11 Jan 2006 11:46:42 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ewj7R-0003HV-Ay
	for tsvwg@megatron.ietf.org; Wed, 11 Jan 2006 11:46:41 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA25467
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 11:45:21 -0500 (EST)
Received: from adsl-065-005-216-181.sip.cae.bellsouth.net ([65.5.216.181]
	helo=stewart.chicago.il.us)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EwjEK-0000Hs-Kk
	for tsvwg@ietf.org; Wed, 11 Jan 2006 11:53:52 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id k0BGjDed032996; 
	Wed, 11 Jan 2006 11:45:33 -0500 (EST)
	(envelope-from randall@stewart.chicago.il.us)
X-Authentication-Warning: stewart.stewart.chicago.il.us: localhost [127.0.0.1]
	didn't use HELO protocol
Message-ID: <43C53613.7080409@stewart.chicago.il.us>
Date: Wed, 11 Jan 2006 11:45:07 -0500
From: Randall Stewart <randall@stewart.chicago.il.us>
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051214
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Socket API - Objections to proposed extensions
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<43BA5F40.1070705@sun.com>	<43BAE9C1.7000209@middle.net>	<43BD475A.90304@sun.com>	<8c6c14829cb6bf3c861cb1e9f96525f6@lurchi.franken.de>	<43C24F50.8090807@stewart.chicago.il.us>
	<43C51A5C.3060407@middle.net>
In-Reply-To: <43C51A5C.3060407@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7baded97d9887f7a0c7e8a33c2e3ea1b
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>, tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Mark Butler wrote:
> Randall Stewart wrote:
> 
>> Kacheong... do you propose an option like:
>>
>> SCTP_DONT_PARTIAL_DELIVER_BELOW
>>
>> (the name is probably bad).. but the idea being
>> the app can call this and it tells SCTP that
>> it MUST NOT partial deliver message below a
>> set threshold...
>>
>> Is this what you propose Kacheon? Or am I mis-understanding
>> and you are proposing just to have a fixed limit
>> against the rwnd...
>>
> I think an option like that would solve the problem.  Doing it based on 
> the receive buffer size is problematic for a variety of reasons, 
> especially shared buffers.
> 
> However, why don't we just use SCTP_PARTIAL_DELIVERY_POINT and define it 
> with similar semantics, such that partial deliveries must not occur 
> below the specified threshold, but is requested when the threshold is 
> reached.  That way applications can get early notification of 
> illegitimately sized messages and take the appropriate action.
> 
> Is that reasonable?
> 

I am ok with it..

Kacheong?

If you agree I will work on getting this and the FRAGMENT wording
together..

R
-- 
Randall Stewart
803-345-0369 <or> 815-342-5222(cell)

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 11 16:32:16 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EwnZo-0000oy-OU; Wed, 11 Jan 2006 16:32:16 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EwnZn-0000o0-FM
	for tsvwg@megatron.ietf.org; Wed, 11 Jan 2006 16:32:15 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA15687
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 16:30:53 -0500 (EST)
Received: from atlrel9.hp.com ([156.153.255.214])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ewngl-0000Xc-6r
	for tsvwg@ietf.org; Wed, 11 Jan 2006 16:39:28 -0500
Received: from taynzmail03.nz-tay.cpqcorp.net (taynzmail03.nz-tay.cpqcorp.net
	[16.47.4.103]) by atlrel9.hp.com (Postfix) with ESMTP id 6AE3D347A7
	for <tsvwg@ietf.org>; Wed, 11 Jan 2006 16:32:02 -0500 (EST)
Received: from [16.116.104.104] (galen.zko.hp.com [16.116.104.104])
	by taynzmail03.nz-tay.cpqcorp.net (Postfix) with ESMTP id 1370944C2;
	Wed, 11 Jan 2006 16:32:02 -0500 (EST)
Message-ID: <43C5794D.6090706@hp.com>
Date: Wed, 11 Jan 2006 16:31:57 -0500
From: Vlad Yasevich <vladislav.yasevich@hp.com>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051109)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "'tsvwg@ietf.org'" <tsvwg@ietf.org>
X-Enigmail-Version: 0.92.0.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Content-Transfer-Encoding: 7bit
Subject: [Tsvwg] Adding to SCTP socket API (different topic; )
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi All

Is there any interest/support to adding an additional inteface
to SCTP socket API to convert peer address to association id.

I've been asked on how to do this at least 5 times in the last month
or so.  It looks like the only way to get the association id is from
the notification event and some people are looking for a different
conversion.

something like:
  sctp_addr_to_aid(int sd,
		   const struct sockaddr *addr
		   sctp_assoc_t *assoc_id);

  sd:  socket descriptor
  addr: address of the peer including port number.
  assoc_id: returned association id.


If there are no objection, I can flesh this out some more.

Thanks
-vlad

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 12 15:43:32 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ex9IC-0003xh-Ib; Thu, 12 Jan 2006 15:43:32 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Ex9I7-0003tH-7D; Thu, 12 Jan 2006 15:43:27 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA16338;
	Thu, 12 Jan 2006 15:42:04 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1Ex9PH-0000KP-SA; Thu, 12 Jan 2006 15:50:52 -0500
Received: from apache by newodin.ietf.org with local (Exim 4.43)
	id 1Ex9I5-0003PK-Rl; Thu, 12 Jan 2006 15:43:25 -0500
X-test-idtracker: no
To: IETF-Announce <ietf-announce@ietf.org>
From: The IESG <iesg-secretary@ietf.org>
Message-Id: <E1Ex9I5-0003PK-Rl@newodin.ietf.org>
Date: Thu, 12 Jan 2006 15:43:25 -0500
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1ac7cc0a4cd376402b85bc1961a86ac2
Cc: tsvwg@ietf.org
Subject: [Tsvwg] Last Call: 'A Resource Reservation Protocol Extension for
 the 
 Reduction of Bandwidth of a Reservation Flow' to Proposed Standard 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: iesg@ietf.org
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

The IESG has received a request from the Transport Area Working Group WG to 
consider the following document:

- 'A Resource Reservation Protocol Extension for the Reduction of Bandwidth of 
   a Reservation Flow '
   <draft-ietf-tsvwg-rsvp-bw-reduction-01.txt> as a Proposed Standard

The IESG plans to make a decision in the next few weeks, and solicits
final comments on this action.  Please send any comments to the
iesg@ietf.org or ietf@ietf.org mailing lists by 2006-01-26.

The file can be obtained via
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-01.txt


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 12 18:27:04 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1ExBqS-0001iX-TN; Thu, 12 Jan 2006 18:27:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ExBqR-0001iR-EB
	for tsvwg@megatron.ietf.org; Thu, 12 Jan 2006 18:27:03 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA05256
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 18:25:42 -0500 (EST)
Received: from psg.com ([147.28.0.62] ident=mailnull)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ExBxd-0008HC-4t
	for tsvwg@ietf.org; Thu, 12 Jan 2006 18:34:30 -0500
Received: from mankin by psg.com with local (Exim 4.60 (FreeBSD))
	(envelope-from <mankin@psg.com>) id 1ExBqP-000BX5-Bc
	for tsvwg@ietf.org; Thu, 12 Jan 2006 23:27:01 +0000
To: tsvwg@ietf.org
Message-Id: <E1ExBqP-000BX5-Bc@psg.com>
From: Allison Mankin <mankin@psg.com>
Date: Thu, 12 Jan 2006 23:27:01 +0000
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 08170828343bcf1325e4a0fb4584481c
Subject: [Tsvwg] draft-ietf-tsvwg-bw-reduction - WGLC end /IETF Last Call
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org


Hi, all,

draft-ietf-tsvwg-bw-reduction ended its WGLC with a small exchange
of comments back in September.  I gave it a detailed AD reading
and found only one small concern, a need for the securit
considerations to mention spoofing of bandwidth reduction
actions.  Otherwise with the WGLC so long done, and reviews
long in, it seemed ready for IETF LC, so that has started, but
we're still open for WG comments of any kind as well.

We'll be ready to WGLC some of the more complex RSVP documents
soon, and will IETF Last Call them as promptly!

Allison

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 12 19:54:08 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1ExDCi-0001bH-5A; Thu, 12 Jan 2006 19:54:08 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ExDCg-0001bC-0h
	for tsvwg@megatron.ietf.org; Thu, 12 Jan 2006 19:54:06 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA14438
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 19:52:44 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ExDJo-0003rH-1u
	for tsvwg@ietf.org; Thu, 12 Jan 2006 20:01:33 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	RBO32841; Thu, 12 Jan 2006 17:53:41 -0700
Message-ID: <43C6FA1D.9020706@middle.net>
Date: Thu, 12 Jan 2006 17:53:49 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "'tsvwg@ietf.org'" <tsvwg@ietf.org>
Subject: Re: [Tsvwg] Adding to SCTP socket API (different topic; )
References: <43C5794D.6090706@hp.com>
In-Reply-To: <43C5794D.6090706@hp.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0bc60ec82efc80c84b8d02f4b0e4de22
Content-Transfer-Encoding: 7bit
Cc: Vlad Yasevich <vladislav.yasevich@hp.com>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Vlad Yasevich wrote:

>Hi All
>
>Is there any interest/support to adding an additional inteface
>to SCTP socket API to convert peer address to association id.
>
>I've been asked on how to do this at least 5 times in the last month
>or so.  It looks like the only way to get the association id is from
>the notification event and some people are looking for a different
>conversion.
>
>something like:
>  sctp_addr_to_aid(int sd,
>		   const struct sockaddr *addr
>		   sctp_assoc_t *assoc_id);
>
>  sd:  socket descriptor
>  addr: address of the peer including port number.
>  assoc_id: returned association id.
>  
>
I think it is a useful extension.  However, the normal way to get the 
association id is via the sctp_sndrcvinfo structure, which should be 
returned with every call to sctp_recvmsg. 

 - Mark


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 12 21:51:38 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1ExF2Q-00068e-DD; Thu, 12 Jan 2006 21:51:38 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ExF2O-00068P-Ri
	for tsvwg@megatron.ietf.org; Thu, 12 Jan 2006 21:51:37 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA22451
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 21:50:15 -0500 (EST)
Received: from cougar.icir.org ([192.150.187.76])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ExF9d-0007l5-7P
	for tsvwg@ietf.org; Thu, 12 Jan 2006 21:59:05 -0500
Received: from cougar.icir.org (localhost [127.0.0.1])
	by cougar.icir.org (8.12.11/8.12.11) with ESMTP id k0D2pZhP058759
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 18:51:35 -0800 (PST)
	(envelope-from floyd@cougar.icir.org)
Message-Id: <200601130251.k0D2pZhP058759@cougar.icir.org>
To: tsvwg@ietf.org
From: Sally Floyd <floyd@icir.org>
Date: Thu, 12 Jan 2006 18:51:35 -0800
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 8b30eb7682a596edff707698f4a80f7d
Subject: [Tsvwg] draft-ietf-tsvwg-ecn-alternates-00 is now 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

I have submitted a new version of draft-floyd-ecn-alternates-02.txt as
draft-ietf-tsvwg-ecn-alternates-00.txt, available from:
http://www.icir.org/floyd/papers/draft-ietf-tsvwg-ecn-alternates-00.txt

The only changes were the addition of Section 5.3 on "Proposals for 
Alternate-ECN with Edge-to-Edge Semantics", and the change of the
title to draft-ietf-tsvwg-ecn-alternates-00.  Section 5.3 is
appended below.

- Sally
http://www.icir.org/floyd/


5.3.  Proposals for Alternate-ECN with Edge-to-Edge Semantics

    RFC 3168 specifies the use of the default ECN semantics by an end-
    to-end transport protocol, with the requirement that "upon the
    receipt by an ECN-Capable transport of a single CE packet, the
    congestion control algorithms followed at the end-systems MUST be
    essentially the same as the congestion control response to a
    *single* dropped packet" [RFC3168, Section 5].  In contrast, some of
    the proposals for alternate-ECN semantics are for ECN used in an
    edge-to-edge context between gateways at the edge of a network
    region, e.g., for pre-congestion notification for admissions control
    [BESFC05].

    When alternate-ECN is defined with edge-to-edge semantics, this
    definition needs to ensure that the edge-to-edge semantics do not
    conflict with a connection using other ECN semantics end-to-end.
    One way to avoid conflict would be for the edge-to-edge ECN proposal
    to include some mechanism to ensure that the edge-to-edge ECN is not
    used for connections that are using other ECN semantics (standard or
    otherwise) end-to-end.  Alternately, the edge-to-edge semantics
    could be defined so that they do not conflict with a connection
    using other ECN semantics end-to-end.





_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 12 21:52:53 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1ExF3d-0006D3-NI; Thu, 12 Jan 2006 21:52:53 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ExF3c-0006Cq-Ck
	for tsvwg@megatron.ietf.org; Thu, 12 Jan 2006 21:52:52 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id VAA22556
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 21:51:30 -0500 (EST)
Received: from cougar.icir.org ([192.150.187.76])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ExFAq-0007ny-K5
	for tsvwg@ietf.org; Thu, 12 Jan 2006 22:00:21 -0500
Received: from cougar.icir.org (localhost [127.0.0.1])
	by cougar.icir.org (8.12.11/8.12.11) with ESMTP id k0D2qo8f058796
	for <tsvwg@ietf.org>; Thu, 12 Jan 2006 18:52:50 -0800 (PST)
	(envelope-from floyd@cougar.icir.org)
Message-Id: <200601130252.k0D2qo8f058796@cougar.icir.org>
To: tsvwg@ietf.org
From: Sally Floyd <floyd@icir.org>
Date: Thu, 12 Jan 2006 18:52:50 -0800
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9182cfff02fae4f1b6e9349e01d62f32
Subject: [Tsvwg] Section 5.3 of draft-ietf-tsvwg-ecn-alternates-00
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Bob Briscoe back in November asked in email if I thought that
their proposal resolved the conflict between end-to-end and
edge-to-edge semantics:
 
>To be concrete, I'll ask the question I started with again. Why don't the
>changes to RSVP and NSIS (that I repeat below) resolve the conflict between
>end-to-end and edge-to-edge semantics? The conflict only occurs for flows
>within a signalled reservation, so the conflict can be resolved in the 
>signalling. If the conflict is resolved, this proposal should satisfy 
>Sally's requirements for specifying alternate semantics for ECN in an 
>edge-edge scenario.
>
>[Sally, I'd also be interested in your view - general rules are fine, but
>particular cases like this test the wording.]
    
I have been meaning to read the documents and old email about this all 
over very carefully, to have an answer, but unfortunately I have
never gotten to it.  But I think that Section 5.3 on
draft-ietf-tsvwg-ecn-alternates-00.txt is needed nevertheless;  for 
me, one of the reasons to write this draft is so that I *don't*  
have to be the one to evaluate specific proposals for alternate
semantics for ECN.

- Sally


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Fri Jan 13 09:35:41 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1ExQ1l-00080O-99; Fri, 13 Jan 2006 09:35:41 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ExQ1j-0007z5-RR
	for tsvwg@megatron.ietf.org; Fri, 13 Jan 2006 09:35:39 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id JAA09777
	for <tsvwg@ietf.org>; Fri, 13 Jan 2006 09:34:17 -0500 (EST)
Received: from atlrel8.hp.com ([156.153.255.206])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ExQ93-0005lZ-EH
	for tsvwg@ietf.org; Fri, 13 Jan 2006 09:43:14 -0500
Received: from taynzmail03.nz-tay.cpqcorp.net (compaqtay.compaq.com
	[16.47.4.103]) by atlrel8.hp.com (Postfix) with ESMTP id 6E859356FE
	for <tsvwg@ietf.org>; Fri, 13 Jan 2006 09:35:26 -0500 (EST)
Received: from [16.116.104.104] (galen.zko.hp.com [16.116.104.104])
	by taynzmail03.nz-tay.cpqcorp.net (Postfix) with ESMTP id 21E6B1FB;
	Fri, 13 Jan 2006 09:35:26 -0500 (EST)
Message-ID: <43C7BAAD.9060204@hp.com>
Date: Fri, 13 Jan 2006 09:35:25 -0500
From: Vlad Yasevich <vladislav.yasevich@hp.com>
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051109)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Cc: "'tsvwg@ietf.org'" <tsvwg@ietf.org>
Subject: Re: [Tsvwg] Adding to SCTP socket API (different topic; )
References: <43C5794D.6090706@hp.com> <43C6FA1D.9020706@middle.net>
In-Reply-To: <43C6FA1D.9020706@middle.net>
X-Enigmail-Version: 0.92.0.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 02ec665d00de228c50c93ed6b5e4fc1a
Content-Transfer-Encoding: 7bit
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org



Mark Butler wrote:
> Vlad Yasevich wrote:
> 
>> Hi All
>>
>> Is there any interest/support to adding an additional inteface
>> to SCTP socket API to convert peer address to association id.
>>
>> I've been asked on how to do this at least 5 times in the last month
>> or so.  It looks like the only way to get the association id is from
>> the notification event and some people are looking for a different
>> conversion.
>>
>> something like:
>>  sctp_addr_to_aid(int sd,
>>            const struct sockaddr *addr
>>            sctp_assoc_t *assoc_id);
>>
>>  sd:  socket descriptor
>>  addr: address of the peer including port number.
>>  assoc_id: returned association id.
>>  
>>
> I think it is a useful extension.

Thanks.

>  However, the normal way to get the
> association id is via the sctp_sndrcvinfo structure, which should be
> returned with every call to sctp_recvmsg.

That assumes that the app subscribed to the sctp_data_io_even.

It seems that the currect API spec is a bit contradictory in this regard.

Section 5.2, page 26 says:

   By default on a one-to-one style socket, SCTP will pass no ancillary
   data; on a one-to-many style socket, SCTP will only pass SCTP_SNDRCV
   and SCTP_ASSOC_CHANGE information.  Specific ancillary data items can
   be enabled with socket options defined for SCTP; see Section 7.3.

Section 7.3, page 68 says:

   By default both the one-to-one style and one-to-many style socket has
   all options off.


It looks like section 5.2 implies that SCTP_SNDRCV information is always
provided, but section 7.3 says that by default sctp_data_io_event is
disabled (thus SCTP_SNDRCV info is not provided).

Which should be the correct default?

Thanks
-vlad

> - Mark
> 

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 17 15:50:10 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EyxmL-0001ua-W5; Tue, 17 Jan 2006 15:50:09 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EyxmE-0001s6-Qx; Tue, 17 Jan 2006 15:50:02 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA16636;
	Tue, 17 Jan 2006 15:48:36 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1EyxuQ-00065r-JR; Tue, 17 Jan 2006 15:58:31 -0500
Received: from mlee by newodin.ietf.org with local (Exim 4.43)
	id 1EyxmD-0008DD-FZ; Tue, 17 Jan 2006 15:50:01 -0500
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
From: Internet-Drafts@ietf.org
Message-Id: <E1EyxmD-0008DD-FZ@newodin.ietf.org>
Date: Tue, 17 Jan 2006 15:50:01 -0500
X-Spam-Score: 0.4 (/)
X-Scan-Signature: 10d3e4e3c32e363f129e380e644649be
Cc: tsvwg@ietf.org
Subject: [Tsvwg] I-D ACTION:draft-ietf-tsvwg-ecn-alternates-00.txt 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Transport Area Working Group Working Group of the IETF.

	Title		: Specifying Alternate Semantics for the Explicit Congestion Notification (ECN) Field
	Author(s)	: S. Floyd
	Filename	: draft-ietf-tsvwg-ecn-alternates-00.txt,.ps
	Pages		: 15
	Date		: 2006-1-17
	
    There have been a number of proposals for alternate semantics for
    the ECN field in the IP header [ECN].  This document discusses some
    of the issues in defining alternate semantics for the ECN field, and
    specifies requirements for a safe co-existence in an Internet that
    could include routers that do not understand the defined alternate
    semantics.  This document evolved as a result of discussions with
    the authors of one recent proposal for such alternate semantics.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-ecn-alternates-00.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of the message.  
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.


Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-tsvwg-ecn-alternates-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-tsvwg-ecn-alternates-00.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body; access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID: <2006-1-17113133.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-tsvwg-ecn-alternates-00.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-tsvwg-ecn-alternates-00.txt";
	site="ftp.ietf.org"; access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2006-1-17113133.I-D@ietf.org>


--OtherAccess--

--NextPart
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--NextPart--





From tsvwg-bounces@ietf.org Fri Jan 20 15:50:22 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F03DC-0003om-5d; Fri, 20 Jan 2006 15:50:22 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F03Cv-0003k2-4j; Fri, 20 Jan 2006 15:50:05 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id PAA18085;
	Fri, 20 Jan 2006 15:48:37 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1F03Lg-0002Mi-Rw; Fri, 20 Jan 2006 15:59:10 -0500
Received: from mlee by newodin.ietf.org with local (Exim 4.43)
	id 1F03Cs-0003TE-1Z; Fri, 20 Jan 2006 15:50:02 -0500
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
From: Internet-Drafts@ietf.org
Message-Id: <E1F03Cs-0003TE-1Z@newodin.ietf.org>
Date: Fri, 20 Jan 2006 15:50:02 -0500
X-Spam-Score: 0.4 (/)
X-Scan-Signature: 10d3e4e3c32e363f129e380e644649be
Cc: tsvwg@ietf.org
Subject: [Tsvwg] I-D ACTION:draft-ietf-tsvwg-sctpthreat-00.txt 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Transport Area Working Group Working Group of the IETF.

	Title		: Stream Control Transmission Protocol (SCTP) Security Threats
	Author(s)	: R. Stewart, et al.
	Filename	: draft-ietf-tsvwg-sctpthreat-00.txt
	Pages		: 14
	Date		: 2006-1-20
	
   Stream Control Transmission Protocol RFC2960 [2] is a multi-homed
   transport protocol.  As such, unique security threats exists that are
   addressed in various ways within the protocol itself.  This document
   attempts to detail the known security threats and there
   countermeasures as detailed in the current version of the SCTP
   Implementors guide (SCTP-IG).  It is hoped that this information will
   provide some useful background information for many of the newest
   requirements spelled out in the SCTP-IG.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpthreat-00.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of the message.  
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.


Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-tsvwg-sctpthreat-00.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-tsvwg-sctpthreat-00.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body; access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID: <2006-1-20110612.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-tsvwg-sctpthreat-00.txt

--OtherAccess
Content-Type: Message/External-body; name="draft-ietf-tsvwg-sctpthreat-00.txt";
	site="ftp.ietf.org"; access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2006-1-20110612.I-D@ietf.org>


--OtherAccess--

--NextPart
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--NextPart--




From tsvwg-bounces@ietf.org Sun Jan 22 12:16:12 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F0ip2-0001Rr-2K; Sun, 22 Jan 2006 12:16:12 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F0ioy-0001Rf-NB
	for tsvwg@megatron.ietf.org; Sun, 22 Jan 2006 12:16:10 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA02901
	for <tsvwg@ietf.org>; Sun, 22 Jan 2006 12:14:39 -0500 (EST)
Message-Id: <200601221714.MAA02901@ietf.org>
Received: from psg.com ([147.28.0.62] ident=mailnull)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F0iyA-0005nz-25
	for tsvwg@ietf.org; Sun, 22 Jan 2006 12:25:38 -0500
Received: from localhost ([127.0.0.1] helo=psg.com)
	by psg.com with esmtp (Exim 4.60 (FreeBSD))
	(envelope-from <mankin@psg.com>) id 1F0iou-000PHn-Vh
	for tsvwg@ietf.org; Sun, 22 Jan 2006 17:16:04 +0000
To: tsvwg@ietf.org
Date: Sun, 22 Jan 2006 09:16:04 -0800
From: Allison Mankin <mankin@psg.com>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4b800b1eab964a31702fa68f1ff0e955
Subject: [Tsvwg] FW:  LC review: draft-ietf-tsvwg-rsvp-bw-reduction-01.txt
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: mankin@psg.com
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Here's a Last Call Review for the RSVP Bandwidth Reduction draft
from the General Area's Directorate Reviewer.

Allison

------- Forwarded Message
Date: Sat, 21 Jan 2006 22:53:57 -0500
To: "Mary Barnes" <mary.barnes@nortel.com>,<gen-art@ietf.org>
From: "Joel M. Halpern" <joel@stevecrocker.com>
Subject: Re:  LC review: draft-ietf-tsvwg-rsvp-bw-reduction-01.txt
Cc: Allison Mankin <mankin@psg.com>,jmpolk@cisco.com,sdhesika@cisco.com

I was selected as General Area Review Team reviewer for this specification
(for background on Gen-ART, please see
http://www.alvestrand.no/ietf/gen/art/gen-art-FAQ.html).

This document is ready for publication as a proposed standard.

One minor  (but complicated) question does occur to me reading this 
document.  There are also two nits that should be considered when and if 
there is a need to revise this document.


The minor question is about the possible ill effects of support for this 
extensions.
Suppose that all relevant routers support this extension.
Suppose that there is a router with 40 units of reservation capacity, and 
two low priority flows each of 20 units.
A new high priority request comes in requesting 20 units of capacity.
Without this mechanism, there is no choice.  One of the two low priority 
reservations would be thrown out.
With this extension, the router might decide to ask both existing 
reservations to reduce themselves to 10 units.
If the router could know that the flows could be throttled, this would 
probably be the right thing to do.
However, if the flows can not be throttled, I think this will instead 
result in both flows being thrown off, and then a race to reestablish the 
flows.  Thus, instead of disrupting one flow, two flows will be hurt for a 
time.
I am not sure that is actually what this does.
Even if I am correct, that is not a reason to refrain from publishing 
this.  However, it would suggest a note of caution.

Nit:  In the example in section 3, it is confusing to use Flow A, Flow B 
and Aggregate A (Of Flows 1-5) and Aggregate B (Of flows A-E).  Couldn't 
the aggregates be X and Y (or I and J, or...)
Nit: In the example description in section 3.1, it would be helpful if the 
description of the 880k "offered" said "offered load".  I was confused and 
thought it might mean offered capacity which would be completely backwards.

Yours,
Joel M. Halpern

At 07:24 PM 1/17/2006, Mary Barnes wrote:
>---------------------------
>Reviewer: Joel Halpern
>
>- 'A Resource Reservation Protocol Extension for the Reduction of 
>Bandwidth of
>    a Reservation Flow '
>    <draft-ietf-tsvwg-rsvp-bw-reduction-01.txt> as a Proposed Standard
>
>IETF LC ends on 2006-01-26.
>
>The file can be obtained via
>http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-01.txt





_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 23 13:53:37 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F16or-0008Pm-Mi; Mon, 23 Jan 2006 13:53:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F16op-0008Ng-So
	for tsvwg@megatron.ietf.org; Mon, 23 Jan 2006 13:53:35 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA09403
	for <tsvwg@ietf.org>; Mon, 23 Jan 2006 13:52:05 -0500 (EST)
Received: from sj-iport-3-in.cisco.com ([171.71.176.72]
	helo=sj-iport-3.cisco.com) by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1F16yE-0008RY-Hf
	for tsvwg@ietf.org; Mon, 23 Jan 2006 14:03:19 -0500
Received: from sj-core-2.cisco.com ([171.71.177.254])
	by sj-iport-3.cisco.com with ESMTP; 23 Jan 2006 10:53:26 -0800
Received: from xbh-sjc-221.amer.cisco.com (xbh-sjc-221.cisco.com
	[128.107.191.63])
	by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id k0NIrJWp022845;
	Mon, 23 Jan 2006 10:53:26 -0800 (PST)
Received: from xfe-sjc-211.amer.cisco.com ([171.70.151.174]) by
	xbh-sjc-221.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211);
	Mon, 23 Jan 2006 10:53:23 -0800
Received: from jmpolk-wxp.cisco.com ([10.21.89.24]) by
	xfe-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.211);
	Mon, 23 Jan 2006 10:53:22 -0800
Message-Id: <4.3.2.7.2.20060123121814.034ade58@email.cisco.com>
X-Sender: jmpolk@email.cisco.com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Mon, 23 Jan 2006 12:53:22 -0600
To: mankin@psg.com, tsvwg@ietf.org
From: "James M. Polk" <jmpolk@cisco.com>
Subject: Re: [Tsvwg] FW:  LC review: draft-ietf-tsvwg-rsvp-bw-reduction-01.txt
In-Reply-To: <200601221714.MAA02901@ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-OriginalArrivalTime: 23 Jan 2006 18:53:23.0117 (UTC)
	FILETIME=[4903EDD0:01C6204E]
X-Spam-Score: 2.0 (++)
X-Scan-Signature: b22590c27682ace61775ee7b453b40d3
Cc: 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Allison

Comments in-line

At 09:16 AM 1/22/2006 -0800, Allison Mankin wrote:
>Here's a Last Call Review for the RSVP Bandwidth Reduction draft
>from the General Area's Directorate Reviewer.
>
>Allison
>
>------- Forwarded Message
>Date: Sat, 21 Jan 2006 22:53:57 -0500
>To: "Mary Barnes" <mary.barnes@nortel.com>,<gen-art@ietf.org>
>From: "Joel M. Halpern" <joel@stevecrocker.com>
>Subject: Re:  LC review: draft-ietf-tsvwg-rsvp-bw-reduction-01.txt
>Cc: Allison Mankin <mankin@psg.com>,jmpolk@cisco.com,sdhesika@cisco.com
>
>I was selected as General Area Review Team reviewer for this specification
>(for background on Gen-ART, please see
>http://www.alvestrand.no/ietf/gen/art/gen-art-FAQ.html).
>
>This document is ready for publication as a proposed standard.
>
>One minor  (but complicated) question does occur to me reading this
>document.  There are also two nits that should be considered when and if
>there is a need to revise this document.
>
>
>The minor question is about the possible ill effects of support for this
>extensions.
>Suppose that all relevant routers support this extension.
>Suppose that there is a router with 40 units of reservation capacity, and
>two low priority flows each of 20 units.
>A new high priority request comes in requesting 20 units of capacity.
>Without this mechanism, there is no choice.  One of the two low priority
>reservations would be thrown out.
>With this extension, the router might decide to ask both existing
>reservations to reduce themselves to 10 units.

This is not possible.  We purposely left out discussions of preemption, 
because that is not what this is doing *but* this is the way I read the 
example above, as a preemption event.  This ID is only discussing taking 
some BW from a flow, regardless of the type of flow (individual, aggregate 
or tunnel).

We also purposely left out how a router picks which flow to reduce 
from.  That is a separate idea, and there be dragons there, so we didn't 
want to go there with this doc.

Also, the router has no way of knowing either flow, meaning either set of 
endpoints per flow, is willing to accept this reduction, at least not in a 
reasonable timeframe.

>If the router could know that the flows could be throttled, this would
>probably be the right thing to do.

This seems like a new extension to be discussed, one in which there is 
something in the PATH and RESV messages indicating that a flow is willing 
to be reduced to some lower BW amount at a future time in the flow.  Only 
with this information can a router in the flow make a timely decision.

>However, if the flows can not be throttled, I think this will instead
>result in both flows being thrown off, and then a race to reestablish the
>flows.

If this comment above, which seems a little out of context to me reading 
this, is stating a router can make a bad choice and reduce two flows by 10 
units each instead of one flow by 20, I have to ask where did a reader or 
coder come up with this idea?  I believe anyone who is trained in the art 
of RSVP coding will not code an implementation in this way without knowing 
of the pitfalls of this mistake to all flows they choose to reduce BW from.

If you want, I can add a comment something like this:

"Bandwidth SHOULD NOT be reduced across multiple reservations at the same 
time, in reaction to the same reduction event.  A router not knowing the 
impact of reservation bandwidth reduction on more than one flow may cause 
more wide spread ill effects than is necessary."

I think this leaves room for a future RSVP extension to "update" this 
document with how this can be done successfully.

>Thus, instead of disrupting one flow, two flows will be hurt for a
>time.
>I am not sure that is actually what this does.
>Even if I am correct, that is not a reason to refrain from publishing
>this.  However, it would suggest a note of caution.
>
>Nit:  In the example in section 3, it is confusing to use Flow A, Flow B
>and Aggregate A (Of Flows 1-5) and Aggregate B (Of flows A-E).  Couldn't
>the aggregates be X and Y (or I and J, or...)

I could make this change as well, probably to Aggregates X and Y.

>Nit: In the example description in section 3.1, it would be helpful if the
>description of the 880k "offered" said "offered load".  I was confused and
>thought it might mean offered capacity which would be completely backwards.

fair change request


>Yours,
>Joel M. Halpern
>
>At 07:24 PM 1/17/2006, Mary Barnes wrote:
> >---------------------------
> >Reviewer: Joel Halpern
> >
> >- 'A Resource Reservation Protocol Extension for the Reduction of
> >Bandwidth of
> >    a Reservation Flow '
> >    <draft-ietf-tsvwg-rsvp-bw-reduction-01.txt> as a Proposed Standard
> >
> >IETF LC ends on 2006-01-26.
> >
> >The file can be obtained via
> >http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-01 
> .txt
>
>
>
>
>
>_______________________________________________
>tsvwg mailing list
>tsvwg@ietf.org
>https://www1.ietf.org/mailman/listinfo/tsvwg

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 23 23:52:40 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1GAa-0002RR-Mf; Mon, 23 Jan 2006 23:52:40 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1GAZ-0002RM-D5
	for tsvwg@megatron.ietf.org; Mon, 23 Jan 2006 23:52:39 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id XAA05255
	for <tsvwg@ietf.org>; Mon, 23 Jan 2006 23:51:09 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1GJz-0000bv-OI
	for tsvwg@ietf.org; Tue, 24 Jan 2006 00:02:27 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	CFY67213 for <tsvwg@ietf.org>; Mon, 23 Jan 2006 21:52:13 -0700
Message-ID: <43D5B293.2050900@middle.net>
Date: Mon, 23 Jan 2006 21:52:35 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: e5ba305d0e64821bf3d8bc5d3bb07228
Content-Transfer-Encoding: 7bit
Subject: [Tsvwg] SCTP Addresses as upper layer ids
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org


The SCTP socket draft currently describes the behavior of  recvmsg(2) as 
having msg_name set to the "source transport address of the user data".  
This complicates applications that use addresses instead of association 
ids to identify peers.

There is draft layer 3 multihoming support for IPv6 based on the idea 
that upper layer applications should only need to know about the primary 
address or "upper layer id" of each peer.  The shim6 draft (*) describes 
a shim for IPv6 that does this translation in layer 3.

I think the general idea behind this concept is useful for SCTP as 
well.  To implement this, recvmsg(2) would always return the 
address/port used to initiate the association with (if initiated 
locally) or the initial source address/port (if the association was 
initiated by the peer).  This address/port would be the "upper layer 
id". Applications could use the upper layer id as a stable identifier 
for the peer during the life of the association, allowing them to 
largely be transparent to multihoming / path failover at the SCTP 
layer.   The primary advantage of doing this over using association ids 
is protocol portability, of course.

Comments?

 - Mark


(*) http://www.ietf.org/internet-drafts/draft-ietf-shim6-proto-03.txt

See also 
http://www.apnic.net/community/presentations/docs/ietf/2005/20050802-shim6-arch.pdf

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 04:09:29 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1KB7-0004uN-Hv; Tue, 24 Jan 2006 04:09:29 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1KB4-0004q6-Tb
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 04:09:27 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id EAA21513
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 04:07:55 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1KKa-0000lm-7J
	for tsvwg@ietf.org; Tue, 24 Jan 2006 04:19:17 -0500
Received: from [192.168.1.100] (p508F749B.dip.t-dialin.net [80.143.116.155])
	by ilsa.franken.de (Postfix) with ESMTP
	id 878AF245D2; Tue, 24 Jan 2006 10:09:10 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43D5B293.2050900@middle.net>
References: <43D5B293.2050900@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
Date: Tue, 24 Jan 2006 10:09:27 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 1.3 (+)
X-Scan-Signature: f4c2cf0bccc868e4cc88dace71fb3f44
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi Mark,

see my comments in-line.

Best regards
Michael

On Jan 24, 2006, at 5:52 AM, Mark Butler wrote:

>
> The SCTP socket draft currently describes the behavior of  recvmsg 
> (2) as having msg_name set to the "source transport address of the  
> user data".  This complicates applications that use addresses  
> instead of association ids to identify peers.
>
> There is draft layer 3 multihoming support for IPv6 based on the  
> idea that upper layer applications should only need to know about  
> the primary address or "upper layer id" of each peer.  The shim6  
> draft (*) describes a shim for IPv6 that does this translation in  
> layer 3.
>
> I think the general idea behind this concept is useful for SCTP as  
> well.  To implement this, recvmsg(2) would always return the  
> address/port used to initiate the association with (if initiated  
> locally) or the initial source address/port (if the association was  
> initiated by the peer).  This address/port would be the "upper  
> layer id". Applications could use the upper layer id as a stable  
> identifier for the peer during the life of the association,  
> allowing them to largely be transparent to multihoming / path  
> failover at the SCTP layer.   The primary advantage of doing this  
> over using association ids is protocol portability, of course.
The association id is exactly used for that. The problem with the  
addresses is, that they can change
over time and they could even move from an association to another  
when ADD-IP is used. So it is a bad
idea to use something, which is not constant over the lifetime of an  
association for identifying an
association.



>
> Comments?
>
> - Mark
>
>
> (*) http://www.ietf.org/internet-drafts/draft-ietf-shim6-proto-03.txt
>
> See also http://www.apnic.net/community/presentations/docs/ietf/ 
> 2005/20050802-shim6-arch.pdf
>
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 11:46:56 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1RJo-0005rS-Iy; Tue, 24 Jan 2006 11:46:56 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1RJm-0005qz-Eo
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 11:46:54 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA28672
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 11:45:23 -0500 (EST)
Received: from mail.sbs.be ([193.109.72.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1RTI-0001mj-8m
	for tsvwg@ietf.org; Tue, 24 Jan 2006 11:56:47 -0500
Received: from bruc002x.sbs.be (bruc002x.sbs.be [193.210.175.98])
	by mail.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0OGkVbN011999; Tue, 24 Jan 2006 17:46:31 +0100
Received: from bru0007a.ww018.siemens.net (bru0007a.ww018.siemens.net
	[193.210.175.161])
	by bruc002x.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0OGkQGV028806; Tue, 24 Jan 2006 17:46:29 +0100
Received: from BRU0038A.ww018.siemens.net ([193.210.175.64]) by
	bru0007a.ww018.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); 
	Tue, 24 Jan 2006 17:46:24 +0100
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Tsvwg] SCTP Addresses as upper layer ids
Date: Tue, 24 Jan 2006 17:45:59 +0100
Message-ID: <67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net>
Thread-Topic: [Tsvwg] SCTP Addresses as upper layer ids
Thread-Index: AcYgon8XQIHLLMdrT2K7g3cC+Dl5nwAWqQXg
From: "Coene, Lode" <Lode.Coene@siemens.com>
To: "Mark Butler" <butlerm@middle.net>, <tsvwg@ietf.org>
X-OriginalArrivalTime: 24 Jan 2006 16:46:24.0299 (UTC)
	FILETIME=[B6424FB0:01C62105]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1a1bf7677bfe77d8af1ebe0e91045c5b
Content-Transfer-Encoding: quoted-printable
Cc: 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org


> -----Original Message-----
> From: tsvwg-bounces@ietf.org [mailto:tsvwg-bounces@ietf.org]=20
> On Behalf Of Mark Butler
> Sent: dinsdag 24 januari 2006 5:53
> To: tsvwg@ietf.org
> Subject: [Tsvwg] SCTP Addresses as upper layer ids
>=20
>=20
> The SCTP socket draft currently describes the behavior of =20
> recvmsg(2) as=20
> having msg_name set to the "source transport address of the=20
> user data". =20
> This complicates applications that use addresses instead of=20
> association=20
> ids to identify peers.
>=20
> There is draft layer 3 multihoming support for IPv6 based on the idea=20
> that upper layer applications should only need to know about=20
> the primary=20
> address or "upper layer id" of each peer.  The shim6 draft=20
> (*) describes=20
> a shim for IPv6 that does this translation in layer 3.
>=20
> I think the general idea behind this concept is useful for SCTP as=20
> well.  To implement this, recvmsg(2) would always return the=20
> address/port used to initiate the association with (if initiated=20
> locally) or the initial source address/port (if the association was=20
> initiated by the peer).  This address/port would be the "upper layer=20
> id". Applications could use the upper layer id as a stable identifier=20
> for the peer during the life of the association, allowing them to=20
> largely be transparent to multihoming / path failover at the SCTP=20
> layer.   The primary advantage of doing this over using=20
> association ids=20
> is protocol portability, of course.

The main problem with this approach is SCTP will see only one
address(+port),
The actual multihoming stuff with the different IP address is done in
the SHIM and is invisible to SCTP.
SCTP would be single homed with that upper layer id and below in the
SHIM layer, multiple paths may exist(with changes between the paths
based on reachability of the remote addresses). So if a path changes
during a SCTP file transfer, would that be a good idea or
not...(remember SCTP is not in charge of pathchanges and doesn't even
know if different paths exist, let alone how many, and which path
characteristics....

There is talk about exposing this stuff to the transport protocols in
general so that they know what has changed(example path change, new IP
address added or removed...) but then the questions should be : if so
much info needs to be given to the next upper layer, is this then
actually a good idea to do it in the SHIM layer? You'll end up with
twice the state(state in SCTP and state in SHIM) and no gain over the
present SCTP solution(actually it would be multihoming with reduced
functionality compared to SCTP) ADD/DELL IP would be duplicated in the
transport and network layer=20

SHIM make some sense for UDP and TCP connections(no change in API to TCP
as such...) and TCP is singled homed anyway. But TCP does not need the
exposed stuff from SHIM, only UDP and SCTP may be interested in it...
UDP means the application has to add code to handle it..(Do all
applications need this.. Probably no, but some would..)
And SCTP has to add code also to handle it(the application is free to
let SCTP handle the multihoming magic or try to put some extra
application magic/logic in the choice of the paths used ....)
=20
Well, I just did a port to a socket SCTP implementation and
I was damm glad that at least the sctp_sendmsg and SCTP_receivmsg had a
structure component containing  the SCTP assoc Id.
Otherwise I had to dig up the IP address everytime I had to send/receive
something
And it remains constant during the whole lifetime of the
association(independent from IPv6 renumbering, mobile endpoints and
associations containing both ipv4 and ipv6 addresses... )

>=20
> Comments?
>=20
>  - Mark
>=20
>=20
> (*) http://www.ietf.org/internet-drafts/draft-ietf-shim6-proto-03.txt
>=20
> See also=20
> http://www.apnic.net/community/presentations/docs/ietf/2005/20
> 050802-shim6-arch.pdf
>=20

Yours sincerely,
Lode Coene

Siemens COM
atealaan 34          2200 Herentals, Belgium
E-mail: lode.coene@siemens.com
Tel: +32-14-252081
Fax: +32-14-253212
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>=20

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 11:58:49 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1RVJ-0000h1-S1; Tue, 24 Jan 2006 11:58:49 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1RVI-0000ga-82
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 11:58:48 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA29772
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 11:57:17 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1Rer-0002KA-SB
	for tsvwg@ietf.org; Tue, 24 Jan 2006 12:08:42 -0500
Received: from [192.168.1.100] (p508F749B.dip.t-dialin.net [80.143.116.155])
	by ilsa.franken.de (Postfix) with ESMTP
	id 0D209245CE; Tue, 24 Jan 2006 17:58:44 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net>
References: <67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <B86942C2-72BC-4B46-9D9E-E71A879E59D0@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
Date: Tue, 24 Jan 2006 17:59:02 +0100
To: "Coene, Lode" <Lode.Coene@siemens.com>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 1.3 (+)
X-Scan-Signature: 22bbb45ef41b733eb2d03ee71ece8243
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi Lode,

if I understood Mark correctly (please correct me if I'm wrong),
he was only talking to provide always the same address in the
recvfrom calls, not providing the SCTP stack always with the
same address.

So it is just a question about the interface SCTP/User.

And as you figured out, the assoc_id is for identifying the
association...

Best regards
Michael

On Jan 24, 2006, at 5:45 PM, Coene, Lode wrote:

>
>> -----Original Message-----
>> From: tsvwg-bounces@ietf.org [mailto:tsvwg-bounces@ietf.org]
>> On Behalf Of Mark Butler
>> Sent: dinsdag 24 januari 2006 5:53
>> To: tsvwg@ietf.org
>> Subject: [Tsvwg] SCTP Addresses as upper layer ids
>>
>>
>> The SCTP socket draft currently describes the behavior of
>> recvmsg(2) as
>> having msg_name set to the "source transport address of the
>> user data".
>> This complicates applications that use addresses instead of
>> association
>> ids to identify peers.
>>
>> There is draft layer 3 multihoming support for IPv6 based on the idea
>> that upper layer applications should only need to know about
>> the primary
>> address or "upper layer id" of each peer.  The shim6 draft
>> (*) describes
>> a shim for IPv6 that does this translation in layer 3.
>>
>> I think the general idea behind this concept is useful for SCTP as
>> well.  To implement this, recvmsg(2) would always return the
>> address/port used to initiate the association with (if initiated
>> locally) or the initial source address/port (if the association was
>> initiated by the peer).  This address/port would be the "upper layer
>> id". Applications could use the upper layer id as a stable identifier
>> for the peer during the life of the association, allowing them to
>> largely be transparent to multihoming / path failover at the SCTP
>> layer.   The primary advantage of doing this over using
>> association ids
>> is protocol portability, of course.
>
> The main problem with this approach is SCTP will see only one
> address(+port),
> The actual multihoming stuff with the different IP address is done in
> the SHIM and is invisible to SCTP.
> SCTP would be single homed with that upper layer id and below in the
> SHIM layer, multiple paths may exist(with changes between the paths
> based on reachability of the remote addresses). So if a path changes
> during a SCTP file transfer, would that be a good idea or
> not...(remember SCTP is not in charge of pathchanges and doesn't even
> know if different paths exist, let alone how many, and which path
> characteristics....
>
> There is talk about exposing this stuff to the transport protocols in
> general so that they know what has changed(example path change, new IP
> address added or removed...) but then the questions should be : if so
> much info needs to be given to the next upper layer, is this then
> actually a good idea to do it in the SHIM layer? You'll end up with
> twice the state(state in SCTP and state in SHIM) and no gain over the
> present SCTP solution(actually it would be multihoming with reduced
> functionality compared to SCTP) ADD/DELL IP would be duplicated in the
> transport and network layer
>
> SHIM make some sense for UDP and TCP connections(no change in API  
> to TCP
> as such...) and TCP is singled homed anyway. But TCP does not need the
> exposed stuff from SHIM, only UDP and SCTP may be interested in it...
> UDP means the application has to add code to handle it..(Do all
> applications need this.. Probably no, but some would..)
> And SCTP has to add code also to handle it(the application is free to
> let SCTP handle the multihoming magic or try to put some extra
> application magic/logic in the choice of the paths used ....)
>
> Well, I just did a port to a socket SCTP implementation and
> I was damm glad that at least the sctp_sendmsg and SCTP_receivmsg  
> had a
> structure component containing  the SCTP assoc Id.
> Otherwise I had to dig up the IP address everytime I had to send/ 
> receive
> something
> And it remains constant during the whole lifetime of the
> association(independent from IPv6 renumbering, mobile endpoints and
> associations containing both ipv4 and ipv6 addresses... )
>
>>
>> Comments?
>>
>>  - Mark
>>
>>
>> (*) http://www.ietf.org/internet-drafts/draft-ietf-shim6-proto-03.txt
>>
>> See also
>> http://www.apnic.net/community/presentations/docs/ietf/2005/20
>> 050802-shim6-arch.pdf
>>
>
> Yours sincerely,
> Lode Coene
>
> Siemens COM
> atealaan 34          2200 Herentals, Belgium
> E-mail: lode.coene@siemens.com
> Tel: +32-14-252081
> Fax: +32-14-253212
>> _______________________________________________
>> tsvwg mailing list
>> tsvwg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/tsvwg
>>
>
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 12:25:46 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1RvO-0002Wk-3F; Tue, 24 Jan 2006 12:25:46 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1RvM-0002W9-Bv
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 12:25:44 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id MAA02257
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 12:24:14 -0500 (EST)
Received: from mail.sbs.be ([193.109.72.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1S4w-0003TB-FN
	for tsvwg@ietf.org; Tue, 24 Jan 2006 12:35:39 -0500
Received: from bruc002x.sbs.be (bruc002x.sbs.be [193.210.175.98])
	by mail.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0OHPQbN016023; Tue, 24 Jan 2006 18:25:26 +0100
Received: from bru0007a.ww018.siemens.net (bru0007a.ww018.siemens.net
	[193.210.175.161])
	by bruc002x.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0OHPPGL001930; Tue, 24 Jan 2006 18:25:25 +0100
Received: from BRU0038A.ww018.siemens.net ([193.210.175.64]) by
	bru0007a.ww018.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); 
	Tue, 24 Jan 2006 18:25:23 +0100
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Tsvwg] SCTP Addresses as upper layer ids
Date: Tue, 24 Jan 2006 18:25:10 +0100
Message-ID: <67043E463DDBFD4A8087ED940BFF756B6B5718@BRU0038A.ww018.siemens.net>
Thread-Topic: [Tsvwg] SCTP Addresses as upper layer ids
Thread-Index: AcYhB3GZgC9M98YGRC6QQCL13sz2hQAAWQFw
From: "Coene, Lode" <Lode.Coene@siemens.com>
To: "Michael Tuexen" <Michael.Tuexen@lurchi.franken.de>
X-OriginalArrivalTime: 24 Jan 2006 17:25:23.0190 (UTC)
	FILETIME=[2858C160:01C6210B]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0e9ebc0cbd700a87c0637ad0e2c91610
Content-Transfer-Encoding: quoted-printable
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org


> -----Original Message-----
> From: Michael Tuexen [mailto:Michael.Tuexen@lurchi.franken.de]=20
> Sent: dinsdag 24 januari 2006 17:59
> To: Coene, Lode
> Cc: Mark Butler; tsvwg@ietf.org
> Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
>=20
> Hi Lode,
>=20
> if I understood Mark correctly (please correct me if I'm wrong),
> he was only talking to provide always the same address in the
> recvfrom calls, not providing the SCTP stack always with the
> same address.

Well Mark talks about the ULP identifier in the recvfrom call, but you
could use that ULP identifier also for sending msg.. Maybe I am seeing
more in it than meets the eye....
Or is this about the providing the recvfrom with a certain "address" on
which the recvfrom has to "listen" till something comes in...???

>=20
> So it is just a question about the interface SCTP/User.

Yep, but it has it consequences...

>=20
> And as you figured out, the assoc_id is for identifying the
> association...

That wasn't that hard to figure out, was it......

>=20
> Best regards
> Michael

Yours sincerely,
Lode

Siemens COM
atealaan 34          2200 Herentals, Belgium
E-mail: lode.coene@siemens.com
Tel: +32-14-252081
Fax: +32-14-253212

=20
>=20
> On Jan 24, 2006, at 5:45 PM, Coene, Lode wrote:
>=20
> >
> >> -----Original Message-----
> >> From: tsvwg-bounces@ietf.org [mailto:tsvwg-bounces@ietf.org]
> >> On Behalf Of Mark Butler
> >> Sent: dinsdag 24 januari 2006 5:53
> >> To: tsvwg@ietf.org
> >> Subject: [Tsvwg] SCTP Addresses as upper layer ids
> >>
> >>
> >> The SCTP socket draft currently describes the behavior of
> >> recvmsg(2) as
> >> having msg_name set to the "source transport address of the
> >> user data".
> >> This complicates applications that use addresses instead of
> >> association
> >> ids to identify peers.
> >>
> >> There is draft layer 3 multihoming support for IPv6 based=20
> on the idea
> >> that upper layer applications should only need to know about
> >> the primary
> >> address or "upper layer id" of each peer.  The shim6 draft
> >> (*) describes
> >> a shim for IPv6 that does this translation in layer 3.
> >>
> >> I think the general idea behind this concept is useful for SCTP as
> >> well.  To implement this, recvmsg(2) would always return the
> >> address/port used to initiate the association with (if initiated
> >> locally) or the initial source address/port (if the association was
> >> initiated by the peer).  This address/port would be the=20
> "upper layer
> >> id". Applications could use the upper layer id as a stable=20
> identifier
> >> for the peer during the life of the association, allowing them to
> >> largely be transparent to multihoming / path failover at the SCTP
> >> layer.   The primary advantage of doing this over using
> >> association ids
> >> is protocol portability, of course.
> >
> > The main problem with this approach is SCTP will see only one
> > address(+port),
> > The actual multihoming stuff with the different IP address=20
> is done in
> > the SHIM and is invisible to SCTP.
> > SCTP would be single homed with that upper layer id and below in the
> > SHIM layer, multiple paths may exist(with changes between the paths
> > based on reachability of the remote addresses). So if a path changes
> > during a SCTP file transfer, would that be a good idea or
> > not...(remember SCTP is not in charge of pathchanges and=20
> doesn't even
> > know if different paths exist, let alone how many, and which path
> > characteristics....
> >
> > There is talk about exposing this stuff to the transport=20
> protocols in
> > general so that they know what has changed(example path=20
> change, new IP
> > address added or removed...) but then the questions should=20
> be : if so
> > much info needs to be given to the next upper layer, is this then
> > actually a good idea to do it in the SHIM layer? You'll end up with
> > twice the state(state in SCTP and state in SHIM) and no=20
> gain over the
> > present SCTP solution(actually it would be multihoming with reduced
> > functionality compared to SCTP) ADD/DELL IP would be=20
> duplicated in the
> > transport and network layer
> >
> > SHIM make some sense for UDP and TCP connections(no change in API =20
> > to TCP
> > as such...) and TCP is singled homed anyway. But TCP does=20
> not need the
> > exposed stuff from SHIM, only UDP and SCTP may be=20
> interested in it...
> > UDP means the application has to add code to handle it..(Do all
> > applications need this.. Probably no, but some would..)
> > And SCTP has to add code also to handle it(the application=20
> is free to
> > let SCTP handle the multihoming magic or try to put some extra
> > application magic/logic in the choice of the paths used ....)
> >
> > Well, I just did a port to a socket SCTP implementation and
> > I was damm glad that at least the sctp_sendmsg and SCTP_receivmsg =20
> > had a
> > structure component containing  the SCTP assoc Id.
> > Otherwise I had to dig up the IP address everytime I had to send/=20
> > receive
> > something
> > And it remains constant during the whole lifetime of the
> > association(independent from IPv6 renumbering, mobile endpoints and
> > associations containing both ipv4 and ipv6 addresses... )
> >
> >>
> >> Comments?
> >>
> >>  - Mark
> >>
> >>
> >> (*)=20
> http://www.ietf.org/internet-drafts/draft-ietf-shim6-proto-03.txt
> >>
> >> See also
> >> http://www.apnic.net/community/presentations/docs/ietf/2005/20
> >> 050802-shim6-arch.pdf
> >>
> >
> > Yours sincerely,
> > Lode Coene
> >
> > Siemens COM
> > atealaan 34          2200 Herentals, Belgium
> > E-mail: lode.coene@siemens.com
> > Tel: +32-14-252081
> > Fax: +32-14-253212
> >> _______________________________________________
> >> tsvwg mailing list
> >> tsvwg@ietf.org
> >> https://www1.ietf.org/mailman/listinfo/tsvwg
> >>
> >
> > _______________________________________________
> > tsvwg mailing list
> > tsvwg@ietf.org
> > https://www1.ietf.org/mailman/listinfo/tsvwg
> >
>=20
>=20

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 16:04:58 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1VLW-0002K7-OQ; Tue, 24 Jan 2006 16:04:58 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1VLU-0002JG-DE
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 16:04:56 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA22390
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 16:03:24 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1VV2-0004cM-Rg
	for tsvwg@ietf.org; Tue, 24 Jan 2006 16:14:52 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	CWC21937; Tue, 24 Jan 2006 14:04:37 -0700
Message-ID: <43D6967F.7000905@middle.net>
Date: Tue, 24 Jan 2006 14:05:03 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
References: <43D5B293.2050900@middle.net>
	<D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
In-Reply-To: <D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 02ec665d00de228c50c93ed6b5e4fc1a
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Michael Tuexen wrote:

>
> On Jan 24, 2006, at 5:52 AM, Mark Butler wrote:
>
>> I think the general idea behind this concept is useful for SCTP as  
>> well.  To implement this, recvmsg(2) would always return the  
>> address/port used to initiate the association with (if initiated  
>> locally) or the initial source address/port (if the association was  
>> initiated by the peer).  This address/port would be the "upper  layer 
>> id". Applications could use the upper layer id as a stable  
>> identifier for the peer during the life of the association,  allowing 
>> them to largely be transparent to multihoming / path  failover at the 
>> SCTP layer.   The primary advantage of doing this  over using 
>> association ids is protocol portability, of course.
>
> The association id is exactly used for that. The problem with the  
> addresses is, that they can change
> over time and they could even move from an association to another  
> when ADD-IP is used. So it is a bad
> idea to use something, which is not constant over the lifetime of an  
> association for identifying an
> association.

I left out something important - sendto(2) would always translate from 
the specified address (the "upper layer id") to the active address.  
Those two translations are adequate to handle the multihoming aliasing 
problem.


For mobile SCTP, sendto()/recvfrom() programming style does not work 
correctly without handling address change events. The only change that 
matters here is when the peer has vacated the original address, 
requiring a new upper layer id assignment (to prevent conflicts with 
other clients occupying the old address).  Other address changes can be 
ignored, because the stack would translate in both directions in the 
same manner as shim6.

More to the point, mobile SCTP applications generally require a session 
oriented programming style, with the session initiated by the remote 
client.  So session identification by association id on the server is 
just fine.   However, if you have a large number of UDP style clients, 
association autoclose and a non-session oriented sendto()/recvfrom() 
style programming is a practical necessity, because associations come 
and go and association ids get arbitrarily reassigned to new peers.

- Mark


Aside: A protocol extension to allow associations to restart after 
shutdown would allow light weight, authenticated virtual associations 
that last indefinitely, even with address mobility.   A proper design 
would allow ULPs to save association cookies and shared keys in 
persistent storage, so that associations could be shutdown and restarted 
days or weeks later.  The ULP should be able to specify its own 
persistent association identifier, and have it returned with every 
incoming message.  That would solve the typical session orientation 
requirement of mobile SCTP applications.




_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 16:24:33 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1VeT-0004lw-NI; Tue, 24 Jan 2006 16:24:33 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1VeS-0004lg-Ls
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 16:24:32 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA29464
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 16:23:01 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1Vo2-0007KI-2R
	for tsvwg@ietf.org; Tue, 24 Jan 2006 16:34:29 -0500
Received: from [192.168.1.104] (p508F7C09.dip.t-dialin.net [80.143.124.9])
	by ilsa.franken.de (Postfix) with ESMTP
	id A5F98245C3; Tue, 24 Jan 2006 22:24:13 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43D6967F.7000905@middle.net>
References: <43D5B293.2050900@middle.net>
	<D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
	<43D6967F.7000905@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <20573C11-E355-40FA-B046-4E4F88C1CE5E@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
Date: Tue, 24 Jan 2006 22:24:10 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.2 (/)
X-Scan-Signature: bdc523f9a54890b8a30dd6fd53d5d024
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi Mark,

see my comments in-line.

Best regards
Michael

On Jan 24, 2006, at 10:05 PM, Mark Butler wrote:

> Michael Tuexen wrote:
>
>>
>> On Jan 24, 2006, at 5:52 AM, Mark Butler wrote:
>>
>>> I think the general idea behind this concept is useful for SCTP  
>>> as  well.  To implement this, recvmsg(2) would always return the   
>>> address/port used to initiate the association with (if initiated   
>>> locally) or the initial source address/port (if the association  
>>> was  initiated by the peer).  This address/port would be the  
>>> "upper  layer id". Applications could use the upper layer id as a  
>>> stable  identifier for the peer during the life of the  
>>> association,  allowing them to largely be transparent to  
>>> multihoming / path  failover at the SCTP layer.   The primary  
>>> advantage of doing this  over using association ids is protocol  
>>> portability, of course.
>>
>> The association id is exactly used for that. The problem with the   
>> addresses is, that they can change
>> over time and they could even move from an association to another   
>> when ADD-IP is used. So it is a bad
>> idea to use something, which is not constant over the lifetime of  
>> an  association for identifying an
>> association.
>
> I left out something important - sendto(2) would always translate  
> from the specified address (the "upper layer id") to the active  
> address.  Those two translations are adequate to handle the  
> multihoming aliasing problem.
Yes, I assumed this. But the assoc_id just does what you want...
>
>
> For mobile SCTP, sendto()/recvfrom() programming style does not  
> work correctly without handling address change events. The only  
> change that matters here is when the peer has vacated the original  
> address, requiring a new upper layer id assignment (to prevent  
> conflicts with other clients occupying the old address).  Other  
> address changes can be ignored, because the stack would translate  
> in both directions in the same manner as shim6.
I do not get the point here. The stuff is not mobile SCTP related. It  
is just that an IP-address does not identify
an association during the lifetime of the association. The  
association id is exactly designed for it.
>
> More to the point, mobile SCTP applications generally require a  
> session oriented programming style, with the session initiated by  
> the remote client.  So session identification by association id on  
> the server is just fine.   However, if you have a large number of  
> UDP style clients, association autoclose and a non-session oriented  
> sendto()/recvfrom() style programming is a practical necessity,  
> because associations come and go and association ids get  
> arbitrarily reassigned to new peers.
>
> - Mark
>
>
> Aside: A protocol extension to allow associations to restart after  
> shutdown would allow light weight, authenticated virtual  
> associations that last indefinitely, even with address mobility.    
> A proper design would allow ULPs to save association cookies and  
> shared keys in persistent storage, so that associations could be  
> shutdown and restarted days or weeks later.  The
> ULP should be able to specify its own persistent association  
> identifier, and have it returned with every incoming message.  That  
> would solve the typical session orientation requirement of mobile  
> SCTP applications.
>
>
>
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 16:29:04 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1Viq-0006ob-Cg; Tue, 24 Jan 2006 16:29:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1Vin-0006oC-Rw
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 16:29:02 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id QAA00881
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 16:27:30 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1VsN-0007tR-AF
	for tsvwg@ietf.org; Tue, 24 Jan 2006 16:38:59 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	CWA71949; Tue, 24 Jan 2006 14:28:49 -0700
Message-ID: <43D69C2C.20600@middle.net>
Date: Tue, 24 Jan 2006 14:29:16 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Coene, Lode" <Lode.Coene@siemens.com>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
References: <67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net>
In-Reply-To: <67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 0ff9c467ad7f19c2a6d058acd7faaec8
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1168566696=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1168566696==
Content-Type: multipart/alternative;
	boundary="------------050503090700020903090507"

This is a multi-part message in MIME format.
--------------050503090700020903090507
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Coene, Lode wrote:

>>Mark Butler wrote:
>>
>>There is draft layer 3 multihoming support for IPv6 based on the idea 
>>that upper layer applications should only need to know about 
>>the primary 
>>address or "upper layer id" of each peer.  The shim6 draft 
>>(*) describes 
>>a shim for IPv6 that does this translation in layer 3.
>>
>>....
>>    
>>
>
>The main problem with this approach is SCTP will see only one
>address(+port),
>The actual multihoming stuff with the different IP address is done in
>the SHIM and is invisible to SCTP.
>SCTP would be single homed with that upper layer id and below in the
>SHIM layer, multiple paths may exist(with changes between the paths
>based on reachability of the remote addresses). So if a path changes
>during a SCTP file transfer, would that be a good idea or
>not...(remember SCTP is not in charge of pathchanges and doesn't even
>know if different paths exist, let alone how many, and which path
>characteristics....
>  
>
I understand there is already a requirement for IP multicast to be able 
to disable the shim, so I assume the same would apply for SCTP on a 
shim6 supporting host.  SCTP can do its own path management just fine 
without any support from shim6.  I am suggesting rather that SCTP stacks 
be made to behave like shim6 whether it is present or not, and on IPv4 
as well, because all the infrastructure is already there, it increases 
protocol portability, and simplifies the programming of a significant 
class of applications.

>There is talk about exposing this stuff to the transport protocols in
>general so that they know what has changed(example path change, new IP
>address added or removed...) but then the questions should be : if so
>much info needs to be given to the next upper layer, is this then
>actually a good idea to do it in the SHIM layer? You'll end up with
>twice the state(state in SCTP and state in SHIM) and no gain over the
>present SCTP solution(actually it would be multihoming with reduced
>functionality compared to SCTP) ADD/DELL IP would be duplicated in the
>transport and network layer 
>  
>
Agreed.  The only use for shim6 for SCTP that I can see is perhaps to 
handle SCTP requests for alternate locators, so that SCTP applications 
can use the primary locator the same way TCP/UDP over shim6 would.  
However, making the SCTP stack behave as if it were a protocol using 
shim6 would be a good thing.  Considerable advantages for many 
applications, negligible costs.


 - Mark

--------------050503090700020903090507
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Coene, Lode wrote:<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Mark Butler wrote:

There is draft layer 3 multihoming support for IPv6 based on the idea 
that upper layer applications should only need to know about 
the primary 
address or "upper layer id" of each peer.  The shim6 draft 
(*) describes 
a shim for IPv6 that does this translation in layer 3.

....
    </pre>
  </blockquote>
  <pre wrap=""><!---->
The main problem with this approach is SCTP will see only one
address(+port),
The actual multihoming stuff with the different IP address is done in
the SHIM and is invisible to SCTP.
SCTP would be single homed with that upper layer id and below in the
SHIM layer, multiple paths may exist(with changes between the paths
based on reachability of the remote addresses). So if a path changes
during a SCTP file transfer, would that be a good idea or
not...(remember SCTP is not in charge of pathchanges and doesn't even
know if different paths exist, let alone how many, and which path
characteristics....
  </pre>
</blockquote>
I understand there is already a requirement for IP multicast to be able
to disable the shim, so I assume the same would apply for SCTP on a
shim6 supporting host.&nbsp; SCTP can do its own path management just fine
without any support from shim6.&nbsp; I am suggesting rather that SCTP
stacks be made to behave like shim6 whether it is present or not, and
on IPv4 as well, because all the infrastructure is already there, it
increases protocol portability, and simplifies the programming of a
significant class of applications.<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5701@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">
There is talk about exposing this stuff to the transport protocols in
general so that they know what has changed(example path change, new IP
address added or removed...) but then the questions should be : if so
much info needs to be given to the next upper layer, is this then
actually a good idea to do it in the SHIM layer? You'll end up with
twice the state(state in SCTP and state in SHIM) and no gain over the
present SCTP solution(actually it would be multihoming with reduced
functionality compared to SCTP) ADD/DELL IP would be duplicated in the
transport and network layer 
  </pre>
</blockquote>
Agreed.&nbsp; The only use for shim6 for SCTP that I can see is perhaps to
handle SCTP requests for alternate locators, so that SCTP applications
can use the primary locator the same way TCP/UDP over shim6 would.&nbsp;
However, making the SCTP stack behave as if it were a protocol using
shim6 would be a good thing.&nbsp; Considerable advantages for many
applications, negligible costs.<br>
<br>
<br>
&nbsp;- Mark<br>
</body>
</html>

--------------050503090700020903090507--


--===============1168566696==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1168566696==--




From tsvwg-bounces@ietf.org Tue Jan 24 19:02:24 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1Y7E-00045D-2W; Tue, 24 Jan 2006 19:02:24 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1Y7C-000451-FI
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 19:02:22 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA18895
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 19:00:51 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1YGp-0007Ya-2C
	for tsvwg@ietf.org; Tue, 24 Jan 2006 19:12:20 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	DBB37508; Tue, 24 Jan 2006 17:02:08 -0700
Message-ID: <43D6C01B.8050608@middle.net>
Date: Tue, 24 Jan 2006 17:02:35 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
References: <43D5B293.2050900@middle.net>
	<D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
	<43D6967F.7000905@middle.net>
	<20573C11-E355-40FA-B046-4E4F88C1CE5E@lurchi.franken.de>
In-Reply-To: <20573C11-E355-40FA-B046-4E4F88C1CE5E@lurchi.franken.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0fa76816851382eb71b0a882ccdc29ac
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Michael Tuexen wrote:

> Hi Mark,
>
> see my comments in-line.
>
> Best regards
> Michael
>
> On Jan 24, 2006, at 10:05 PM, Mark Butler wrote:
>
>> Michael Tuexen wrote:
>>
>>>
>>> On Jan 24, 2006, at 5:52 AM, Mark Butler wrote:
>>>
>>>> I think the general idea behind this concept is useful for SCTP  
>>>> as  well.  To implement this, recvmsg(2) would always return the   
>>>> address/port used to initiate the association with (if initiated   
>>>> locally) or the initial source address/port (if the association  
>>>> was  initiated by the peer).  This address/port would be the  
>>>> "upper  layer id". Applications could use the upper layer id as a  
>>>> stable  identifier for the peer during the life of the  
>>>> association,  allowing them to largely be transparent to  
>>>> multihoming / path  failover at the SCTP layer.   The primary  
>>>> advantage of doing this  over using association ids is protocol  
>>>> portability, of course.
>>>
>>>
>>> The association id is exactly used for that. The problem with the   
>>> addresses is, that they can change
>>> over time and they could even move from an association to another   
>>> when ADD-IP is used. So it is a bad
>>> idea to use something, which is not constant over the lifetime of  
>>> an  association for identifying an
>>> association.
>>
>>
>> I left out something important - sendto(2) would always translate  
>> from the specified address (the "upper layer id") to the active  
>> address.  Those two translations are adequate to handle the  
>> multihoming aliasing problem.
>
> Yes, I assumed this. But the assoc_id just does what you want...
>
>>
>>
>> For mobile SCTP, sendto()/recvfrom() programming style does not  work 
>> correctly without handling address change events. The only  change 
>> that matters here is when the peer has vacated the original  address, 
>> requiring a new upper layer id assignment (to prevent  conflicts with 
>> other clients occupying the old address).  Other  address changes can 
>> be ignored, because the stack would translate  in both directions in 
>> the same manner as shim6.
>
> I do not get the point here. The stuff is not mobile SCTP related. It  
> is just that an IP-address does not identify
> an association during the lifetime of the association. The  
> association id is exactly designed for it.


Well, if there is no mobility, then converting to only one address on 
receive (and the reverse if no association id is specified) ULP has all 
benefits and no downside.  The main benefit would be improved 
portability of UDP applications to SCTP.  That said, association ids 
would be much more useful if you could pre-allocate them.  Something like:

   int sctp_get_assoc_id(int sd, uint32_t * assoc_id);

Then you would not have to send the first message, wait for a matching 
COMM_UP event, and extract the association id for later use. 

 - Mark



 

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Tue Jan 24 19:49:03 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1YqN-0007N6-3P; Tue, 24 Jan 2006 19:49:03 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1YqL-0007My-MX
	for tsvwg@megatron.ietf.org; Tue, 24 Jan 2006 19:49:01 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id TAA21999
	for <tsvwg@ietf.org>; Tue, 24 Jan 2006 19:47:31 -0500 (EST)
Received: from mail-n.franken.de
	([193.175.24.27] helo=ilsa.franken.de ident=postfix)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1Yzy-0000gB-UY
	for tsvwg@ietf.org; Tue, 24 Jan 2006 19:59:00 -0500
Received: from [192.168.1.100] (p508F7C09.dip.t-dialin.net [80.143.124.9])
	by ilsa.franken.de (Postfix) with ESMTP
	id 2EA90245E3; Wed, 25 Jan 2006 01:48:57 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43D6C01B.8050608@middle.net>
References: <43D5B293.2050900@middle.net>
	<D9C105D6-9C29-4383-B7C6-1D267E8439FD@lurchi.franken.de>
	<43D6967F.7000905@middle.net>
	<20573C11-E355-40FA-B046-4E4F88C1CE5E@lurchi.franken.de>
	<43D6C01B.8050608@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <4A12B43B-9E47-4B7C-BD5A-DA973AD4BA3C@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP Addresses as upper layer ids
Date: Wed, 25 Jan 2006 01:49:17 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.2 (/)
X-Scan-Signature: 386e0819b1192672467565a524848168
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hi Mark,

one comment in-line.

Best regards
Michael

On Jan 25, 2006, at 1:02 AM, Mark Butler wrote:

> Michael Tuexen wrote:
>
>> Hi Mark,
>>
>> see my comments in-line.
>>
>> Best regards
>> Michael
>>
>> On Jan 24, 2006, at 10:05 PM, Mark Butler wrote:
>>
>>> Michael Tuexen wrote:
>>>
>>>>
>>>> On Jan 24, 2006, at 5:52 AM, Mark Butler wrote:
>>>>
>>>>> I think the general idea behind this concept is useful for  
>>>>> SCTP  as  well.  To implement this, recvmsg(2) would always  
>>>>> return the   address/port used to initiate the association with  
>>>>> (if initiated   locally) or the initial source address/port (if  
>>>>> the association  was  initiated by the peer).  This address/ 
>>>>> port would be the  "upper  layer id". Applications could use  
>>>>> the upper layer id as a  stable  identifier for the peer during  
>>>>> the life of the  association,  allowing them to largely be  
>>>>> transparent to  multihoming / path  failover at the SCTP  
>>>>> layer.   The primary  advantage of doing this  over using  
>>>>> association ids is protocol  portability, of course.
>>>>
>>>>
>>>> The association id is exactly used for that. The problem with  
>>>> the   addresses is, that they can change
>>>> over time and they could even move from an association to  
>>>> another   when ADD-IP is used. So it is a bad
>>>> idea to use something, which is not constant over the lifetime  
>>>> of  an  association for identifying an
>>>> association.
>>>
>>>
>>> I left out something important - sendto(2) would always  
>>> translate  from the specified address (the "upper layer id") to  
>>> the active  address.  Those two translations are adequate to  
>>> handle the  multihoming aliasing problem.
>>
>> Yes, I assumed this. But the assoc_id just does what you want...
>>
>>>
>>>
>>> For mobile SCTP, sendto()/recvfrom() programming style does not   
>>> work correctly without handling address change events. The only   
>>> change that matters here is when the peer has vacated the  
>>> original  address, requiring a new upper layer id assignment (to  
>>> prevent  conflicts with other clients occupying the old  
>>> address).  Other  address changes can be ignored, because the  
>>> stack would translate  in both directions in the same manner as  
>>> shim6.
>>
>> I do not get the point here. The stuff is not mobile SCTP related.  
>> It  is just that an IP-address does not identify
>> an association during the lifetime of the association. The   
>> association id is exactly designed for it.
>
>
> Well, if there is no mobility, then converting to only one address  
> on receive (and the reverse if no
My point is that usage of ADD/DEL IP does not imply mobility. It is  
invented for reconfiguration... but
can be used for mobility too.
> association id is specified) ULP has all benefits and no downside.   
> The main benefit would be improved portability of UDP applications  
> to SCTP.  That said, association ids would be much more useful if  
> you could
> pre-allocate them.  Something like:
>
>   int sctp_get_assoc_id(int sd, uint32_t * assoc_id);
>
> Then you would not have to send the first message, wait for a  
> matching COMM_UP event, and extract the association id for later use.
> - Mark
>
>
>
>


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 25 05:29:18 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1htt-0000ty-Vf; Wed, 25 Jan 2006 05:29:17 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1hts-0000sb-Br
	for tsvwg@megatron.ietf.org; Wed, 25 Jan 2006 05:29:16 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA28738
	for <tsvwg@ietf.org>; Wed, 25 Jan 2006 05:27:44 -0500 (EST)
Received: from ams-iport-1.cisco.com ([144.254.224.140])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1i3a-0002ka-VA
	for tsvwg@ietf.org; Wed, 25 Jan 2006 05:39:20 -0500
Received: from ams-core-1.cisco.com ([144.254.224.150])
	by ams-iport-1.cisco.com with ESMTP; 25 Jan 2006 11:29:06 +0100
Received: from xbh-ams-331.emea.cisco.com (xbh-ams-331.cisco.com
	[144.254.231.71])
	by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k0PASe66002272; 
	Wed, 25 Jan 2006 11:29:02 +0100 (MET)
Received: from xmb-ams-333.cisco.com ([144.254.231.78]) by
	xbh-ams-331.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); 
	Wed, 25 Jan 2006 11:28:57 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Tsvwg] WGLC for draft-tsvwg-rsvp-dste-00.txt starts NOW
Date: Wed, 25 Jan 2006 11:28:51 +0100
Message-ID: <A05118C6DF9320488C77F3D5459B17B7013B2435@xmb-ams-333.emea.cisco.com>
Thread-Topic: [Tsvwg] WGLC for draft-tsvwg-rsvp-dste-00.txt starts NOW
Thread-Index: AcXk4gJjLtAo48rCQ8+WvnJ8RW5UXg8tt6BA
From: "Francois Le Faucheur \(flefauch\)" <flefauch@cisco.com>
To: "James Polk \(jmpolk\)" <jmpolk@cisco.com>,
	"Allison Mankin" <mankin@psg.com>,
	"Jon Peterson" <jon.peterson@neustar.biz>
X-OriginalArrivalTime: 25 Jan 2006 10:28:57.0940 (UTC)
	FILETIME=[2663E940:01C6219A]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
Content-Transfer-Encoding: quoted-printable
Cc: tsvwg <tsvwg@ietf.org>
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hello James, Allison, Jon,

Please see embedded:

>> -----Original Message-----
>> From: tsvwg-bounces@ietf.org [mailto:tsvwg-bounces@ietf.org]=20
>> On Behalf Of James Polk (jmpolk)
>> Sent: mercredi 9 novembre 2005 04:55
>> To: tsvwg
>> Cc: Fred Baker (fred)
>> Subject: [Tsvwg] WGLC for draft-tsvwg-rsvp-dste-00.txt starts NOW
>>=20
>> TSVWG
>>=20
>> WGLC has started for the following document:=20
>> http://www.ietf.org/internet-drafts/draft-tsvwg-rsvp-dste-00.
>> txt, starting=20
>> tonight, November 8th, 2005.
>>=20
>> WGLC ends when the latter of the following occurs:
>>=20
>> - EOB (US EST) on November 23rd, and
>> - reviews from EACH of the following: Fred, Subha and Kwok=20
>> (cc-d in this=20
>> message)
=20
Fred, Subha and Kwok provided their reviews and I've been working with
them on how to address the comments.
I will post the key parts of these discussions on the list to document
the corresponding proposed changes/resolutions.

I will then issue an updated version with corresponding resolution of
all Last Call comments.

Francois


>> The chairs do not want the reviews to be late (please).
>>=20
>> Allison
>> Jon
>> James
>> 	IETF TSVWG co-chairs
>>=20
>> _______________________________________________
>> tsvwg mailing list
>> tsvwg@ietf.org
>> https://www1.ietf.org/mailman/listinfo/tsvwg
>>=20

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 25 05:30:34 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1hv8-0001Ae-OX; Wed, 25 Jan 2006 05:30:34 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1hv7-00019V-3t
	for tsvwg@megatron.ietf.org; Wed, 25 Jan 2006 05:30:33 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id FAA28792
	for <tsvwg@ietf.org>; Wed, 25 Jan 2006 05:29:01 -0500 (EST)
Received: from ams-iport-1.cisco.com ([144.254.224.140])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1i4q-0002nV-FJ
	for tsvwg@ietf.org; Wed, 25 Jan 2006 05:40:37 -0500
Received: from ams-core-1.cisco.com ([144.254.224.150])
	by ams-iport-1.cisco.com with ESMTP; 25 Jan 2006 11:30:24 +0100
Received: from xbh-ams-331.emea.cisco.com (xbh-ams-331.cisco.com
	[144.254.231.71])
	by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k0PAUL5i002773
	for <tsvwg@ietf.org>; Wed, 25 Jan 2006 11:30:21 +0100 (MET)
Received: from xmb-ams-333.cisco.com ([144.254.231.78]) by
	xbh-ams-331.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); 
	Wed, 25 Jan 2006 11:30:17 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 25 Jan 2006 11:30:13 +0100
Message-ID: <A05118C6DF9320488C77F3D5459B17B7013B2436@xmb-ams-333.emea.cisco.com>
Thread-Topic: draft-ietf-tsvwg-rsvp-dste-00.txt notes - Resolution of Subha's
	comments
Thread-Index: AcYAlTWLHapvM3UaSqSqTh557z+x7gEXU9OwABXYEXAADnHAQAcFoOYw
From: "Francois Le Faucheur \(flefauch\)" <flefauch@cisco.com>
To: "tsvwg" <tsvwg@ietf.org>
X-OriginalArrivalTime: 25 Jan 2006 10:30:17.0282 (UTC)
	FILETIME=[55AE8A20:01C6219A]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7e439b86d3292ef5adf93b694a43a576
Content-Transfer-Encoding: quoted-printable
Subject: [Tsvwg] FW: draft-ietf-tsvwg-rsvp-dste-00.txt notes - Resolution of
	Subha's comments
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

FYI.=20

>> -----Original Message-----
>> From: Subha Dhesikan (sdhesika)=20
>> Sent: mardi 20 d=E9cembre 2005 17:39
>> To: Francois Le Faucheur (flefauch)
>>=20
>> Francois,
>>=20
>> Inline:=20
>>=20
>> >-----Original Message-----
>> >From: Francois Le Faucheur (flefauch) [mailto:flefauch@cisco.com]=20
>> >Sent: Tuesday, December 20, 2005 2:40 AM
>> >To: Dhesikan, Subha
>> >Cc: Allison Mankin; Jon Peterson; James Polk (jmpolk); Kwok-Ho=20
>> >Chan; Fred Baker (fred); Francois Le Faucheur (flefauch);=20
>> >Christou Chris; Davenport Michael; Michael DiBiasio=20
>> >(dibiasio); Bruce Davie (bdavie); Ash, Gerald R (Jerry),=20
>> >ALABS; Goode, B (Bur), ALABS
>> >Subject: RE: draft-ietf-tsvwg-rsvp-dste-00.txt notes
>> >
>> >Hi Subha,
>> >
>> >Thanks for your review. More below:
>> >
>> >>> -----Original Message-----
>> >>> From: Subha Dhesikan (sdhesika)
>> >>> Sent: mardi 20 d=E9cembre 2005 00:48
>> >>> To: Francois Le Faucheur (flefauch)
>> >>> Cc: Allison Mankin; Jon Peterson; James Polk (jmpolk);=20
>> >Kwok-Ho Chan;=20
>> >>> Fred Baker (fred)
>> >>> Subject: draft-ietf-tsvwg-rsvp-dste-00.txt notes
>> >>>=20
>> >>> First of all, I want to say that I really liked the introduction=20
>> >>> which provided a brief summary of the various inter-related RFCs.
>> >=20
>> >This has been a sticking point. It took us a few iterations to=20
>> >cover all related RFCs. I'm glad this reads alright now.
>> >=20
>> >>> I have no major comments on the document. Some minor suggestions:
>> >>>=20
>> >>> - section 3.4: A line saying that the E2E Path message=20
>> is forwarded=20
>> >>> by the De-Aggregator downstream and a line in section 3.5=20
>> >saying that=20
>> >>> the Resv message is received from the downstream router/host in=20
>> >>> response to the Path message will provide continuity=20
>> between the 2=20
>> >>> sections.
>> >>>=20
>> >
>> >Done.
>>=20
>> Thanks.
>> >
>> >>> -  I did not follow the following sentence in section 3.5: "This=20
>> >>> includes performing admission control for the segment=20
>> downstream of=20
>> >>> the Deaggregator". The sentence seems to imply that the=20
>> >deaggregator=20
>> >>> performs the AC for the segment downstream. I believe=20
>> this is not=20
>> >>> true.
>> >>> Please clarify.
>> >
>> >It is true. This is part of regular RSVP behavior (not part of=20
>> >the Deaggregator function per say).
>> >With regular RSVP, each node does CAC for the downstream=20
>> >interface on receipt of the E2E resv.=20
>> >In other words, with:
>> >Sender-->--R1-->---R2-->---Receiver
>> >R2 does CAC for link R2-->Receiver (on receipt of E2E Resv=20
>> >from Receiver)
>> >R1 does CAC for link R1-->R2 (on receipt of E2E Resv from R2)=20
>> >We just follow the existing behavior.
>> >Makes sense?
>>=20
>> Perfectly. I see now what you meant.
>> >
>> >>>=20
>> >>> - In section 7, you say that there may be a savings in delay (or=20
>> >>> post-dial delay). I question this statement since it is=20
>> very much=20
>> >>> possible that the delay incurred on setting up what is=20
>> >proposed here=20
>> >>> may incur a lot more delay that RSVP processing in some=20
>> additional=20
>> >>> hops.
>> >=20
>> >One scenario we had in mind here is where you have=20
>> >cross-continental voice trunking. Say you have some Voice=20
>> >Gateways co-located with a TE Tunnel Head-end in a POP on the=20
>> >East-Coast and some other voice Gateways co-located with a TE=20
>> >Tunnel Head-end in a POP on the West Coast. And consider=20
>> >coas-to-coast calls. If you use RSVP proxy, RSVP signaling is=20
>> >basically localised within each POP (ie between GW and local=20
>> >Agg/Deagg) and never has to cross the country. Yet you still=20
>> >achieve CAC over every segment including the cross-country TE=20
>> >Tunnel. In this environment, avoiding cross-country RTT for=20
>> >RSVP signaling could reduce Post Dial Delay.
>> >Jay/Bur could elaborate if needed.
>> >
>> >Considering the current wording just say "there may be a=20
>> >saving", is it acceptable?
>> Yes. Thanks.
>> >
>> >>> A small nit that I have is an implicit comments that=20
>> IntServ RSVP=20
>> >>> does not scale. It is possible that I am being overly=20
>> sensitive and=20
>> >>> reading too much in the words but folks already believe=20
>> >RSVP does not=20
>> >>> scale and it does not take much to re-enforce their viewpoint.
>> >=20
>> >I see.
>> >Looking back at the introduction, the text explaining why RSVP=20
>> >Aggregation over the Diffserv core (as opposed to per-flow=20
>> >RSVP or Bandwidth Broker) is considered in this document, is=20
>> >the following:
>> >"
>> >As discussed in [INT-DIFF], Intserv can operate over Diffserv=20
>> >in multiple ways. For example, the Diffserv region may be=20
>> >statically provisioned or may be RSVP aware. When it is RSVP=20
>> >aware, several mechanisms may be used to support dynamic=20
>> >provisioning and topology aware admission control including=20
>> >aggregated RSVP reservations, per flow RSVP or a bandwidth broker.=20
>> >The advantage of using aggregated RSVP reservations is that it=20
>> >offers dynamic, topology-aware admission control over the=20
>> >Diffserv region without the scalability burden of per-flow=20
>> >reservations and the associated level of RSVP signaling in the=20
>> >Diffserv core.
>> >"
>> >
>> >I edited the last part of this paragraph to (i) remove the=20
>> >phrase "scalbility burden" and (ii) clarify this targets=20
>> >environments with extremely large number of=20
>> >reservation-protected flows. So it reads:
>> >"
>> >The advantage of using aggregated RSVP reservations is that it=20
>> >offers dynamic, topology-aware admission control over the=20
>> >Diffserv region without per-flow reservations and the=20
>> >associated level of RSVP signaling in the Diffserv core. In=20
>> >turn, this allows dynamic, topology aware admission control of=20
>> >flows requiring QoS reservations over the Diffserv core even=20
>> >when the total number of such flows carried over the Diffserv=20
>> >core is extremely large."
>> >
>> >Does that address your concern somewhat?
>> Yes. The paragraph you referred to was my main concern.=20
>>=20
>> Thank You.
>> Subha
>>=20
>> >
>> >Thanks again
>> >
>> >Francois
>> >
>> >>> Subha
>> >>>=20
>> >
>>=20

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 25 10:07:50 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1mFS-0002pf-9r; Wed, 25 Jan 2006 10:07:50 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1mFP-0002nr-VN
	for tsvwg@megatron.ietf.org; Wed, 25 Jan 2006 10:07:48 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id KAA19226
	for <tsvwg@ietf.org>; Wed, 25 Jan 2006 10:06:14 -0500 (EST)
Received: from mail.sbs.be ([193.109.72.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1mP8-0004EG-91
	for tsvwg@ietf.org; Wed, 25 Jan 2006 10:17:52 -0500
Received: from bruc001x.sbs.be (bruc001x.sbs.be [193.210.175.38])
	by mail.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0PF7GbN014350; Wed, 25 Jan 2006 16:07:17 +0100
Received: from bru0007a.ww018.siemens.net (bru0007a.ww018.siemens.net
	[193.210.175.161])
	by bruc001x.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0PF7Bmj005380; Wed, 25 Jan 2006 16:07:12 +0100
Received: from BRU0038A.ww018.siemens.net ([193.210.175.64]) by
	bru0007a.ww018.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); 
	Wed, 25 Jan 2006 16:07:10 +0100
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Tsvwg] SCTP Addresses as upper layer ids
Date: Wed, 25 Jan 2006 16:06:56 +0100
Message-ID: <67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net>
Thread-Topic: [Tsvwg] SCTP Addresses as upper layer ids
Thread-Index: AcYhQ0IGQqnjio3oQuurrGPxO1UI8gAd+pSg
From: "Coene, Lode" <Lode.Coene@siemens.com>
To: "Mark Butler" <butlerm@middle.net>,
	"Michael Tuexen" <Michael.Tuexen@lurchi.franken.de>
X-OriginalArrivalTime: 25 Jan 2006 15:07:10.0496 (UTC)
	FILETIME=[03EDD200:01C621C1]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6640e3bbe8a4d70c4469bcdcbbf0921d
Content-Transfer-Encoding: quoted-printable
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Some comments below...

> >>>
> >>>> I think the general idea behind this concept is useful for SCTP =20
> >>>> as  well.  To implement this, recvmsg(2) would always=20
> return the  =20
> >>>> address/port used to initiate the association with (if=20
> initiated  =20
> >>>> locally) or the initial source address/port (if the association =20
> >>>> was  initiated by the peer).  This address/port would be the =20
> >>>> "upper  layer id". Applications could use the upper=20
> layer id as a =20
> >>>> stable  identifier for the peer during the life of the =20
> >>>> association,  allowing them to largely be transparent to =20
> >>>> multihoming / path  failover at the SCTP layer.   The primary =20
> >>>> advantage of doing this  over using association ids is protocol =20
> >>>> portability, of course.
> >>>
> >>>
> >>> The association id is exactly used for that. The problem=20
> with the  =20
> >>> addresses is, that they can change
> >>> over time and they could even move from an association to=20
> another  =20
> >>> when ADD-IP is used. So it is a bad
> >>> idea to use something, which is not constant over the=20
> lifetime of =20
> >>> an  association for identifying an
> >>> association.
> >>
> >>
> >> I left out something important - sendto(2) would always translate =20
> >> from the specified address (the "upper layer id") to the active =20
> >> address.  Those two translations are adequate to handle the =20
> >> multihoming aliasing problem.
> >
> > Yes, I assumed this. But the assoc_id just does what you want...
> >
> >>
> >>
> >> For mobile SCTP, sendto()/recvfrom() programming style=20
> does not  work=20
> >> correctly without handling address change events. The only  change=20
> >> that matters here is when the peer has vacated the=20
> original  address,=20
> >> requiring a new upper layer id assignment (to prevent =20
> conflicts with=20
> >> other clients occupying the old address).  Other  address=20
> changes can=20
> >> be ignored, because the stack would translate  in both=20
> directions in=20
> >> the same manner as shim6.
> >
> > I do not get the point here. The stuff is not mobile SCTP=20
> related. It =20
> > is just that an IP-address does not identify
> > an association during the lifetime of the association. The =20
> > association id is exactly designed for it.

Mark, If the ulp identifier changes, the moment the primary path fo the
multihomed association  changes, then the ulp identifier is NO longer
constant during the complete lifetime of the association...
I have to find that association again .. probably based on IP address
info and change the saved ulp identifer... So it isn't constant to the
application anymore...
Dn't forget, the bindx call can remove the IP address from the socket
without invalidating the socket. Bindx can also add a new IP address....

The fact that the association id is presently a positive non-zero value
that does not change as long a the assoc is active, gives the
application designer a big advantage: SHIM changes, SCTP change,
renumbering may happen all under me, and I am blissfully unaware of
it...=20
On the other had if I want to do path changes in SCTP, well I take my
association id, get the relevant info from SCTP for this particular
association and then do the magic with setsockopt()(still using the
assoc Id)

Conclusion: our ulp identifier is already among us,((maybe) cleaverly )
disguised as the association id....
>=20
>=20
> Well, if there is no mobility, then converting to only one address on=20
> receive (and the reverse if no association id is specified)=20
> ULP has all=20
> benefits and no downside.  The main benefit would be improved=20
> portability of UDP applications to SCTP.  That said, association ids=20
> would be much more useful if you could pre-allocate them. =20
> Something like:
>=20
>    int sctp_get_assoc_id(int sd, uint32_t * assoc_id);
>=20
> Then you would not have to send the first message, wait for a=20
> matching=20
> COMM_UP event, and extract the association id for later use.=20

Well that was something that intrigued me...
If I did the connectx(), the function call was held up till something
came from the remote peer(I am not sure if it returned on the INIT_ACK
or the COOKIE_ACK... I wasn't tracing it to the microsecond you know...)
but it waited. In the SCTP(www.sctp.de -> sctplib) that I wrote my
application first for, there the associate(=3D connectx) did the same
thing but returned the assoc id upon completing the associate(connectx)
call. So the connectx does not return the assoc id to the caller at this
present moment. (at least not in lksctp that I am working with...)
One of the reasons why this might be implemented this way is that a
sctp_send...() can setup and tear down a association in this one call,
and it does NOT return a assoc id either. So there is some consistency
among the NOT returning of the assoc id.

I would prefer to have the connectx return a association id, as it would
indeed make some application code in the COMM_UP notification
redundant...
I am open to reasons why this migth not be possible(such as my
hypothesis above)

>=20
>  - Mark
>=20
>=20
>=20
> =20
>=20
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg
>=20

Yours sincerely,
Lode

Siemens COM
atealaan 34          2200 Herentals, Belgium
E-mail: lode.coene@siemens.com
Tel: +32-14-252081
Fax: +32-14-253212

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Wed Jan 25 18:50:19 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1uP5-0001rm-7p; Wed, 25 Jan 2006 18:50:19 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1uOq-0001nS-2x; Wed, 25 Jan 2006 18:50:04 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id SAA05168;
	Wed, 25 Jan 2006 18:48:32 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1F1uYf-0006xP-Ht; Wed, 25 Jan 2006 19:00:14 -0500
Received: from mlee by newodin.ietf.org with local (Exim 4.43)
	id 1F1uOo-00051V-4T; Wed, 25 Jan 2006 18:50:02 -0500
Content-Type: Multipart/Mixed; Boundary="NextPart"
Mime-Version: 1.0
To: i-d-announce@ietf.org
From: Internet-Drafts@ietf.org
Message-Id: <E1F1uOo-00051V-4T@newodin.ietf.org>
Date: Wed, 25 Jan 2006 18:50:02 -0500
X-Spam-Score: 0.4 (/)
X-Scan-Signature: c3a18ef96977fc9bcc21a621cbf1174b
Cc: tsvwg@ietf.org
Subject: [Tsvwg] I-D ACTION:draft-ietf-tsvwg-rsvp-bw-reduction-02.txt 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

--NextPart

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Transport Area Working Group Working Group of the IETF.

	Title		: A Resource Reservation Protocol Extension for
                          the Reduction of Bandwidth of a Reservation Flow
	Author(s)	: J. Polk, S. Dhesikan
	Filename	: draft-ietf-tsvwg-rsvp-bw-reduction-02.txt
	Pages		: 18
	Date		: 2006-1-25
	
This document proposes an extension to the Resource Reservation 
   Protocol (RSVPv1) to reduce the guaranteed bandwidth allocated to an
   existing reservation.  This mechanism can be used to affect 
   individual reservations, aggregate reservations or other forms of 
   RSVP tunnels.

A URL for this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-02.txt

To remove yourself from the I-D Announcement list, send a message to 
i-d-announce-request@ietf.org with the word unsubscribe in the body of the message.  
You can also visit https://www1.ietf.org/mailman/listinfo/I-D-announce 
to change your subscription settings.


Internet-Drafts are also available by anonymous FTP. Login with the username
"anonymous" and a password of your e-mail address. After logging in,
type "cd internet-drafts" and then
	"get draft-ietf-tsvwg-rsvp-bw-reduction-02.txt".

A list of Internet-Drafts directories can be found in
http://www.ietf.org/shadow.html 
or ftp://ftp.ietf.org/ietf/1shadow-sites.txt


Internet-Drafts can also be obtained by e-mail.

Send a message to:
	mailserv@ietf.org.
In the body type:
	"FILE /internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-02.txt".
	
NOTE:	The mail server at ietf.org can return the document in
	MIME-encoded form by using the "mpack" utility.  To use this
	feature, insert the command "ENCODING mime" before the "FILE"
	command.  To decode the response(s), you will need "munpack" or
	a MIME-compliant mail reader.  Different MIME-compliant mail readers
	exhibit different behavior, especially when dealing with
	"multipart" MIME messages (i.e. documents which have been split
	up into multiple messages), so check your local documentation on
	how to manipulate these messages.
		
		
Below is the data which will enable a MIME compliant mail reader
implementation to automatically retrieve the ASCII version of the
Internet-Draft.

--NextPart
Content-Type: Multipart/Alternative; Boundary="OtherAccess"

--OtherAccess
Content-Type: Message/External-body; access-type="mail-server";
	server="mailserv@ietf.org"

Content-Type: text/plain
Content-ID: <2006-1-25162420.I-D@ietf.org>

ENCODING mime
FILE /internet-drafts/draft-ietf-tsvwg-rsvp-bw-reduction-02.txt

--OtherAccess
Content-Type: Message/External-body;
	name="draft-ietf-tsvwg-rsvp-bw-reduction-02.txt";
	site="ftp.ietf.org"; access-type="anon-ftp";
	directory="internet-drafts"

Content-Type: text/plain
Content-ID: <2006-1-25162420.I-D@ietf.org>


--OtherAccess--

--NextPart
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--NextPart--




From tsvwg-bounces@ietf.org Wed Jan 25 22:16:12 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F1xcK-0007gf-Ir; Wed, 25 Jan 2006 22:16:12 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F1xcI-0007gR-NT
	for tsvwg@megatron.ietf.org; Wed, 25 Jan 2006 22:16:10 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id WAA02693
	for <tsvwg@ietf.org>; Wed, 25 Jan 2006 22:14:38 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F1xm8-0001Q6-4Q
	for tsvwg@ietf.org; Wed, 25 Jan 2006 22:26:23 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	EEP28148; Wed, 25 Jan 2006 20:15:48 -0700
Message-ID: <43D83F09.2010209@middle.net>
Date: Wed, 25 Jan 2006 20:16:25 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Coene, Lode" <Lode.Coene@siemens.com>
Subject: Re: [Tsvwg] SCTP ULIDs / association id return values
References: <67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net>
In-Reply-To: <67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: fcb459c204557d9509ce9c1b55d771f1
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1953138091=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1953138091==
Content-Type: multipart/alternative;
	boundary="------------060609060505070303000405"

This is a multi-part message in MIME format.
--------------060609060505070303000405
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Coene, Lode wrote:

>Mark, If the ulp identifier changes, the moment the primary path fo the
>multihomed association  changes, then the ulp identifier is NO longer
>constant during the complete lifetime of the association...
>I have to find that association again .. probably based on IP address
>info and change the saved ulp identifer... So it isn't constant to the
>application anymore...
>  
>
I am not suggesting replacing the association id, just making the 
receive address as stable as possible. A pretty good sized group of  UDP 
applications use the address for a variety of things (including 
referrals) and they will not port cleanly if the address is changing 
unnecessarily, or if a send to an inactive address is not routed to an 
active one.  Granted, they will not work properly with mobile SCTP 
peers, but they do not work with  mobile UDP peers without application 
level assistance either. 

>Dn't forget, the bindx call can remove the IP address from the socket
>without invalidating the socket. Bindx can also add a new IP address....
>  
>
Adding new addresses would be transparent. So would removing any of the 
addresses except for the initial address. If the initial address is 
removed, there are two strategies.  One is to keep translating writes on 
that socket as before, the other is to start returing errors. 

Unlike shim6, an address conflict would only arise if a new peer 
initiated an association to the same one-to-many socket using the same 
address and port as the first one vacated.  That is sufficiently 
unlikely that it would be best to keep translating the initial address 
to the first association until a conflict actually occured, at which 
point the second association would take over the address.  Naturally, 
anyone writing a sendto() style application understands that an address 
is not going to be good forever.

>The fact that the association id is presently a positive non-zero value
>that does not change as long a the assoc is active, gives the
>application designer a big advantage: SHIM changes, SCTP change,
>renumbering may happen all under me, and I am blissfully unaware of
>it... 
>  
>
I agree - the association id is proper for session based applications.  
However there are applications that can benefit from path failover and 
congestion control that are not session based.   Any application that 
does not have a natural idea of a session is almost certainly going to 
need SCTP_AUTOCLOSE. Where SCTP_AUTOCLOSE is set, the association id 
will become invalid at  arbitrary times, while the address or its 
translation is still good.

If you want to make SCTP behave like UDP with path failover and 
congestion control, just enable PR-SCTP and SCTP_AUTOCLOSE and set 
sinfo_timetolive to a sufficiently low value and Max.Burst and RTO.Min 
to sufficiently high ones, and translate addresses as I have suggested.  
If you want DCCP style sessions do the same with one-to-one sockets (or 
association ids on one-to-many sockets) and turn autoclose off.

>On the other had if I want to do path changes in SCTP, well I take my
>association id, get the relevant info from SCTP for this particular
>association and then do the magic with setsockopt()(still using the
>assoc Id)
>
>Conclusion: our ulp identifier is already among us,((maybe) cleaverly )
>disguised as the association id....
>  
>
The problem is that the association id is not portable, persistent, or 
referrable.  The address usually is.

>>Well, if there is no mobility, then converting to only one address on 
>>receive (and the reverse if no association id is specified) 
>>ULP has all 
>>benefits and no downside.  The main benefit would be improved 
>>portability of UDP applications to SCTP.  That said, association ids 
>>would be much more useful if you could pre-allocate them.  
>>Something like:
>>
>>   int sctp_get_assoc_id(int sd, uint32_t * assoc_id);
>>
>>Then you would not have to send the first message, wait for a 
>>matching 
>>COMM_UP event, and extract the association id for later use. 
>>    
>>
>
>Well that was something that intrigued me...
>If I did the connectx(), the function call was held up till something
>came from the remote peer(I am not sure if it returned on the INIT_ACK
>or the COOKIE_ACK... I wasn't tracing it to the microsecond you know...)
>but it waited. 
>
That is proper behavior for a TCP-style connect().  The applications I 
am talking about would auto-initiate associations using sendto() or 
sendmsg().  However, it would certainly be nice if connectx returned the 
association id.  There is also no particular reason to make connect() or 
connectx()  block on a one-to-many style socket. 

The association id is available immediately - in fact there ought to be 
a call to get association ids ahead of time, for auto-initiating 
associations with sctp_sendmsg().  After all you can get socket 
descriptors before connect() why not association descriptors?


>In the SCTP(www.sctp.de -> sctplib) that I wrote my
>application first for, there the associate(= connectx) did the same
>thing but returned the assoc id upon completing the associate(connectx)
>call. So the connectx does not return the assoc id to the caller at this
>present moment. (at least not in lksctp that I am working with...)
>One of the reasons why this might be implemented this way is that a
>sctp_send...() can setup and tear down a association in this one call,
>and it does NOT return a assoc id either. So there is some consistency
>among the NOT returning of the assoc id.
>  
>
By default associations never go away unless they are closed remotely or 
there is an error. SCTP_AUTOCLOSE is there to make them gracefully 
shutdown after a timeout.  So connectx() could return an association id 
(and without breaking the ABI either).  Speaking of association ids, 
they should be changed to be signed values like socket and file 
descriptors, so that -1 can signal an error.  int32_t instead of 
uint32_t inside structures.

>I would prefer to have the connectx return a association id, as it would
>indeed make some application code in the COMM_UP notification
>redundant...
>I am open to reasons why this migth not be possible(such as my
>hypothesis above)
>
>  
>
You are right on this point, as far as I can tell.  Thanks for your 
comments.

 - Mark


--------------060609060505070303000405
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Coene, Lode wrote:<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">
Mark, If the ulp identifier changes, the moment the primary path fo the
multihomed association  changes, then the ulp identifier is NO longer
constant during the complete lifetime of the association...
I have to find that association again .. probably based on IP address
info and change the saved ulp identifer... So it isn't constant to the
application anymore...
  </pre>
</blockquote>
I am not suggesting replacing the association id, just making the
receive address as stable as possible. A pretty good sized group of&nbsp;
UDP applications use the address for a variety of things (including
referrals) and they will not port cleanly if the address is changing
unnecessarily, or if a send to an inactive address is not routed to an
active one.&nbsp; Granted, they will not work properly with mobile SCTP
peers, but they do not work with&nbsp; mobile UDP peers without application
level assistance either.&nbsp; <br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">Dn't forget, the bindx call can remove the IP address from the socket
without invalidating the socket. Bindx can also add a new IP address....
  </pre>
</blockquote>
Adding new addresses would be transparent. So would removing any of the
addresses except for the initial address. If the initial address is
removed, there are two strategies.&nbsp; One is to keep translating writes
on that socket as before, the other is to start returing errors.&nbsp; <br>
<br>
Unlike shim6, an address conflict would only arise if a new peer
initiated an association to the same one-to-many socket using the same
address and port as the first one vacated.&nbsp; That is sufficiently
unlikely that it would be best to keep translating the initial address
to the first association until a conflict actually occured, at which
point the second association would take over the address.&nbsp; Naturally,
anyone writing a sendto() style application understands that an address
is not going to be good forever.<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">
The fact that the association id is presently a positive non-zero value
that does not change as long a the assoc is active, gives the
application designer a big advantage: SHIM changes, SCTP change,
renumbering may happen all under me, and I am blissfully unaware of
it... 
  </pre>
</blockquote>
I agree - the association id is proper for session based applications.&nbsp;
However there are applications that can benefit from path failover and
congestion control that are not session based.&nbsp;&nbsp; Any application that
does not have a natural idea of a session is almost certainly going to
need SCTP_AUTOCLOSE. Where SCTP_AUTOCLOSE is set, the association id
will become invalid
at&nbsp; arbitrary times, while the address or its translation is still good.<br>
<br>
If you want to make SCTP behave like UDP with path failover and
congestion control, just enable PR-SCTP and SCTP_AUTOCLOSE and set
sinfo_timetolive to a sufficiently low value and Max.Burst and RTO.Min
to sufficiently high ones, and translate addresses as I have
suggested.&nbsp; If you want DCCP style sessions do the same with one-to-one
sockets (or association ids on one-to-many sockets) and turn autoclose
off.<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">On the other had if I want to do path changes in SCTP, well I take my
association id, get the relevant info from SCTP for this particular
association and then do the magic with setsockopt()(still using the
assoc Id)

Conclusion: our ulp identifier is already among us,((maybe) cleaverly )
disguised as the association id....
  </pre>
</blockquote>
The problem is that the association id is not portable, persistent, or
referrable.&nbsp; The address usually is.<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">
Well, if there is no mobility, then converting to only one address on 
receive (and the reverse if no association id is specified) 
ULP has all 
benefits and no downside.  The main benefit would be improved 
portability of UDP applications to SCTP.  That said, association ids 
would be much more useful if you could pre-allocate them.  
Something like:

   int sctp_get_assoc_id(int sd, uint32_t * assoc_id);

Then you would not have to send the first message, wait for a 
matching 
COMM_UP event, and extract the association id for later use. 
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Well that was something that intrigued me...
If I did the connectx(), the function call was held up till something
came from the remote peer(I am not sure if it returned on the INIT_ACK
or the COOKIE_ACK... I wasn't tracing it to the microsecond you know...)
but it waited. </pre>
</blockquote>
That is proper behavior for a TCP-style connect().&nbsp; The applications I
am talking about would auto-initiate associations using sendto() or
sendmsg().&nbsp; However, it would certainly be nice if connectx returned
the association id.&nbsp; There is also no particular reason to make
connect() or connectx()&nbsp; block on a one-to-many style socket.&nbsp; <br>
<br>
The association id is available immediately - in fact there ought to be
a call to get association ids ahead of time, for auto-initiating
associations with sctp_sendmsg().&nbsp; After all you can get socket
descriptors before connect() why not association descriptors?<br>
<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">In the SCTP(<a class="moz-txt-link-abbreviated" href="http://www.sctp.de">www.sctp.de</a> -&gt; sctplib) that I wrote my
application first for, there the associate(= connectx) did the same
thing but returned the assoc id upon completing the associate(connectx)
call. So the connectx does not return the assoc id to the caller at this
present moment. (at least not in lksctp that I am working with...)
One of the reasons why this might be implemented this way is that a
sctp_send...() can setup and tear down a association in this one call,
and it does NOT return a assoc id either. So there is some consistency
among the NOT returning of the assoc id.
  </pre>
</blockquote>
By default associations never go away unless they are closed remotely
or there is an error. SCTP_AUTOCLOSE is there to make them gracefully
shutdown after a timeout.&nbsp; So connectx() could return an association id
(and without breaking the ABI either).&nbsp; Speaking of association ids,
they should be changed to be signed values like socket and file
descriptors, so that -1 can signal an error.&nbsp; int32_t instead of
uint32_t inside structures.<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.net"
 type="cite">
  <pre wrap="">
I would prefer to have the connectx return a association id, as it would
indeed make some application code in the COMM_UP notification
redundant...
I am open to reasons why this migth not be possible(such as my
hypothesis above)

  </pre>
</blockquote>
You are right on this point, as far as I can tell.&nbsp; Thanks for your
comments.<br>
<br>
&nbsp;- Mark<br>
<br>
</body>
</html>

--------------060609060505070303000405--


--===============1953138091==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1953138091==--




From tsvwg-bounces@ietf.org Thu Jan 26 11:50:36 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F2AKS-000363-Au; Thu, 26 Jan 2006 11:50:36 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F2AKO-00033e-UW
	for tsvwg@megatron.ietf.org; Thu, 26 Jan 2006 11:50:34 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA03760
	for <tsvwg@ietf.org>; Thu, 26 Jan 2006 11:48:59 -0500 (EST)
Received: from smtp1.smtp.bt.com ([217.32.164.137])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F2AUJ-0003py-1f
	for tsvwg@ietf.org; Thu, 26 Jan 2006 12:00:52 -0500
Received: from i2km97-ukbr.domain1.systemhost.net ([193.113.197.30]) by
	smtp1.smtp.bt.com with Microsoft SMTPSVC(6.0.3790.211); 
	Thu, 26 Jan 2006 16:50:05 +0000
Received: from i2kc06-ukbr.domain1.systemhost.net ([193.113.197.70]) by
	i2km97-ukbr.domain1.systemhost.net with Microsoft
	SMTPSVC(5.0.2195.6713); Thu, 26 Jan 2006 16:50:05 +0000
Received: from cbibipnt05.iuser.iroot.adidom.com ([147.149.196.177]) by
	i2kc06-ukbr.domain1.systemhost.net with Microsoft
	SMTPSVC(6.0.3790.211); Thu, 26 Jan 2006 16:50:04 +0000
Received: From bagheera.jungle.bt.co.uk ([132.146.168.158]) by
	cbibipnt05.iuser.iroot.adidom.com (WebShield SMTP v4.5 MR1a
	P0803.399); id 1138294203139; Thu, 26 Jan 2006 16:50:03 +0000
Received: from mut.jungle.bt.co.uk ([10.86.0.145])
	by bagheera.jungle.bt.co.uk (8.12.8/8.12.8) with ESMTP id
	k0QGnuF5028878; Thu, 26 Jan 2006 16:50:01 GMT
Message-Id: <5.2.1.1.2.20060117194941.01facf28@pop3.jungle.bt.co.uk>
X-Sender: rbriscoe@pop3.jungle.bt.co.uk
X-Mailer: QUALCOMM Windows Eudora Version 5.2.1
Date: Thu, 26 Jan 2006 16:49:55 +0000
To: Sally Floyd <floyd@icir.org>
From: Bob Briscoe <rbriscoe@jungle.bt.co.uk>
In-Reply-To: <200512152102.jBFL2JWv031216@cougar.icir.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-OriginalArrivalTime: 26 Jan 2006 16:50:04.0946 (UTC)
	FILETIME=[8E99DF20:01C62298]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: c375f2012a4f820b0c0fd6fb14a28357
Cc: tsvwg@ietf.org
Subject: [Tsvwg] Re: Diffserv codepoint seems strange for Re-ECN
 <draft-briscoe-tsvwg-re-ecn-tcp-00> 
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Sally,

[BB] Thanks for your detailed and helpful comments.

[BB] I promised I would respond to your e-mail after xmas, but sorry it has 
taken so long. I'm afraid I'm the sort of person who prefers to go away and 
think about something and only writes to mailing lists (or indeed approach 
the IETF in the first place) when I think I've got something worth saying, 
which makes my output rather bursty.

[BB] Responses inline (except one, which was so long I started another thread)


At 21:02 15/12/2005, Sally Floyd wrote:
>Bob -
>
>[SF]My apologies for the long delay in responding to your email.  I
>have finally read draft-briscoe-tsvwg-re-ecn-tcp-00, and will answer
>your email as best I can.
>
> >[BB] Your assumption/question about confining the re-ECN semantics for the
> >ECT(0) & ECT(1) codepoints solely to certain DSCPs threw me - I've realised
> >why - it doesn't make much sense (at least to me).
>
>[SF]My disagreemenet at the WG meeting was about what I understood to
>be your delaying the move of RFC 3540, Robust ECN Signaling with
>Nonces, to Proposed Standard, and instead proposing the mechanism
>in draft-briscoe-tsvwg-re-ecn-tcp-00 for the default semantics of
>the ECT(0) and ECT(1) codepoints.

[BB] Understood.

[BB] In the last couple of days we've come up with a new re-ECN marking 
scheme that doesn't need to conflict with the ECN Nonce. But I want to 
manage expectations, as we are trying to break its security, so I can't say 
we definitely want to move to it. I will write it up ASAP.

[BB] If we assume for now this new scheme is OK, we can have an adult 
debate about whether we should use up IP header real-estate for the ECN 
Nonce, for re-ECN (perhaps) or for both (perhaps). Rather than just one or 
the other.

[BB] However, I'm still not convinced we should standardise the ECN Nonce 
into IP. See later...


> >[BB]The network /middleboxes currently don't read the nonce codepoints, 
> only
> >the receiver. Diffserv codepoints are for reading by the network.
>
>[SF]Yep, but the entire point of your semantics for ECT(0) and ECT(1) is
>for them to be used by droppers in the network, as I understand it.

[BB] I see what you meant now. If one use of the codepoints was going to be 
for the network  to understand (re-ECN) and the other for the receiver 
(Nonce), you thought the sender should negotiate their meaning with both 
the network (Diffserv) and the receiver (TCP options). I used the CR flag, 
not Diffserv.

[BB] Our logic was that re-ECN was designed to apply to all DSCPs---we 
didn't want the sender negotiating whether it would be policed or not. So 
we worked out a scheme on the assumption that the network layer 
functionality of the ECN Nonce was redundant. And we used the CR flag to 
tell the network re-ECN was being used, but only once feedback was 
established (because re-ECN wasn't really being used until then).

[BB] But this may all be moot now, if our new marking scheme works.

[BB] more...


> >[BB] So I
> >assume your ECN-alternate-semantics draft only applied to marking
> >semantics, not to the (current) nonce ECT codepoint semantics which are e2e.
>
>[SF]Yep, this is not about the ECN-alternate-semantics draft, this is
>about the delaying of moving RFC 3540 to Proposed Standard.
>
> >[BB]So, rather than a Diffserv codepoint, in the re-ECN draft I used the 
> TCP
> >handshake to negotiate re-ECN capability between sender and receiver. I
> >give a compatibility mode where the re-ECN sender can work with a nonce
> >receiver, or basic ECN for that matter. It's optional, so if an implementer
> >doesn't do the compatibility mode a re-ECN sender falls back to basic ECN.
>
>[SF]That is fine by me.
>
> >[BB]But the re-ECN draft does suggest that the network/middleboxes read and
> >have semantics for these two codepoints. In the incremental deployment
> >section I explain how this would work with nonce senders and receivers. The
> >basic idea is that a nonce sender appears to be declaring 50% path
> >congestion to the network. So policers should be configured permissively on
> >first deployment. Then, they can be gradually tightened up to encourage
> >upgrade to re-ECN.
> >
> >[BB]Of course the word 'upgrade' assumes re-ECN is 'better' than the nonce.
>
>[SF]Yep.  And that is my disagreement.
>
>[SF]If re-ECN used diff-serv codepoints to signal to use of re-ECN to
>droppers in the network, then RFC 3540 could still be used for the
>default semantics for the ECN Nonce, and re-ECN could be the alternate
>semantics.  This would not mean that the use of re-ECN would be
>restricted to a single diffserv codepoint;  there could be a diffserv
>codepoint for best-effort traffic that uses re-ECN, and other
>diffserv codepoints for various diffserv traffic classes that wish
>to use re-ECN.  (I could imagine that some diffserv traffic classes
>might not want to be subject to packet dropping by re-ECN droppers in
>the network, and other diff-serv traffic classes might want to use
>re-ECN, or to have two variants with two codepoints, one with and
>one without re-ECN.)

[BB] I see the interaction of Diffserv and re-ECN something like you've 
outlined, but I wouldn't put it as if the source could somehow negotiate 
about how it is policed.

[BB] A network might assert (not negotiate) that it would police the 
response to congestion differently for different DSCPs. Which might well 
mean that some DSCPs weren't policed at all so re-ECN would not be needed 
for these (perhaps because there was not meant to be a closed loop response 
to congestion, however I would expect codepoints needing no response to 
congestion to be exceptional).

[BB] I think your wording implies an operator MUST only use a DSCP that 
hasn't been used before to introduce rate policing. My wording allows a 
network operator to introduce rate policing for DSCPs that have already 
been defined. I am especially thinking of BE, where dropping is the norm, 
so a policer that drops in a more principled way wouldn't materially change 
the PHB. For instance, I don't think you would expect traffic ticketing 
policers to not be allowed to police BE traffic.

[BB] It is true that the IETF hasn't defined a congestion response for any 
of the current DSCPs (and I don't think that is the IETF's role). But it 
doesn't make sense to have a mechanism for introducing policing that 
REQUIRES that introducing policing MUST only be done by using a new DSCP. 
Policing is something an operator should chose to do, aiming to keep within 
their per domain behaviour. Indeed, one can think of a per domain behaviour 
as the combination of what the routers do for the traffic of app A and what 
the policers prevent all the other traffic doing to app A's traffic.


>[SF]The question is, is the current ECN nonce in RFC 3540 of sufficient
>value to be saved as the default semantics for ECT(0) and ECT(1)?
>I think it is.

[BB] I think it would be wrong to set aside the ECN nonce codepoints in the 
IP header for a use that relies on a trust model that only applies in a 
subset of cases. The ECN nonce is only relevant where the source acts in 
the interests of the network. The IP header should solely contain 
capabilities that are necessary for all higher layer apps....

[BB] ...We can agree to break this architectural principle, but we have 
principles to warn us to think long and hard when we want to break them. 
I'm not convinced the argument here is at all strong enough. I haven't even 
seen any particularly strong pressure to use the ECN nonce for the one use 
it does have (I guess not surprising given ECN isn't widely deployed).

[BB] Much as I am impressed by the engineering elegance of the ECN Nonce, 
and much as I believe we should put in protection before (not after) 
unresponsive flows become a problem, on balance I don't think the ECN nonce 
is a sufficiently generic solution to add to IP.


>[SF]It is hard to evaluate draft-briscoe-tsvwg-re-ecn-tcp-00 completely,
>since parts of it is incomplete.  However, in my view, the main
>difference between the ECN-Nonce and re-ECN is that the ECN-Nonce
>is used by the sender to prevent lying by the receiver, while re-ECN
>is used by the ingress and egress droppers together to prevent
>congestion control cheating by either or both of the end nodes.
>That is, as I understand it, re-ECN is only of use with the droppers
>in the network.
>
>[SF]My experience to far in working on congestion control mechanisms
>that require many interacting players is to have a significant
>distrust of arguments of why all of the players will have an incentive
>to act their part.  E.g., the SIGCOMM 2005 article on re-ECN outlines,
>why the end-nodes will have an incentive to use re-ECN, and the
>network operators will have an incentive to deploy ingress policing
>and egress dropping.  I have to say that I am skeptical, and
>personally, I have more confidence on mechanisms that require less
>global consistency, when that is possible.  (Unfortunately, it is
>not always possible, as we all know.)

[BB] I (nearly) agree with your skepticism. I too don't like the reliance 
of re-ECN on deployment of a dropper at the egress. But I do see a couple 
of clear first steps on the deployment path, either of which might be first.

[BB] a) An edge to edge scenario as in 
<draft-briscoe-tsvwg-cl-architecture-01.txt> using ECN for pre-congestion 
notification to drive admission control. I see this as a way for operators 
to get first experience with ECN deployment without requiring endpoint 
deployment. Re-ECN has a policing role here too. As the admission 
controlled Diffserv region grows from single operator to multi-operator, 
re-ECN policing allows congested downstream networks to ensure that 
upstream networks are doing admission control correctly. I have written a 
first (currently internal) draft about this - it will be one of the 
application scenarios for the re-ECN draft.

[BB] b) I see cellular operators as obvious takers for congestion policing.
   i) It is expensive for them to reduce congestion in their networks
   ii) Unresponsive apps haven't really taken hold in their market yet 
(because GPRS usage charges are so high).
   iii) They have a lot to lose from allowing unresponsive apps to take 
hold (they either have to suppress the GPRS market by keeping usage charges 
high, or lose much of their voice revenues).
   iv) They can ask for new capabilities in cellular devices to protect 
their own interests, because the device manufacturers' interests are tied in.

[BB] Re-ECN deployment makes sense for one (cellular) operator alone, who 
could deploy it at the ingress and the egress of their own network. And of 
course, the ingress in one direction is the egress in the other, so 
equipment vendors would make both ingress policing and egress dropping 
available at the same time on each edge router product.

[BB] I would also expect the cellular operators to act in concert, prob 
through 3GPP, to standardise congestion policing, based on what we do at 
the IETF.

[BB] Finally, re-ECN has a border mechanism for networks that have deployed 
re-ECN policers and droppers, so they can penalise neighbouring networks 
that dump congestion into their networks. We have only written up the bare 
bones of this - it will be in draft-01. The penalties are greater if these 
neighbours don't deploy re-ECN than if they do. However, these mechanisms 
rely on the downstream network having the market power to dictate terms. 
But again, the cellular operators, particularly acting in concert, 
represent a formidable power bloc.

[BB] Clearly, until I have written these various deployment scenarios up 
properly I don't expect you to be able to pick over the details. I am 
trying hard to get all this writing up done ASAP.

[BB] I do also want to point out tho that policing congestion response is 
just one application of re-ECN. It is intended to be a general mechanism to 
introduce accountability for causing congestion. Other identified 
applications are: QoS, DoS-mitigation, traffic engineering. That's why I 
believe the IP layer is the correct place for re-ECN, because 
accountability in the use of resources is a general requirement across all 
apps.


>[SF]In particular, I have more
>confidence in the use of the ECN Nonce by the sender to ensure that
>the receiver is not lying about congestion feedback,

[BB] Understood (but no help against all the senders that gain from being 
seen to serve their clients faster).


>[SF]and the use
>of policers in the network that rely on locally available information
>(e.g., packet drops at that point or upstream, ECN marks at that
>point or upstream, etc.) to check that connections are using
>appropriate end-to-end congestion control.

[BB] See following mail: "Traffic ticketing considered ineffective or harmful".

>[SF]That does not mean that I am opposed to re-ECN - I think it is
>interesting, and has a fair amount of promise.  However, I don't
>have sufficient confidence in it to think it superior to the ECN
>Nonce,

[BB] That's understandable, given we haven't done a comprehensive job of 
documenting it yet.

>[SF]so my own preference would be for the use of re-ECN to be
>signalled to policers and droppers by diff-serv codepoints, rather
>than by a re-definition of the default semantics of the ECN Nonce.

[BB] As explained, I don't like tying re-ECN to Diffserv in this way. It 
isn't necessary anyway with the new marking scheme we are writing up. 
Indeed, it wasn't necessary with the old coding scheme, which flagged 
whether re-ECN was in use by setting bit 48 of the IP header.

[BB] We need a proper debate before potentially ending up setting aside two 
different sets of IP header codepoints for similar functions done two 
different ways.

[BB] I understand we can't assume re-ECN will happen. So I would argue that 
the ECN Nonce should stay experimental for longer. That doesn't stop 
implementers if they want to do it.

[BB] Responses to your specific review comments on our draft follow...

>[SF]More specific feedback on draft-briscoe-tsvwg-re-ecn-tcp-00 is below.
>
> >[BB]This is all in the re-ECN draft - pls read the details there which I 
> think
> >you'll find is less strange than using DSCPs. Perhaps strange is a little
> >too strong. But certainly confining re-ECN to certain DSCPs is
> >unnecessarily over-constraining.
> >
> >(The essence of this backwards compatibility was also in the re-feedback
> >SIGCOMM paper - don't know where the Diffserv idea came from).
>
>[SF]It came from me, as described above.  An alternative mechanism,
>proposed below, would be to uses the proposed CR flag in the IP
>header for this.  Either one would allow the ECN Nonce to
>proceed as is to Proposed Standard.
>
>Regards,
>
>- Sally
>http://www.icir.org/floyd/
>
>
>--------------------------------------------------------------------
>[SF]Feedback on draft-briscoe-tsvwg-re-ecn-tcp-00:
>
>[SF]P. 4:
>"Policing is only truly effective at the first ingress into an
>internetwork, but path congestion is only visible at the last
>egress."
>
>[SF]I disagree.  Policing, in the form of `traffic tickets' that discourage
>flows from cheating about end-to-end congestion control, is effective
>wherever it is done in the netowrk.  And path congestion is visible
>at the congestion point, or anywhere downstream.  (My understanding
>is that congestion these days is typically not in the core, but on
>access links, exchange points, edge networks, and the like.)

[BB] See following mail: "Traffic ticketing considered ineffective or harmful"

[BB] More...

>[SF]P. 7:
>"The assumption behind the ECN nonce is that a sender will want to
>detect whether a receiver is suppressing congestion feedback.  This
>is only true if the sender's interests are aligned with the network's,
>or with the community of users as a whole.  This may be true for
>certain large senders, who are under close scrutiny and have a
>reputation to maintain."
>
>[SF]The ECN nonce would be useful for more than just "certain large
>senders".  For example, our measurement study of 80.000 web servers
>("Measuring the Evolution of Transport Protocols in the Internet",
>April 2005 CCR, "http://www.icir.org/tbit/") found only almost all
>of the web servers use appropriate congestion contron in TCP
>connections, halving the congestion window in response to packet
>drops.  I would imagine that most of these 80.000 web servers would
>also find the ECN Nonce useful to verify compliance from receivers.

[BB] There's a big difference between servers complying with the TCP 
standard (not being bothered to try to game it) and servers being willing 
to police the compliance of others to the standard. So I don't think your 
last sentence follows at all.

[BB] There may be a role for a nonce at the transport layer (I would be 
willing to help define one) to protect senders against the attack where 
receivers can fake early ACKs.
<http://www-cse.ucsd.edu/~savage/papers/CCR99.pdf>
<http://www-cse.ucsd.edu/~savage/papers/ICNP01.pdf>
But I don't think there's sufficient justification for using IP header bits 
to allow the sender (but not the network) to tell if a receiver is lying 
about congestion that the network has signalled.

[BB] Whether or not there's a problem with web servers, doesn't say whether 
the network layer should have safety mechanisms against congestion 
collapse. It's a bit like building a square castle with only three walls 
and saying there's no attacks through any of the walls.

[BB] The Tbit study was useful proof that there wasn't a problem with Web 
sessions complying with TCP. But conclusions shouldn't be stretched further 
than appropriate. We don't know why there wasn't a problem or what might 
trigger a problem. We don't know whether there is a problem with p2p 
filesharing or p2p streaming (we have done some predictions in the latter 
case). Indeed, we _can't_ prove that a network without safety mechanisms is 
safe just by showing it's not being attacked. We can only predict what 
conditions might trigger attacks.


>[SF]P. 15:
>[SF]TCP connections with an ACK acking eight or more packets: As you
>say in your proposal, when an ACK arrives acking eight or more
>packets, re-ECN is unable to know whether none of the intervening
>packets were ECN-marked, or if eight of the intervening packets
>were ECN-marked.  As you say, this could use more investigation;
>both the ultra-conservative response of assuming packets were
>ECN-marked, and the optimistic response of assuming that no packets
>were ECN-marked, could be problematic.  If it relied on past history,
>the TCP sender could perhaps at least make a plausible inference.
>[E.g.  it is unlikely that 8 packets will be marked in a RTT, when
>it has never been the case that 4, 5, 6, or 7 packets have been
>marked in a single RTT.]

[BB] Agreed more investigation needed.

[BB] However, we chose the ultra-conservative assumption both because it 
was the safe one, and it would only cause the sender to lower throughput 
when throughput already had to be very low.

[BB] If the average forward marking rate is p, there would have to be 8/p 
ACK losses in a row and they would all have to be pure ACKs, for re-TCP not 
to know if it had missed 8 marks. The conservative assumption only has any 
chance of being mistaken for very high marking rates. And at very high 
marking rates, if the source assumes 8 more marks than there actually were, 
its rate will not become much slower than it already is. Specifically, L 
lost ACKs in a row would only lose track of 8 echoes of CE if p > 8/L.

L, ACKS lost in a row            p, marking rate
________________________________________________
10                               >80%
50                               >16%
80                               >10%
800                              >1%

[BB] The values of L that we are ever likely to see are below say 80 (and 
that is stretching credulity). If we do experience such sequences of ACK 
losses, the conservative assumption will only be mistaken for marking 
rates > 10%. When the marking rate is 10%, the source will be going so slow 
already that assuming 8 more CE marks won't make it go much slower.

[BB] On the 1 in a billion occasions someone might see 800 ACK losses in a 
row, the source will have to halve its rate when it shouldn't have, if it 
assumes it may have missed 8 CEs. It will just be "one of those 
things"---lost in the noise. I personally wouldn't recommend complicating a 
TCP implementation by doing inference from past history, just to eliminate 
such safe, innocuous and extremely rare mistakes. I'll clarify this in the 
draft-01.


>[SF]P. 15:
>"We expect Re-ECN would be deployed for some time before policers
>and droppers start to enforce it."
>
>[SF]Yep, from my experience, I would expect it to be a long time indeed.
>And if re-ECN used a diff-serv codepoint to signal its use to
>policers and droppers, then other traffic could proceed with the use
>of the ECN Nonce.
>
>[SF]P. 20:
>[SF]The proosed CR flag in the IP header:
>[SF]It would be good to clarify in this document exactly what the CR
>flag would entail.  The document says that "it will imply that the
>transport understands and is using re-feedback of other fields in the
>IP header, such as the TTL".  It would be nice if the CR flag
>(if this last free flag in the IP header gets allocated to re-ECN)
>would be used to signal to policers and droppers that this flow
>was using re-ECN.  Then you would not have to use diff-serv
>codepoints for this, and the ECN Nonce could advance to Proposed
>Standard as the default semantics for ECT(0) and ECT(1).

[BB] In section 5 I already said "When set, the CR flag also serves as an 
indication that the transports are re-ECN capable (Re-ECT)." But if this 
new marking scheme that we've recently come up with works out, this all 
changes anyway.

[BB] Cheers, and thanks again for your careful review.



Bob


____________________________________________________________________________
Notice: This contribution is the personal view of the author and does not 
necessarily reflect the technical nor commercial direction of BT plc.
____________________________________________________________________________
Bob Briscoe,                           Networks Research Centre, BT Research
B54/130 Adastral Park,Martlesham Heath,Ipswich,IP5 3RE,UK.   +44 1473 645196 



_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 26 11:54:53 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F2AOb-0004uB-G9; Thu, 26 Jan 2006 11:54:53 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F2AOY-0004tj-OP
	for tsvwg@megatron.ietf.org; Thu, 26 Jan 2006 11:54:52 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAB04212
	for <tsvwg@ietf.org>; Thu, 26 Jan 2006 11:53:17 -0500 (EST)
Received: from smtp3.smtp.bt.com ([217.32.164.138])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F2AYW-00041p-Bg
	for tsvwg@ietf.org; Thu, 26 Jan 2006 12:05:10 -0500
Received: from i2km95-ukbr.domain1.systemhost.net ([193.113.197.29]) by
	smtp3.smtp.bt.com with Microsoft SMTPSVC(6.0.3790.211); 
	Thu, 26 Jan 2006 16:54:34 +0000
Received: from i2kc08-ukbr.domain1.systemhost.net ([193.113.197.71]) by
	i2km95-ukbr.domain1.systemhost.net with Microsoft
	SMTPSVC(5.0.2195.6713); Thu, 26 Jan 2006 16:54:34 +0000
Received: from cbibipnt08.iuser.iroot.adidom.com ([147.149.100.81]) by
	i2kc08-ukbr.domain1.systemhost.net with Microsoft
	SMTPSVC(6.0.3790.211); Thu, 26 Jan 2006 16:54:32 +0000
Received: From bagheera.jungle.bt.co.uk ([132.146.168.158]) by
	cbibipnt08.iuser.iroot.adidom.com (WebShield SMTP v4.5 MR1a
	P0803.399); id 1138294471746; Thu, 26 Jan 2006 16:54:31 +0000
Received: from mut.jungle.bt.co.uk ([10.86.0.145])
	by bagheera.jungle.bt.co.uk (8.12.8/8.12.8) with ESMTP id
	k0QGsSF3028946; Thu, 26 Jan 2006 16:54:30 GMT
Message-Id: <5.2.1.1.2.20060116181732.01ffd9c8@pop3.jungle.bt.co.uk>
X-Sender: rbriscoe@pop3.jungle.bt.co.uk
X-Mailer: QUALCOMM Windows Eudora Version 5.2.1
Date: Thu, 26 Jan 2006 16:54:29 +0000
To: Sally Floyd <floyd@icir.org>
From: Bob Briscoe <rbriscoe@jungle.bt.co.uk>
In-Reply-To: <200512152102.jBFL2JWv031216@cougar.icir.org>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
X-OriginalArrivalTime: 26 Jan 2006 16:54:32.0877 (UTC)
	FILETIME=[2E4CE5D0:01C62299]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 16a2b98d831858659c646b3dec9ed22b
Cc: tsvwg@ietf.org
Subject: [Tsvwg] Traffic ticketing considered ineffective or harmful (long)
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Sally,

I've started a new thread to respond to your first detail point on traffic 
ticketing (TT) policers. It was originally in the thread "Re: Diffserv 
codepoint seems strange for Re-ECN <draft-briscoe-tsvwg-re-ecn-tcp-00> ".

[BTW, I'm making a big assumption that by TT you mean approaches like 
XCHOKe, Approx Fair Dropping (AFD) etc.]

Until yesterday I thought my argument against TT policing just concerned 
their inaccuracy (ie they are fairly ineffective as the bad guys can fly 
under their radar). Having written this e-mail, I now understand better a 
number of much stronger arguments against them, which I don't think have 
been articulated before.

To summarise the whole mail, even if TT policers were universally deployed:
- they would only stop dumb overuse (ie fairly ineffective),
- they would cause an arms race by spreading congestion over multiple paths 
that would take us back to where we started (again, ineffective)
- and they would make evolution to new congestion control very complicated, 
if not impossible (harmful to the good of evolution).

My response to your specific point about multiple bottlenecks is only a 
small part of what follows, but I do address it---indeed I argue that 
re-ECN is (perhaps considerably) better than TT on its own terms. But most 
of my arguments are really directed at the wider list---for general 
discussion---you don't need to feel that you have to answer for the whole 
TT approach that I am questioning.

Details below.

At 21:02 15/12/2005, Sally Floyd wrote:
>Feedback on draft-briscoe-tsvwg-re-ecn-tcp-00:
>
>P. 4:
>"Policing is only truly effective at the first ingress into an
>internetwork, but path congestion is only visible at the last
>egress."
>
>I disagree.  Policing, in the form of `traffic tickets' that discourage
>flows from cheating about end-to-end congestion control, is effective
>wherever it is done in the netowrk.  And path congestion is visible
>at the congestion point, or anywhere downstream.  (My understanding
>is that congestion these days is typically not in the core, but on
>access links, exchange points, edge networks, and the like.)

[BB] I agree one can do a fair bit in the short term to deal with 
unresponsive flows by deploying 'traffic ticketing' (TT). But I think the 
aims of TT are different to ours.

I think the aim of TT is to catch extreme offenders who aren't going to 
take evasive action. We want to be able to discriminate flows that would 
fly under the radar of TT. We also want to nail the whole accountability 
problem of IP once and for all.

TT polices source-dest address pairs. If deployed, TT would simply 
encourage a malicious/selfish/careless endpoint (A) wanting to transfer 
data from A to Z to multiplex through bit-torrent-like app-layer relays 
M,N,O,P etc (these might be offering a relaying service p2p around the 
Internet, or they may be within A's local network control). Or A could just 
spoof multiple source addresses.

The problem is that TT is address-based, whereas re-ECN can control the 
congestion caused by traffic crossing the physical interface at any trust 
boundary (which generalises to a network of hosts behind the interface, or 
a network of networks). I think you would be happy if all the sub-flows 
A-M, M-Z, A-N, N-Z etc were TCP friendly. For us, that's not seeing the 
wood for the trees. Encouraging the spread of congestion over multiple 
paths is fine if one host does it. But once enough hosts do it, it hasn't 
solved anything.

Below is a list of problems with TT, all of which re-ECN is designed to 
deal with in what he hope is a more strategic change to the Internet's 
network layer. Each point is expanded on below:
- Paths through multiple bottlenecks
- Deploying policers at any potential bottleck vs ingress & egress only
- TT policers considered harmful to congestion response evolution
- Policing individual packets
- Per customer (interface) policing (parallel flows, heavy users, DDoS, etc.)
- Policing whole networks and network deployment incentives

Paths through multiple bottlenecks
----------------------------------
All network paths traverse two edges. And as you say, congestion tends to 
arise more at the access edges. Traffic traversing one bottleneck is a 
special case. The general and increasingly typical case is two (or more).

Sandvine stats from Sep 2005 [Sandvine05] give the following P2P traffic 
volumes as a proportion of bandwidth consumed on broadband provider networks
         up      down
eu      85%     60%
uk&us   76%     48%
fr      90%     85%
de      83%     65%

Sandvine's figures conflict with CAIDA's stats ranging over 10-28% measured 
in Jan 04 [Karag04b], but CAIDA warn "the purpose of our study is not to 
precisely quantify the percentage of P2P traffic in the backbone, but 
instead to affirm or refute claims on the trends of P2P file-sharing usage 
during the past few years." Further CAIDA's stats were gathered on a T1 
provider's OC48, and they admit the limitation that some P2P apps use ping 
distance as well as available bandwidth to rank which hosts to peer with. 
On the other hand Sandvine's stats don't stand up to academic analysis as 
they give little about methodolgy (except that they do payload inspection). 
Further, one might worry that it is in Sandvine's interests to 'big up' the 
impact of P2P.

Other studies very broadly support these stats, but whatever the exact 
numbers, that potentially means at least two bottlenecks is becoming much 
more common (even given ISPs are trying to serve p2p traffic from caches by 
redirection). When path congestion accumulates through more than one 
bottleneck, TT can only sanction greedy traffic _after_ it has caused 
problems through the earlier bottlenecks on the path.

As an example, assume half the path congestion is contributed by each of 
two nodes at the ingress and egress edges. Further assume TT is precise 
(which it isn't) and is willing to cause false negatives by setting its 
lower bound on RTT equal to the misbehaving flow's RTT. A misbehaving 
source could then get sqrt(2) = 1.4 times the correct rate through the 
first node. I don't know which paper on TT is considered the best (please 
advise), but taking XCHOKe as indicative, due to the uncertainties 
introduced, it seems it has to allow leeway for any traffic up to 15x the 
correct rate (later experiments in the XCHOKe paper do better, but only 
because the UDP sources are excessively greedy, so they get identified more 
quickly). So we have to allow 1.4x15 = 21x the correct rate in the 2 
bottleneck scenario.

Allowing 21x (or 15x for that matter) just isn't good enough to be worth 
deploying. Malicious sources can just fly beneath the radar at 20x the 
correct rate. Alternatively, if TT were intended to discourage apps that 
needed to be unresponsive but didn't want to ask for QoS, from our 
calculations TT would hardly catch any with such a wide leeway.

I would add that edge congestion is not just a phase the Internet is going 
through --- it is due to the cost economics of fan-out which should be the 
general rule for all time --- core congestion only predominated in the 
early Internet because it was a network between campuses, rather than 
predominantly homes and mobile devices.

Whether p2p traffic is just a trend and we will return to big server 
predominance, we don't know. But the network layer behaviour is meant to be 
generic for all possible app behaviours.

In response to the similar concerns you expressed from the mic at 
sigcomm'05, we prepared a paper comparing the limits of TT with 
re-feedback. We've just had some useful comments back from reviewers about 
poor clarity, so you can either wait for us to improve that, or have a go 
at reading it now:
"A path-aware rate policer: design and comparative evaluation"
<http://www.cs.ucl.ac.uk/staff/B.Briscoe/pubs.html#repol>
We focuse particularly on how quickly a misbehaving flow can be detected.

Deploying policers at any potential bottleck vs ingress & egress only
---------------------------------------------------------------------
I agree re-ECN suffers from needing coordinated deployment at egress and 
ingress. I'd prefer it didn't, but it does. However, in a multi-bottleneck 
world 'traffic ticketing' (TT) suffers from exactly the same problem.

For why, let's take the 2-bottleneck example above with an idealised TT 
that doesn't need to allow any leeway for false negatives (ie it can reduce 
an unresponsive flow to x1 of a TCP-friendly flow's goodput).

But first I'm going to suggest an improvement on the existing TT designs to 
help them deal with multiple bottlenecks (then show they still aren't as 
good as re-ECN). A TT design could treat ECN marked packets arriving from 
upstream in the same way it treats packets it is about to mark (or drop).

Let's say there are two types of sources we are concerned about:
- selfish: wanting max goodput
- malicious: wanting to cause max congestion to others

The second policer might prevent a selfish source from sending more than x1 
of well-behaved, assuming it reduced its sending rate to the achievable 
goodput.

But the malicious source wouldn't care about goodput. The first TT policer 
would only know about half the congestion, so it would only reduce the rate 
to x1.4. Only the second policer would reduce it to x1. So the malicious 
source could congest the first bottleneck by exploiting its lack of 
knowledge of downstream congestion.

BTW, there is no TT story for why an egress network should help an ingress 
by taking account of arriving upstream congestion marking. Whereas there is 
for re-ECN (tho not fully articulated in the I-D yet).

Further, TT must be deployed at all potential bottlenecks to be effective, 
not just the very edge nodes like re-ECN. That's more smarts overall => 
higher cost.


TT policers considered harmful to congestion response evolution
---------------------------------------------------------------
One of our goals with re-ECN is that the ingress network can evolve to 
allow a sender a different congestion response from TCP-friendly. TT 
policers throughout the Internet wouold embed the TCP-friendly assumption 
across the Internet, and hugely complicate evolution from TCP.

We see re-ECN as a way to evolve the DCCP framework to allow 
non-TCP-friendly rate control modules. We believe the current activity in 
DCCP to deal with interactive streaming will inexorably prove that you 
can't stay TCP-friendly for interactive streaming apps where users are 
extremely averse to rate-changes more frequent than timescales of minutes 
(we did human factors expts on this back in 2002).

Once TT policing is scattered around the Internet, it prevents evolution 
from TCP-friendliness, embedding it as the only response to congestion for 
the whole Internet, ever. To evolve from that gets really difficult because 
you need to signal to remote networks what sort of rate response you want.

Re-ECN is designed so that a new congestion response can be agreed 
bilaterally---just between the sender and the ingress. To us, this is the 
golden egg, because it is effectively a QoS mechanism that only requires 
local signalling neetween source and ingress, not along the path. Re-ECN's 
bulk inter-domain policing is why the ingress doesn't need to specifically 
ask networks further downstream if a different congestion response is OK. 
Kelly has proved the network would remain stable if different congestion 
responses were allowed.

Per customer (interface) policing (parallel flows, heavy users, DDoS, etc.)
---------------------------------------------------------------------------
As I said, solely policing TCP friendliness of each flow is not seeing the 
wood for the trees. We already talked about TT policers encouraging hosts 
to spread congestion across paths. If a source is causing congestion on 
multiple paths, it would be infeasible for TT policers around the Internet 
to co-ordinate with each other, to get an aggregated view of the congestion 
caused by traffic from each source. Particularly given they only know 
sufficient about path congestion when they are near the egress for each 
flow. But Re-ECN co-ordinates across flows naturally, because it works at 
the ingress interface.

We have designed a policer that takes a rounded view of a whole user, not 
just per flow. So the user wouldn't gain from using strategies like 
creating parallel flows, or sending continuously 24x7. The idea is that an 
ISP gives each user a monthly quota of congestion it is allowed to 
cause---because congestion is the fundamental cost of network usage. If the 
user is heading towards consuming more than the quota, traffic is throttled 
in proportion to the congestion it causes to keep the user within quota.

This moves away from the 'rule' that each flow should be TCP-friendly. The 
point is that multiple TCP-friendly flows can still be Internet-harmful, in 
terms of network economics (implicitly questioning the basis of the 
TCP-friendly rule by considering all flows together).

This per-interface policer has only been described in outline (last para of 
Sec 3.3.2 of the re-feedback paper in SIGCOMM), but we're working on a full 
write-up.

Policing whole networks and network deployment incentives
---------------------------------------------------------
TT policers can't police the rate response to congestion of whole networks. 
Re-ECN provides the right metric at a network boundary for a network to 
encourage its neighbours to police their users. That's because it's 
measured per physical interface, not per address pair.

Yes, re-ECN needs egress networks to deploy droppers first. But networks 
can protect themselves against other networks that don't deploy re-ECN 
policers, and puts the right metrics in place to encourage them to do so 
through contractual agreements.

Policing individual packets
---------------------------
TT policers take a while to detect a new misbehaving flow. Re-ECN has been 
designed to encourage good behaviour right from the first packet of a flow. 
So it is inherently immune to source address spoofing. And it allows the 
network to control its congestion even if the traffic mix becomes dominated 
by short flows.

It would even also incentivise proxies to aggregate congestion control 
across multiple short flows. So even if the world moved to some strange 
future where all the flows in the Internet finished within a single window, 
I believe we would still be OK.

References:
-----------
@INPROCEEDINGS{Karag04b:p2p_vol,
   author = {Thomas Karagiannis and Andre Broido and Nevil Brownlee and {kc}
            {claffy} and Michalis Faloutsos},
   affiliation = {1,5 UC Riverside; 2-4: CAIDA},
   month = nov # "--" # dec,
   year = 2004,
   title = {Is {P2P} Dying or Just Hiding?},
   booktitle = {Proc Globecom'04},
   address = {URL: \url{http://www.caida.org/outreach/papers/2004/p2p-dying/}},
   keywords = {Data Communication, Networks, Internet, Peer-to-Peer, P2p,
              Topology, Traffic Characterisation},
   entryby = {RJB},
   entry = {18 Jan 2006}
}
@MISC{Sandvine05:p2p_vol,
   author = {{Sandvine inc}},
   affiliation = {Sandvine},
   month = sep,
   year = 2005,
   title = {{EDonkey} --- {Still} King of {P2P} in {France} and {Germany}},
   howpublished = {URL \url{http://www.sandvine.com/news/pr_detail.asp?ID=88}},
   keywords = {Data Communication, Networks, Internet, Peer-to-Peer, P2p,
              Topology, Traffic Characterisation},
   entryby = {RJB},
   entry = {18 Jan 2005}
}



Cheers



Bob



____________________________________________________________________________
Bob Briscoe, <bob.briscoe@bt.com>      Networks Research Centre, BT Research
B54/130 Adastral Park,Martlesham Heath,Ipswich,IP5 3RE,UK.   +44 1473 645196  



_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Thu Jan 26 13:05:24 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F2BUp-0004Wg-Hz; Thu, 26 Jan 2006 13:05:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F2BUl-0004T1-Qw
	for tsvwg@megatron.ietf.org; Thu, 26 Jan 2006 13:05:20 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id NAA10820
	for <tsvwg@ietf.org>; Thu, 26 Jan 2006 13:03:48 -0500 (EST)
Received: from mail.sbs.be ([193.109.72.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F2Bek-0008Ak-Ry
	for tsvwg@ietf.org; Thu, 26 Jan 2006 13:15:40 -0500
Received: from bruc001x.sbs.be (bruc001x.sbs.be [193.210.175.38])
	by mail.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0QI56bN026538; Thu, 26 Jan 2006 19:05:08 +0100
Received: from bru0007a.ww018.siemens.net (bru0007a.ww018.siemens.net
	[193.210.175.161])
	by bruc001x.sbs.be (8.12.10/8.12.10/SuSE Linux 0.7) with ESMTP id
	k0QI54L3016790; Thu, 26 Jan 2006 19:05:04 +0100
Received: from BRU0038A.ww018.siemens.net ([193.210.175.64]) by
	bru0007a.ww018.siemens.net with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 26 Jan 2006 19:05:01 +0100
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: [Tsvwg] SCTP ULIDs / association id return values
Date: Thu, 26 Jan 2006 19:04:59 +0100
Message-ID: <67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net>
Thread-Topic: [Tsvwg] SCTP ULIDs / association id return values
Thread-Index: AcYiJtHXn+4ThdBxTNih4ZDiZ/MSfAAa4bng
From: "Coene, Lode" <Lode.Coene@siemens.com>
To: "Mark Butler" <butlerm@middle.net>
X-OriginalArrivalTime: 26 Jan 2006 18:05:01.0721 (UTC)
	FILETIME=[06E34890:01C622A3]
X-Spam-Score: 1.1 (+)
X-Scan-Signature: aec2475b197ed9c8908117d8fbf9ee2e
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2099440659=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.

--===============2099440659==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C622A3.06E86304"

This is a multi-part message in MIME format.

------_=_NextPart_001_01C622A3.06E86304
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Mark,
=20
If I understand you correctly, you are talking about an identifier that
can be used for referals... And which can be send to a remote peer, if I
understand that correctly...
Ahh That why you were talking about the recvmsg
The association Id is purely local(and therefore has no use being send
to a remote peer for referrals)
=20
Further comments inline...

________________________________

	From: Mark Butler [mailto:butlerm@middle.net]=20
	Sent: donderdag 26 januari 2006 4:16
	To: Coene, Lode
	Cc: tsvwg@ietf.org
	Subject: Re: [Tsvwg] SCTP ULIDs / association id return values
=09
=09
	Coene, Lode wrote:
=09

		Mark, If the ulp identifier changes, the moment the
primary path fo the
		multihomed association  changes, then the ulp identifier
is NO longer
		constant during the complete lifetime of the
association...
		I have to find that association again .. probably based
on IP address
		info and change the saved ulp identifer... So it isn't
constant to the
		application anymore...
		 =20

	I am not suggesting replacing the association id, just making
the receive address as stable as possible. A pretty good sized group of
UDP applications use the address for a variety of things (including
referrals) and they will not port cleanly if the address is changing
unnecessarily, or if a send to an inactive address is not routed to an
active one.  Granted, they will not work properly with mobile SCTP
peers, but they do not work with  mobile UDP peers without application
level assistance either.  =20
	=20
	Well, if the receive address is not stable, then the UDP
application have a big problem anyhow
	The question is a stable identifier of the remote peer,
preferably not based on the IP address but on something else.=20
	That would require some new form of namespace such as might be
proposed in the SHIM(If I understand that correctly)  or a simplere
approach may be to use teh FQDN(a DNS name)
	But from the stuff that I've seem in the SCTP sockets, it is
pretty easy to get information from the remote peer about which is
presently reachable .; Just send the retrieved one address or all
addresses as referral to the peer and the peer can try to set up the
association to any of the addresses(even sending INIT in pararlllel to
all of the IP addresses and the first that gets back to the local SCTP
is the winner)...=20
	The case that you are describing here is more a slow address
change(measured in minutes), and then during those x minutes all those
addresses are reachable..=20
=09
=09

		Dn't forget, the bindx call can remove the IP address
from the socket
		without invalidating the socket. Bindx can also add a
new IP address....
		 =20

	Adding new addresses would be transparent. So would removing any
of the addresses except for the initial address. If the initial address
is removed, there are two strategies.  One is to keep translating writes
on that socket as before, the other is to start returing errors.  =20
	I assume this a an ULP ID made up of IP address+portnumber as
you first proposed in the thread...
	Looks like translating the write on that socket is going to be
rather costly: you have to keep a mapping table of all your remote peer
with those ULP id's around...independant from the associations....=20
=09
	Unlike shim6, an address conflict would only arise if a new peer
initiated an association to the same one-to-many socket using the same
address and port as the first one vacated.  That is sufficiently
unlikely that it would be best to keep translating the initial address
to the first association until a conflict actually occured, at which
point the second association would take over the address.  Naturally,
anyone writing a sendto() style application understands that an address
is not going to be good forever.
	=20

		The fact that the association id is presently a positive
non-zero value
		that does not change as long a the assoc is active,
gives the
		application designer a big advantage: SHIM changes, SCTP
change,
		renumbering may happen all under me, and I am blissfully
unaware of
		it...=20
		 =20

	I agree - the association id is proper for session based
applications.  However there are applications that can benefit from path
failover and congestion control that are not session based.   Any
application that does not have a natural idea of a session is almost
certainly going to need SCTP_AUTOCLOSE. Where SCTP_AUTOCLOSE is set, the
association id will become invalid at  arbitrary times, while the
address or its translation is still good.
=09
	If you want to make SCTP behave like UDP with path failover and
congestion control, just enable PR-SCTP and SCTP_AUTOCLOSE and set
sinfo_timetolive to a sufficiently low value and Max.Burst and RTO.Min
to sufficiently high ones, and translate addresses as I have suggested.
If you want DCCP style sessions do the same with one-to-one sockets (or
association ids on one-to-many sockets) and turn autoclose off.=20
	=20

		On the other had if I want to do path changes in SCTP,
well I take my
		association id, get the relevant info from SCTP for this
particular
		association and then do the magic with
setsockopt()(still using the
		assoc Id)
	=09
		Conclusion: our ulp identifier is already among
us,((maybe) cleaverly )
		disguised as the association id....
		 =20

	The problem is that the association id is not portable,
persistent, or referrable.  The address usually is.
=09

			Well, if there is no mobility, then converting
to only one address on=20
			receive (and the reverse if no association id is
specified)=20
			ULP has all=20
			benefits and no downside.  The main benefit
would be improved=20
			portability of UDP applications to SCTP.  That
said, association ids=20
			would be much more useful if you could
pre-allocate them. =20
			Something like:
		=09
			   int sctp_get_assoc_id(int sd, uint32_t *
assoc_id);
		=09
			Then you would not have to send the first
message, wait for a=20
			matching=20
			COMM_UP event, and extract the association id
for later use.=20
			   =20

	=09
		Well that was something that intrigued me...
		If I did the connectx(), the function call was held up
till something
		came from the remote peer(I am not sure if it returned
on the INIT_ACK
		or the COOKIE_ACK... I wasn't tracing it to the
microsecond you know...)
		but it waited.=20

	That is proper behavior for a TCP-style connect().  The
applications I am talking about would auto-initiate associations using
sendto() or sendmsg().  However, it would certainly be nice if connectx
returned the association id.  There is also no particular reason to make
connect() or connectx()  block on a one-to-many style socket. =20
=09
	The association id is available immediately - in fact there
ought to be a call to get association ids ahead of time, for
auto-initiating associations with sctp_sendmsg().  After all you can get
socket descriptors before connect() why not association descriptors?=20
	=20
	Well converting association ID into association descriptors and
then preallocating them ain't a great solution..=20
	Most Operating systems folks would think as : yet another scheme
to eat up memory resources...
	I am perfectly happy to wait for the association ID untill the
INIT_ACK or the COOKIE_ACK comes back...(be it via connectx or COMUP)
=09
=09

		In the SCTP(www.sctp.de -> sctplib) that I wrote my
		application first for, there the associate(=3D connectx)
did the same
		thing but returned the assoc id upon completing the
associate(connectx)
		call. So the connectx does not return the assoc id to
the caller at this
		present moment. (at least not in lksctp that I am
working with...)
		One of the reasons why this might be implemented this
way is that a
		sctp_send...() can setup and tear down a association in
this one call,
		and it does NOT return a assoc id either. So there is
some consistency
		among the NOT returning of the assoc id.
		 =20

	By default associations never go away unless they are closed
remotely or there is an error. SCTP_AUTOCLOSE is there to make them
gracefully shutdown after a timeout.  So connectx() could return an
association id (and without breaking the ABI either).  Speaking of
association ids, they should be changed to be signed values like socket
and file descriptors, so that -1 can signal an error.  int32_t instead
of uint32_t inside structures.=20
	=20
	actually you are asking to turn everything to a one-to-one
interface style and then you would only need a
filedescriptor(unfortunaly, I don't think a firedescriptor can be
refered to a remote peer, so that doesn't solve the referal problem...)
	I myself seems to be a one-to-many interface stylist. I was
trully suprised at finding out that TCP only does a one-to-one interface
style.. That means that servers receving lots of TCP connections(or
sending) have to look for lots and lots of filedescriptors. It is a
daunting and admirable possition to be in for TCP folks...
=09
=09

		I would prefer to have the connectx return a association
id, as it would
		indeed make some application code in the COMM_UP
notification
		redundant...
		I am open to reasons why this migth not be possible(such
as my
		hypothesis above)
	=09
		 =20

	You are right on this point, as far as I can tell.  Thanks for
your comments.
=09
	 - Mark
	=20
	Thank you for your comments.. It has become clearer to me what
you want...
	I Need some more thinking to figure out if this is actually
possible...
	=20
	Yours sincerly,
	Lode =20
=09


------_=_NextPart_001_01C622A3.06E86304
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
<BODY text=3D#000000 bgColor=3D#ffffff>
<DIV><SPAN class=3D622370516-26012006></SPAN><FONT face=3DArial><FONT=20
color=3D#0000ff><FONT size=3D2>Mark,</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT=20
size=3D2></FONT></FONT></FONT>&nbsp;</DIV>
<DIV><FONT><FONT><FONT face=3DArial><FONT color=3D#0000ff><FONT =
size=3D2>I<SPAN=20
class=3D622370516-26012006>f I understand you correctly, you are talking =
about an=20
identifier that can be used for referals... And which can be send =
to&nbsp;a=20
remote peer, if I understand that=20
correctly...</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DArial><FONT color=3D#0000ff><FONT =
size=3D2><SPAN=20
class=3D622370516-26012006>Ahh That why you were talking about the=20
recvmsg</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DArial><FONT color=3D#0000ff><FONT =
size=3D2><SPAN=20
class=3D622370516-26012006>The association Id is purely local(and =
therefore has no=20
use being send to&nbsp;a remote&nbsp;peer for=20
referrals)</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT><FONT face=3DArial><FONT color=3D#0000ff><FONT =
size=3D2><SPAN=20
class=3D622370516-26012006></SPAN></FONT></FONT></FONT></FONT></FONT>&nbs=
p;</DIV>
<DIV><FONT><FONT><FONT face=3DArial><FONT color=3D#0000ff><FONT =
size=3D2><SPAN=20
class=3D622370516-26012006>Further comments=20
inline...</SPAN></FONT></FONT></FONT></FONT></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px =
solid; MARGIN-RIGHT: 0px">
  <DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
  <HR tabIndex=3D-1>
  <FONT face=3DTahoma size=3D2><B>From:</B> Mark Butler =
[mailto:butlerm@middle.net]=20
  <BR><B>Sent:</B> donderdag 26 januari 2006 4:16<BR><B>To:</B> Coene,=20
  Lode<BR><B>Cc:</B> tsvwg@ietf.org<BR><B>Subject:</B> Re: [Tsvwg] SCTP =
ULIDs /=20
  association id return values<BR></FONT><BR></DIV>
  <DIV></DIV>Coene, Lode wrote:<BR>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">Mark, If the ulp identifier changes, the =
moment the primary path fo the
multihomed association  changes, then the ulp identifier is NO longer
constant during the complete lifetime of the association...
I have to find that association again .. probably based on IP address
info and change the saved ulp identifer... So it isn't constant to the
application anymore...
  </PRE></BLOCKQUOTE>
  <DIV>I am not suggesting replacing the association id, just making the =
receive=20
  address as stable as possible. A pretty good sized group of&nbsp; UDP=20
  applications use the address for a variety of things (including =
referrals) and=20
  they will not port cleanly if the address is changing unnecessarily, =
or if a=20
  send to an inactive address is not routed to an active one.&nbsp; =
Granted,=20
  they will not work properly with mobile SCTP peers, but they do not =
work=20
  with&nbsp; mobile UDP peers without application level assistance=20
  either.&nbsp;&nbsp;<SPAN class=3D622370516-26012006><FONT face=3DArial =

  color=3D#0000ff size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Well, if the receive address is not stable, then the UDP =
application=20
  have a big problem anyhow</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>The=20
  question is a stable identifier of the remote peer, preferably not =
based on=20
  the IP address but on something else.&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>That=20
  would require some new form of namespace such as might be proposed in =
the=20
  SHIM(If I understand that correctly)</FONT>&nbsp;<FONT face=3DArial=20
  color=3D#0000ff size=3D2> or a simplere approach may be to use teh =
FQDN(a DNS=20
  name)</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006></SPAN><SPAN=20
  class=3D622370516-26012006></SPAN><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
  size=3D2>B<SPAN class=3D622370516-26012006>ut from the stuff that I've =
seem in the=20
  SCTP sockets, it is pretty easy to get information from the remote =
peer about=20
  which is presently&nbsp;reachable&nbsp;.; Just send the =
retrieved&nbsp;one=20
  address or all addresses as referral to the peer and the peer can try =
to set=20
  up the association to any of the addresses(even sending INIT in =
pararlllel to=20
  all of the IP addresses and the first that gets back to the local SCTP =
is the=20
  winner)... </SPAN></FONT></FONT></FONT></DIV>
  <DIV><FONT face=3DArial><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
  class=3D622370516-26012006>The case that you are describing here is =
more a slow=20
  address change(measured in minutes), and then during those x minutes =
all those=20
  addresses are reachable..</SPAN></FONT></FONT></FONT><FONT =
face=3DArial><FONT=20
  color=3D#0000ff><FONT size=3D2><SPAN=20
  =
class=3D622370516-26012006>&nbsp;</SPAN></FONT></FONT></FONT><BR><BR></DI=
V>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">Dn't forget, the bindx call can remove =
the IP address from the socket
without invalidating the socket. Bindx can also add a new IP address....
  </PRE></BLOCKQUOTE>
  <DIV>Adding new addresses would be transparent. So would removing any =
of the=20
  addresses except for the initial address. If the initial address is =
removed,=20
  there are two strategies.&nbsp; One is to keep translating writes on =
that=20
  socket as before, the other is to start returing =
errors.&nbsp;&nbsp;<SPAN=20
  class=3D622370516-26012006><FONT face=3DArial color=3D#0000ff=20
  size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
  assume this a an ULP ID made up of IP address+portnumber as =
you&nbsp;first=20
  proposed in the thread...</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Looks like translating the write on that socket is going to=20
  be&nbsp;rather costly: you have to keep a mapping table of all your =
remote=20
  peer with those ULP id's around...independant from the=20
  associations....</FONT>&nbsp;</SPAN><BR><BR>Unlike shim6, an address =
conflict=20
  would only arise if a new peer initiated an association to the same=20
  one-to-many socket using the same address and port as the first one=20
  vacated.&nbsp; That is sufficiently unlikely that it would be best to =
keep=20
  translating the initial address to the first association until a =
conflict=20
  actually occured, at which point the second association would take =
over the=20
  address.&nbsp; Naturally, anyone writing a sendto() style application=20
  understands that an address is not going to be good forever.</DIV>
  <DIV><SPAN class=3D622370516-26012006>&nbsp;</SPAN></DIV>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">The fact that the association id is =
presently a positive non-zero value
that does not change as long a the assoc is active, gives the
application designer a big advantage: SHIM changes, SCTP change,
renumbering may happen all under me, and I am blissfully unaware of
it...=20
  </PRE></BLOCKQUOTE>
  <DIV>I agree - the association id is proper for session based=20
  applications.&nbsp; However there are applications that can benefit =
from path=20
  failover and congestion control that are not session =
based.&nbsp;&nbsp; Any=20
  application that does not have a natural idea of a session is almost =
certainly=20
  going to need SCTP_AUTOCLOSE. Where SCTP_AUTOCLOSE is set, the =
association id=20
  will become invalid at&nbsp; arbitrary times, while the address or its =

  translation is still good.<BR><BR>If you want to make SCTP behave like =
UDP=20
  with path failover and congestion control, just enable PR-SCTP and=20
  SCTP_AUTOCLOSE and set sinfo_timetolive to a sufficiently low value =
and=20
  Max.Burst and RTO.Min to sufficiently high ones, and translate =
addresses as I=20
  have suggested.&nbsp; If you want DCCP style sessions do the same with =

  one-to-one sockets (or association ids on one-to-many sockets) and =
turn=20
  autoclose off.<SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006>&nbsp;</SPAN></DIV>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">On the other had if I want to do path =
changes in SCTP, well I take my
association id, get the relevant info from SCTP for this particular
association and then do the magic with setsockopt()(still using the
assoc Id)

Conclusion: our ulp identifier is already among us,((maybe) cleaverly )
disguised as the association id....
  </PRE></BLOCKQUOTE>The problem is that the association id is not =
portable,=20
  persistent, or referrable.&nbsp; The address usually is.<BR>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite">
    <BLOCKQUOTE type=3D"cite"><PRE wrap=3D"">Well, if there is no =
mobility, then converting to only one address on=20
receive (and the reverse if no association id is specified)=20
ULP has all=20
benefits and no downside.  The main benefit would be improved=20
portability of UDP applications to SCTP.  That said, association ids=20
would be much more useful if you could pre-allocate them. =20
Something like:

   int sctp_get_assoc_id(int sd, uint32_t * assoc_id);

Then you would not have to send the first message, wait for a=20
matching=20
COMM_UP event, and extract the association id for later use.=20
    </PRE></BLOCKQUOTE><PRE wrap=3D""><!---->
Well that was something that intrigued me...
If I did the connectx(), the function call was held up till something
came from the remote peer(I am not sure if it returned on the INIT_ACK
or the COOKIE_ACK... I wasn't tracing it to the microsecond you know...)
but it waited. </PRE></BLOCKQUOTE>
  <DIV>That is proper behavior for a TCP-style connect().&nbsp; The =
applications=20
  I am talking about would auto-initiate associations using sendto() or=20
  sendmsg().&nbsp; However, it would certainly be nice if connectx =
returned the=20
  association id.&nbsp; There is also no particular reason to make =
connect() or=20
  connectx()&nbsp; block on a one-to-many style socket.&nbsp; =
<BR><BR>The=20
  association id is available immediately - in fact there ought to be a =
call to=20
  get association ids ahead of time, for auto-initiating associations =
with=20
  sctp_sendmsg().&nbsp; After all you can get socket descriptors before=20
  connect() why not association descriptors?<SPAN =
class=3D622370516-26012006><FONT=20
  face=3DArial color=3D#0000ff size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>Well=20
  converting association ID into association descriptors and then =
preallocating=20
  them ain't a great solution..&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>Most=20
  Operating systems folks would think as : yet another scheme to eat up =
memory=20
  resources...</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>I am=20
  perfectly happy to wait for the association ID untill =
the&nbsp;INIT_ACK or the=20
  COOKIE_ACK comes back...(be it via connectx or=20
  COMUP)</FONT></SPAN><BR><BR></DIV>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">In the SCTP(<A =
class=3Dmoz-txt-link-abbreviated =
href=3D"http://www.sctp.de">www.sctp.de</A> -&gt; sctplib) that I wrote =
my
application first for, there the associate(=3D connectx) did the same
thing but returned the assoc id upon completing the associate(connectx)
call. So the connectx does not return the assoc id to the caller at this
present moment. (at least not in lksctp that I am working with...)
One of the reasons why this might be implemented this way is that a
sctp_send...() can setup and tear down a association in this one call,
and it does NOT return a assoc id either. So there is some consistency
among the NOT returning of the assoc id.
  </PRE></BLOCKQUOTE>
  <DIV>By default associations never go away unless they are closed =
remotely or=20
  there is an error. SCTP_AUTOCLOSE is there to make them gracefully =
shutdown=20
  after a timeout.&nbsp; So connectx() could return an association id =
(and=20
  without breaking the ABI either).&nbsp; Speaking of association ids, =
they=20
  should be changed to be signed values like socket and file =
descriptors, so=20
  that -1 can signal an error.&nbsp; int32_t instead of uint32_t inside=20
  structures.<SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>actually you are asking to turn everything to a one-to-one =
interface=20
  style and then you would only need a filedescriptor(unfortunaly, I =
don't think=20
  a firedescriptor can be refered to a remote peer, so that doesn't =
solve the=20
  referal problem...)</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
  myself seems to be a one-to-many interface stylist. I was trully =
suprised at=20
  finding out that TCP only does a one-to-one interface style.. That =
means that=20
  servers receving lots of TCP connections(or sending) have to look for =
lots and=20
  lots of filedescriptors. It is a daunting and admirable possition to =
be in for=20
  TCP folks...</FONT></SPAN><BR><BR></DIV>
  <BLOCKQUOTE=20
  =
cite=3Dmid67043E463DDBFD4A8087ED940BFF756B6B5A75@BRU0038A.ww018.siemens.n=
et=20
  type=3D"cite"><PRE wrap=3D"">I would prefer to have the connectx =
return a association id, as it would
indeed make some application code in the COMM_UP notification
redundant...
I am open to reasons why this migth not be possible(such as my
hypothesis above)

  </PRE></BLOCKQUOTE>
  <DIV>You are right on this point, as far as I can tell.&nbsp; Thanks =
for your=20
  comments.<BR><BR>&nbsp;- Mark<BR><SPAN =
class=3D622370516-26012006><FONT=20
  face=3DArial color=3D#0000ff size=3D2>&nbsp;</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Thank you for your comments.. It has become clearer to me =
what you=20
  want...</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>I=20
  Need some more thinking to figure out if this is actually=20
  possible...</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff=20
  size=3D2>Yours sincerly,</FONT></SPAN></DIV>
  <DIV><SPAN class=3D622370516-26012006><FONT face=3DArial =
color=3D#0000ff size=3D2>Lode=20
  </FONT>&nbsp;</SPAN><BR></DIV></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C622A3.06E86304--


--===============2099440659==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============2099440659==--




From tsvwg-bounces@ietf.org Fri Jan 27 06:04:37 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F2RPB-00056Q-5F; Fri, 27 Jan 2006 06:04:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F2RP9-00056L-2r
	for tsvwg@megatron.ietf.org; Fri, 27 Jan 2006 06:04:35 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id GAA26339
	for <tsvwg@ietf.org>; Fri, 27 Jan 2006 06:03:01 -0500 (EST)
Received: from ams-iport-1.cisco.com ([144.254.224.140])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F2RZH-0001ng-G3
	for tsvwg@ietf.org; Fri, 27 Jan 2006 06:15:04 -0500
Received: from ams-core-1.cisco.com ([144.254.224.150])
	by ams-iport-1.cisco.com with ESMTP; 27 Jan 2006 12:04:25 +0100
Received: from xbh-ams-331.emea.cisco.com (xbh-ams-331.cisco.com
	[144.254.231.71])
	by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k0RB4F5o015504; 
	Fri, 27 Jan 2006 12:04:22 +0100 (MET)
Received: from xmb-ams-333.cisco.com ([144.254.231.78]) by
	xbh-ams-331.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); 
	Fri, 27 Jan 2006 12:04:22 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Fri, 27 Jan 2006 12:04:13 +0100
Message-ID: <A05118C6DF9320488C77F3D5459B17B7013B245B@xmb-ams-333.emea.cisco.com>
Thread-Topic: draft-ietf-tsvwg-rsvp-dste-00.txt review comments - Kwok's review
Thread-Index: AcYhRBToxcMUkAiASE+GJ1QBkGRWBwB4mYxw
From: "Francois Le Faucheur \(flefauch\)" <flefauch@cisco.com>
To: "Kwok-Ho Chan" <khchan@nortel.com>
X-OriginalArrivalTime: 27 Jan 2006 11:04:22.0451 (UTC)
	FILETIME=[6D861030:01C62331]
X-Spam-Score: 0.8 (/)
X-Scan-Signature: ff67cea9f7df2d77f61a364cea0926e8
Content-Transfer-Encoding: quoted-printable
Cc: tsvwg <tsvwg@ietf.org>
Subject: [Tsvwg] RE: draft-ietf-tsvwg-rsvp-dste-00.txt review comments -
	Kwok's review
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

Hello Kwok,=20

Thanks for your review. Please see below:

>> -----Original Message-----
>> From: Kwok-Ho Chan [mailto:khchan@nortel.com]=20
>> Sent: mercredi 25 janvier 2006 01:08
>> To: Francois Le Faucheur (flefauch)
>> Cc: christou_chris@bah.com; davenport_michael@bah.com;=20
>> dibiasio@cisoc.com; Bruce Davie (bdavie); gash@att.com;=20
>> bgoode@att.com; mankin@psg.com; jon.peterson@neustar.biz;=20
>> James Polk (jmpolk); Fred Baker (fred); Subha Dhesikan=20
>> (sdhesika); Kwok-Ho Chan
>> Subject: draft-ietf-tsvwg-rsvp-dste-00.txt review comments
>>=20
>> Authors, Chairs, Reviewers:
>> Please see below my review comments (and some suggested text) for
>> http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-rsvp-dste-00.txt
>>=20
>> 1.  Section 1 Introduction, bottom of 3rd paragraph on page 2.
>>       "Diffserv eliminates the need for per-flow state and=20
>> per-flow processing
>>       and therefore scales well to large networks."
>>       Can you add "per-flow signaling" as follows:
>>       "Diffserv eliminates the need for per-flow state,=20
>> per-flow signaling,
>>       and per-flow processing, therefore scales well to=20
>> large networks."

Diffserv focuses on datapath mechanisms and allows any method of
resource allocation (eg provisioning which indeed eleminates signaling,
as well as on-path admission control as per RFC2998 which keeps per-flow
signaling, as well as bandwidth brokers which may also involve some
per-flow signaling). So, to me, Diffserv itself does eliminate per-flow
state and per-flow processing in the datapath. It can be used "with" or
"without" per-flow signaling. While it is generally used "without", it
is also used very succesfully "with" per-flow signaling in environments
where the number of flows is small to medium.

So I think current text is probably correct.

>>=20
>> 2.  Section 1 Introduction, 5th paragraph on page 3.
>>       "[MPLS-TE] describes how MPLS TE Tunnels... Then, CAC (Call=20
>> Admission Control)
>>       is performed during the establishment of TE Tunnels to ensure=20
>> they are granted
>>       their requested resources."
>>       IMHO, there are more than one kind of Admission Control:
>>       First, there is the initial setup of the TE Tunnel (reserving=20
>> resources for the whole
>>       tunnel).  Which I think this paragraph is discussing.
>>       Second, there is the Admission Control of the per-flow (or per=20
>> Intserv RSVP micro flow)
>>       session into the TE Tunnel (this is in the bearer/data path).
>>       Third, there is the Admission Control of the per application=20
>> session (this is in the application
>>       signaling path).  I believe this is what should be called CAC=20
>> (Call Admission Control).
>>=20
>>       IMHO, the goodness/value of this draft is in tying these=20
>> different Admission Control concepts
>>       together, it will be beneficial to distinctly clarify=20
>> them up front.

I see your point that it may be confusing to talk about "Call" when we
are doing admission control of an RSVP reservation over a TE Tunnel, or
admission control of the TE tunnel itself. To avoid this confusion I
have cleaned up the document so that:
	- "Admission Control" is used whenever we talk about admission
RSVP reservations or RSVP TE tunnels.
	- "Call Amdission Control/CAC" is used only when discussing the
Voice example

Note that this draft is really focusing on one specific part which is
how to do admission control of E2E RSVP over MPLS TE tunnels. How this
may be used to achieved things like Voice CAC is described here for
information purposes.=20

>>       Hence, IMHO, I think this paragraph should read as:
>>       "[MPLS-TE] describes how MPLS TE Tunnels can be=20
>> established via=20
>> [RSVP-TE] and
>>       how these tunnels can be used to carry arbitrary aggregates of=20
>> traffic.  MPLS TE uses
>>       Constraint Based Routing to compute the path for a TE=20
>> tunnel.  Adequate resources
>>       are reserved in the LSRs as requested during establishment of=20
>> TE Tunnels."
>>=20
>>       If this concept is acceptable by the Authors, then there are=20
>> numerous places in the
>>       draft that uses "CAC" or "Admission Control" that will need to=20
>> be modified.
>>       For example at bottom of page 3:
>>       "- a TE tunnel is subject to CAC and thus is effectively an=20
>> aggregate bandwidth reservation"
>>       should be:
>>       "- a TE tunnel is subject to resource reservation=20
>> during tunnel=20
>> setup and thus is effectively
>>       an aggregate bandwidth reservation"
>>=20
>>       Some of these different Admission Control was indicated in the=20
>> Appendix.  But I believe they
>>       should be in the main part of the draft.

See above.

>>=20
>> 3.  Section 1 Introduction, bottom of section on page 5.
>>       "- dynamic, topology-aware resource-based admission=20
>> control can=20
>> be provided to applications
>>          over any segment of the end to end path including the core"
>>=20
>>      For the notion of topology-aware, IMHO, it is the whole network=20
>> that is topology aware.
>>      This topology-aware info is not provided to the=20
>> application/end-point/end-user, at least not
>>      by the mechanism of this draft.

This is not suggesting that topology-awareness is provided to
applications. This is trying to say that "topology-aware admission
control is provided to applications".

To make that real clear I have rephrased to:
"
-	applications can benefit from dynamic, topology-aware
resource-based admission control over any segment of the end to end path
including the core
"

>>      RSVP states in each hop (RSVP hop) knows only of its immediate=20
>> neighboring RSVP hops,
>>      hence the topology-awareness may need to be better=20
>> described here.
>>      Topology-awareness is a double edge sword, it could benefit and=20
>> hinder the overall design.
>>=20
>> 4.  Section 3.2 Receipt of E2E Path message By the=20
>> Aggregator, bottom=20
>> of section on page 9.
>>       "- addressed directly to the Deaggregator.  The destination=20
>> address of the E2E Path message
>>       is set to the Deaggregator address and the Router=20
>> Alert is not set..."
>>       How/when is the orignal E2E Path msg Dst IP Address get=20
>> restored?  Assuming the E2E Path
>>       Msg is of the Intserv RSVP type.  Or the orignal E2E Path msg=20
>> Dst IP Addr will not get restored?

Yes it is restored. It is restored by the Deaggregator.
I have added an explicit statement about that, so it reads:

"
The Deaggregator MUST forwards the E2E Path downstream towards the
receiver. In doing so, the Deaggregator MUST set the destination address
of the E2E Path message to the IP address field of the Session object
and MUST set the Router Alert.
"

Note that this is actually in line with the regular RSVP behavior (ie an
RSVP Router actually picks the destination IP address in the Session
object and tells the IP layer to use that as the destination address of
the Path message - ie it normally does not store the IP header in which
the Path message was received anyways).=20


>>       The PSB and RSB structures of RSVP state machine uses the RSVP=20
>> Receiver IP Address
>>       (the Path Msg Dst IP Addr) as one of the keys during PSB, RSB=20
>> lookup

No. They just use what is in the RSVP objects.

 (but I think this info
>>       is also in the RSVP Session Object).  Or is the original E2E=20
>> Path Msg get intercepted/hijacked
>>       mid stream and will never travel downstream from the=20
>> Egress LER=20
>> toward the original real E2E Path
>>       Msg receiver?
>>       This will also have impact on multicast whenever multicast=20
>> needs to be considered because the
>>       Path Msg Dest IP Addr holds the multicast Group Address.
>>       This is getting complicated.

I don't think so.
Again, re-constructing the destination IP address before forwarding a
Path message is normal RSVP behavior.

>>=20
>> 5.  Section 3.4 Receipt of E2E Path Message by Deaggregator, second=20
>> paragraph on top of page 9.
>>       The question indicated in Comment #4 above concerning Path Msg=20
>> Dest IP Addr also applies here.
>>       This may be the place to add the restoration of the original=20
>> E2E Path Msg Dest IP Addr text.
=20
Yes.=20
Done.  See abobve.

>> 6.   Section 3.9 Example Signaling Flow, bottom of the=20
>> section on page 12.
>>        IMHO, I think a note should be added below (4) indicating:
>>        "Notes: Steps (1) to (4) may be repeated if the Aggregator=20
>> selects a different TE tunnel
>>        (different from the tentative TE tunnel in step (1)) as the=20
>> final TE tunnel."

OK. I added
"
If final tunnel is different from tunnel tentatively selected, the
Aggregator may re-send an E2E Path.
"
Note that the Deagg may or may not also retrigger an E2E Path, the
Receiever may or may not retrigger a Resv...

>>=20
>> 7.  Section 5 E2E Reservation Applicability on page 13.
>>       Typo in bullet item (2) the reference "[RSVP-AGG]" should be=20
>> "[RSVP-AGGR}".

Right.

>>=20
>> 8.  Section 6.1 Voice and Video Reservation Scenario, first=20
>> paragraph=20
>> at bottom of page 13.
>>       For clarification of Admission Control.
>>       "An example application of the procedures specified in this=20
>> document is admission control
>>       of voice and video..."
>>       Can be:
>>       "An example application of the procedures specified in this=20
>> document is admission control
>>       into the DS-TE tunnel by the Aggregator of voice and video=20
>> sessions in environments ..."
=20
I think the application is really better described in current wording:
"ie CAC of voice/video with very hogh nb of flows". Having an Aggregator
to CAC over TE tunnels is really the description of how I can achieve
this application.

>> 9.  Section 7 Optional Use of RSVP Proxy on RSVP Aggregator, 4th=20
>> paragraph at bottom of page 15.
>>       "Hence, when behaving as the RSVP Proxy, the RSVP Aggregator=20
>> may effectively perform resource
>>       reservation over the MPLS TE Tunnel ... even if the RSVP=20
>> signaling only takes place upstream
>>       of the MPLS TE Tunnel (i.e. between the host and the=20
>> RSVP aggregator)."
>>       For this, the Dst IPAddr of the per-flow RSVP Path Msg=20
>> is the Aggregator?

No. It is the final destination. But an RSVP receiver Proxy may decide
to terminate the Path message and return a Resv (and do downstream CAC
on TE Tunnel).

>>       And it (the Path Msg) does not go all the way to the=20
>> real media Receiver?
>>       For this, the Sender will need to know the Aggregator's IP=20
>> Address.=20
>> This adds complexity
>>       to the whole architecture.

No. The sender does not have to know the Aggregator's IP Address. In
fact the sender does not even know that RSVP Proxing is happening.


>> 10. Section 7 Optional Use of RSVP Proxy on RSVP Aggregator, below=20
>> the diagram bottom of page 16.
>>        In (1) (i).  The text: "performs admission control over/into=20
>> the TE Tunnel" is good way to indicate
>>                      which admission control this is talking about.
>>        In (3)(iii).  Does (3) have any relationship with (1) and=20
>> (iii) with (1)?
>>                       How does Aggr/Deaggr/Proxy know what the=20
>> parameters of Path/ResV are?
>>                       Is symmetrical reservation assumed?

There has been different proposals for RSVP proxy. They offered
differnet solution to this question (eg from simplest which assumes
symetrical reservation, to more complex which involve signaling of
reverse reservation). So it depends on the details of the Proxy
approach.

>>=20
>> 11. Section 7 Optional Use of RSVP Proxy on RSVP Aggregator, 1st=20
>> paragraph at top of page 17.
>>        "But regardless of the details of the call flow and of the=20
>> actual RSVP Proxy approach, ..."
>>        IMHO, this paragraph sounds a bit loose and not sure=20
>> of its purpose.
>>        Is it describing the requirements of what any optional use of=20
>> RSVP Proxy on RSVP Aggregator are?
>>        Is it describing the features of what any optional=20
>> use of RSVP=20
>> Proxy on RSVP Aggregator are?
>>        Some clarification may help.  And discussion of requirement=20
>> and features may help this section.
=20
This is not trying to identify requirements for RSVP proxy solution.
This is explaining that "RSVP Aggregation over TE Tunnels" plays well
with the RSVP proxy concept (regardless of which actual RSVP Proxy
solution may be used/standardised by IETF).

>>        While on the topic of the features of Optional Use of RSVP=20
>> Proxy on RSVP Aggregator,
>>        What is the advantage of using the RSVP Proxy approach?
>>        Is it to reduce the E2E (Intserv, application traffic sender=20
>> to application traffic receiver) RSVP
>>        messages being carried as normal data packets inside=20
>> the DS-TE tunnels?
>>        What other advantage does use of RSVP Proxy have over just=20
>> using E2E/Intserv RSVP inside
>>        the DS-TE tunnel (Sending the E2E/Intserv RSVP messages all=20
>> the way from the application
>>        traffic sender to the application traffic receiver,=20
>> inside the=20
>> DS-TE tunnels when aggregation is
>>        needed/performed)??
>>        Does the extra complexity worth the trouble?

One advantage is that it localises RSVP signaling between end-device and
Agg/Degg instead of enbd-to-end. Where end-to-end RTT is long, this can
enhance Post-Dial-Delay.
The network administrator will be the one to decide whether this is
worthwhile. The point here is that nothing additional ahs to be
specified as part of "RSVP Aggregation over TE": if you don't want to
use proxy, fine. If you want to use proxy, this is fine too.
Some operators have expressed interest in combining the proxy function,
so I believe it is useful to describe how the two can play together.

>>=20
>> 12. Section 7 Optional Use of RSVP Proxy on RSVP Aggregator, bottom=20
>> of section on page 17.
>>        For (iii).  Please notice this splitting the RSVP signaling=20
>> into two disjoint halves may just provide
>>        half the solutions. =20

No. It does provide the full solution ie it achieves CAC on every
segment (including the core) and in both direction.

>>Is the propagational delay of E2E RSVP=20
>> messages between Aggregator and
>>        Deaggregator really that bad?

We don't have to decide that. Network Administrator will make the call
in his/her environment.

>> 13. Appendix A at bottom of page 22.
>>       "In this example, in addition to behaving ...  So when a PE=20
>> receives a Path message from a GW,
>>       it does not propagate the Path message any further."
>>       What is the Dest IPAddr of this Path message?

Address of remote GW.

>>=20
>> 14. Appendix A at bottom of page 22.
>>        "In this example, in addition to behaving ... and generates a=20
>> ResV message back towards
>>        the GW to confirm resources have been reserved over=20
>> the DSTE tunnel."
>>        This is somewhat different from normal RSVP functionality.
>>        The DS-TE tunnel is at the Egress port of the=20
>> PE/Proxy/Aggregator.
>>        Normally the resource of this Egress port is reserved when a=20
>> ResV message
>>        is received from the downstream (RSVP definition of=20
>> downstream) RSVP hop,
>>        NOT when a Path message is received from upstream (RSVP=20
>> definition of upstream)
>>        of an Ingress port.

The idea is not to reserve resources when the Path is received. But
rather to reserve resources on the egress link when the Resv is
generated by the Rescievr Proxy (which basically behaves exactly as if
it had received the Resv from a downstream node). So again this depends
on the specifics of the RSVP poroxy solution, but is quite in line with
existing RSVP functionality.

>>=20
>> 15. Appendix A at bottom of page 23.
>>       "[SIP-RSVP] discusses how network ... These preconditions=20
>> require that the participant reserve
>>       network resources before continuing with the session.  The=20
>> reservation of network resources are
>>       performed ..."
>>       IMHO,
>>       "These preconditions require that the underlying application=20
>> traffic transport verify it can
>>       provide the required QoS before continuing with the=20
>> session.  This can be accomplished using
>>       network resource reservations.  The reservation of network=20
>> resources can be performed ..."
>>       is a better way to describe this.
>>=20

This text is coming verbatim from the [SIP-RSVP] RFC abstract. I think
it is quite fine.

>> 16. Appendix A, 1st paragraph at top of page 26.
>>       "We note that admission control of vice calls over the core=20
>> network capacity is ..."
>>       IMHO, this paragraph provides the different notions of=20
>> Admission Control but should not
>>       just call them CAC.  Hence this can be expanded and added into=20
>> the front of the document.

As discussed above.

>>=20
>> 17. Appendix A, 3rd paragraph at top of page 26.
>>        "It is also possible for the GWs to use ...
>>         - DSTE tunnels are ...
>>         - Aggregate RSVP reservations from GW to GW are subject ..."
>>         When RSVP Proxy is used (which is what this Appendix is=20
>> describing), this is really GW to PE only.

Edited text to:
"
-	Aggregate RSVP reservations (for the calls from one GW to
another GW) are subject to  Admission Control over the DSTE tunnels (as
per the "RSVP Aggregation over TE Tunnels" procedures defined in this
document)=20
"

>>=20
>> Please excuse my ignorance if some of the answers/solutions to above=20
>> comments are obvious.
>>=20
>> Hope these comments/text help improve the quality of this draft.
>>

Yes, I think it will help in making this a more readable document.
Thanks.

Francois
=20
>> You can post these comments to the TSVWG list if that is the=20
>> correct procedure.
>>=20
>> Regards!
>> -- Kwok --
>>=20

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Sat Jan 28 11:07:54 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F2scE-0002hf-GD; Sat, 28 Jan 2006 11:07:54 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F2scA-0002gB-6g
	for tsvwg@megatron.ietf.org; Sat, 28 Jan 2006 11:07:53 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id LAA26519
	for <tsvwg@ietf.org>; Sat, 28 Jan 2006 11:06:04 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F2smJ-0006Oi-LE
	for tsvwg@ietf.org; Sat, 28 Jan 2006 11:18:22 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	GRJ79615; Sat, 28 Jan 2006 09:07:15 -0700
Message-ID: <43DB96BB.4090407@middle.net>
Date: Sat, 28 Jan 2006 09:07:23 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: "Coene, Lode" <Lode.Coene@siemens.com>
Subject: Re: [Tsvwg] SCTP association id return values
References: <67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net>
In-Reply-To: <67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net>
X-Spam-Score: 1.5 (+)
X-Scan-Signature: 501044f827b673024f6a4cb1d46e67d2
Cc: tsvwg@ietf.org
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0360604515=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============0360604515==
Content-Type: multipart/alternative;
	boundary="------------000400060500060709030402"

This is a multi-part message in MIME format.
--------------000400060500060709030402
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Coene, Lode wrote:

> Mark,
>  
> If I understand you correctly, you are talking about an identifier 
> that can be used for referals... And which can be send to a remote 
> peer, if I understand that correctly...
> Ahh That why you were talking about the recvmsg
> The association Id is purely local(and therefore has no use being send 
> to a remote peer for referrals)
>  
> Further comments inline...
>
>     ------------------------------------------------------------------------
>
>     The association id is available immediately - in fact there ought
>     to be a call to get association ids ahead of time, for
>     auto-initiating associations with sctp_sendmsg().  After all you
>     can get socket descriptors before connect() why not association
>     descriptors? 
>      
>     Well converting association ID into association descriptors and
>     then preallocating them ain't a great solution.. 
>     Most Operating systems folks would think as : yet another scheme
>     to eat up memory resources...
>     I am perfectly happy to wait for the association ID untill
>     the INIT_ACK or the COOKIE_ACK comes back...(be it via connectx or
>     COMUP)
>
I should say association ids, not association descriptors as the 
language in the latter is ambiguous between the identifier and the 
internal structure.  However, an association TCB is normally created on 
the first send, creating it a few microseconds earlier would not use any 
extra resources and would solve a lot of problems, making such an 
ability a good candidate for standardization.  I am told FreeBSD already 
has this ability...

>
>     By default associations never go away unless they are closed
>     remotely or there is an error. SCTP_AUTOCLOSE is there to make
>     them gracefully shutdown after a timeout.  So connectx() could
>     return an association id (and without breaking the ABI either). 
>     Speaking of association ids, they should be changed to be signed
>     values like socket and file descriptors, so that -1 can signal an
>     error.  int32_t instead of uint32_t inside structures. 
>      
>     actually you are asking to turn everything to a one-to-one
>     interface style and then you would only need a
>     filedescriptor(unfortunaly, I don't think a firedescriptor can be
>     refered to a remote peer, so that doesn't solve the referal
>     problem...)
>
I should say association id, not association descriptor.  Referral is 
not an issue here - for that you generally need real addresses.

>     I myself seems to be a one-to-many interface stylist. I was trully
>     suprised at finding out that TCP only does a one-to-one interface
>     style.. That means that servers receving lots of TCP
>     connections(or sending) have to look for lots and lots of
>     filedescriptors. It is a daunting and admirable possition to be in
>     for TCP folks...
>
Well other than inefficiencies involved with using select()/poll(), a 
separate socket descriptor / socket structure is usually a marginal 
amount of additional overhead above the connection / association TCB in 
the first place. Association ids just move the abstraction down a 
level.  One or both have to be translated from integers to internal 
pointers on every call. 

 - Mark



--------------000400060500060709030402
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Coene, Lode wrote:
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net"
 type="cite">
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta content="MSHTML 6.00.2900.2802" name="GENERATOR">
  <div><span class="622370516-26012006"></span><font face="Arial"><font
 color="#0000ff"><font size="2">Mark,</font></font></font></div>
  <div>&nbsp;</div>
  <div><font><font><font face="Arial"><font color="#0000ff"><font
 size="2">I<span class="622370516-26012006">f I understand you
correctly, you are talking about an identifier that can be used for
referals... And which can be send to&nbsp;a remote peer, if I understand
that correctly...</span></font></font></font></font></font></div>
  <div><font><font><font face="Arial"><font color="#0000ff"><font
 size="2"><span class="622370516-26012006">Ahh That why you were
talking about the recvmsg</span></font></font></font></font></font></div>
  <div><font><font><font face="Arial"><font color="#0000ff"><font
 size="2"><span class="622370516-26012006">The association Id is purely
local(and therefore has no use being send to&nbsp;a remote&nbsp;peer for
referrals)</span></font></font></font></font></font></div>
  <div><font><font><font face="Arial"><font color="#0000ff"><font
 size="2"><span class="622370516-26012006"></span></font></font></font></font></font>&nbsp;</div>
  <div><font><font><font face="Arial"><font color="#0000ff"><font
 size="2"><span class="622370516-26012006">Further comments inline...</span></font></font></font></font></font></div>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div class="OutlookMessageHeader" align="left" dir="ltr"
 lang="en-us">
    <hr tabindex="-1"> <font face="Tahoma" size="2"><b></b></font></div>
    <div><br>
The association id is available immediately - in fact there ought to be
a call to get association ids ahead of time, for auto-initiating
associations with sctp_sendmsg().&nbsp; After all you can get socket
descriptors before connect() why not association descriptors?<span
 class="622370516-26012006"><font color="#0000ff" face="Arial" size="2">&nbsp;</font></span></div>
    <div><span class="622370516-26012006"></span>&nbsp;</div>
    <div><span class="622370516-26012006"><font color="#0000ff"
 face="Arial" size="2">Well converting association ID into association
descriptors and then preallocating them ain't a great solution..&nbsp;</font></span></div>
    <div><span class="622370516-26012006"><font color="#0000ff"
 face="Arial" size="2">Most Operating systems folks would think as :
yet another scheme to eat up memory resources...</font></span></div>
    <div><span class="622370516-26012006"><font color="#0000ff"
 face="Arial" size="2">I am perfectly happy to wait for the association
ID untill the&nbsp;INIT_ACK or the COOKIE_ACK comes back...(be it via
connectx or COMUP)</font></span><br>
    </div>
  </blockquote>
</blockquote>
I should say association ids, not association descriptors as the
language in the latter is ambiguous between the identifier and the
internal structure.&nbsp; However, an association TCB is normally created on
the first send, creating it a few microseconds earlier would not use
any extra resources and would solve a lot of problems, making such an
ability a good candidate for standardization.&nbsp; I am told FreeBSD
already has this ability...<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net"
 type="cite">
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div><br>
    </div>
    <div>By default associations never go away unless they are closed
remotely or there is an error. SCTP_AUTOCLOSE is there to make them
gracefully shutdown after a timeout.&nbsp; So connectx() could return an
association id (and without breaking the ABI either).&nbsp; Speaking of
association ids, they should be changed to be signed values like socket
and file descriptors, so that -1 can signal an error.&nbsp; int32_t instead
of uint32_t inside structures.<span class="622370516-26012006"><font
 color="#0000ff" face="Arial" size="2">&nbsp;</font></span></div>
    <div><span class="622370516-26012006"></span>&nbsp;</div>
    <div><span class="622370516-26012006"><font color="#0000ff"
 face="Arial" size="2">actually you are asking to turn everything to a
one-to-one interface style and then you would only need a
filedescriptor(unfortunaly, I don't think a firedescriptor can be
refered to a remote peer, so that doesn't solve the referal problem...)</font></span></div>
  </blockquote>
</blockquote>
I should say association id, not association descriptor.&nbsp; Referral is
not an issue here - for that you generally need real addresses.<br>
<br>
<blockquote
 cite="mid67043E463DDBFD4A8087ED940BFF756B6B5E67@BRU0038A.ww018.siemens.net"
 type="cite">
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <div><span class="622370516-26012006"><font color="#0000ff"
 face="Arial" size="2">I myself seems to be a one-to-many interface
stylist. I was trully suprised at finding out that TCP only does a
one-to-one interface style.. That means that servers receving lots of
TCP connections(or sending) have to look for lots and lots of
filedescriptors. It is a daunting and admirable possition to be in for
TCP folks...</font></span><br>
    </div>
  </blockquote>
</blockquote>
Well other than inefficiencies involved with using select()/poll(), a
separate socket descriptor / socket structure is usually a marginal
amount of additional overhead above the connection / association TCB in
the first place. Association ids just move the abstraction down a
level.&nbsp; One or both have to be translated from integers to internal
pointers on every call.&nbsp; <br>
<br>
&nbsp;- Mark<br>
<br>
<br>
</body>
</html>

--------------000400060500060709030402--


--===============0360604515==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============0360604515==--




From tsvwg-bounces@ietf.org Mon Jan 30 08:04:09 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F3YhV-0003dd-RI; Mon, 30 Jan 2006 08:04:09 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F3YhU-0003d6-GC
	for tsvwg@megatron.ietf.org; Mon, 30 Jan 2006 08:04:08 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA20353
	for <tsvwg@ietf.org>; Mon, 30 Jan 2006 08:02:32 -0500 (EST)
Received: from ams-iport-1.cisco.com ([144.254.224.140])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F3YsE-0002oe-QS
	for tsvwg@ietf.org; Mon, 30 Jan 2006 08:15:15 -0500
Received: from ams-core-1.cisco.com ([144.254.224.150])
	by ams-iport-1.cisco.com with ESMTP; 30 Jan 2006 14:03:56 +0100
Received: from xbh-ams-332.emea.cisco.com (xbh-ams-332.cisco.com
	[144.254.231.87])
	by ams-core-1.cisco.com (8.12.10/8.12.6) with ESMTP id k0UD3q5k006811
	for <tsvwg@ietf.org>; Mon, 30 Jan 2006 14:03:54 +0100 (MET)
Received: from xmb-ams-333.cisco.com ([144.254.231.78]) by
	xbh-ams-332.emea.cisco.com with Microsoft SMTPSVC(6.0.3790.0); 
	Mon, 30 Jan 2006 14:03:36 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: [Tsvwg] FW: draft-ietf-tsvwg-rsvp-dste-00.txt notes - Resolution of
	Fred's comments
Date: Mon, 30 Jan 2006 14:03:32 +0100
Message-ID: <A05118C6DF9320488C77F3D5459B17B7024469AE@xmb-ams-333.emea.cisco.com>
Thread-Topic: [Tsvwg] FW: draft-ietf-tsvwg-rsvp-dste-00.txt notes - Resolution
	of Fred's comments
Thread-Index: AcYAlRhqNBrBUQGWRCCZuHzLon7WsgA/Lv9wCQK/7LA=
From: "Francois Le Faucheur \(flefauch\)" <flefauch@cisco.com>
To: "tsvwg" <tsvwg@ietf.org>
X-OriginalArrivalTime: 30 Jan 2006 13:03:36.0186 (UTC)
	FILETIME=[94B8A5A0:01C6259D]
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7aafa0432175920a4b3e118e16c5cb64
Content-Transfer-Encoding: quoted-printable
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

FYI

>>=20
>> >> >    This document provides specification for aggregation of=20
>> >> RSVP end-=20
>> >> > to-
>> >>=20
>> >> s/provides specification for/specifies/
>>=20
>> Done.
>>=20


>> >>=20
>> >> > 2.  Definitions
>> >> >
>> >> >    For readability, a number of definitions from=20
>> [RSVP-AGGR] as =20
>> >> > well as
>> >> >    definitions for commonly used MPLS TE terms are=20
>> provided here:
>> >> >
>> >> >    Aggregator   This is the router at the ingress edge of the
>> >> >                  aggregation region (with respect to=20
>> the end to end
>> >> >                  RSVP reservation) and behaving in=20
>> accordance with
>> >> >                  [RSVP-AGG]. In this document, it is=20
>> also the TE =20
>> >> > Tunnel
>> >> >                  Head-end.
>> >> >
>> >> >    Deaggregator This is the router at the egress edge of the
>> >> >                  aggregation region (with respect to=20
>> the end to end
>> >> >                  RSVP reservation) and behaving in=20
>> accordance with
>> >> >                  [RSVP-AGG]. In this document, it is=20
>> also the TE =20
>> >> > Tunnel
>> >> >                  Tail-end
>> >>=20
>> >> I think that I would argue that the aggregator and=20
>> deaggregator are =20
>> >> processes that run in the router or in a support system=20
>> related to =20
>> >> the router (the CDS) in question, as opposed to being the=20
>> >> router itself.
>>=20
>> Done. I updated definitions to:
>> 	" This is the process in (or associated with) the=20
>> router at the ingress edge of the aggregation region..."
>>=20


_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg



From tsvwg-bounces@ietf.org Mon Jan 30 20:28:41 2006
Received: from localhost.cnri.reston.va.us ([127.0.0.1] helo=megatron.ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1F3kK1-0006xQ-32; Mon, 30 Jan 2006 20:28:41 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1F3kJw-0006wI-VT
	for tsvwg@megatron.ietf.org; Mon, 30 Jan 2006 20:28:39 -0500
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1])
	by ietf.org (8.9.1a/8.9.1a) with ESMTP id UAA00172
	for <tsvwg@ietf.org>; Mon, 30 Jan 2006 20:26:46 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1F3kUW-00079u-4Z
	for tsvwg@ietf.org; Mon, 30 Jan 2006 20:39:37 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JCG79655; Mon, 30 Jan 2006 18:27:55 -0700
Message-ID: <43DEBD27.2090501@middle.net>
Date: Mon, 30 Jan 2006 18:28:07 -0700
From: Mark Butler <butlerm@middle.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US;
	rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 7aafa0432175920a4b3e118e16c5cb64
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP socket draft errata (MSG_EOF->SCTP_EOF substitution)
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tsvwg>,
	<mailto:tsvwg-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1697365322=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

This is a multi-part message in MIME format.
--===============1697365322==
Content-Type: multipart/alternative;
	boundary="------------060908030508030506030004"

This is a multi-part message in MIME format.
--------------060908030508030506030004
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

The current SCTP socket draft (draft-ietf-tsvwg-sctpsocket-11.txt) has a 
paragraph with a problem in section 4.1.5:

    SCTP does not support half close semantics. This means that unlike
    T/TCP, SCTP_EOF should not be set in the flags parameter when
    calling sendto() or sendmsg() when the call is used to initiate a
    connection. SCTP_EOF is not an acceptable flag with SCTP socket.

This paragraph no doubt originally referred to MSG_EOF instead of SCTP_EOF.

Also, SCTP_EOF is specified to be set only on messages that carry no 
data.  This seems an unnecessary restriction.  MSG_EOF has always been 
allowed to be set in the sendmsg flags for the last message to be sent.  
SCTP_EOF should behave similarly.

 - Mark

--------------060908030508030506030004
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
The current SCTP socket draft (draft-ietf-tsvwg-sctpsocket-11.txt) has
a paragraph with a problem in section 4.1.5:<br>
<br>
<blockquote>SCTP does not support half close semantics. This means that
unlike T/TCP, SCTP_EOF should not be set in the flags parameter when
calling sendto() or sendmsg() when the call is used to initiate a
connection. SCTP_EOF is not an acceptable flag with SCTP socket.<br>
</blockquote>
This paragraph no doubt originally referred to MSG_EOF instead of
SCTP_EOF.<br>
<br>
Also, SCTP_EOF is specified to be set only on messages that carry no
data.&nbsp; This seems an unnecessary restriction.&nbsp; MSG_EOF has always been
allowed to be set in the sendmsg flags for the last message to be
sent.&nbsp; SCTP_EOF should behave similarly.<br>
<br>
&nbsp;- Mark<br>
</body>
</html>

--------------060908030508030506030004--


--===============1697365322==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
tsvwg mailing list
tsvwg@ietf.org
https://www1.ietf.org/mailman/listinfo/tsvwg

--===============1697365322==--




