From tsvwg-bounces@ietf.org Thu Dec 01 01:37:16 2005
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 1Ehi4C-00032L-MZ; Thu, 01 Dec 2005 01:37:16 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ehi2r-0002XA-6y
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 01:37: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 BAA26616
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 01:35:06 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[aVqlH2ZtLcosfEZW9qum9TGZjFV/yXbL])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EhiNG-0000nR-PU
	for tsvwg@ietf.org; Thu, 01 Dec 2005 01:57:00 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:1tVLOshHw6aTvEYq5gPWqhhoJVxXqq1x@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB16YmA15483;
	Wed, 30 Nov 2005 23:34:48 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB16W0x14480;
	Wed, 30 Nov 2005 23:32:00 -0700
Date: Wed, 30 Nov 2005 23:31:59 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP partial delivery
Message-ID: <20051130233159.A13503@openss7.org>
References: <438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <438E4FBF.3050903@middle.net>;
	from butlerm@middle.net on Wed, Nov 30, 2005 at 06:19:59PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by gw.openss7.com id
	jB16YmA15483
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cf3becbbd6d1a45acbe2ffd4ab88bdc2
Content-Transfer-Encoding: quoted-printable
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,

On Wed, 30 Nov 2005, Mark Butler wrote:

>=20
>    Brian,
>=20
> SCTP_FRAGMENT_INTERLEAVE would enable interleaving fragments from=20
> different streams.
> It is an unexpected, non-Posix compliant behavior, and should be=20
> disabled by default.
>    =20
>=20
> POSIX does not say that fragments from different streams can't be
> interleaved.
>  =20
>=20
>    But  it does specify that records may not be interleaved, which is t=
he
>    same  thing.   Adding streams shouldn't be an excuse to break existi=
ng
>    semantics  - principle of least surprise, at a minimum. Streams shou=
ld
>    be transparent to readers.
>     - Mark
>    =20
>=20
> Not the same thing.  That is interleaving records from the SAME stream.
>  =20
>=20
>    We will have to disagree here.
>    - Mark

Apparently you disagree with POSIX here too.  While you seem to be
reading out loud, considere these two passages:

   The SOCK_SEQPACKET socket type is similar to the SOCK_STREAM type, and
   is  also  connection-oriented. The only difference between these types
   is  that  record  boundaries  are  maintained using the SOCK_SEQPACKET
   type.  A  record  can  be sent using one or more output operations and
   received  using  one  or more input operations, but a single operation
   never  transfers  parts of more than one record. Record boundaries are
   visible  to  the receiver via the MSG_EOR flag in the received message
   flags  returned by the [10]recvmsg() function. It is protocol-specific
   whether a maximum record size is imposed.

"a single operation never transfers parts of more than one record."

And here:

   The  contents of a receive buffer are logically structured as a series
   of data segments with associated ancillary data and other information.
   A  data segment may contain normal data or out-of-band data, but never
   both.  A  data  segment may complete a record if the protocol supports
   records  (always  true  for  types  SOCK_SEQPACKET  and SOCK_DGRAM). A
   record  may  be  stored  as more than one segment; the complete record
   might never be present in the receive buffer at one time, as a portion
   might  already  have  been  returned  to  the application, and another
   portion  might  not  yet  have  been  received from the communications
   provider. A data segment may contain ancillary protocol data, which is
   logically  associated  with the segment. Ancillary data is received as
   if  it  were  queued  along  with  the  first normal data octet in the
   segment  (if  any). A segment may contain ancillary data only, with no
   normal  or  out-of-band  data.  For  the  purposes  of this section, a
   datagram  is considered to be a data segment that terminates a record,
   and  that  includes  a  source  address as a special type of ancillary
   data.  Data segments are placed into the queue as data is delivered to
   the socket by the protocol. Normal data segments are placed at the end
   of the queue as they are delivered. If a new segment contains the same
   type  of data as the preceding segment and includes no ancillary data,
   and if the preceding segment does not terminate a record, the segments
   are logically merged into a single segment.

   The receive queue is logically terminated if an end-of-file indication
   has been received or a connection has been terminated. A segment shall
   be  considered  to  be terminated if another segment follows it in the
   queue,  if  the  segment  completes  a record, or if an end-of-file or
   other  connection  termination  has been reported. The last segment in
   the  receive queue shall also be considered to be terminated while the
   socket has a pending error to be reported.

   A  receive  operation  shall  never return data or ancillary data from
   more than one segment.

Now, I believe that I am doing this exactly correct, particularly
considering stream id is "ancillary data", and a fragment is a "segment".

What you propose deviates quite widely from these passages.

--brian


--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
bidulock@openss7.org    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6

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



From tsvwg-bounces@ietf.org Thu Dec 01 01:46:34 2005
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 1EhiDC-000781-3K; Thu, 01 Dec 2005 01:46:34 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EhiBr-0006XA-IE
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 01:46: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 BAA27446
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 01:44:24 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[2gMRhOa0fEfTTDmfatLdi3ceDir22+wZ])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EhiWI-00015F-72
	for tsvwg@ietf.org; Thu, 01 Dec 2005 02:06:18 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:u+tk3OhPoK3RTYAZP2bJzK48EzX3lM6W@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB16iJA15589;
	Wed, 30 Nov 2005 23:44:19 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB16fVi14549;
	Wed, 30 Nov 2005 23:41:31 -0700
Date: Wed, 30 Nov 2005 23:41:31 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SCTP Partial delivery / SOCK_SEQPACKET ambiguity
	(corrected)
Message-ID: <20051130234131.B13503@openss7.org>
References: <438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<1133379236.4725.55.camel@w-sridhar2.beaverton.ibm.com>
	<438E2E78.2060201@middle.net> <20051130160421.B28331@openss7.org>
	<438E5103.5030905@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <438E5103.5030905@middle.net>;
	from butlerm@middle.net on Wed, Nov 30, 2005 at 06:25:23PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by gw.openss7.com id
	jB16iJA15589
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a92270ba83d7ead10c5001bb42ec3221
Content-Transfer-Encoding: quoted-printable
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,

While your reading, read down in chapter 2 under Socket Receive Queue:

    Socket Receive Queue

   A  socket has a receive queue that buffers data when it is received by
   the  system  until  it  is removed by a receive call. Depending on the
   type  of  the socket and the communication provider, the receive queue
   may  also  contain  ancillary  data  such  as the addressing and other
   protocol  data  associated  with the normal data in the queue, and may
   contain  out-of-band  or  expedited  data. The limit on the queue size
   includes  any normal, out-of-band data, datagram source addresses, and
   ancillary  data  in the queue. The description in this section applies
   to  all  sockets,  even though some elements cannot be present in some
   instances.

   The  contents of a receive buffer are logically structured as a series
   of data segments with associated ancillary data and other information.
   A  data segment may contain normal data or out-of-band data, but never
   both.  A  data  segment may complete a record if the protocol supports
   records  (always  true  for  types  SOCK_SEQPACKET  and SOCK_DGRAM). A
   record  may  be  stored  as more than one segment; the complete record
   might never be present in the receive buffer at one time, as a portion
   might  already  have  been  returned  to  the application, and another
   portion  might  not  yet  have  been  received from the communications
   provider. A data segment may contain ancillary protocol data, which is
   logically  associated  with the segment. Ancillary data is received as
   if  it  were  queued  along  with  the  first normal data octet in the
   segment  (if  any). A segment may contain ancillary data only, with no
   normal  or  out-of-band  data.  For  the  purposes  of this section, a
   datagram  is considered to be a data segment that terminates a record,
   and  that  includes  a  source  address as a special type of ancillary
   data.  Data segments are placed into the queue as data is delivered to
   the socket by the protocol. Normal data segments are placed at the end
   of the queue as they are delivered. If a new segment contains the same
   type  of data as the preceding segment and includes no ancillary data,
   and if the preceding segment does not terminate a record, the segments
   are logically merged into a single segment.

   The receive queue is logically terminated if an end-of-file indication
   has been received or a connection has been terminated. A segment shall
   be  considered  to  be terminated if another segment follows it in the
   queue,  if  the  segment  completes  a record, or if an end-of-file or
   other  connection  termination  has been reported. The last segment in
   the  receive queue shall also be considered to be terminated while the
   socket has a pending error to be reported.

   A  receive  operation  shall  never return data or ancillary data from
   more than one segment.

If you realize that a message fragment is a "segment" and stream id is
"ancillary data", then this is precisely how I have implemented the
sockets interface: adjacent fragments are merged and delivered together,
fragments with different stream id are delivered separate, fragments
are delivered in order of arrival (at the buffer, after gap logic), all
fragments do not have to be received to deliver the first ones, MSG_EOR
is set on the last segment of a record.

I don't see why this could not apply to 1:many also, particularly if
you consider association id as "ancillary data".

--brian

On Wed, 30 Nov 2005, Mark Butler wrote:

>=20
>    (This  is  a  repeat  with extraneous whitespace from a defective ma=
il
>    client removed)
>    Brian F. G. Bidulock wrote:
>=20
> Yes, standard Posix SOCK_SEQPACKET semantics.  The serious problem, is=20
> with partial deliveries on a one-to-many socket, because they serialize=
=20
> communication from all other associations, potentially hanging the=20
> socket for a very long time.  Lksctp is currently vulnerable to this=20
> problem.=20
>    =20
>=20
> Well, no.  POSIX SOCK_SEQPACKET sets MSG_TRUNC if the message (not the
> record) is larger that the supplied buffer, just as does SOCK_DGRAM.
>  =20
>=20
>    LKSCTP   is   vulnerable  as   implemented.   Partial  delivery  loc=
ks
>    one-to-many sockets by association.
>    Regrettably,   the   Posix   documentation   for   SOCK_SEQPACKET   =
is
>    inconsistent. This is the description from section 2.10.6:
>=20
>      The  SOCK_SEQPACKET socket type is similar to the SOCK_STREAM type=
,
>      and  is also connection-oriented. The only difference between thes=
e
>      types   is   that   record  boundaries  are  maintained  using  th=
e
>      SOCK_SEQPACKET  type. A record can be sent using one or more outpu=
t
>      operations  and  received using one or more input operations, but =
a
>      single  operation  never  transfers  parts of more than one record.
>      Record  boundaries are visible to the receiver via the MSG_EOR fla=
g
>      in   the  received  message  flags  returned  by  the  [1]recvmsg(=
)
>      function.  It is protocol-specific whether a maximum record size i=
s
>      imposed.
>=20
>    No  difference  from  SOCK_STREAM except record boundaries, means th=
at
>    message  boundaries  are  either  invisible  or  identical with reco=
rd
>    boundaries.  Not two independent sets of boundaries.
>    However  the  documentation  for  recvmsg()  implies  that records a=
nd
>    messages are different:
>=20
>      The  recvmsg()  function  shall  return  the  total  length  of th=
e
>      message.   For   message-based  sockets,  such  as  SOCK_DGRAM  an=
d
>      SOCK_SEQPACKET,  the  entire  message  shall  be  read  in a singl=
e
>      operation. If a message is too long to fit in the supplied buffers=
,
>      and  MSG_PEEK  is  not  set in the flags argument, the excess byte=
s
>      shall  be  discarded,  and  MSG_TRUNC shall be set in the msg_flag=
s
>      member  of  the msghdr structure. For stream-based sockets, such a=
s
>      SOCK_STREAM,  message  boundaries  shall  be ignored. In this case=
,
>      data shall be returned to the user as soon as it becomes available=
,
>      and no data shall be discarded.
>      ...
>=20
>    MSG_EOR
>    This  is  a  complete  contradiction. It only makes sense if there a=
re
>    protocols  that  support  two  sets of boundaries, lower level messa=
ge
>    boundaries embedded in higher level record boundaries.  Are there an=
y?
>    More  likely  there  are  two  conceptions of SOCK_SEQPACKET that ma=
de
>    their  way  into  the  standard  - One is SOCK_DGRAM with ordering a=
nd
>    reliability  added.   The  other  is  a  byte  stream  with occasion=
al
>    boundary   markers.    The  draft  api  uses  the  latter  conceptio=
n,
>    consistent  with  Posix  XSH  2.10.6.   Which  conception  do existi=
ng
>    SOCK_SEQPACKET protocols use?
>    I guess I can't say standard SOCK_SEQPACKET semantics anymore. Sigh.
>    - Mark
>    POSIX references:
>     [2]http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap=
02
>    _10.html
>     [3]http://www.opengroup.org/onlinepubs/009695399/functions/recvmsg.=
ht
>    ml
>=20
> References
>=20
>    1. file://localhost/home/brian/functions/recvmsg.html
>    2. http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap0=
2_10.html
>    3. http://www.opengroup.org/onlinepubs/009695399/functions/recvmsg.h=
tml

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


--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
bidulock@openss7.org    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6

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



From tsvwg-bounces@ietf.org Thu Dec 01 19:13:16 2005
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 1EhyY8-0003cL-Of; Thu, 01 Dec 2005 19:13:16 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EhyY7-0003aq-MX
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 19:13: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 TAA09258
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 19:12:28 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ehyse-0005tz-G7
	for tsvwg@ietf.org; Thu, 01 Dec 2005 19:34:31 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	EYE73429; Thu, 1 Dec 2005 05:03:29 -0700
Message-ID: <438EE6D5.8080500@middle.net>
Date: Thu, 01 Dec 2005 05:04:37 -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] SOCK_SEQPACKET semantics
References: <4384E638.7080104@middle.net>
	<438B02A0.2040602@stewart.chicago.il.us>
	<438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<1133379236.4725.55.camel@w-sridhar2.beaverton.ibm.com>
	<438E2E78.2060201@middle.net> <20051130160421.B28331@openss7.org>
In-Reply-To: <20051130160421.B28331@openss7.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9182cfff02fae4f1b6e9349e01d62f32
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

Brian,

>Well, no.  POSIX SOCK_SEQPACKET sets MSG_TRUNC if the message (not the
>record) is larger that the supplied buffer, just as does SOCK_DGRAM.
>
>
>  
>
After further checking, it seems the SOCK_SEQPACKET world is split three 
ways:

Packet oriented protocols generally use packet level reads with 
truncation / discard semantics and no MSG_EOR.  X.25, Bluetooth, IRDA, 
and Unix domain sockets use SOCK_SEQPACKET this way.

Record oriented protocols generally use byte stream reads and MSG_EOR - 
no packet level visibility, no truncation / discard.  DECNet and ISO TP 
use SOCK_SEQPACKET that way.

Packet / record hybrids generally use SOCK_SEQPACKET with truncation / 
discard semantics on the packet level, and record terminating packets 
marked with MSG_EOR.  SPX and XNS SPP use SOCK_SEQPACKET this way.

- Mark


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



From tsvwg-bounces@ietf.org Thu Dec 01 19:33:15 2005
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 1EhyrT-0000oC-CB; Thu, 01 Dec 2005 19:33:15 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EhyrR-0000o6-8d
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 19:33: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 TAA10866
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 19:32:25 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EhzC0-0006Sf-KV
	for tsvwg@ietf.org; Thu, 01 Dec 2005 19:54:29 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	ESV20339; Wed, 30 Nov 2005 23:20:39 -0700
Message-ID: <438E9678.2010105@middle.net>
Date: Wed, 30 Nov 2005 23:21:44 -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: Liangping Ma <lma@mail.eecis.udel.edu>
Subject: [Tsvwg] Re: SCTP and Multicast
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 93e7fb8fef2e780414389440f367c879
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="===============1622830341=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

(Replying to a previous discussion)

Liangping,

SCTP could support reliable, sequenced multicast in one of two ways.  
The easier way is to leave the protocol alone, and add an interface that 
retransmits messages to a set of connected endpoints.  The draft SCTP 
socket api, as it stands, allows an application to keep track of who is 
currently attached to a one-to-many socket.  Then whenever you want to 
multicast a message, just scan the list and use sctp_sendmsg() or 
sendto() to send a message to each  connected endpoint. 

If bandwidth efficiency is the primary concern, then the SCTP protocol 
could be extended to support IP multicast  as follows:

    <>Clients establish associations with multicast server endpoints,
    with an INIT parameter indicating multicast capability. The server
    endpoint confirms multicast capability with an INIT ACK that
    contains a parameter indicating the multicast address it uses, and
    an initial multicast TSN. 

    The client would then attempt a layer 3 multicast join, using IGMP
    as necessary, and report presumptive reachability in the COOKIE_ACK
    response.
    <>
    <>The server would use different stream numbers for unicast and
    multicast streams. A message on a multicast stream would be sent
    over IP multicast to all IP multicast reachable clients, and over IP
    unicast to all the others.  Multicast data would be delivered in
    MDATA chunks that contain the sender's current multicast TSN.  MDATA
    chunks would otherwise behave like regular DATA chunks.
    <>

    If multicast data chunks are missed, each receiver would
    individually request retransmission.  From time to time, each
    receiver would MSACK what it has received, and the sender would
    update the multicast cumulative TSN.    If a presumptively multicast
    capable client MSACKs a considerable series of multicast messages,
    the server would change its layer 3 multicast status to disabled,
    and transmit multicast messages to that client using unicast instead.

    Interoperability with clients with existing SCTP stacks could be
    achieved using by using regular DATA chunks on those clients.

    Ordering between multicast streams and unicast streams would not be
    guaranteed. This could be fixed by adding a TSN and stream sequence
    number bearing BARRIER chunk that would specify an inter-stream
    ordering dependency.  This would be necessary for use of multicast
    in some applications, notably database clusters, filesystems, and
    cache coherency protocols. 

    Peer-to-peer multicast is a straightforward refinement.

Multicast SCTP would be an interesting project. I imagine that a 
reliable multicast layer on top of hardware RDMA would be more efficient 
for HPC applications, however, given adequate bandwidth.  Out of 
curiosity, what did you have in mind?

 - Mark

--------------070500030606010605030203
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">
(Replying to a previous discussion)<br>
<br>
Liangping,<br>
<br>
SCTP could support reliable, sequenced multicast in one of two ways.&nbsp;
The easier way is to leave the protocol alone, and add an interface
that retransmits messages to a set of connected endpoints.&nbsp; The draft
SCTP socket api, as it stands, allows an application to keep track of
who is currently attached to a one-to-many socket.&nbsp; Then whenever you
want to multicast a message, just scan the list and use sctp_sendmsg()
or sendto() to send a message to each&nbsp; connected endpoint.&nbsp; <br>
<br>
If bandwidth efficiency is the primary concern, then the SCTP protocol
could be extended to support IP multicast&nbsp; as follows:<br>
<blockquote><>Clients establish associations with multicast server
endpoints, with an INIT parameter indicating multicast capability. The
server endpoint confirms multicast capability with an INIT ACK that
contains a parameter indicating the multicast address it uses, and an
initial multicast TSN.&nbsp; <br>
  <br>
The client would then attempt a layer 3 multicast join, using IGMP as
necessary, and report presumptive reachability in the COOKIE_ACK
response.</><br>
  <></><br>
  <>The server would use different stream numbers for unicast and
multicast streams. A message on a multicast stream would be sent over
IP multicast to all IP multicast reachable clients, and over IP unicast
to all the others.&nbsp; Multicast data would be delivered in MDATA chunks
that contain the sender's current multicast TSN.&nbsp; MDATA chunks would
otherwise behave like regular DATA chunks.<br>
  </><></></blockquote>
<blockquote>If multicast data chunks are missed, each receiver would
individually request retransmission.&nbsp; From time to time, each receiver
would MSACK what it has received, and the sender would update the
multicast cumulative TSN.&nbsp;&nbsp;&nbsp; If a presumptively multicast capable
client MSACKs a considerable series of multicast messages, the server
would change its layer 3 multicast status to disabled, and transmit
multicast messages to that client using unicast instead.<br>
  <br>
Interoperability with clients with existing SCTP stacks could be
achieved using by using regular DATA chunks on those clients.<br>
</blockquote>
<blockquote>Ordering between multicast streams and unicast streams
would not be guaranteed. This could be fixed by adding a TSN and stream
sequence number bearing BARRIER chunk that would specify an
inter-stream ordering dependency.&nbsp; This would be necessary for use of
multicast in some applications, notably database clusters, filesystems,
and cache coherency protocols.&nbsp; <br>
  <br>
Peer-to-peer multicast is a straightforward refinement.<br>
  <br>
</blockquote>
Multicast SCTP would be an interesting project. I imagine that a
reliable multicast layer on top of hardware RDMA would be more
efficient for HPC applications, however, given adequate bandwidth.&nbsp; Out
of curiosity, what did you have in mind?<br>
<br>
&nbsp;- Mark<br>
</body>
</html>

--------------070500030606010605030203--


--===============1622830341==
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

--===============1622830341==--




From tsvwg-bounces@ietf.org Thu Dec 01 21:26:37 2005
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 1Ei0dB-00080O-Mt; Thu, 01 Dec 2005 21:26:37 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei0d9-0007zM-PT
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 21:26: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 VAA22450
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 21:25:47 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei0xj-0002Dg-9e
	for tsvwg@ietf.org; Thu, 01 Dec 2005 21:47:52 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	FOC85920; Thu, 1 Dec 2005 19:26:20 -0700
Message-ID: <438FB0F3.20901@middle.net>
Date: Thu, 01 Dec 2005 19:26:59 -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] POSIX "segments" and "records"
References: <438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
	<20051130233159.A13503@openss7.org>
In-Reply-To: <20051130233159.A13503@openss7.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 39bd8f8cbb76cae18b7e23f7cf6b2b9f
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

Brian,

><POSIX section 2.10.11 omitted>
>  
>
 >  Now, I believe that I am doing this exactly correct, particularly

>considering stream id is "ancillary data", and a fragment is a "segment".
>  
>

I agree that what you are doing is in full compliance with the letter of 
POSIX  XSH sections 2.10.6 and 2.10.11 as currently specified.  However, 
whether some fragment is a "segment", a portion of a "segment", or a 
even a series of "segments" is arbitrary as far as POSIX is concerned.   
The mapping of lower level entities to POSIX "segments" varies by both 
protocol and socket type.  Anything can be presented to the socket layer 
as a "segment" as long as the relevant rules are followed. Whether such 
a presentation is useful is a different issue.

A POSIX "segment" on a SOCK_STREAM socket normally extends the length of 
the whole connection.  A SOCK_SEQPACKET "segment" typically extends for 
either one packet (SPX, Unix domain, X.25, etc.) or one arbitrary length 
"record" (DECnet, ISO TP).  Many of these protocols support both 
SOCK_STREAM and SOCK_SEQPACKET semantics over identical wire protocols.

> What you propose deviates quite widely from these passages.


All I am proposing is a SOCK_DGRAM socket type (or equivalent mode) for 
SCTP.  There is absolutely nothing  in POSIX that prevents an SCTP 
message from being mapped to a SOCK_DGRAM "segment".  Nothing in POSIX 
prohibits interleaved SAR below the socket layer.  Otherwise the socket 
interfaces for IP, ATM AAL5, and TCP would all be in violation.

- Mark


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



From tsvwg-bounces@ietf.org Thu Dec 01 22:50:34 2005
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 1Ei1wQ-0000mm-2i; Thu, 01 Dec 2005 22:50:34 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei1wN-0000mh-IA
	for tsvwg@megatron.ietf.org; Thu, 01 Dec 2005 22:50:31 -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 WAA02557
	for <tsvwg@ietf.org>; Thu, 1 Dec 2005 22:49:43 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[H3vCsFCV5oe2IK5nqUfWniWQ1707nbQS])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei2Gy-0005rc-2t
	for tsvwg@ietf.org; Thu, 01 Dec 2005 23:11:49 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:JOhmQNO9jvh8WCNn5Xqmh+zeoEIzMi0F@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB23oSA10392;
	Thu, 1 Dec 2005 20:50:28 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB23oRO09543;
	Thu, 1 Dec 2005 20:50:27 -0700
Date: Thu, 1 Dec 2005 20:50:27 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] POSIX "segments" and "records"
Message-ID: <20051201205027.A9497@openss7.org>
References: <438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
	<20051130233159.A13503@openss7.org> <438FB0F3.20901@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <438FB0F3.20901@middle.net>;
	from butlerm@middle.net on Thu, Dec 01, 2005 at 07:26:59PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by gw.openss7.com id
	jB23oSA10392
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ffa9dfbbe7cc58b3fa6b8ae3e57b0aa3
Content-Transfer-Encoding: quoted-printable
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,

On Thu, 01 Dec 2005, Mark Butler wrote:

>=20
> All I am proposing is a SOCK_DGRAM socket type (or equivalent mode) for=
=20
> SCTP.  There is absolutely nothing  in POSIX that prevents an SCTP=20
> message from being mapped to a SOCK_DGRAM "segment".  Nothing in POSIX=20
> prohibits interleaved SAR below the socket layer.  Otherwise the socket=
=20
> interfaces for IP, ATM AAL5, and TCP would all be in violation.
>=20
> - Mark

Yet, it is that very approach that causes the blocking problems that
you wish to avoid.

--brian

--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
bidulock@openss7.org    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6

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



From tsvwg-bounces@ietf.org Fri Dec 02 00:25:02 2005
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 1Ei3Pq-0003tF-8z; Fri, 02 Dec 2005 00:25:02 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei3Po-0003rE-Hm
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 00:25: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 AAA08446
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 00:24:13 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei3kP-0008Hm-OZ
	for tsvwg@ietf.org; Fri, 02 Dec 2005 00:46:19 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	FRA39046; Thu, 1 Dec 2005 22:24:46 -0700
Message-ID: <438FDAC6.3080505@middle.net>
Date: Thu, 01 Dec 2005 22:25:26 -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: b7b9551d71acde901886cc48bfc088a6
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP Partial delivery vulnerability example / solutions
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


  Here is an example that demonstrates the vulnerability of SCTP partial 
delivery on a one-to-many socket (as in LKSCTP, no stream 
interleaving).  Suppose you decided to adapt SMTP to SCTP.  SMTP is a 
message oriented protocol where reasonably sized messages predominate, 
so you decide to do a one-to-one SMTP messages to SCTP message mapping 
with a few other control messages.

Then you have an implementation choice - you can either do  a 
connect/accept/fork style server using one-to-one sockets or a simpler 
design that uses one or more worker threads to read messages from a 
shared one-to-many socket.  You choose the latter, set a large socket 
buffer size, and start processing messages.

Occasionally, a much longer than usual message overflows the buffer, 
causing a partial delivery of the first portion of the message. This 
causes the stack to lock the socket against further reads from any other 
association (pd_mode = 1 in lksctp).  Normally the rest of the message 
arrives in a fraction of a second, and no one notices.  However, on 
occasion the SMTP sender crashes or has its network connection fail 
while a partial delivery is pending.  In that situation, other clients 
can establish new associations with the server, but no messages can be 
delivered until the stack times out the failed association, and aborts 
the partial delivery, a process that probably takes about thirty 
seconds.   Thirty second delays may be fine for MTA - MTA transfers, but 
are not acceptable for MUA - MTA transfers.  Most mail user agents time 
out after about five seconds.

One solution might be to use smaller abort timeouts.  However, anything 
reasonable will either abort slow clients unnecessarily (wasting 
resources and multiplying the number of in-doubt message transactions) 
or greatly increase delivery latency and multiply buffer space 
requirements on a busy MTA.    And creating a number of associations 
that stall mid message on purpose would make for a very effective denial 
of service attack on a public MTA with a shared socket.

Of course SMTP is an extraordinarily relaxed environment compared to 
something like an LDAP server.  A typical LDAP server might have 
thousands of clients and low millisecond reponse time requirements.  
With a single one-to-many server socket the stalling problem becomes 
much more serious.

LDAP has relatively low request lengths, and so SOCK_DGRAM code over a 
reliable transport like SCTP would be trivial.  Even UDP with client 
retransmission timers (e.g. DNS) is easier to support than the 
extraneous code required to operate a one-to-many socket server reliably 
with the api as it stands.

Granted, the SOCK_DGRAM style only works with ULPs that allow restricted 
message lengths, an in addition the stack has to truncate or discard 
messages beyond some specified threshold, but the atomic message 
operations make things much easier where those requirements are 
acceptable, a domain that covers a very broad span of upper layer protocols.

Latency sensitive applications that need to support very large messages 
from multiple clients must use listen()/accept() and some form of thread 
dispatch.  sctp_peeloff() almost works, but would do nothing to prevent 
DoS attacks without message length limitations on the primary socket. 

Here are four ways to avoid the problem with one-to-many sockets:

 1) An option (or socket type) to allow applications to get SOCK_DGRAM 
semantics where restricted message lengths are acceptable. (A new socket 
type might be required to get different semantics on BSD kernels.)

 2) An option to allow applications to reassemble stream fragments 
(where necessary) at the application layer, instead of blocking across 
associations. (SCTP_STREAM_FRAGMENT).

 3) Write server code to use one-to-one sockets instead.

 4)  Set the association abort timeouts low enough to mitigate the 
stalling problem, and doing the necessary event handling in the 
application to avoid silently gluing unrelated messages together. 
(Perhaps a final zero length fragment tagged with MSG_TRUNC and MSG_EOR 
would solve the latter problem).

I believe SCTP has greater potential as a next generation UDP than a 
next generation TCP, and supporting the SOCK_DGRAM programming model 
would go a great distance toward achieving that goal.

 - Mark



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



From tsvwg-bounces@ietf.org Fri Dec 02 01:20:05 2005
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 1Ei4H7-0007XT-Df; Fri, 02 Dec 2005 01:20:05 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei4H6-0007XF-1S
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 01:20: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 BAA12063
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 01:19:16 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei4bj-0001Gn-2m
	for tsvwg@ietf.org; Fri, 02 Dec 2005 01:41:23 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	FSV59355; Thu, 1 Dec 2005 23:19:55 -0700
Message-ID: <438FE7B3.2050504@middle.net>
Date: Thu, 01 Dec 2005 23:20: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: bidulock@openss7.org
Subject: Re: [Tsvwg] POSIX "segments" and "records" - blocking effects
References: <438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
	<20051130233159.A13503@openss7.org> <438FB0F3.20901@middle.net>
	<20051201205027.A9497@openss7.org>
In-Reply-To: <20051201205027.A9497@openss7.org>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 6d95a152022472c7d6cdf886a0424dc6
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="===============1033548388=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

Brian,

>  
>
>>All I am proposing is a SOCK_DGRAM socket type (or equivalent mode) for 
>>SCTP.  There is absolutely nothing  in POSIX that prevents an SCTP 
>>message from being mapped to a SOCK_DGRAM "segment".  Nothing in POSIX 
>>prohibits interleaved SAR below the socket layer.  Otherwise the socket 
>>interfaces for IP, ATM AAL5, and TCP would all be in violation.
>>
>>- Mark
>>    
>>
>
>Yet, it is that very approach that causes the blocking problems that
>you wish to avoid.
>  
>
Inter-association blocking is radically more serious than 
intra-association blocking.  No implementations I am aware of introduce 
any unnecessary intra-association blocking, save perhaps for 
applications that can benefit from fractional messages, which are rare.

How often does anyone have a need to inspect fragments of UDP 
datagrams?  There is nothing stopping someone from writing an 
application interface to UDP datagram fragments.  Or what about a 
partial delivery interface to AAL5?

Partial message delivery, as an actual application requirement (instead 
of an occasional implementation side effect) has a considerable 
throughput cost in terms of context switches up and down the stack. 
Practically every modern networking technology is designed to avoid 
fractional delivery semantics for efficiency reasons.  It is the whole 
reason for RDMA to exist.  RDMA is both efficient and useful for large 
read and write operations because the utility of a partially completed 
operation is usually nil.  It is likely that in a few years RDMA 
adaptations will dominate network file systems, network file transfer, 
electronic mail, electronic commerce, cluster communications, cache 
coherency protocols, and web browsing.  I don't think anyone is going to 
complain.  SCTP over RDMA may very well come to dominate RDMA over SCTP.

 - Mark


--------------010504050602030400070507
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,<br>
<blockquote cite="mid20051201205027.A9497@openss7.org" type="cite">
  <pre wrap="">
  </pre>
  <blockquote type="cite">
    <pre wrap="">All I am proposing is a SOCK_DGRAM socket type (or equivalent mode) for 
SCTP.  There is absolutely nothing  in POSIX that prevents an SCTP 
message from being mapped to a SOCK_DGRAM "segment".  Nothing in POSIX 
prohibits interleaved SAR below the socket layer.  Otherwise the socket 
interfaces for IP, ATM AAL5, and TCP would all be in violation.

- Mark
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Yet, it is that very approach that causes the blocking problems that
you wish to avoid.
  </pre>
</blockquote>
Inter-association blocking is radically more serious than
intra-association blocking.&nbsp; No implementations I am aware of introduce
any unnecessary intra-association blocking, save perhaps for
applications that can benefit from fractional messages, which are rare.<br>
<br>
How often does anyone have a need to inspect fragments of UDP
datagrams?&nbsp; There is nothing stopping someone from writing an
application interface to UDP datagram fragments.&nbsp; Or what about a
partial delivery interface to AAL5?<br>
<br>
Partial message delivery, as an actual application requirement (instead
of an occasional implementation side effect) has a considerable
throughput cost in terms of context switches up and down the stack.
Practically every modern networking technology is designed to avoid
fractional delivery semantics for efficiency reasons.&nbsp; It is the whole
reason for RDMA to exist.&nbsp; RDMA is both efficient and useful for large
read and write operations because the utility of a partially completed
operation is usually nil.&nbsp; It is likely that in a few years RDMA
adaptations will dominate network file systems, network file transfer,
electronic mail, electronic commerce, cluster communications, cache
coherency protocols, and web browsing.&nbsp; I don't think anyone is going
to complain.&nbsp; SCTP over RDMA may very well come to dominate RDMA over
SCTP.<br>
<br>
&nbsp;- Mark<br>
<br>
</body>
</html>

--------------010504050602030400070507--


--===============1033548388==
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

--===============1033548388==--




From tsvwg-bounces@ietf.org Fri Dec 02 03:40:03 2005
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 1Ei6SZ-0005EQ-9U; Fri, 02 Dec 2005 03:40:03 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei6SX-0005Cu-Mr
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 03:40: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 DAA23598
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 03:39:13 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[WTxtcYY3RRSMNH29G3R+OmagmeSZHzcr])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei6nB-0005fZ-W2
	for tsvwg@ietf.org; Fri, 02 Dec 2005 04:01:22 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:tDRIpfwLt+KK3CeGZSdc6TWI7NqstkyX@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB28d6A14501;
	Fri, 2 Dec 2005 01:39:06 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB28d4g12577;
	Fri, 2 Dec 2005 01:39:04 -0700
Date: Fri, 2 Dec 2005 01:39:04 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] POSIX "segments" and "records" - blocking effects
Message-ID: <20051202013904.A12245@openss7.org>
References: <438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
	<20051130233159.A13503@openss7.org> <438FB0F3.20901@middle.net>
	<20051201205027.A9497@openss7.org> <438FE7B3.2050504@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <438FE7B3.2050504@middle.net>;
	from butlerm@middle.net on Thu, Dec 01, 2005 at 11:20:35PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by gw.openss7.com id
	jB28d6A14501
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 225414c974e0d6437992164e91287a51
Content-Transfer-Encoding: quoted-printable
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,

Read the socket buffer passage in Chapter 2 again.

If you are doing SAR beneath the socket buffer, there is no partial
delivery at the socket.  Existing things like IP fragmentation that do
SAR beneath the socket buffer, are not bound by the size of the socket
buffer.   (One of the reasons why IP fragmentation is a bad thing.)
SCTP, on the other hand, uses the receive socket buffer (or some weird
kind of instance of a receive socket buffer for 1:many) as the advertise
receive window to the peer in SCTP.  The protocol is not designed to do
SAR beneath the socket buffer.

So, for example, IP waits for all fragments of an IP message to arrive
before resassembling them and delivering them to the transport protocol.
If there is not enough available resource to reassemble all of the
fragements, the obvious and simple choice is to discard the packet.  The
same is true for AAL5 (particularly with IP running over it).

SCTP, by contrast, acknowledges the delivery of each TSN for each
fragment.  If there is not enough receive buffer to reassemble the
message, it does not have the choice of discarding it: it is, after all,
a reliable transport.  Therefore, your choice become: overflow the
receive buffer allocation (bad idea), or attempt to free up enough
receive buffer to reassemble the remainder of the message (only other
choice).

There are two ways within the protocol to free up receive buffer (both
are necessary):

1. Renegging.  Renegging is discarding TSNs that follow a gap and not gap
   acking them in the next gap report.  This frees up buffer and informs
   the peer that it must now retransmit that data.  If a receiver does no=
t
   support renegging, it can stall in any number of situations of TSN los=
s.

2. Partial delivery.  I don't know whay your definition is, but partial
   delivery here consists of releasing the intial or intermediate
   (continguous) fragments of a message that, if left in the receive buff=
er,
   would ultimately make it impossible to reassemble the message.  Case i=
n
   point is where the message itself is larger than the receive buffer.
   You see, it does not take a missing TSN or an aborted connection to
   force an SCTP receiver to invoke partial delivery.

I'm sorry, but SCTP is a reliable transport protocol with built in ULP
flow control, not the unreliable datagram service to which you compare
it.  If you want to avoid partial delivery: send smaller messages.
Otherwise, it is a necessary part of the protocol:

  RFC 2960 Section 6.9 Fragmentation and Reassembly:

  "Note: If the data receiver runs out of buffer space while still
   waiting for more fragments to complete the re-assembly of the
   message, it should dispatch part of its inbound message through a
   partial delivery API (see Section 10), freeing some of its receive
   buffer space so that the rest of the message may be received."

 and Section 10:

   G) Receive

   Format: RECEIVE(association id, buffer address, buffer size
           [,stream id])
   -> byte count [,transport address] [,stream id] [,stream sequence
      number] [,partial flag] [,delivery number] [,payload protocol-id]

   ...

   o  partial flag - if this returned flag is set to 1, then this
      Receive contains  a partial delivery of the whole message.  When
      this flag is set, the stream id and stream sequence number MUST
      accompany this receive.  When this flag is set to 0, it indicates
      that no more deliveries will be received for this stream sequence
      number.

Partial delivery is not an implementation side-effect.  Nor is it an
optional function of the API.  It is a requirement of the protocol.

Read POSIX Chapter 2 socket receive buffer again.  This time think
reliable transport protocol with variable record sizes.  Think
SOCK_SEQPACKET.  SOCK_STREAM is acheivable: just don't set MSG_EOR and
allow one record to blend into another.  SOCK_DGRAM is not.  All
SOCK_DGRAM applications are inherently unreliable, and all impose a
maximum message size.  SCTP is (and does) neither.

--brian

On Thu, 01 Dec 2005, Mark Butler wrote:

>=20
>    Brian,
>=20
>  =20
>=20
> All I am proposing is a SOCK_DGRAM socket type (or equivalent mode) for=
=20
> SCTP.  There is absolutely nothing  in POSIX that prevents an SCTP=20
> message from being mapped to a SOCK_DGRAM "segment".  Nothing in POSIX=20
> prohibits interleaved SAR below the socket layer.  Otherwise the socket=
=20
> interfaces for IP, ATM AAL5, and TCP would all be in violation.
>=20
> - Mark
>    =20
>=20
> Yet, it is that very approach that causes the blocking problems that
> you wish to avoid.
>  =20
>=20
>    Inter-association    blocking   is   radically   more   serious   th=
an
>    intra-association   blocking.    No  implementations  I  am  aware  =
of
>    introduce any unnecessary intra-association blocking, save perhaps f=
or
>    applications  that  can  benefit  from  fractional messages, which a=
re
>    rare.
>    How  often  does  anyone  have  a  need  to  inspect  fragments of U=
DP
>    datagrams?    There  is  nothing  stopping  someone  from  writing  =
an
>    application  interface  to  UDP  datagram  fragments.  Or what about=
 a
>    partial delivery interface to AAL5?
>    Partial   message  delivery,  as  an  actual  application  requireme=
nt
>    (instead   of   an   occasional  implementation  side  effect)  has =
 a
>    considerable  throughput cost in terms of context switches up and do=
wn
>    the  stack. Practically every modern networking technology is design=
ed
>    to  avoid fractional delivery semantics for efficiency reasons.  It =
is
>    the whole reason for RDMA to exist.  RDMA is both efficient and usef=
ul
>    for large read and write operations because the utility of a partial=
ly
>    completed  operation is usually nil.  It is likely that in a few yea=
rs
>    RDMA  adaptations  will  dominate  network  file systems, network fi=
le
>    transfer,    electronic    mail,    electronic    commerce,    clust=
er
>    communications,  cache coherency protocols, and web browsing.  I don=
't
>    think  anyone is going to complain.  SCTP over RDMA may very well co=
me
>    to dominate RDMA over SCTP.
>     - Mark

--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
bidulock@openss7.org    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6

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



From tsvwg-bounces@ietf.org Fri Dec 02 03:55:23 2005
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 1Ei6hP-0000HG-9o; Fri, 02 Dec 2005 03:55:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ei6hN-0000GB-P8
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 03:55:21 -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 DAA25003
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 03:54:33 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[W4GwuWmZHp2KAfmrzplPax+G8BuZ9kEv])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Ei722-0006Mp-DL
	for tsvwg@ietf.org; Fri, 02 Dec 2005 04:16:42 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:6YLZDOb4tO0DVTgEa3LpmE75YLfu4Lbt@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB28tJA14882;
	Fri, 2 Dec 2005 01:55:19 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB28tJl14219;
	Fri, 2 Dec 2005 01:55:19 -0700
Date: Fri, 2 Dec 2005 01:55:18 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] SOCK_SEQPACKET semantics
Message-ID: <20051202015518.B12245@openss7.org>
References: <438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<1133379236.4725.55.camel@w-sridhar2.beaverton.ibm.com>
	<438E2E78.2060201@middle.net> <20051130160421.B28331@openss7.org>
	<438EE6D5.8080500@middle.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <438EE6D5.8080500@middle.net>;
	from butlerm@middle.net on Thu, Dec 01, 2005 at 05:04:37AM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by gw.openss7.com id
	jB28tJA14882
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 082a9cbf4d599f360ac7f815372a6a15
Content-Transfer-Encoding: quoted-printable
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,

Checking?  What are your souces?  I wouldn't base POSIX
compliance on Linux code...  (Particularly the hacked packet
layer X.25 implementations, which in fact do set MSG_EOR).
MSG_TRUNC on SOCK_SEQPACKET is rather protocol and
implementation dependent.  MSG_EOR is not so.

(I never set MSG_TRUNC, but setting it would help clear the
receive buffer faster.  I think MSG_TRUNC has more to do with
not interleaving receives that were transmitted as a unit (or
beneath a given size like POSIX pipes).  The SCTP transmitter
make no assurances to the sender that sends beneath a given size
will arrive in a single packet.  SCTP is allowed to fragment
transmission into data chunks in whatever way it thinks it can
most efficiently send them.  This makes it possible to use
Nagle's algortihm for SCTP.)

--brian

On Thu, 01 Dec 2005, Mark Butler wrote:

> Brian,
>=20
> >Well, no.  POSIX SOCK_SEQPACKET sets MSG_TRUNC if the message (not the
> >record) is larger that the supplied buffer, just as does SOCK_DGRAM.
> >
> >
> > =20
> >
> After further checking, it seems the SOCK_SEQPACKET world is split thre=
e=20
> ways:
>=20
> Packet oriented protocols generally use packet level reads with=20
> truncation / discard semantics and no MSG_EOR.  X.25, Bluetooth, IRDA,=20
> and Unix domain sockets use SOCK_SEQPACKET this way.
>=20
> Record oriented protocols generally use byte stream reads and MSG_EOR -=
=20
> no packet level visibility, no truncation / discard.  DECNet and ISO TP=
=20
> use SOCK_SEQPACKET that way.
>=20
> Packet / record hybrids generally use SOCK_SEQPACKET with truncation /=20
> discard semantics on the packet level, and record terminating packets=20
> marked with MSG_EOR.  SPX and XNS SPP use SOCK_SEQPACKET this way.
>=20
> - Mark
>=20
>=20
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg

--=20
Brian F. G. Bidulock    =A6 The reasonable man adapts himself to the =A6
bidulock@openss7.org    =A6 world; the unreasonable one persists in  =A6
http://www.openss7.org/ =A6 trying  to adapt the  world  to himself. =A6
                        =A6 Therefore  all  progress  depends on the =A6
                        =A6 unreasonable man. -- George Bernard Shaw =A6

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



From tsvwg-bounces@ietf.org Fri Dec 02 17:58:46 2005
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 1EiJra-0000dj-KD; Fri, 02 Dec 2005 17:58:46 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EiJrZ-0000de-N7
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 17:58:45 -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 RAA10395
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 17:57:56 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EiKCK-0007Jk-E3
	for tsvwg@ietf.org; Fri, 02 Dec 2005 18:20:13 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	FII42125; Fri, 2 Dec 2005 15:58:25 -0700
Message-ID: <4390D1B5.6050106@middle.net>
Date: Fri, 02 Dec 2005 15:59:01 -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] SOCK_SEQPACKET semantics
References: <438B9864.4020801@middle.net>
	<438C4A85.7050303@stewart.chicago.il.us>
	<438C5B03.9020709@middle.net>
	<438C8562.50506@stewart.chicago.il.us>
	<438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<1133379236.4725.55.camel@w-sridhar2.beaverton.ibm.com>
	<438E2E78.2060201@middle.net> <20051130160421.B28331@openss7.org>
	<438EE6D5.8080500@middle.net> <20051202015518.B12245@openss7.org>
In-Reply-To: <20051202015518.B12245@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: 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

Brian F. G. Bidulock wrote:

>Mark,
>
>Checking?  What are your souces?  I wouldn't base POSIX
>compliance on Linux code...  (Particularly the hacked packet
>layer X.25 implementations, which in fact do set MSG_EOR).
>MSG_TRUNC on SOCK_SEQPACKET is rather protocol and
>implementation dependent.  MSG_EOR is not so.
>  
>
I am admittedly describing existing implementations, not POSIX 
compliance, per se.  I think the POSIX specification is ambiguous with 
regard to SOCK_SEQPACKET.   I checked mainline SOCK_SEQPACKET protocol 
interfaces on Linux, xBSD, Solaris, and AIX. 

 - Mark



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



From tsvwg-bounces@ietf.org Fri Dec 02 19:49:21 2005
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 1EiLab-0005Gs-28; Fri, 02 Dec 2005 19:49:21 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EiLaX-0005Gb-UM
	for tsvwg@megatron.ietf.org; Fri, 02 Dec 2005 19:49:19 -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 TAA23525
	for <tsvwg@ietf.org>; Fri, 2 Dec 2005 19:48:30 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EiLvI-00036N-8j
	for tsvwg@ietf.org; Fri, 02 Dec 2005 20:10:47 -0500
Received: from [192.168.0.3] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	GMA21803; Fri, 2 Dec 2005 17:49:03 -0700
Message-ID: <4390EBA4.9020306@middle.net>
Date: Fri, 02 Dec 2005 17:49:40 -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] Partial delivery blocking - SOCK_DGRAM capability
References: <438D53ED.1090908@middle.net> <438D814B.30704@middle.net>
	<20051130042610.A20690@openss7.org> <438E0874.2060201@middle.net>
	<20051130160141.A28331@openss7.org> <438E4FBF.3050903@middle.net>
	<20051130233159.A13503@openss7.org> <438FB0F3.20901@middle.net>
	<20051201205027.A9497@openss7.org> <438FE7B3.2050504@middle.net>
	<20051202013904.A12245@openss7.org>
In-Reply-To: <20051202013904.A12245@openss7.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 21be852dc93f0971708678c18d38c096
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

Brian F. G. Bidulock wrote:

>If you are doing SAR beneath the socket buffer, there is no partial
>delivery at the socket.  Existing things like IP fragmentation that do
>SAR beneath the socket buffer, are not bound by the size of the socket
>buffer.   (One of the reasons why IP fragmentation is a bad thing.)
>SCTP, on the other hand, uses the receive socket buffer (or some weird
>kind of instance of a receive socket buffer for 1:many) as the advertise
>receive window to the peer in SCTP.  The protocol is not designed to do
>SAR beneath the socket buffer.
>  
>
The protocol has nothing to do with socket buffers, per se. Sockets are 
a POSIX thing, not an SCTP thing.  I agree of course, that arriving 
message fragments should be accounted against SO_RCVBUF. 

>So, for example, IP waits for all fragments of an IP message to arrive
>before resassembling them and delivering them to the transport protocol.
>If there is not enough available resource to reassemble all of the
>fragements, the obvious and simple choice is to discard the packet.  The
>same is true for AAL5 (particularly with IP running over it).
>  
>
No problem, since both are unreliable protocols.

>SCTP, by contrast, acknowledges the delivery of each TSN for each
>fragment.  
>
Logically, yes, physically no. A bundle of messages in the same packet 
requires at most one SACK if the transmitter is following the rules.  A 
robust implementation should have an acknowledgement timer that delays a 
SACK for at least a 10 ms or so unless there is reverse traffic.  A 
receiver on a gigabit network might receive hundreds of packets (from 
the same sender) in that time and it would be ridiculously inefficent to 
acknowledge each one (or each pair) independently.

>If there is not enough receive buffer to reassemble the
>message, it does not have the choice of discarding it: it is, after all,
>a reliable transport.  Therefore, your choice become: overflow the
>receive buffer allocation (bad idea), or attempt to free up enough
>receive buffer to reassemble the remainder of the message (only other
>choice).
>
>There are two ways within the protocol to free up receive buffer (both
>are necessary):
>
>1. Renegging.  Renegging is discarding TSNs that follow a gap and not gap
>   acking them in the next gap report.  This frees up buffer and informs
>   the peer that it must now retransmit that data.  If a receiver does not
>   support renegging, it can stall in any number of situations of TSN loss.
>
>2. Partial delivery.  I don't know whay your definition is, but partial
>   delivery here consists of releasing the intial or intermediate
>   (continguous) fragments of a message that, if left in the receive buffer,
>   would ultimately make it impossible to reassemble the message.  Case in
>   point is where the message itself is larger than the receive buffer.
>   You see, it does not take a missing TSN or an aborted connection to
>   force an SCTP receiver to invoke partial delivery.
>  
>

Of course.  I never said it did.  Any receive buffer under pressure 
might invoke partial delivery.  My point is that it can become a serious 
problem on one-to-many sockets (assuming no record interleaving).  The 
problem for one-to-one senders is negligible.

On one-to-many sockets, partial delivery is much more likely, even with 
predominantly small messages.  Any slow sender may block everyone else, 
with no packet loss whatsover.  An SCTP sender using a 56K frame relay 
link will only be able to send packets every 267 ms.  So if the buffer 
management partially delivers a message from that sender, no other 
messages can be delivered for at least that interval, even with a 
perfect network.

A more common alternative is a sender writing long messages in multiple 
fragments. The draft doesn't support MSG_EOR on write, but other 
implementations may use different semantics.   Say the sending process 
writes half a message and it either blocks for I/O it needs to finish 
the rest of the message, or is switched out by the scheduler.  It may 
not run again for several hundred milliseconds, often longer on systems 
under swap pressure.   Meanwhile the Nagle timer has long since expired, 
and the first part of the message is on its way.

On the receving end, the message may be selected for partial delivery, 
and then the one-to-many socket stalls until the sending process is able 
to finish the message.  Even with a perfect gigabit network, a one to 
many socket may stall for the slowest sender.

>I'm sorry, but SCTP is a reliable transport protocol with built in ULP
>flow control, not the unreliable datagram service to which you compare
>it.  If you want to avoid partial delivery: send smaller messages.
>  
>
Partial delivery on one-to-many sockets turn it into an unreliable 
protocol, much, _much_ worse than UDP. Unless of course, you don't care 
whether a single sender blocks your whole enterprise.

>Otherwise, it is a necessary part of the protocol:
>
>  RFC 2960 Section 6.9 Fragmentation and Reassembly:
>
>  "Note: If the data receiver runs out of buffer space while still
>   waiting for more fragments to complete the re-assembly of the
>   message, it should dispatch part of its inbound message through a
>   partial delivery API (see Section 10), freeing some of its receive
>   buffer space so that the rest of the message may be received."
>  
>
Notice that is a "should", not a "must".

> and Section 10:
>
>   G) Receive
>
>   Format: RECEIVE(association id, buffer address, buffer size
>           [,stream id])
>   -> byte count [,transport address] [,stream id] [,stream sequence
>      number] [,partial flag] [,delivery number] [,payload protocol-id]
>
>   ...
>
>   o  partial flag - if this returned flag is set to 1, then this
>      Receive contains  a partial delivery of the whole message.  When
>      this flag is set, the stream id and stream sequence number MUST
>      accompany this receive.  When this flag is set to 0, it indicates
>      that no more deliveries will be received for this stream sequence
>      number.
>
>Partial delivery is not an implementation side-effect.  Nor is it an
>optional function of the API.  It is a requirement of the protocol.
>  
>
No, it is not.  The preface to section 10 states: "The primitives and 
notifications described in this section should be used as a guideline 
for implementing SCTP".  Section 10 does not require partial deliveries 
to ever occur.

>Read POSIX Chapter 2 socket receive buffer again.  This time think
>reliable transport protocol with variable record sizes.  Think
>SOCK_SEQPACKET.  SOCK_STREAM is acheivable: just don't set MSG_EOR and
>allow one record to blend into another.  SOCK_DGRAM is not.  All
>SOCK_DGRAM applications are inherently unreliable, and all impose a
>maximum message size.  SCTP is (and does) neither.
>  
>
_Nothing_ in SCTP restricts an interface from specifying buffer 
requirements. Atomic delivery can work with multi-megabyte messages if 
the receive buffer is set accordingly.   Should SCTP guarantee reliable 
delivery with a buffer size of 1 byte?

 I am not suggesting that people be _forced_ to use SOCK_DGRAM as the 
only interface.  However, if it or an equivalent option is not added, I 
think one-to-many sockets should be removed from the api, lest someone 
be so unfortunate as to use them for a serious application.   Perish the 
thought that someone might actually think that SCTP is a capable 
replacement for UDP.

Of course, we could always make every application include SAR code 
instead, moving the buffer requirement one level higher.  That sounds 
like a sure way to keep as few people as possible from writing or 
porting SCTP applications.

 - Mark





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



From tsvwg-bounces@ietf.org Sun Dec 04 02:22:52 2005
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 1EioCy-0008Rd-Cz; Sun, 04 Dec 2005 02:22:52 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EioCw-0008RQ-VO
	for tsvwg@megatron.ietf.org; Sun, 04 Dec 2005 02:22:51 -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 CAA13164
	for <tsvwg@ietf.org>; Sun, 4 Dec 2005 02:22:02 -0500 (EST)
Received: from denhaag.ewi.utwente.nl ([130.89.10.11])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EioXy-0001oH-Ng
	for tsvwg@ietf.org; Sun, 04 Dec 2005 02:44:36 -0500
Received: from zeus.cs.utwente.nl (zeus.ewi.utwente.nl [130.89.10.12])
	by denhaag.ewi.utwente.nl (8.13.1/8.13.1) with ESMTP id jB47MbhH000237
	for <tsvwg@ietf.org>; Sun, 4 Dec 2005 08:22:37 +0100 (MET)
Received: from janus.cs.utwente.nl (janus [130.89.10.26])
	by zeus.cs.utwente.nl (8.12.10/8.12.10) with ESMTP id jB47Mb5B023334
	for <tsvwg@ietf.org>; Sun, 4 Dec 2005 08:22:37 +0100 (MET)
Received: (from nobody@localhost)
	by janus.cs.utwente.nl (8.11.7p1+Sun/8.10.2) id jB47Mbf00168;
	Sun, 4 Dec 2005 08:22:37 +0100 (MET)
Date: Sun, 4 Dec 2005 08:22:37 +0100 (MET)
X-Authentication-Warning: janus.cs.utwente.nl: nobody set sender to
	karagian@cs.utwente.nl using -f
To: tsvwg@ietf.org
Received: from 84.82.109.231 (auth. user karagian@imap2.cs.utwente.nl)
	by webmail.cs.utwente.nl with HTTP; Sun, 04 Dec 2005 07:22:37 +0000
X-IlohaMail-Blah: karagian@ewi.utwente.nl
X-IlohaMail-Method: mail() [mem]
X-IlohaMail-Dummy: moo
X-Mailer: IlohaMail/0.8.13 (On: webmail.cs.utwente.nl)
Message-ID: <c0CccgQP.1133680957.2987400.karagian@ewi.utwente.nl>
From: "Georgios Karagiannis" <karagian@cs.utwente.nl>
Bounce-To: "Georgios Karagiannis" <karagian@cs.utwente.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -5.581 () ALL_TRUSTED,AWL,BAYES_00
X-Scanned-By: MIMEDefang 2.52 on 130.89.10.11
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0b5
	(denhaag.ewi.utwente.nl [130.89.10.11]);
	Sun, 04 Dec 2005 08:22:39 +0100 (MET)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 538aad3a3c4f01d8b6a6477ca4248793
Content-Transfer-Encoding: quoted-printable
Subject: [Tsvwg] new version load control draft submitted to tsvwg
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

Please note that we submitted a new version of the load control draft to
the tsvwg working group, see:

http://www.ietf.org/internet-drafts/draft-westberg-loadcntr-04.txt


The Load Control draft addresses the following issues:

     1. Admission control for real time data flows in stateless domains

     2. Dropping of flows in case of exceptional events, such as
        severe congestion after re-routing
Please note that the last version of this draft was submitted in April
2000.
The functionality concepts described in this version are not different
than
the ones described in the previous version.


Recently new drafts have been submitted aiming to standardize new
Diffserv PHB and define an architecture providing controlled load
services in
Diffserv domains [CL-Diffs, CL-PHB]. These proposals are very similar to
the two-bit marking scheme of Load Control. The major differences
are that in the admission control is based on the marking of the data
packets, i.e. without sending probe packets, and different methods of
marking of the ECN field.

During the tsvwg meeting of Vancouver, the tsvwg working group requested
from us and the authors of the [CL-Diffs, CL-PHB, RSVP-ECN] to cooperate
and converge. Therefore, the main goal of this draft is to provide, in
addition to the [CL-Diffs, CL-PHB, RSVP-ECN],  a starting point on the
cooperation between the authors of [CL-Diffs, CL-PHB, RSVP-ECN] and the
authors of the load control draft.
Note that the references [CL-Diffs, CL-PHB, RSVP-ECN] are:


[CL-Diffs]  Briscoe, B. et al. "A Framework for Admission Control over
   DiffServ using Pre-Congestion Notification", draft-briscoe-tsvwg-cl-
   architecture-01.txt, Work in progress, Oct 2005,;

[CL-PHB]  Briscoe, B. et al. "The Controlled Load per hop behaviour"
   draft-briscoe-tsvwg-cl-phb-00.txt, Work in progress, July 2005

[RSVP-ECN] Le Faucheur, F., et al. "RSVP Extensions for CL-ECN",
   draft-lefaucheur-rsvp-ecn-00.txt, Work in progress, Oct 2005


Best Regards,
Georgios

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



From tsvwg-bounces@ietf.org Mon Dec 05 13:08:41 2005
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 1EjKlV-0003gG-C6; Mon, 05 Dec 2005 13:08:41 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjKlS-0003fV-JE
	for tsvwg@megatron.ietf.org; Mon, 05 Dec 2005 13:08: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 NAA21827
	for <tsvwg@ietf.org>; Mon, 5 Dec 2005 13:07:47 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjL6j-0003E7-NE
	for tsvwg@ietf.org; Mon, 05 Dec 2005 13:30:41 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	IEN48509 for <tsvwg@ietf.org>; Mon, 5 Dec 2005 11:08:09 -0700
Message-ID: <43948230.1000505@middle.net>
Date: Mon, 05 Dec 2005 11:08:48 -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: 769a46790fb42fbb0b0cc700c82f7081
Content-Transfer-Encoding: 7bit
Subject: [Tsvwg] Atomic delivery of very large SCTP messages 
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

Several have objected to API support for atomic delivery on the grounds 
that it is unnatural to limit the size of SCTP messages, since the wire 
protocol imposes no such limitation.  Although guaranteeing conventional 
reliable atomic delivery of any message smaller than the association 
receive buffer is trivial, there is an alternative that allows 
guaranteed atomic delivery of messages of arbitrary size.   Virtually 
every modern kernel has asynchronous I/O support.  With this support 
comes the ability to copy directly from kernel space into user space.

A socket read operation would be implemented as follows - if there is a 
message in the socket receive queue, copy and return.  Otherwise queue 
the io request. When the first fragment of a new message arrives, bind 
it to an io request, and copy it directly into the user buffer.  Copy 
all in-order chunks from the same message directly into the user buffer 
as well.  If a fragment arrives before its predecessors, temporarily 
hold it.  When the message is complete, signal request completion.

The advantages of implementation support would be:

   1. No need for large buffers in kernel memory
   
   2. Much better throughput
          - no RTT stuttering as the receive window is opened and closed
          - no unnecessary context switches

   3. Much reduced delivery latency
          - no serialization of message deliveries
          - no waiting for the slowest 1:M sender under load
          - no scheduling delays for each partial delivery
          
   4. No indefinite stalling due to peer failure (1:M)

   5. Much reduced 1:M denial of service vulnerability
          - small, shared kernel buffer practical
          - no trivial partial delivery serialization attacks
          - protect all apps, not just ones with limited message sizes

Such support would allow implementations to support atomic message 
delivery semantics for arbitrary message sizes.  All that is needed is a 
standard way to request atomic delivery.

Comments anyone?

 - Mark


         
  

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



From tsvwg-bounces@ietf.org Mon Dec 05 17:14:31 2005
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 1EjObP-0002KU-B2; Mon, 05 Dec 2005 17:14:31 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjObN-0002It-PZ
	for tsvwg@megatron.ietf.org; Mon, 05 Dec 2005 17:14: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 RAA21727
	for <tsvwg@ietf.org>; Mon, 5 Dec 2005 17:13:39 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[OgcHlADlBgRYWbG9nliXxHvMmpXeVBZS])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjOwk-0004aw-Pj
	for tsvwg@ietf.org; Mon, 05 Dec 2005 17:36:35 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:c74ztOdKQsP9clrFQ7Pcr1DfkCPceAXG@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB5MEMA13755;
	Mon, 5 Dec 2005 15:14:22 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB5MELD11487;
	Mon, 5 Dec 2005 15:14:21 -0700
Date: Mon, 5 Dec 2005 15:14:21 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages
Message-ID: <20051205151421.B11062@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43948230.1000505@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: <43948230.1000505@middle.net>;
	from butlerm@middle.net on Mon, Dec 05, 2005 at 11:08:48AM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: fb6060cb60c0cea16e3f7219e40a0a81
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:                     (Mon, 05 Dec 2005 11:08:48)
> Several have objected to API support for atomic delivery on the grounds 
> that it is unnatural to limit the size of SCTP messages, since the wire 
> protocol imposes no such limitation.  Although guaranteeing conventional 
> reliable atomic delivery of any message smaller than the association 
> receive buffer is trivial, there is an alternative that allows 
> guaranteed atomic delivery of messages of arbitrary size.   Virtually 
> every modern kernel has asynchronous I/O support.  With this support 
> comes the ability to copy directly from kernel space into user space.

Well, no: all read and receive interfaces copy directly from kernel space
into user space; asynchronous I/O just doesn't block the calling process
while it is doing it.

POSIX Asynchronous I/O is dictated by the read() and write() interfaces.
POSIX sockets can support POSIX Asynchronous I/O, however, it cannot
deliver ancillary data so it is rather useless for multiple streams.  If
you want to "improve" on it, you are back with OpenGroup/IEEE.

--brian

> 
> A socket read operation would be implemented as follows - if there is a 
> message in the socket receive queue, copy and return.  Otherwise queue 
> the io request. When the first fragment of a new message arrives, bind 
> it to an io request, and copy it directly into the user buffer.  Copy 
> all in-order chunks from the same message directly into the user buffer 
> as well.  If a fragment arrives before its predecessors, temporarily 
> hold it.  When the message is complete, signal request completion.
> 
> The advantages of implementation support would be:
> 
>    1. No need for large buffers in kernel memory
>    
>    2. Much better throughput
>           - no RTT stuttering as the receive window is opened and closed
>           - no unnecessary context switches
> 
>    3. Much reduced delivery latency
>           - no serialization of message deliveries
>           - no waiting for the slowest 1:M sender under load
>           - no scheduling delays for each partial delivery
>           
>    4. No indefinite stalling due to peer failure (1:M)
> 
>    5. Much reduced 1:M denial of service vulnerability
>           - small, shared kernel buffer practical
>           - no trivial partial delivery serialization attacks
>           - protect all apps, not just ones with limited message sizes
> 
> Such support would allow implementations to support atomic message 
> delivery semantics for arbitrary message sizes.  All that is needed is a 
> standard way to request atomic delivery.
> 
> Comments anyone?
> 
>  - Mark
> 
> 
>          
>   
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg

-- 
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 Dec 05 18:57:39 2005
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 1EjQDD-0007kf-8m; Mon, 05 Dec 2005 18:57:39 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjQDB-0007kB-4u
	for tsvwg@megatron.ietf.org; Mon, 05 Dec 2005 18:57: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 SAA03044
	for <tsvwg@ietf.org>; Mon, 5 Dec 2005 18:56:46 -0500 (EST)
Received: from webmail2.speakeasy.net ([69.17.117.49]
	helo=webmail2.sea5.speakeasy.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjQYY-00084J-4u
	for tsvwg@ietf.org; Mon, 05 Dec 2005 19:19:43 -0500
Received: (qmail 4896 invoked from network); 5 Dec 2005 23:57:19 -0000
Received: from localhost (HELO webmail2) ([127.0.0.1])
	(envelope-sender <cait@asomi.com>)
	by localhost (qmail-ldap-1.03) with SMTP
	for <bidulock@openss7.org>; 5 Dec 2005 23:57:19 -0000
Received: from 63.87.1.243 (unverified [63.87.1.243])
	by webmail2 (VisualMail 4.0) with WEBMAIL id 15679;
	Mon, 05 Dec 2005 23:57:19 +0000
From: "Caitlin Bestler" <cait@asomi.com>
To: bidulock@openss7.org, "Mark Butler" <butlerm@middle.net>
Importance: Normal
Sensitivity: Normal
Message-ID: <W2687315753156791133827039@webmail2>
X-Mailer: Mintersoft VisualMail, Build 4.0.111601
X-Originating-IP: [63.87.1.243]
Date: Mon, 05 Dec 2005 23:57:19 +0000
Subject: Re:  [Tsvwg] Atomic delivery of very large SCTP messages
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a7d6aff76b15f3f56fcb94490e1052e4
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


> -----Original Message-----
> From: Brian F. G. Bidulock [mailto:bidulock@openss7.org]
> Sent: Monday, December 5, 2005 10:14 PM
> To: 'Mark Butler'
> Cc: tsvwg@ietf.org
> Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages
> 
> Mark,
> 
> Mark Butler wrote:                     (Mon, 05 Dec 2005 11:08:48)
> > Several have objected to API support for atomic delivery on the grounds 
> > that it is unnatural to limit the size of SCTP messages, since the wire 
> > protocol imposes no such limitation.  Although guaranteeing conventional 
> > reliable atomic delivery of any message smaller than the association 
> > receive buffer is trivial, there is an alternative that allows 
> > guaranteed atomic delivery of messages of arbitrary size.   Virtually 
> > every modern kernel has asynchronous I/O support.  With this support 
> > comes the ability to copy directly from kernel space into user space.
> 
> Well, no: all read and receive interfaces copy directly from kernel space
> into user space; asynchronous I/O just doesn't block the calling process
> while it is doing it.
> 
> POSIX Asynchronous I/O is dictated by the read() and write() interfaces.
> POSIX sockets can support POSIX Asynchronous I/O, however, it cannot
> deliver ancillary data so it is rather useless for multiple streams.  If
> you want to "improve" on it, you are back with OpenGroup/IEEE.
> 

And I believe the OpenGroup has already decided that putty around
the corners of the sockets API won't solve the problem, a fundamental
shift to a QP/CQ style interface is needed. See the "Extend Sockets API"
from the ICSC (under the OpenGroup).

A QP/CQ style interface naturally delivers messages atomically to
the consumer in the consumer's buffer, and allows the consumer
to control the maximum amount of resources tied up in partial
messages.




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



From tsvwg-bounces@ietf.org Mon Dec 05 22:45:02 2005
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 1EjTlG-0005Fq-57; Mon, 05 Dec 2005 22:45:02 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjTlE-0005Fc-Nx
	for tsvwg@megatron.ietf.org; Mon, 05 Dec 2005 22:45: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 WAA27075
	for <tsvwg@ietf.org>; Mon, 5 Dec 2005 22:44:10 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjU6c-0007VK-Pj
	for tsvwg@ietf.org; Mon, 05 Dec 2005 23:07:09 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JPY45446; Mon, 5 Dec 2005 20:44:46 -0700
Message-ID: <43950957.40505@middle.net>
Date: Mon, 05 Dec 2005 20:45:27 -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] Atomic delivery of very large SCTP messages
References: <43948230.1000505@middle.net> <20051205151421.B11062@openss7.org>
In-Reply-To: <20051205151421.B11062@openss7.org>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ea4ac80f790299f943f0a53be7e1a21a
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

Brian F. G. Bidulock wrote:

>Well, no: all read and receive interfaces copy directly from kernel space
>into user space; asynchronous I/O just doesn't block the calling process
>while it is doing it.
>  
>
No in the sense that I mean.  Conventionally, a kernel thread has to 
place the data on the socket receive queue and then wake up a user 
thread to perform the copy (in privileged mode, of course).  Copying 
from the kernel thread eliminates unnecessary context switches and 
unnecessary holding in the socket recieve queue.   O_DIRECT is a similar 
concept for filesystems.

>POSIX Asynchronous I/O is dictated by the read() and write() interfaces.
>POSIX sockets can support POSIX Asynchronous I/O, however, it cannot
>deliver ancillary data so it is rather useless for multiple streams.  If
>you want to "improve" on it, you are back with OpenGroup/IEEE.
>  
>
There is no need for users to use the POSIX AIO or other user level 
async interfaces.  The async support required is transparent to the 
user.  Blocking reads from different threads can proceed in parallel 
with no API support.  For example, the Linux 2.6 series internally 
dispatches all fd read/write operations through asynchronous interfaces 
and then waits for completion if necessary on the return path.

 -Mark



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



From tsvwg-bounces@ietf.org Mon Dec 05 23:35:33 2005
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 1EjUY9-0003Ka-Qf; Mon, 05 Dec 2005 23:35:33 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjUY8-0003KV-LV
	for tsvwg@megatron.ietf.org; Mon, 05 Dec 2005 23:35: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 XAA01737
	for <tsvwg@ietf.org>; Mon, 5 Dec 2005 23:34:42 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[4+gHx+dSdJc+kx/M3Zezw+68dNM6HKlH])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjUtX-0000hf-SA
	for tsvwg@ietf.org; Mon, 05 Dec 2005 23:57:41 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:AjRg/ettFlrHc3fGo3OAESetFlnkDHsZ@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB64ZRA21557;
	Mon, 5 Dec 2005 21:35:27 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB64ZQI15516;
	Mon, 5 Dec 2005 21:35:26 -0700
Date: Mon, 5 Dec 2005 21:35:26 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages
Message-ID: <20051205213526.A15494@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>, tsvwg@ietf.org
References: <43948230.1000505@middle.net> <20051205151421.B11062@openss7.org>
	<43950957.40505@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: <43950957.40505@middle.net>;
	from butlerm@middle.net on Mon, Dec 05, 2005 at 08:45:27PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 69a74e02bbee44ab4f8eafdbcedd94a1
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:                                                    (Mon, 05 Dec 2005 20:45:27)
> Brian F. G. Bidulock wrote:
> 
> >Well, no: all read and receive interfaces copy directly from kernel space
> >into user space; asynchronous I/O just doesn't block the calling process
> >while it is doing it.
> >  
> >
> No in the sense that I mean.  Conventionally, a kernel thread has to 
> place the data on the socket receive queue and then wake up a user 
> thread to perform the copy (in privileged mode, of course).  Copying 
> from the kernel thread eliminates unnecessary context switches and 
> unnecessary holding in the socket recieve queue.   O_DIRECT is a similar 
> concept for filesystems.
> 
> >POSIX Asynchronous I/O is dictated by the read() and write() interfaces.
> >POSIX sockets can support POSIX Asynchronous I/O, however, it cannot
> >deliver ancillary data so it is rather useless for multiple streams.  If
> >you want to "improve" on it, you are back with OpenGroup/IEEE.
> >  
> >
> There is no need for users to use the POSIX AIO or other user level 
> async interfaces.  The async support required is transparent to the 
> user.  Blocking reads from different threads can proceed in parallel 
> with no API support.  For example, the Linux 2.6 series internally 
> dispatches all fd read/write operations through asynchronous interfaces 
> and then waits for completion if necessary on the return path.

With the read() and write() file operations.  QED.

--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 Tue Dec 06 01:17:04 2005
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 1EjW8O-00009G-JC; Tue, 06 Dec 2005 01:17:04 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjW8M-000096-SC
	for tsvwg@megatron.ietf.org; Tue, 06 Dec 2005 01:17: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 BAA11162
	for <tsvwg@ietf.org>; Tue, 6 Dec 2005 01:15:36 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjWTE-0003sh-C7
	for tsvwg@ietf.org; Tue, 06 Dec 2005 01:38:36 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JSW96914; Mon, 5 Dec 2005 23:16:14 -0700
Message-ID: <43952CD8.7050308@middle.net>
Date: Mon, 05 Dec 2005 23:16:56 -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: Caitlin Bestler <cait@asomi.com>
Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages (ES-API)
References: <W2687315753156791133827039@webmail2>
In-Reply-To: <W2687315753156791133827039@webmail2>
X-Spam-Score: 1.6 (+)
X-Scan-Signature: b1c41982e167b872076d0018e4e1dc3c
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="===============0266681683=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

Caitlin Bestler wrote:

>> <>
>>
>> And I believe the OpenGroup has already decided that putty around
>> the corners of the sockets API won't solve the problem, a fundamental
>> shift to a QP/CQ style interface is needed. See the "Extend Sockets API"
>> from the ICSC (under the OpenGroup).
>>
>> A QP/CQ style interface naturally delivers messages atomically to
>> the consumer in the consumer's buffer, and allows the consumer
>> to control the maximum amount of resources tied up in partial
>> messages.
>
As I imagine you are aware,  Linux has AIO / CQ syscalls already, so an 
ES-API interface could be implemented as a simple user level wrapper 
around existing kernel interfaces.  The internal protocol driver 
interfaces are more than adequate for ES-API support.  All that is 
needed is to upgrade the protocol drivers to handle async operations 
without silently degrading into synchronous mode.  Such an upgrade 
change would benefit users of existing interfaces in the way I have 
outlined.

However, atomic message delivery will not happen unless a protocol 
driver supports it, which means that ES-API with SCTP sockets will be of 
limited value until stacks are upgraded to support atomic deliveries, as 
specified by the ES-API.  Async pipelined socket I/O is practically 
impossible unless you can predict which inbound messages will arrive in 
which posted buffers.  Atomic delivery makes this trivial on reliable 
one-to-one connections.

I am curious why ES-API does not provide for read requests bound to a 
specific stream.  Practically every modern I/O technology provides for 
multiple independent stream pairs - SCTP, Infiniband and RDMA come to 
mind.  Without a way to read from a specific stream, multiple streams 
per association are good for little but packet loss mitigation.  One 
alternative is setting up a bunch of parallel associations, which is 
what SCTP and Infiniband, etc. were theoretically designed to avoid.  I 
guess the simple solution would be a way to peel off stream specific 
sockets, so you can efficiently have one socket per QP.

One problem I have with ES-API is that it is unnecessarily narrow -  
adding several new abstractions that can only be used with sockets.  If 
a new completion mechanism is going to be added, it should work across 
all file descriptors, not just sockets.  File operations could really 
use the improvement as well - signal based completion in a multithreaded 
environment is a bit of a disaster, to put it mildly.  Memory 
registration is something that has broad utility as well.  (And 
requiring a call to exs_init is ugly).  

I don't suppose there are plans for IPPROTO_RDMA sockets are there? with 
one socket per QP?

 - Mark


--------------080808080202030005030305
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">
Caitlin Bestler wrote:<br>
<blockquote cite="midW2687315753156791133827039@webmail2" type="cite">
  <blockquote type="cite"><><br>
    <br>
And I believe the OpenGroup has already decided that putty around<br>
the corners of the sockets API won't solve the problem, a fundamental<br>
shift to a QP/CQ style interface is needed. See the "Extend Sockets API"<br>
from the ICSC (under the OpenGroup).<br>
    <br>
A QP/CQ style interface naturally delivers messages atomically to<br>
the consumer in the consumer's buffer, and allows the consumer<br>
to control the maximum amount of resources tied up in partial<br>
messages.<br>
    </></blockquote>
</blockquote>
As I imagine you are aware,&nbsp; Linux has AIO / CQ syscalls already, so an
ES-API interface could be
implemented as a simple user level wrapper around existing kernel
interfaces.&nbsp; The internal protocol driver interfaces are more than
adequate for ES-API support.&nbsp; All that is needed is to upgrade the
protocol drivers to handle async operations without silently degrading
into synchronous mode.&nbsp; Such an upgrade change would benefit users of
existing interfaces in the way I have outlined.<br>
<br>
However, atomic message delivery will not happen unless a protocol
driver supports it, which means that ES-API with SCTP sockets will be
of limited value until stacks are upgraded to support atomic
deliveries, as specified by the ES-API.&nbsp; Async pipelined socket I/O is
practically impossible unless you can predict which inbound messages
will arrive in which posted buffers.&nbsp; Atomic delivery makes this
trivial on reliable one-to-one connections.<br>
<br>
I am curious why ES-API does not provide for read requests bound to a
specific stream.&nbsp; Practically every modern I/O technology provides for
multiple independent stream pairs - SCTP, Infiniband and RDMA come to
mind.&nbsp; Without a way to read from a specific stream, multiple streams
per association are good for little but packet loss mitigation.&nbsp; One
alternative is setting up a bunch of parallel associations, which is
what SCTP and Infiniband, etc. were theoretically designed to avoid.&nbsp; I
guess the simple solution would be a way to peel off stream specific
sockets, so you can efficiently have one socket per QP.<br>
<br>
One problem I have with ES-API is that it is unnecessarily narrow -&nbsp;
adding several new abstractions that can only be used with sockets.&nbsp; If
a new completion mechanism is going to be added, it should work across
all file descriptors, not just sockets.&nbsp; File operations could really
use the improvement as well - signal based completion in a
multithreaded environment is a bit of a disaster, to put it mildly.&nbsp;
Memory registration is something that has broad utility as well.&nbsp; (And
requiring a call to exs_init is ugly).&nbsp;&nbsp; <br>
<br>
I don't suppose there are plans for IPPROTO_RDMA sockets are there?
with one socket per QP?<br>
<br>
&nbsp;- Mark<br>
<br>
</body>
</html>

--------------080808080202030005030305--


--===============0266681683==
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

--===============0266681683==--




From tsvwg-bounces@ietf.org Tue Dec 06 01:32:08 2005
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 1EjWMy-0004Sv-KX; Tue, 06 Dec 2005 01:32:08 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjWMx-0004So-Kd
	for tsvwg@megatron.ietf.org; Tue, 06 Dec 2005 01:32: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 BAA12536
	for <tsvwg@ietf.org>; Tue, 6 Dec 2005 01:31:16 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjWiO-0004MH-Ab
	for tsvwg@ietf.org; Tue, 06 Dec 2005 01:54:17 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	JSL31359; Mon, 5 Dec 2005 23:31:59 -0700
Message-ID: <43953089.8070104@middle.net>
Date: Mon, 05 Dec 2005 23:32: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] Atomic delivery of very large SCTP messages
References: <43948230.1000505@middle.net> <20051205151421.B11062@openss7.org>
	<43950957.40505@middle.net> <20051205213526.A15494@openss7.org>
In-Reply-To: <20051205213526.A15494@openss7.org>
X-Spam-Score: 1.0 (+)
X-Scan-Signature: 082a9cbf4d599f360ac7f815372a6a15
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="===============1081178707=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

Brian F. G. Bidulock wrote:

>>There is no need for users to use the POSIX AIO or other user level 
>>async interfaces.  The async support required is transparent to the 
>>user.  Blocking reads from different threads can proceed in parallel 
>>with no API support.  For example, the Linux 2.6 series internally 
>>dispatches all fd read/write operations through asynchronous interfaces 
>>and then waits for completion if necessary on the return path.
>>    
>>
>
>With the read() and write() file operations.  QED.
>
>  
>
Your interpretation is too narrow.  All Linux sendmsg and recvmsg 
operations are dispatched as I described.  See sock_sendmsg and 
sock_recvmsg in net/socket.c.
 
 - Mark

--------------060503030602070701020800
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="mid20051205213526.A15494@openss7.org" type="cite">
  <blockquote type="cite">
    <pre wrap="">There is no need for users to use the POSIX AIO or other user level 
async interfaces.  The async support required is transparent to the 
user.  Blocking reads from different threads can proceed in parallel 
with no API support.  For example, the Linux 2.6 series internally 
dispatches all fd read/write operations through asynchronous interfaces 
and then waits for completion if necessary on the return path.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
With the read() and write() file operations.  QED.

  </pre>
</blockquote>
Your interpretation is too narrow.&nbsp; All Linux sendmsg and recvmsg
operations are dispatched as I described.&nbsp; See sock_sendmsg and
sock_recvmsg in net/socket.c.<br>
&nbsp;<br>
&nbsp;- Mark<br>
</body>
</html>

--------------060503030602070701020800--


--===============1081178707==
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

--===============1081178707==--




From tsvwg-bounces@ietf.org Tue Dec 06 01:58:14 2005
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 1EjWmE-0003BE-B0; Tue, 06 Dec 2005 01:58:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EjWmD-0003Ae-Bn
	for tsvwg@megatron.ietf.org; Tue, 06 Dec 2005 01:58: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 BAA14948
	for <tsvwg@ietf.org>; Tue, 6 Dec 2005 01:57:22 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[LjnAWZf2JbcVWmkAAcsR4T3kL/WcpR6F])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjX7e-00057J-AN
	for tsvwg@ietf.org; Tue, 06 Dec 2005 02:20:23 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:q/JIo7tHqpWFSW1E2zS1KPsfbuVDF1wm@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jB66w8A23968;
	Mon, 5 Dec 2005 23:58:08 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jB66w7p17196;
	Mon, 5 Dec 2005 23:58:07 -0700
Date: Mon, 5 Dec 2005 23:58:07 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages
Message-ID: <20051205235807.A17062@openss7.org>
Mail-Followup-To: Mark Butler <butlerm@middle.net>,
	sctp-impl@external.cisco.com, tsvwg@ietf.org
References: <43948230.1000505@middle.net> <20051205151421.B11062@openss7.org>
	<43950957.40505@middle.net> <20051205213526.A15494@openss7.org>
	<43953089.8070104@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: <43953089.8070104@middle.net>;
	from butlerm@middle.net on Mon, Dec 05, 2005 at 11:32:41PM -0700
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: bb8f917bb6b8da28fc948aeffb74aa17
Cc: sctp-impl@external.cisco.com, 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,

This discussion has deteriorated well beyond the scope of the
sockets draft.  Perhaps it would be better to take it over
to sctp-impl list now.  Just drop tsvwg from replies.

--brian


Mark Butler wrote:                            (Mon, 05 Dec 2005 23:32:41)
> 
>    Brian F. G. Bidulock wrote:
> 
> There is no need for users to use the POSIX AIO or other user level 
> async interfaces.  The async support required is transparent to the 
> user.  Blocking reads from different threads can proceed in parallel 
> with no API support.  For example, the Linux 2.6 series internally 
> dispatches all fd read/write operations through asynchronous interfaces 
> and then waits for completion if necessary on the return path.
>     
> 
> With the read() and write() file operations.  QED.
> 
>   
> 
>    Your  interpretation  is  too  narrow.   All Linux sendmsg and recvmsg
>    operations  are  dispatched  as  I  described.   See  sock_sendmsg and
>    sock_recvmsg in net/socket.c.
> 
>     - 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 Dec 06 23:37:16 2005
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 1Ejr3M-0007i3-Uc; Tue, 06 Dec 2005 23:37:16 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Ejr3L-0007h0-3d
	for tsvwg@megatron.ietf.org; Tue, 06 Dec 2005 23:37: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 XAA05768
	for <tsvwg@ietf.org>; Tue, 6 Dec 2005 23:36:23 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EjrOu-00071I-Cr
	for tsvwg@ietf.org; Tue, 06 Dec 2005 23:59:36 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	KQR15652 for <tsvwg@ietf.org>; Tue, 6 Dec 2005 21:36:52 -0700
Message-ID: <4396670E.8080207@middle.net>
Date: Tue, 06 Dec 2005 21:37:34 -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: 8b30eb7682a596edff707698f4a80f7d
Content-Transfer-Encoding: 7bit
Subject: [Tsvwg] SCTP socket buffer options
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


There is an issue with the draft specification for the behavior of 
SO_RCVBUF and SO_SNDBUF on SCTP sockets.  The draft specifies a macro 
definition to allow applications to determine whether each option is 
implemented on an assocation level or a socket level at compile time.  
Unfortunately, some implementations allow the semantics to be changed at 
run time to support either interpretation, e.g. via a sysctl option in 
LKSCTP, making the compile time information inadequate and misleading. 

As a general principle, socket options should have common semantics, 
whether supported by an implementation or not.  SO_RCVBUF and SO_SNDBUF 
by long standing predecent specify socket level buffering. Different, 
protocol level options should be used for finer grained control.  
Implementations should be able to support both levels simultaneously, 
e.g. to keep one sender from starving all the others without abandoning 
the ability to keep the socket buffer from growing without bound.

As such, I propose that the draft be changed as follows:

1. Change the documentation of SO_SNDBUF and SO_RCVBUF to specify socket 
level buffer limits.

2. Add two new options to request per association buffer limits on 
one-to-many sockets:
       SCTP_ASSOC_SNDBUF and SCTP_ASSOC_RCVBUF.

3. Remove references to or deprecate the use of HAVE_SCTP_MULTIBUF

By convention, application level socket buffer options are provided on a 
best effort basis.  Portable applications desiring non-default buffering 
should set both pairs of options.  

Does that sound reasonable?

 - Mark





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



From tsvwg-bounces@ietf.org Thu Dec 08 09:03:57 2005
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 1EkMNJ-0002LJ-9I; Thu, 08 Dec 2005 09:03:57 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EkMNB-0002Jt-Nl; Thu, 08 Dec 2005 09:03: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 JAA18000;
	Thu, 8 Dec 2005 09:02:49 -0500 (EST)
Received: from mailgw3.ericsson.se ([193.180.251.60])
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1EkMMy-0001MK-D5; Thu, 08 Dec 2005 09:03:41 -0500
Received: from esealmw129.eemea.ericsson.se (unknown [153.88.254.120])
	by mailgw3.ericsson.se (Symantec Mail Security) with ESMTP id 5DC6B128E;
	Thu,  8 Dec 2005 15:03:26 +0100 (CET)
Received: from esealmw127.eemea.ericsson.se ([153.88.254.171]) by
	esealmw129.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); 
	Thu, 8 Dec 2005 15:01:44 +0100
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN re-markingwhen DSCP
	re-markingcan do it
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Date: Thu, 8 Dec 2005 15:01:39 +0100
Message-ID: <F005CD411D18D3119C8F00508B087480139F4A2B@ehubunt100.eth.ericsson.se>
Thread-Topic: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN re-markingwhen DSCP
	re-markingcan do it
Thread-Index: AcXxV5l9yovCkXiBT8qKRKPVyhRjUAJxQmbw
From: =?iso-8859-1?Q?Attila_B=E1der_=28IJ/ETH=29?= <attila.bader@ericsson.com>
To: "Bob Briscoe" <rbriscoe@jungle.bt.co.uk>
X-OriginalArrivalTime: 08 Dec 2005 14:01:44.0735 (UTC)
	FILETIME=[EC2A3AF0:01C5FBFF]
X-Brightmail-Tracker: AAAAAA==
X-Spam-Score: 0.0 (/)
X-Scan-Signature: d424907374faffed8e9e11e94f671eb2
Content-Transfer-Encoding: quoted-printable
Cc: philip.eardley@bt.com, tsvwg@ietf.org, nsis@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 Bob, Thank you for your answer, please see my comments below.

Best regards, Attila

> -----Original Message-----
> From: nsis-bounces@ietf.org [mailto:nsis-bounces@ietf.org]
> Sent: Thursday, November 24, 2005 6:41 PM
> To: Georgios Karagiannis
> Cc: philip.eardley@bt.com; tsvwg@ietf.org; nsis@ietf.org
> Subject: Re: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN=20
> re-markingwhen
> DSCP re-markingcan do it
>=20
>=20
> Georgios,
>=20
> (long e-mail)
>=20
> We thought long and hard about which re-marking to use. My=20
> primary concern=20
> was to keep the Internet architecture consistent, which leads to the=20
> arguments below.
>=20
> 1/ Intended semantics of the Internet Architecture
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

>=20
> 1.1/ Intended re-marking semantics of Diffserv & ECN
> --------------------------------------------------
> Diffserv re-marking was defined for two reasons:
>      i) To allow the ingress of a Diffserv domain to prevent=20
> traffic in=20
> excess of the contracted rate/burstiness from being given favourable=20
> treatment at downstream routers if they became congested themselves.
>      ii) To allow a border router to map the DSCP used for a per-hop=20
> behaviour in the upstream domain to that used for the same PHB in the=20
> downstream domain.
>=20
> ECN re-marking is used by a node to indicate that the node itself is=20
> approaching congestion. The intent is to reduce the load from=20
> the source,=20
> but marking is forwarded downstream in the expectation that=20
> it will be fed=20
> back to the source.
>=20
>      Thus, the intent of Diffserv re-marking is to alter the=20
> downstream per=20
> hop forwarding behaviour if necessary. Diffserv re-marking=20
> was not intended=20
> to be fed back to the source.
>      The intent of ECN re-marking is to reduce the load at=20
> source through=20
> feedback. ECN re-marking was specifically not intended to alter the=20
> downstream forwarding behaviour of re-marked packets.
>=20
> That's the idealistic view. In practice, it can be convenient=20
> to break=20
> architecture. But architecture is there to warn you to think=20
> long and hard=20
> when you depart from it, so you are aware of what you might=20
> break in the=20
> future.
>=20

I agree that this would be an idealistic picture. Note that you would =
like to use ECN for Admission Control. Diffserv is used also for =
admission control so there is an overlap between ECN and Diffserv. In =
the meantime ECN was defined for end-to-end congestion control of =
elastic traffic type that makes things complicate. While there is no =
such limitation to use remaining Diffserv codepoints for congestion =
notification edge-to-edge.

> 1.2/ Was ECN at the IP layer intended to have end-to-end semantics?
> -------------------------------------------------------------------
> RFC3168 was written so that the ECN semantics in IP could be=20
> separated from=20
> the end-to-end ECN semantics of TCP when other ECN transports=20
> were defined.
>=20
> [According to Sally Floyd at the time, the main reason for=20
> specifying ECN=20
> for TCP & IP together in the same RFC was to encourage the first=20
> experiments with ECN to be in TCP implementations which tend=20
> to be written=20
> with a lot more care by a few kernel experts.]
>=20
> Indeed, Jon Crowcroft and I wrote an I-D reviewing the ECN=20
> I-D before it=20
> became RFC3168. In section 12, we proposed text on ECN semantics for=20
> proxies (edge-to-edge), asking that it be added to the ECN RFC:
> <http://www.cs.ucl.ac.uk/staff/B.Briscoe/pubs.html#ECN-IP> (Expired)
>=20
> Sally Floyd's response (off-line) at the time is quoted here:
>=20
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> /\/\/\/\/\/\/\/
> At 11:35 21/02/01 -0800, Sally Floyd wrote:
>  >Feedback on Section 12, proposing rules for allowing proxies in the
>  >network to change ECN codepoints:
>  >
>  >I think that this is complicated, and has to be dealt with in a
>  >separate document, in context.  That is, when people have specific
>  >proposals for intermediate nodes to modify the ECN field,
>  >then I think they have to be addressed at that time.  My own opinion
>  >is that making general rules ahead of time, in the abstract,
>  >such as "we will now propose rules for changing the ECN
>  >capability of a packet at intermediate nodes", never gets it right.
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
> /\/\/\/\/\/\/\/
>=20
> <draft-briscoe-tsvwg-cl-architecture-01.txt> is exactly that.=20
> A separate=20
> document about the semantics of ECN proxies, in this case with a flow=20
> signalling transport like RSVP (or NSIS).
>=20
> The idea of RMD and of=20
> <draft-briscoe-tsvwg-cl-architecture-01.txt> is for=20
> the node at the end of a long signalling 'hop' (a whole=20
> Diffserv region) to=20
> see how much congestion has accumulated since the start of=20
> the region.=20
> Potentially there may be other signalling 'hops' further=20
> downstream using=20
> the same technique again. So the egress of one signalling hop=20
> must tidy=20
> things up by folding any re-marked packets back in to the=20
> same marking as=20
> un-re-marked packets, to avoid confusing further region(s)=20
> downstream if=20
> they are using the same technique.
>=20
> [For instance, you are thinking of RMD being used for=20
> admission control=20
> across a radio access network. But there may be another RAN=20
> at the other=20
> end of the network using the same technique. So you must ensure any=20
> re-marked DSCPs are folded back into the same DSCP as=20
> non-re-marked packets=20
> at the RMD egress. ]
>=20

Yes, I agree that Egress edge should restore the orig. DSCP, otherwise =
there can be multiple actions for the same event. It may not be restored =
if there is agreement between domains that a downsteram domain handles =
the problem.=20

> 1.3/ Summary of architectural concerns
> --------------------------------------
> To indicate the need for admission control, it is certainly=20
> more convenient=20
> to do Diffserv re-marking as RMD does, but I believe it is more=20
> architecturally consistent to use ECN re-marking, as we do.
>=20
> However, architecture is like religion. You can break it, if=20
> it becomes too=20
> inconvenient, and if you can convince enough people you have=20
> a good excuse.
>=20
> 2. Practical issues
> -------------------
> I don't think we need to break the architecture in this case=20
> (which is why=20
> we use ECN), but using ECN re-marking edge-edge does raise=20
> the following=20
> issue...
>=20
> 2.1/ Edge-to-edge ECN conflicts with end-to-end ECN
> ---------------------------------------------------
> We fully understand that use of ECN re-marking to trigger=20
> admission control=20
> within Diffserv regions would conflict with end-to-end ECN congestion=20
> control for the *same* flow. But we deliberately chose to=20
> specify the end=20
> to end service we were providing as "controlled load=20
> [RFC2211]" to try to=20
> preclude such cases.
>=20
> RFC 2211 says:
>=20
> "  ...
> 2. End-to-End Behavior
>     ...                              Should the client's traffic
>     generation properties fall outside of the region described by the
>     TSpec parameters, the QoS provided to the client may exhibit
>     characteristics indicative of overload, including large numbers of
>     delayed or dropped packets.
>=20
>     ...
>=20
> 7. Policing
>     ...                                  the network element=20
> MUST attempt
>       to forward the excess traffic on a best-effort basis if=20
> sufficient
>       resources are available
>=20
>     ...
>=20
>     Beyond requirements 2 and 3 above, the controlled-load=20
> service does
>     not define the QoS behavior delivered to flows with non-conformant
>     arriving traffic.  Specifically, it is permissible either=20
> to degrade
>     the service delivered to all of the flow's packets equally, or to
>     sort the flow's packets into a conformant set and a=20
> nonconformant set
>     and deliver different levels of service to the two sets.
>=20
>     ...
>=20
> 9. Guidelines for Implementors
>=20
>     ...
> If most controlled-load traffic arises from rate-adaptive
>     realtime or elastic applications attempting to establish a bounded
>     minimum level of service, the use of separate resource=20
> classes might
>     be preferable.
>=20
> "
> I won't paste everything RF2211 says on with advice for=20
> implementors on=20
> scheduling elastic flows with a bounded minimum, as there's=20
> rather a lot.=20
> But basically, you get unavoidably bad re-ordering and other=20
> complications=20
> that make it hard. Even though this seems a desirable service, it's=20
> unlikely to work well in practice.
>=20
> 2.2/ End-to-end ECN conflicts with edge-to-edge admission control
> -----------------------------------------------------------------
> The congestion-based admission control mechanism used in RMD=20
> and in our=20
> <draft-briscoe-tsvwg-cl-architecture-01.txt> would break if a=20
> significant=20
> proportion of admitted traffic were adaptive. If congestion=20
> on an interior=20
> path were close to the threshold where admission control was needed,=20
> adaptive traffic might temporarily drop well below its=20
> minimum bound. More=20
> flows might then be accepted, then the adaptive traffic could=20
> grow again,=20
> destroying the controlled load service for all flows through=20
> that path.
>=20
> [Note: Variable bit rate (VBR) like video traffic would=20
> superfically seem=20
> to break a measurement-based admission control system in the=20
> same way as=20
> adaptive traffic. But unlike with adaptive traffic, troughs=20
> in VBR load are=20
> not correlated with congestion. Our analyses of how the=20
> effective bandwidth=20
> of VBR (and silence-suppressed voice) aggregates has shown that our=20
> solution works OK for VBR, given specific conditions on the amount of=20
> aggregation and provided VBR traffic sources are not=20
> correlated. We are=20
> currently preparing this analysis for publication.]
>=20

That study sounds interesting. I do not think that the congestion-based =
admission control is good enough for all networks. Meas. based methods =
certainly have limitations, especially in access network, as you also =
mention in your draft. In RMD edge nodes are statefull nodes. I think =
that unit-based aggregated reservation in core combined with per-flow =
schedulers in edges can provide an Intserv-like service in the domain as =
well.

> 2.3/ Summary of end/edge conflicts
> ----------------------------------
> So, we prefer to say that a different service would have to=20
> be requested to=20
> cater for your hybrid requirement. Hence my preference for explicitly=20
> requesting "adaptive rate control with a bounded minimum" in the=20
> signalling, as a different QoS service. In NSIS terms, this=20
> is would be in=20
> the QSPEC, I believe.
>

I think this traffic should use controlled load service. Or define a new =
QoS model.

> 2.4/ Codepoint space
> --------------------
> Real-estate in the IP header is at a premium. Treating the=20
> 6-bit Diffserv=20
> field and the 2-bit ECN field separately leads to 2^6 + 2^2 =3D 68=20
> codepoints. Treating them together leads to 2^8 =3D 256=20
> codepoints. In the=20
> MPLS EXP field, real-estate is a far greater headache.
>=20
> If ECN marking is orthogonal to Diffserv marking for most Diffserv=20
> codepoints, it makes sense to treate the field as 6-bit and 2-bit=20
> sub-fields. But I don't believe we should be averse to=20
> bending the rules to=20
> save codepoint space across both fields.
>=20
> For instance both our approach and RMD need another marking=20
> state for a=20
> router in the Diffserv interior to indicate the need for flow=20
> pre-emption=20
> (eg. after re-routes). Pre-emption represents severe=20
> congestion and needs=20
> to be fed back upstream. So by my arguments above pre-emption=20
> should be=20
> re-marked using the ECN field. But in our current pre-emption=20
> solution, if=20
> two or more nodes in a path require some flows to be=20
> pre-empted, packets=20
> that have already been re-marked once to indicate pre-emption=20
> need to be=20
> treated differently by downstream nodes. So by my arguments above=20
> pre-emption should also be re-marked using the DSCP.
>=20
> Well, it would be silly to waste two codepoints for one=20
> state. And there=20
> aren't enough ECN codepoints anyway. So, IMHO, you have to be=20
> pragmatic and=20
> be willing to re-mark the Diffserv codepoint for pre-emption=20
> (CAVEAT: the=20
> authors of <draft-briscoe-tsvwg-cl-architecture-01.txt> still haven't=20
> reached consensus on marking - that's why=20
> <draft-briscoe-tsvwg-cl-phb-00.txt> hasn't been updated yet).

We think that both DSCP and ECN remarking could be used for congestion =
notification admission control and severe congestion [pre-emption] with =
limitation.=20

>=20
> 7/ Consistent meaning of an ECN marking
> ---------------------------------------
> I hope I have answered your question about why we use ECN not=20
> Diffserv=20
> re-marking. We are not completely inflexible about using ECN,=20
> but I do have=20
> further reasons for preferring ECN re-marking---to do with=20
> the economic=20
> interpretation of congestion marking across different=20
> classes. It would=20
> take too long to go into that here, but you can read a recent paper I=20
> published on the subject if interested.
>=20
> Commercial Models for IP Quality of Service Interconnect, Bob=20
> Briscoe &=20
> Steve Rudkin (BT), in BTTJ Special Edition on IP Quality of=20
> Service, 23(2)=20
> (Apr 2005)
> <http://www.cs.ucl.ac.uk/staff/B.Briscoe/pubs.html#ixqos>
>=20
> I have also given responses inline...
>=20
> At 09:28 24/11/2005, Georgios Karagiannis wrote:
> >----- Original Message ----- From: <philip.eardley@bt.com>
> >To: <philip.eardley@bt.com>; <karagian@cs.utwente.nl>
> >Cc: <tsvwg@ietf.org>; <nsis@ietf.org>
> >Sent: Thursday, November 24, 2005 1:23 AM
> >Subject: RE: [Tsvwg] why use edge-to-edge ECN re-marking when DSCP=20
> >re-markingcan do it
> >
> >
> >>>>[GK] What is the technical reason of using ECN for edge-toedge=20
> >>>>congestion control?
> >>[PE] The use of Ecn seems natural to me, since we wnat the=20
> network to=20
> >>indicate incipient congestion and that's what ECN is=20
> supposed to do. Note=20
> >>that the semantics are the same as rfc3168 (ECN) - ie same=20
> codepoints of=20
> >>ECN field and CE codepoint indicates incipient congestion.=20
> I also think=20
> >>it can help with migration to a fully ecn world. As operators get=20
> >>experience of using ecn, whilst not requiring all nws / end=20
> hosts to be=20
> >>using it.
> >
> >Georgios: yes I understand but the ECN semantics apply=20
> end-to-end, not=20
> >edge-toedge,
> >please see the previous discussions on this issue!
>=20
> [BB] ECN semantics were originally defined for an end-to-end protocol=20
> (TCP). That does not imply they were only intended to ever be=20
> end-to-end.=20
> RFC3168 did not preclude edge-to-edge. And at least one of=20
> the authors=20
> believed edge-to-edge semantics could be a valid thing to=20
> define later (see=20
> quote from Sally Floyd above).
>=20
>=20
>=20
> >>[PE] Second, using DSCP re-marking seems to need a lot of DSCPs.=20
> >>According to your draft, admission control implies 2 per=20
> traffic class=20
> >>(one for re-marked pkts, one for other pkts passing thru the same=20
> >>router). Plus another for the severe congestion indication.=20
> In addition,=20
> >>in the core network an interesting future extension is to use the=20
> >>mechanisms in a network with MPLS-TE (see our framework=20
> draft for brief=20
> >>discussion) - there isnt sufficient space in the label for=20
> these extra dscps.
> >
> >Georgios: regarding the number of DSCP's you are right, but=20
> there are ways
> >of reducing this number, please see the RMD draft.
> >Please also note that the streaming aplication example that has been=20
> >discussed in
> >the tsvwg and nsis mailing lists shows that it is usefull to use
> >end-to-end ECN based congestion control for reserved traffic.
> >This streaming application example can very efficiently use=20
> RSVP and the
> >DCCP protocol (which uses the end-to-end ECN concept).
>=20
> [BB] No-one on the list has said it would be efficient. In fact the=20
> opposite has been said (by Louise Burness) and no-one has=20
> disagreed. I=20
> believe this hybrid service should be set aside for someone=20
> else to define=20
> a mechanism for later. Intserv couldn't even do it very well,=20
> even though=20
> it had a per-flow scheduler.
>=20
>=20
> >[GK] Please also note that the support of this type of this type of=20
> >streaming application that
> >combines the end to end ECN semantics
> >with reserved minimum bandwidth is needed not only
> >in the backbone network but also in the wireless network as well.
> >Therefore the rate-adaptation function of ECN (DCCP functionality)
> >combined with minimum bandwidth reservation can be very important.
>=20
> [BB] Yes, an adaptive application with a minimum rate would=20
> be a desirable=20
> service. But it's not the one we are defining. And you will=20
> find it doesn't=20
> work with RMD's congestion-based admission scheme either.
>=20
> [BB] We are trying to do Controlled Load to scale to the=20
> Internet. We don't=20
> know how to implement this hybrid at Internet scale. We have=20
> had to limit=20
> our scope to avoid this hybrid problem. And you will find that such a=20
> hybrid service wouldn't work with the mechanism you have=20
> defined for RMD=20
> either.
>=20
> [BB] So I need to turn your question back on you: how would=20
> you prevent=20
> adaptive applications using your RMD congestion mechanism,=20
> and breaking the=20
> admission control system?
>=20
> [BB] The solution I have proposed is to require the=20
> application to signal=20
> this hybrid requirement and if it is not signalled, to drop=20
> any excess=20
> traffic at the region ingress in order to disincentivise any adaptive=20
> application trying to use the wrong service for its needs.
>=20
>=20
> >>Third, (as bob has pointed out) that it's easy to overcome=20
> the end-to-end=20
> >>vs edge-to-edge
> >marking issue (if that's really needed, which I'm inclined=20
> to think it isnt)
> >
> >Georgios: regarding this point I am not sure if it is easy!=20
> It depends on the
> >imposed additional complexity.
>=20
> [BB] If a request for this hybrid were signalled (and an=20
> operator chose to=20
> support the hybrid service), with the current state of=20
> knowledge, I would=20
> say that this hybrid traffic would have to be dealt with by a=20
> less scalable=20
> means, such as Intserv per-flow schedulers on every node, or=20
> your hop by=20
> hop reservation method in RMD.
>=20
>=20
> Bob
>=20
> >Best regards,
> >Georgios
> >
> >
> >>
> >>________________________________
> >>
> >>From: tsvwg-bounces@ietf.org on behalf of philip.eardley@bt.com
> >>Sent: Wed 23/11/2005 23:48
> >>To: karagian@cs.utwente.nl
> >>Cc: tsvwg@ietf.org; nsis@ietf.org
> >>Subject: Re: [Tsvwg] why use edge-to-edge ECN re-marking when DSCP=20
> >>re-markingcan do it
> >>
> >>
> >>
> >>some comments below.
> >>
> >>best wishes, phil
> >>
> >>________________________________
> >>
> >>*       To: <rbriscoe at jungle.bt.co.uk=20
<mailto:rbriscoe@DOMAIN.HIDDEN> >
>>*       Subject: [Tsvwg] why use edge-to-edge ECN re-marking when DSCP =

>>re-marking can do it
>>*       From: "Georgios Karagiannis" <karagian at cs.utwente.nl=20
>><mailto:karagian@DOMAIN.HIDDEN> >
>>*       Date: Mon, 21 Nov 2005 10:52:22 +0100
>>*       Cc: tsvwg at ietf.org <mailto:tsvwg@DOMAIN.HIDDEN> , nsis at=20
>>ietf.org <mailto:nsis@DOMAIN.HIDDEN>
>>
>>Hi Bob
>>
>>In addition to the previous discussion I would like to
>>discuss and ask you the following.
>>
>>[chop]
>>What is the technical reason of using ECN for edge-toedge congestion =
control,
>>when the same solution (on providing admission control
>>based on congestion notification and severe
>>congestion [pre-emption]) can be provided by using DSCP re-marking?
>>
>>
>>
>>
>>_______________________________________________
>>tsvwg mailing list
>>tsvwg@ietf.org
>>https://www1.ietf.org/mailman/listinfo/tsvwg
>>
>
>
>_______________________________________________
>nsis mailing list
>nsis@ietf.org
>https://www1.ietf.org/mailman/listinfo/nsis

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



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

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



From tsvwg-bounces@ietf.org Thu Dec 08 09:11:35 2005
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 1EkMUh-0003bK-Fh; Thu, 08 Dec 2005 09:11:35 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EkMUf-0003aZ-Le
	for tsvwg@megatron.ietf.org; Thu, 08 Dec 2005 09:11: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 JAA18607
	for <tsvwg@ietf.org>; Thu, 8 Dec 2005 09:10:33 -0500 (EST)
Received: from wizmail.org ([217.146.107.12])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EkMUW-0001bF-DK
	for tsvwg@ietf.org; Thu, 08 Dec 2005 09:11:25 -0500
Received: from trunk.jgh.adsl.wizards.co.uk ([217.146.123.57]) (from_AS 16353)
	by wizmail.org with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256)
	(Exim 4.52) id 1EkMUT-0001oG-EX for tsvwg@ietf.org
	(return-path <jgh@wizmail.org>); Thu, 08 Dec 2005 14:11:22 +0000
Message-ID: <43983F06.5030008@wizmail.org>
Date: Thu, 08 Dec 2005 14:11:18 +0000
From: Jeremy Harris <jgh@wizmail.org>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.7.12) Gecko/20050929 Thunderbird/1.0.7 Fedora/1.0.7-1.1.fc4
	Mnenhy/0.7
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: tsvwg@ietf.org
Subject: Re: [Tsvwg] Atomic delivery of very large SCTP messages (ES-API)
References: <W2687315753156791133827039@webmail2> <43952CD8.7050308@middle.net>
In-Reply-To: <43952CD8.7050308@middle.net>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1ac7cc0a4cd376402b85bc1961a86ac2
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:
> One problem I have with ES-API is that it is unnecessarily narrow -  
> adding several new abstractions that can only be used with sockets.  If 
> a new completion mechanism is going to be added, it should work across 
> all file descriptors, not just sockets.  File operations could really 
> use the improvement as well - signal based completion in a multithreaded 
> environment is a bit of a disaster, to put it mildly.

We were constrained by our terms of reference, to only produce an
interface applying to sockets.  This did not stop many, perhaps most,
of the committee agreeing with your point of view and the interface
was designed with the extension to nonsocket use in mind.

- Jeremy

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



From tsvwg-bounces@ietf.org Fri Dec 09 04:14:19 2005
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 1EkeKY-0003MT-Tg; Fri, 09 Dec 2005 04:14:18 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EkeKW-0003Jh-Sm
	for tsvwg@megatron.ietf.org; Fri, 09 Dec 2005 04:14: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 EAA05341
	for <tsvwg@ietf.org>; Fri, 9 Dec 2005 04:13:23 -0500 (EST)
Received: from [203.199.83.246] (helo=rediffmail.com)
	by ietf-mx.ietf.org with smtp (Exim 4.43) id 1EkeKf-0003T5-1a
	for tsvwg@ietf.org; Fri, 09 Dec 2005 04:14:26 -0500
Received: (qmail 30751 invoked by uid 510); 9 Dec 2005 09:14:03 -0000
Date: 9 Dec 2005 09:14:03 -0000
Message-ID: <20051209091403.30750.qmail@webmail35.rediffmail.com>
Received: from unknown (202.144.29.146) by rediffmail.com via HTTP;
	09 dec 2005 09:14:03 -0000
MIME-Version: 1.0
From: "Abhishek Singh" <abhishek_recw@rediffmail.com>
To: tsvwg@ietf.org
X-Spam-Score: 2.8 (++)
X-Scan-Signature: 9466e0365fc95844abaf7c3f15a05c7d
Subject: [Tsvwg] Mailing List!!
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
Reply-To: Abhishek Singh <abhishek_recw@rediffmail.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>
Content-Type: multipart/mixed; boundary="===============0271056502=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

 This is a multipart mime message


--===============0271056502==
Content-type: multipart/alternative;
	boundary="Next_1134119643---0-203.199.83.246-30741"

 This is a multipart mime message


--Next_1134119643---0-203.199.83.246-30741
Content-type: text/plain;
	charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

 =A0=0A=0A=0AAbhishek Singh=0D=0A=0D=0AGMR Group=0D=0A80/1,MTB Mahameru=0D=
=0AWellington Street, Richmond road=0D=0ABangalore - 560 025=0D=0APh +91-80=
-22070100,Ext 480=0D=0AM  +91-93425-30578=0D=0A
--Next_1134119643---0-203.199.83.246-30741
Content-type: text/html;
	charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

<P>=0A&nbsp; <BR>=0A=0A</P>=0A=0A=0AAbhishek Singh=0D<br>=0A=0D<br>=0AGMR G=
roup=0D<br>=0A80/1,MTB Mahameru=0D<br>=0AWellington Street,&nbsp;Richmond r=
oad=0D<br>=0ABangalore -&nbsp;560 025=0D<br>=0APh +91-80-22070100,Ext&nbsp;=
480=0D<br>=0AM &nbsp;+91-93425-30578=0D<br>=0A<br><br>=0A<a href=3D"http://=
adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-ho=
me.htm/1507191490@Middle5?PARTNER=3D3"><IMG SRC=3D"http://adworks.rediff.co=
m/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/19630594=
23@Middle5?OAS_query=3Dnull&PARTNER=3D3" BORDER=3D0 VSPACE=3D0 HSPACE=3D0><=
/a>=0A
--Next_1134119643---0-203.199.83.246-30741--



--===============0271056502==
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

--===============0271056502==--





From tsvwg-bounces@ietf.org Mon Dec 12 07:35:39 2005
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 1Elmu3-0001za-1q; Mon, 12 Dec 2005 07:35:39 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Elmtv-0001vV-9P; Mon, 12 Dec 2005 07:35: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 HAA15258;
	Mon, 12 Dec 2005 07:34:25 -0500 (EST)
From: john.loughney@nokia.com
Received: from mgw-ext03.nokia.com ([131.228.20.95])
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1ElmuW-0001zJ-Tv; Mon, 12 Dec 2005 07:36:10 -0500
Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213])
	by mgw-ext03.nokia.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id
	jBCCVaoS000377; Mon, 12 Dec 2005 14:31:37 +0200
Received: from esebh104.NOE.Nokia.com ([172.21.143.34]) by
	esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 12 Dec 2005 14:35:09 +0200
Received: from esebe100.NOE.Nokia.com ([172.21.138.118]) by
	esebh104.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Mon, 12 Dec 2005 14:35:09 +0200
X-MimeOLE: Produced By Microsoft Exchange V6.5.7233.31
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN re-markingwhen
	DSCPre-markingcan do it
Date: Mon, 12 Dec 2005 14:35:08 +0200
Message-ID: <1AA39B75171A7144A73216AED1D7478D6CEBF8@esebe100.NOE.Nokia.com>
In-Reply-To: <F005CD411D18D3119C8F00508B087480139F4A2B@ehubunt100.eth.ericsson.se>
Thread-Topic: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN re-markingwhen
	DSCPre-markingcan do it
Thread-Index: AcXxV5l9yovCkXiBT8qKRKPVyhRjUAJxQmbwAP7bX5A=
To: <attila.bader@ericsson.com>, <rbriscoe@jungle.bt.co.uk>
X-OriginalArrivalTime: 12 Dec 2005 12:35:09.0782 (UTC)
	FILETIME=[7D624F60:01C5FF18]
X-Spam-Score: 0.3 (/)
X-Scan-Signature: ca81a19b939ce054f98c8f830c2d7742
Content-Transfer-Encoding: quoted-printable
Cc: philip.eardley@bt.com, nsis@ietf.org, 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

Bob (& by extension the TSVWG WG),

I'm still left feeling like we don't have consensus around the issues =
out-lined
in your mail in the tsvwg community, even outside of RMD issues. =20

I'm wondering if we should start trying to find somethings that we could =
get
consensus on and then see what to do about the other issues.  Many of =
the points
are still experimental (in the TSVWG sense of experimental), so I'm =
wondering
what the next steps should be.

thanks,
John

>-----Original Message-----
>From: nsis-bounces@ietf.org [mailto:nsis-bounces@ietf.org] On=20
>Behalf Of ext Attila B=E1der (IJ/ETH)
>Sent: 08 December, 2005 16:02
>To: Bob Briscoe
>Cc: philip.eardley@bt.com; Georgios Karagiannis;=20
>tsvwg@ietf.org; nsis@ietf.org
>Subject: RE: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN=20
>re-markingwhen DSCPre-markingcan do it
>
>Hi Bob, Thank you for your answer, please see my comments below.
>
>Best regards, Attila
>
>> -----Original Message-----
>> From: nsis-bounces@ietf.org [mailto:nsis-bounces@ietf.org]
>> Sent: Thursday, November 24, 2005 6:41 PM
>> To: Georgios Karagiannis
>> Cc: philip.eardley@bt.com; tsvwg@ietf.org; nsis@ietf.org
>> Subject: Re: [NSIS] Re: [Tsvwg] why use edge-to-edge ECN=20
>> re-markingwhen DSCP re-markingcan do it
>>=20
>>=20
>> Georgios,
>>=20
>> (long e-mail)
>>=20
>> We thought long and hard about which re-marking to use. My primary=20
>> concern was to keep the Internet architecture consistent,=20
>which leads=20
>> to the arguments below.
>>=20
>> 1/ Intended semantics of the Internet Architecture=20
>> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=

>>=20
>> 1.1/ Intended re-marking semantics of Diffserv & ECN
>> --------------------------------------------------
>> Diffserv re-marking was defined for two reasons:
>>      i) To allow the ingress of a Diffserv domain to prevent traffic=20
>> in excess of the contracted rate/burstiness from being given=20
>> favourable treatment at downstream routers if they became congested=20
>> themselves.
>>      ii) To allow a border router to map the DSCP used for a per-hop=20
>> behaviour in the upstream domain to that used for the same=20
>PHB in the=20
>> downstream domain.
>>=20
>> ECN re-marking is used by a node to indicate that the node itself is=20
>> approaching congestion. The intent is to reduce the load from the=20
>> source, but marking is forwarded downstream in the=20
>expectation that it=20
>> will be fed back to the source.
>>=20
>>      Thus, the intent of Diffserv re-marking is to alter the=20
>> downstream per hop forwarding behaviour if necessary. Diffserv=20
>> re-marking was not intended to be fed back to the source.
>>      The intent of ECN re-marking is to reduce the load at source=20
>> through feedback. ECN re-marking was specifically not intended to=20
>> alter the downstream forwarding behaviour of re-marked packets.
>>=20
>> That's the idealistic view. In practice, it can be convenient to =
break=20
>> architecture. But architecture is there to warn you to think long and =

>> hard when you depart from it, so you are aware of what you=20
>might break=20
>> in the future.
>>=20
>
>I agree that this would be an idealistic picture. Note that=20
>you would like to use ECN for Admission Control. Diffserv is=20
>used also for admission control so there is an overlap between=20
>ECN and Diffserv. In the meantime ECN was defined for=20
>end-to-end congestion control of elastic traffic type that=20
>makes things complicate. While there is no such limitation to=20
>use remaining Diffserv codepoints for congestion notification=20
>edge-to-edge.
>
>> 1.2/ Was ECN at the IP layer intended to have end-to-end semantics?
>> -------------------------------------------------------------------
>> RFC3168 was written so that the ECN semantics in IP could be =
separated=20
>> from the end-to-end ECN semantics of TCP when other ECN transports=20
>> were defined.
>>=20
>> [According to Sally Floyd at the time, the main reason for specifying =

>> ECN for TCP & IP together in the same RFC was to encourage the first=20
>> experiments with ECN to be in TCP implementations which tend to be=20
>> written with a lot more care by a few kernel experts.]
>>=20
>> Indeed, Jon Crowcroft and I wrote an I-D reviewing the ECN I-D before =

>> it became RFC3168. In section 12, we proposed text on ECN semantics=20
>> for proxies (edge-to-edge), asking that it be added to the ECN RFC:
>> <http://www.cs.ucl.ac.uk/staff/B.Briscoe/pubs.html#ECN-IP> (Expired)
>>=20
>> Sally Floyd's response (off-line) at the time is quoted here:
>>=20
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
>> /\/\/\/\/\/\/\/
>> At 11:35 21/02/01 -0800, Sally Floyd wrote:
>>  >Feedback on Section 12, proposing rules for allowing proxies in the =
=20
>> >network to change ECN codepoints:
>>  >
>>  >I think that this is complicated, and has to be dealt with in a =20
>> >separate document, in context.  That is, when people have specific =20
>> >proposals for intermediate nodes to modify the ECN field,  >then I=20
>> think they have to be addressed at that time.  My own opinion  >is=20
>> that making general rules ahead of time, in the abstract,  >such as=20
>> "we will now propose rules for changing the ECN  >capability of a=20
>> packet at intermediate nodes", never gets it right.
>> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
>> /\/\/\/\/\/\/\/
>>=20
>> <draft-briscoe-tsvwg-cl-architecture-01.txt> is exactly that. A =
separate
>> document about the semantics of ECN proxies, in this case with a flow =

>> signalling transport like RSVP (or NSIS).
>>=20
>> The idea of RMD and of
>> <draft-briscoe-tsvwg-cl-architecture-01.txt> is for the node at the=20
>> end of a long signalling 'hop' (a whole Diffserv region) to see how=20
>> much congestion has accumulated since the start of the region.
>> Potentially there may be other signalling 'hops' further downstream=20
>> using the same technique again. So the egress of one signalling hop=20
>> must tidy things up by folding any re-marked packets back in to the=20
>> same marking as un-re-marked packets, to avoid confusing further=20
>> region(s) downstream if they are using the same technique.
>>=20
>> [For instance, you are thinking of RMD being used for admission=20
>> control across a radio access network. But there may be another RAN =
at=20
>> the other end of the network using the same technique. So you must=20
>> ensure any re-marked DSCPs are folded back into the same DSCP as=20
>> non-re-marked packets at the RMD egress. ]
>>=20
>
>Yes, I agree that Egress edge should restore the orig. DSCP,=20
>otherwise there can be multiple actions for the same event. It=20
>may not be restored if there is agreement between domains that=20
>a downsteram domain handles the problem.=20
>
>> 1.3/ Summary of architectural concerns
>> --------------------------------------
>> To indicate the need for admission control, it is certainly more=20
>> convenient to do Diffserv re-marking as RMD does, but I believe it is =

>> more architecturally consistent to use ECN re-marking, as we do.
>>=20
>> However, architecture is like religion. You can break it, if it=20
>> becomes too inconvenient, and if you can convince enough people you=20
>> have a good excuse.
>>=20
>> 2. Practical issues
>> -------------------
>> I don't think we need to break the architecture in this case=20
>(which is=20
>> why we use ECN), but using ECN re-marking edge-edge does raise the=20
>> following issue...
>>=20
>> 2.1/ Edge-to-edge ECN conflicts with end-to-end ECN
>> ---------------------------------------------------
>> We fully understand that use of ECN re-marking to trigger admission=20
>> control within Diffserv regions would conflict with end-to-end ECN=20
>> congestion control for the *same* flow. But we deliberately chose to=20
>> specify the end to end service we were providing as "controlled load=20
>> [RFC2211]" to try to preclude such cases.
>>=20
>> RFC 2211 says:
>>=20
>> "  ...
>> 2. End-to-End Behavior
>>     ...                              Should the client's traffic
>>     generation properties fall outside of the region described by the
>>     TSpec parameters, the QoS provided to the client may exhibit
>>     characteristics indicative of overload, including large=20
>numbers of
>>     delayed or dropped packets.
>>=20
>>     ...
>>=20
>> 7. Policing
>>     ...                                  the network element=20
>> MUST attempt
>>       to forward the excess traffic on a best-effort basis if=20
>> sufficient
>>       resources are available
>>=20
>>     ...
>>=20
>>     Beyond requirements 2 and 3 above, the controlled-load service=20
>> does
>>     not define the QoS behavior delivered to flows with=20
>non-conformant
>>     arriving traffic.  Specifically, it is permissible either to=20
>> degrade
>>     the service delivered to all of the flow's packets equally, or to
>>     sort the flow's packets into a conformant set and a=20
>nonconformant=20
>> set
>>     and deliver different levels of service to the two sets.
>>=20
>>     ...
>>=20
>> 9. Guidelines for Implementors
>>=20
>>     ...
>> If most controlled-load traffic arises from rate-adaptive
>>     realtime or elastic applications attempting to establish=20
>a bounded
>>     minimum level of service, the use of separate resource classes=20
>> might
>>     be preferable.
>>=20
>> "
>> I won't paste everything RF2211 says on with advice for implementors=20
>> on scheduling elastic flows with a bounded minimum, as=20
>there's rather=20
>> a lot.
>> But basically, you get unavoidably bad re-ordering and other=20
>> complications that make it hard. Even though this seems a desirable=20
>> service, it's unlikely to work well in practice.
>>=20
>> 2.2/ End-to-end ECN conflicts with edge-to-edge admission control
>> -----------------------------------------------------------------
>> The congestion-based admission control mechanism used in RMD and in=20
>> our <draft-briscoe-tsvwg-cl-architecture-01.txt> would break if a=20
>> significant proportion of admitted traffic were adaptive. If=20
>> congestion on an interior path were close to the threshold where=20
>> admission control was needed, adaptive traffic might=20
>temporarily drop=20
>> well below its minimum bound. More flows might then be=20
>accepted, then=20
>> the adaptive traffic could grow again, destroying the=20
>controlled load=20
>> service for all flows through that path.
>>=20
>> [Note: Variable bit rate (VBR) like video traffic would superfically=20
>> seem to break a measurement-based admission control system=20
>in the same=20
>> way as adaptive traffic. But unlike with adaptive traffic,=20
>troughs in=20
>> VBR load are not correlated with congestion. Our analyses of how the=20
>> effective bandwidth of VBR (and silence-suppressed voice) aggregates=20
>> has shown that our solution works OK for VBR, given specific=20
>> conditions on the amount of aggregation and provided VBR traffic=20
>> sources are not correlated. We are currently preparing this analysis=20
>> for publication.]
>>=20
>
>That study sounds interesting. I do not think that the=20
>congestion-based admission control is good enough for all=20
>networks. Meas. based methods certainly have limitations,=20
>especially in access network, as you also mention in your=20
>draft. In RMD edge nodes are statefull nodes. I think that=20
>unit-based aggregated reservation in core combined with=20
>per-flow schedulers in edges can provide an Intserv-like=20
>service in the domain as well.
>
>> 2.3/ Summary of end/edge conflicts
>> ----------------------------------
>> So, we prefer to say that a different service would have to be=20
>> requested to cater for your hybrid requirement. Hence my preference=20
>> for explicitly requesting "adaptive rate control with a bounded=20
>> minimum" in the signalling, as a different QoS service. In=20
>NSIS terms,=20
>> this is would be in the QSPEC, I believe.
>>
>
>I think this traffic should use controlled load service. Or=20
>define a new QoS model.
>
>> 2.4/ Codepoint space
>> --------------------
>> Real-estate in the IP header is at a premium. Treating the 6-bit=20
>> Diffserv field and the 2-bit ECN field separately leads to=20
>2^6 + 2^2 =3D=20
>> 68 codepoints. Treating them together leads to 2^8 =3D 256 =
codepoints.=20
>> In the MPLS EXP field, real-estate is a far greater headache.
>>=20
>> If ECN marking is orthogonal to Diffserv marking for most Diffserv=20
>> codepoints, it makes sense to treate the field as 6-bit and 2-bit=20
>> sub-fields. But I don't believe we should be averse to bending the=20
>> rules to save codepoint space across both fields.
>>=20
>> For instance both our approach and RMD need another marking=20
>state for=20
>> a router in the Diffserv interior to indicate the need for flow=20
>> pre-emption (eg. after re-routes). Pre-emption represents severe=20
>> congestion and needs to be fed back upstream. So by my=20
>arguments above=20
>> pre-emption should be re-marked using the ECN field. But in our=20
>> current pre-emption solution, if two or more nodes in a path require=20
>> some flows to be pre-empted, packets that have already been=20
>re-marked=20
>> once to indicate pre-emption need to be treated differently by=20
>> downstream nodes. So by my arguments above pre-emption=20
>should also be=20
>> re-marked using the DSCP.
>>=20
>> Well, it would be silly to waste two codepoints for one state. And=20
>> there aren't enough ECN codepoints anyway. So, IMHO, you have to be=20
>> pragmatic and be willing to re-mark the Diffserv codepoint for=20
>> pre-emption
>> (CAVEAT: the
>> authors of <draft-briscoe-tsvwg-cl-architecture-01.txt>=20
>still haven't=20
>> reached consensus on marking - that's why=20
>> <draft-briscoe-tsvwg-cl-phb-00.txt> hasn't been updated yet).
>
>We think that both DSCP and ECN remarking could be used for=20
>congestion notification admission control and severe=20
>congestion [pre-emption] with limitation.=20
>
>>=20
>> 7/ Consistent meaning of an ECN marking
>> ---------------------------------------
>> I hope I have answered your question about why we use ECN=20
>not Diffserv=20
>> re-marking. We are not completely inflexible about using=20
>ECN, but I do=20
>> have further reasons for preferring ECN re-marking---to do with the=20
>> economic interpretation of congestion marking across different=20
>> classes. It would take too long to go into that here, but=20
>you can read=20
>> a recent paper I published on the subject if interested.
>>=20
>> Commercial Models for IP Quality of Service Interconnect,=20
>Bob Briscoe=20
>> & Steve Rudkin (BT), in BTTJ Special Edition on IP Quality=20
>of Service,=20
>> 23(2) (Apr 2005)=20
>> <http://www.cs.ucl.ac.uk/staff/B.Briscoe/pubs.html#ixqos>
>>=20
>> I have also given responses inline...
>>=20
>> At 09:28 24/11/2005, Georgios Karagiannis wrote:
>> >----- Original Message ----- From: <philip.eardley@bt.com>
>> >To: <philip.eardley@bt.com>; <karagian@cs.utwente.nl>
>> >Cc: <tsvwg@ietf.org>; <nsis@ietf.org>
>> >Sent: Thursday, November 24, 2005 1:23 AM
>> >Subject: RE: [Tsvwg] why use edge-to-edge ECN re-marking when DSCP=20
>> >re-markingcan do it
>> >
>> >
>> >>>>[GK] What is the technical reason of using ECN for edge-toedge=20
>> >>>>congestion control?
>> >>[PE] The use of Ecn seems natural to me, since we wnat the
>> network to
>> >>indicate incipient congestion and that's what ECN is
>> supposed to do. Note
>> >>that the semantics are the same as rfc3168 (ECN) - ie same
>> codepoints of
>> >>ECN field and CE codepoint indicates incipient congestion.=20
>> I also think
>> >>it can help with migration to a fully ecn world. As operators get=20
>> >>experience of using ecn, whilst not requiring all nws / end
>> hosts to be
>> >>using it.
>> >
>> >Georgios: yes I understand but the ECN semantics apply
>> end-to-end, not
>> >edge-toedge,
>> >please see the previous discussions on this issue!
>>=20
>> [BB] ECN semantics were originally defined for an end-to-end=20
>protocol=20
>> (TCP). That does not imply they were only intended to ever be=20
>> end-to-end.
>> RFC3168 did not preclude edge-to-edge. And at least one of=20
>the authors=20
>> believed edge-to-edge semantics could be a valid thing to=20
>define later=20
>> (see quote from Sally Floyd above).
>>=20
>>=20
>>=20
>> >>[PE] Second, using DSCP re-marking seems to need a lot of DSCPs.=20
>> >>According to your draft, admission control implies 2 per
>> traffic class
>> >>(one for re-marked pkts, one for other pkts passing thru the same=20
>> >>router). Plus another for the severe congestion indication.
>> In addition,
>> >>in the core network an interesting future extension is to use the=20
>> >>mechanisms in a network with MPLS-TE (see our framework
>> draft for brief
>> >>discussion) - there isnt sufficient space in the label for
>> these extra dscps.
>> >
>> >Georgios: regarding the number of DSCP's you are right, but
>> there are ways
>> >of reducing this number, please see the RMD draft.
>> >Please also note that the streaming aplication example that=20
>has been=20
>> >discussed in the tsvwg and nsis mailing lists shows that it is=20
>> >usefull to use end-to-end ECN based congestion control for reserved=20
>> >traffic.
>> >This streaming application example can very efficiently use
>> RSVP and the
>> >DCCP protocol (which uses the end-to-end ECN concept).
>>=20
>> [BB] No-one on the list has said it would be efficient. In fact the=20
>> opposite has been said (by Louise Burness) and no-one has=20
>disagreed. I=20
>> believe this hybrid service should be set aside for someone else to=20
>> define a mechanism for later. Intserv couldn't even do it very well,=20
>> even though it had a per-flow scheduler.
>>=20
>>=20
>> >[GK] Please also note that the support of this type of this type of=20
>> >streaming application that combines the end to end ECN=20
>semantics with=20
>> >reserved minimum bandwidth is needed not only in the=20
>backbone network=20
>> >but also in the wireless network as well.
>> >Therefore the rate-adaptation function of ECN (DCCP functionality)=20
>> >combined with minimum bandwidth reservation can be very important.
>>=20
>> [BB] Yes, an adaptive application with a minimum rate would be a=20
>> desirable service. But it's not the one we are defining. And=20
>you will=20
>> find it doesn't work with RMD's congestion-based admission scheme=20
>> either.
>>=20
>> [BB] We are trying to do Controlled Load to scale to the=20
>Internet. We=20
>> don't know how to implement this hybrid at Internet scale.=20
>We have had=20
>> to limit our scope to avoid this hybrid problem. And you will find=20
>> that such a hybrid service wouldn't work with the mechanism you have=20
>> defined for RMD either.
>>=20
>> [BB] So I need to turn your question back on you: how would you=20
>> prevent adaptive applications using your RMD congestion=20
>mechanism, and=20
>> breaking the admission control system?
>>=20
>> [BB] The solution I have proposed is to require the application to=20
>> signal this hybrid requirement and if it is not signalled,=20
>to drop any=20
>> excess traffic at the region ingress in order to disincentivise any=20
>> adaptive application trying to use the wrong service for its needs.
>>=20
>>=20
>> >>Third, (as bob has pointed out) that it's easy to overcome
>> the end-to-end
>> >>vs edge-to-edge
>> >marking issue (if that's really needed, which I'm inclined
>> to think it isnt)
>> >
>> >Georgios: regarding this point I am not sure if it is easy!=20
>> It depends on the
>> >imposed additional complexity.
>>=20
>> [BB] If a request for this hybrid were signalled (and an operator=20
>> chose to support the hybrid service), with the current state of=20
>> knowledge, I would say that this hybrid traffic would have=20
>to be dealt=20
>> with by a less scalable means, such as Intserv per-flow=20
>schedulers on=20
>> every node, or your hop by hop reservation method in RMD.
>>=20
>>=20
>> Bob
>>=20
>> >Best regards,
>> >Georgios
>> >
>> >
>> >>
>> >>________________________________
>> >>
>> >>From: tsvwg-bounces@ietf.org on behalf of philip.eardley@bt.com
>> >>Sent: Wed 23/11/2005 23:48
>> >>To: karagian@cs.utwente.nl
>> >>Cc: tsvwg@ietf.org; nsis@ietf.org
>> >>Subject: Re: [Tsvwg] why use edge-to-edge ECN re-marking when DSCP=20
>> >>re-markingcan do it
>> >>
>> >>
>> >>
>> >>some comments below.
>> >>
>> >>best wishes, phil
>> >>
>> >>________________________________
>> >>
>> >>*       To: <rbriscoe at jungle.bt.co.uk=20
><mailto:rbriscoe@DOMAIN.HIDDEN> >
>>>*       Subject: [Tsvwg] why use edge-to-edge ECN re-marking=20
>when DSCP=20
>>>re-marking can do it
>>>*       From: "Georgios Karagiannis" <karagian at cs.utwente.nl=20
>>><mailto:karagian@DOMAIN.HIDDEN> >
>>>*       Date: Mon, 21 Nov 2005 10:52:22 +0100
>>>*       Cc: tsvwg at ietf.org <mailto:tsvwg@DOMAIN.HIDDEN> , nsis at=20
>>>ietf.org <mailto:nsis@DOMAIN.HIDDEN>
>>>
>>>Hi Bob
>>>
>>>In addition to the previous discussion I would like to=20
>discuss and ask=20
>>>you the following.
>>>
>>>[chop]
>>>What is the technical reason of using ECN for edge-toedge congestion=20
>>>control, when the same solution (on providing admission=20
>control based=20
>>>on congestion notification and severe congestion=20
>[pre-emption]) can be=20
>>>provided by using DSCP re-marking?
>>>
>>>
>>>
>>>
>>>_______________________________________________
>>>tsvwg mailing list
>>>tsvwg@ietf.org
>>>https://www1.ietf.org/mailman/listinfo/tsvwg
>>>
>>
>>
>>_______________________________________________
>>nsis mailing list
>>nsis@ietf.org
>>https://www1.ietf.org/mailman/listinfo/nsis
>
>_______________________________________________________________
>_____________
>Bob Briscoe, <bob.briscoe@bt.com>      Networks Research=20
>Centre, BT Research
>B54/130 Adastral Park,Martlesham Heath,Ipswich,IP5 3RE,UK.  =20
>+44 1473 645196 =20
>
>
>
>_______________________________________________
>nsis mailing list
>nsis@ietf.org
>https://www1.ietf.org/mailman/listinfo/nsis
>
>_______________________________________________
>nsis mailing list
>nsis@ietf.org
>https://www1.ietf.org/mailman/listinfo/nsis
>

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



From tsvwg-bounces@ietf.org Thu Dec 15 16:02:30 2005
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 1En0FC-0000aw-H7; Thu, 15 Dec 2005 16:02:30 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1En0FA-0000Zz-2I
	for tsvwg@megatron.ietf.org; Thu, 15 Dec 2005 16:02:29 -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 QAA05651
	for <tsvwg@ietf.org>; Thu, 15 Dec 2005 16:01:26 -0500 (EST)
Received: from cougar.icir.org ([192.150.187.76])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1En0Gb-0002Xr-QI
	for tsvwg@ietf.org; Thu, 15 Dec 2005 16:03:58 -0500
Received: from cougar.icir.org (localhost [127.0.0.1])
	by cougar.icir.org (8.12.11/8.12.11) with ESMTP id jBFL2JWv031216;
	Thu, 15 Dec 2005 13:02:20 -0800 (PST)
	(envelope-from floyd@cougar.icir.org)
Message-Id: <200512152102.jBFL2JWv031216@cougar.icir.org>
To: Bob Briscoe <rbriscoe@jungle.bt.co.uk>
From: Sally Floyd <floyd@icir.org>
Date: Thu, 15 Dec 2005 13:02:19 -0800
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ccfb4541e989aa743998098cd315d0fd
Cc: ietf-coord@crpo.bt.co.uk, 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

Bob -

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.

>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).

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.

>The network /middleboxes currently don't read the nonce codepoints, only 
>the receiver. Diffserv codepoints are for reading by the network. 

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.

>So I 
>assume your ECN-alternate-semantics draft only applied to marking 
>semantics, not to the (current) nonce ECT codepoint semantics which are e2e.

Yep, this is not about the ECN-alternate-semantics draft, this is
about the delaying of moving RFC 3540 to Proposed Standard.

>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.

That is fine by me.

>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.
>
>Of course the word 'upgrade' assumes re-ECN is 'better' than the nonce.

Yep.  And that is my disagreement.

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.)

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.

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.

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.) 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, 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.

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, 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.

More specific feedback on draft-briscoe-tsvwg-re-ecn-tcp-00 is below.

>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).

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/


--------------------------------------------------------------------
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.)

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."

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.

P. 15: 
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.]

P. 15:
"We expect Re-ECN would be deployed for some time before policers
and droppers start to enforce it."

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.

P. 20:
The proosed CR flag in the IP header:
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).

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



From tsvwg-bounces@ietf.org Thu Dec 15 17:42:28 2005
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 1En1nw-0005Tt-5l; Thu, 15 Dec 2005 17:42:28 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1En1nr-0005Tl-DG
	for tsvwg@megatron.ietf.org; Thu, 15 Dec 2005 17:42: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 RAA26274
	for <tsvwg@ietf.org>; Thu, 15 Dec 2005 17:41:24 -0500 (EST)
Received: from aragorn.bbn.com ([128.33.0.62])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1En1pK-00016P-5e
	for tsvwg@ietf.org; Thu, 15 Dec 2005 17:43:55 -0500
Received: from [128.89.80.73] (lion.bbn.com [128.89.80.73])
	by aragorn.bbn.com (8.12.7/8.12.7) with ESMTP id jBFMfvIB014900;
	Thu, 15 Dec 2005 17:41:57 -0500 (EST)
Message-ID: <43A1F135.90401@bbn.com>
Date: Thu, 15 Dec 2005 17:41:57 -0500
From: "Armando L. Caro, Jr." <acaro@bbn.com>
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050819)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Sally Floyd <floyd@icir.org>
Subject: Re: [Tsvwg] Re: Diffserv codepoint seems strange for
	Re-ECN	<draft-briscoe-tsvwg-re-ecn-tcp-00>
References: <200512152102.jBFL2JWv031216@cougar.icir.org>
In-Reply-To: <200512152102.jBFL2JWv031216@cougar.icir.org>
X-Enigmail-Version: 0.92.0.0
OpenPGP: id=A9CE816E
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on 128.33.1.41
X-Virus-Status: Clean
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ffa9dfbbe7cc58b3fa6b8ae3e57b0aa3
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

Sally,

Overall, I agree with most of your comments, but...

Sally Floyd wrote:
> 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.

I'm not sure I agree. Content providers mainly care about user
experience, which means the state of the network is only important when
it affects them and their receivers. If a sender has reason to believe
that competing flows at the bottleneck point will most likely be from
other sources, the sender may take its chances by not using ECN nonce.
On the other hand, if the competing flows are likely to come from the
same sender, then it definitely makes sense to try to enforce ECN
compliance from receivers.

-- 
Armando
www.armandocaro.net

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



From tsvwg-bounces@ietf.org Thu Dec 15 19:15:00 2005
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 1En3FT-0000JF-2j; Thu, 15 Dec 2005 19:14:59 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1En3FQ-0000Iy-A4
	for tsvwg@megatron.ietf.org; Thu, 15 Dec 2005 19:14: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 TAA04803
	for <tsvwg@ietf.org>; Thu, 15 Dec 2005 19:13:57 -0500 (EST)
Received: from cougar.icir.org ([192.150.187.76])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1En3Gr-0004VM-HG
	for tsvwg@ietf.org; Thu, 15 Dec 2005 19:16:29 -0500
Received: from cougar.icir.org (localhost [127.0.0.1])
	by cougar.icir.org (8.12.11/8.12.11) with ESMTP id jBG0EVAF034247;
	Thu, 15 Dec 2005 16:14:31 -0800 (PST)
	(envelope-from floyd@cougar.icir.org)
Message-Id: <200512160014.jBG0EVAF034247@cougar.icir.org>
To: "Armando L. Caro, Jr." <acaro@bbn.com>
From: Sally Floyd <floyd@icir.org>
Subject: Re: [Tsvwg] Re: Diffserv codepoint seems strange for Re-ECN
	<draft-briscoe-tsvwg-re-ecn-tcp-00> 
Date: Thu, 15 Dec 2005 16:14:31 -0800
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 52e1467c2184c31006318542db5614d5
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

Armando -

>Overall, I agree with most of your comments, but...
>
>Sally Floyd wrote:
>> 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.
>
>I'm not sure I agree. Content providers mainly care about user
>experience, which means the state of the network is only important when
>it affects them and their receivers. If a sender has reason to believe
>that competing flows at the bottleneck point will most likely be from
>other sources, the sender may take its chances by not using ECN nonce.
>On the other hand, if the competing flows are likely to come from the
>same sender, then it definitely makes sense to try to enforce ECN
>compliance from receivers.

Yep, I agree.  But I would assume that the second of the two cases
above is not infrequent, e.g, congestion from competing flows
from the same web server.

In particular, the web server might be paying for the bandwidth of
its access link, so it might have an incentive that the bandwidth
of that access link be used effectively.  In particular, if there
is congestion on the web server's access link, then the web server
might have a stake in the use of effective congestion control, as
appropriate, by the users.

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

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



From tsvwg-bounces@ietf.org Fri Dec 16 03:33:36 2005
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 1EnB20-0006R5-NT; Fri, 16 Dec 2005 03:33:36 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EnB1x-0006Pf-Ie
	for tsvwg@megatron.ietf.org; Fri, 16 Dec 2005 03:33: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 DAA17706
	for <tsvwg@ietf.org>; Fri, 16 Dec 2005 03:32:33 -0500 (EST)
From: john.loughney@nokia.com
Received: from mgw-ext03.nokia.com ([131.228.20.95])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EnB3W-0004Uj-36
	for tsvwg@ietf.org; Fri, 16 Dec 2005 03:35:11 -0500
Received: from esebh108.NOE.Nokia.com (esebh108.ntc.nokia.com [172.21.143.145])
	by mgw-ext03.nokia.com (Switch-3.1.7/Switch-3.1.7) with ESMTP id
	jBG8TMZt030264; Fri, 16 Dec 2005 10:29:25 +0200
Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by
	esebh108.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 16 Dec 2005 10:33:06 +0200
Received: from esebe100.NOE.Nokia.com ([172.21.138.118]) by
	esebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); 
	Fri, 16 Dec 2005 10:33:07 +0200
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] Re: Diffserv codepoint seems strange for
	Re-ECN<draft-briscoe-tsvwg-re-ecn-tcp-00> 
Date: Fri, 16 Dec 2005 10:33:06 +0200
Message-ID: <1AA39B75171A7144A73216AED1D7478D6CEC86@esebe100.NOE.Nokia.com>
Thread-Topic: [Tsvwg] Re: Diffserv codepoint seems strange for
	Re-ECN<draft-briscoe-tsvwg-re-ecn-tcp-00> 
Thread-Index: AcYB1gpzcS6fkYpjSvqYH20sA7kEhQARRsAg
To: <floyd@icir.org>, <acaro@bbn.com>
X-OriginalArrivalTime: 16 Dec 2005 08:33:07.0245 (UTC)
	FILETIME=[56EE05D0:01C6021B]
X-Spam-Score: 0.3 (/)
X-Scan-Signature: ea4ac80f790299f943f0a53be7e1a21a
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

Armando,


>>I'm not sure I agree. Content providers mainly care about user=20
>>experience, which means the state of the network is only important
when=20
>>it affects them and their receivers. If a sender has reason to believe

>>that competing flows at the bottleneck point will most likely be from=20
>>other sources, the sender may take its chances by not using ECN nonce.
>>On the other hand, if the competing flows are likely to come from the=20
>>same sender, then it definitely makes sense to try to enforce ECN=20
>>compliance from receivers.
>
>Yep, I agree.  But I would assume that the second of the two=20
>cases above is not infrequent, e.g, congestion from competing=20
>flows from the same web server.
>
>In particular, the web server might be paying for the=20
>bandwidth of its access link, so it might have an incentive=20
>that the bandwidth of that access link be used effectively. =20
>In particular, if there is congestion on the web server's=20
>access link, then the web server might have a stake in the use=20
>of effective congestion control, as appropriate, by the users.

I agree with Sally on this.  Most web servers need to pay for
their access link, so efficient use of bandwidth and packet
transfer is an incentive.

John

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



From tsvwg-bounces@ietf.org Tue Dec 20 11:31:38 2005
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 1EokOn-0002lX-RT; Tue, 20 Dec 2005 11:31:38 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1EokOj-0002js-BC; Tue, 20 Dec 2005 11:31: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 LAA21220;
	Tue, 20 Dec 2005 11:30:30 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1EokRA-0002DX-G5; Tue, 20 Dec 2005 11:34:04 -0500
Received: from apache by newodin.ietf.org with local (Exim 4.43)
	id 1EokOh-0005yW-L8; Tue, 20 Dec 2005 11:31:31 -0500
X-test-idtracker: no
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
Message-Id: <E1EokOh-0005yW-L8@newodin.ietf.org>
Date: Tue, 20 Dec 2005 11:31:31 -0500
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a8a20a483a84f747e56475e290ee868e
Cc: Internet Architecture Board <iab@iab.org>,
	tsvwg mailing list <tsvwg@ietf.org>,
	tsvwg chair <jon.peterson@neustar.biz>,
	tsvwg chair <mankin@psg.com>, tsvwg chair <jmpolk@cisco.com>,
	RFC Editor <rfc-editor@rfc-editor.org>
Subject: [Tsvwg] Protocol Action: 'Stream Control Transmission Protocol
 (SCTP) Specification Errata and Issues' to Proposed Standard 
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 IESG has approved the following document:

- 'Stream Control Transmission Protocol (SCTP) Specification Errata and Issues
'
   <draft-ietf-tsvwg-sctpimpguide-16.txt> as a Proposed Standard

This document is the product of the Transport Area Working Group Working Group.
 

The IESG contact persons are Allison Mankin and Jon Peterson.

A URL of this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpimpguide-16.txt

Technical Summary

   This document is a compilation of issues found during six
   interoperability events and 5 years of experience with implementing,
   testing, and using SCTP along with the suggested fixes.  This
   document provides deltas to RFC 2960 and is organized in a time based
   way.     Each section describes a problem that was found, details of
   the solution, and the snapshot of textual changes or delta for that
   problem solution.
   
   The issues are listed in the order they were found or brought up.
   The document provides a history of errata and deltas, and therefore
   some text is changed several times.  The detailed process of 
   deriving 2960bis from the present document is not discussed in
   this document.
 
 Working Group Summary
 

  The working group reviewed the proposal to publish this Informational
  record of the issues and fixes to RFC 2960 in this form and gave consent
  to this plan.  The rationale for publishing it was to cap revisions to
  the long and complex RFC 2960 document when the bis effort is
  undertaken - this document will be available as the limit on the 
  normative corrections, corrections that have been discovered and vetted
  in interop testing and extensive review. 

  The Responsible Area Director (also a Chair) did question the intended 
  status as Informational, since some of the text changes will eventually modify
 
  a Proposed Standard document, RFC 2960.  The working group was not
  supportive of the document as a Proposed Standard; the WGLC
  for the document was for an Informational, because that was the
  request made by the authors, and when the AD and the non-AD 
  Chair proposed a WGLC for PS, there were a few vocal objectors,
  including the Editor.

 Nevertheless, since RFC 2026 gives the IESG the discretion to modify
 intended status of documents as required, the Responsible AD
 decided to give the document an IETF Last Call as Proposed Standard
 just in case, while still asking the IESG to review the document as 
 Informational as the WG wished.  If the IESG viewed the document as
 requiring standards track status, it would have been possible to consider
 tht switch further.  The IESG agreed after a short discussion that
 the document could remain as an Informational.
  
Protocol Quality
 
  On a number of the deltas, there was considerable review and discussion,
  so that not only running code, but also detailed protocol review was
  taken into account,  and the working group's comments led to new
  tests and revision of the deltas.

  The Responsible Area Director is Allison Mankin.  The WG Chair shepherd
  is James Polk.

Note to RFC Editor
 
Omit reference [2], RFC 2026, from being a citation and from
the normative references.

Abstract

OLD:
   Because some text is changed several times the last delta in the text
   is the one which should be applied.
NEW:
   Because some text is changed several times, the last delta in
   the document is the erratum for that text in RFC 2960.

1. Introduction

OLD:
   Note that when reading this document one must use care to assure that
   a field or item is not updated further on within the document.  Each
   section should be applied in sequence to the original RFC2960 [7]
   since this document is a historical record of the sequential changes
   that have been found necessary at various inter-op events and through
   discussion on the list.

NEW:
   
   This document is a historical record of sequential changes what have
   been found necessary at various interop events and through discussion
   on this list.

   Note that because some text is changed several times, the last delta
   for a text in the document is the erratum for that text in RFC 2960.


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



From tsvwg-bounces@ietf.org Tue Dec 20 14:00:21 2005
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 1Eomij-0006Om-62; Tue, 20 Dec 2005 14:00:21 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Eomih-0006OW-0l; Tue, 20 Dec 2005 14:00:19 -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 NAA19190;
	Tue, 20 Dec 2005 13:59:15 -0500 (EST)
Received: from gw.openss7.com ([142.179.199.224]
	ident=[cri105tJCocNlP7v/qhsJglYVmEgAnbx])
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1Eoml6-0001LX-MF; Tue, 20 Dec 2005 14:02:52 -0500
Received: from ns.pigworks.openss7.net
	(IDENT:B8yqsbQdSUkqvwi/KoVFt3K1qUSAMUJd@ns1.evil.openss7.net
	[192.168.9.1])
	by gw.openss7.com (8.11.6/8.11.6) with ESMTP id jBKIxlE08151;
	Tue, 20 Dec 2005 11:59:47 -0700
Received: (from brian@localhost)
	by ns.pigworks.openss7.net (8.11.6/8.11.6) id jBKIxkR09267;
	Tue, 20 Dec 2005 11:59:46 -0700
Date: Tue, 20 Dec 2005 11:59:46 -0700
From: "Brian F. G. Bidulock" <bidulock@openss7.org>
To: The IESG <iesg-secretary@ietf.org>
Subject: Re: [Tsvwg] Protocol Action: 'Stream Control Transmission Protocol
	(SCTP) Specification Errata and Issues' to Proposed Standard
Message-ID: <20051220115946.C9061@openss7.org>
Mail-Followup-To: The IESG <iesg-secretary@ietf.org>,
	IETF-Announce <ietf-announce@ietf.org>,
	Internet Architecture Board <iab@iab.org>,
	tsvwg mailing list <tsvwg@ietf.org>,
	tsvwg chair <jon.peterson@neustar.biz>,
	tsvwg chair <mankin@psg.com>, tsvwg chair <jmpolk@cisco.com>,
	RFC Editor <rfc-editor@rfc-editor.org>
References: <E1EokOh-0005yW-L8@newodin.ietf.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <E1EokOh-0005yW-L8@newodin.ietf.org>;
	from iesg-secretary@ietf.org on Tue, Dec 20, 2005 at 11:31:31AM
	-0500
Organization: http://www.openss7.org/
Dsn-Notification-To: <bidulock@openss7.org>
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 1676547e4f33b5e63227e9c02bd359e3
Cc: Internet Architecture Board <iab@iab.org>,
	tsvwg mailing list <tsvwg@ietf.org>,
	tsvwg chair <jon.peterson@neustar.biz>,
	tsvwg chair <mankin@psg.com>, tsvwg chair <jmpolk@cisco.com>,
	IETF-Announce <ietf-announce@ietf.org>,
	RFC Editor <rfc-editor@rfc-editor.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

The,

There you go again with the PS.  This document was supposed to be INFORMATIONAL.

--brian

The IESG wrote:                                                                        (Tue, 20 Dec 2005 11:31:31)
> The IESG has approved the following document:
> 
> - 'Stream Control Transmission Protocol (SCTP) Specification Errata and Issues
> '
>    <draft-ietf-tsvwg-sctpimpguide-16.txt> as a Proposed Standard
> 
> This document is the product of the Transport Area Working Group Working Group.
>  
> 
> The IESG contact persons are Allison Mankin and Jon Peterson.
> 
> A URL of this Internet-Draft is:
> http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpimpguide-16.txt
> 
> Technical Summary
> 
>    This document is a compilation of issues found during six
>    interoperability events and 5 years of experience with implementing,
>    testing, and using SCTP along with the suggested fixes.  This
>    document provides deltas to RFC 2960 and is organized in a time based
>    way.     Each section describes a problem that was found, details of
>    the solution, and the snapshot of textual changes or delta for that
>    problem solution.
>    
>    The issues are listed in the order they were found or brought up.
>    The document provides a history of errata and deltas, and therefore
>    some text is changed several times.  The detailed process of 
>    deriving 2960bis from the present document is not discussed in
>    this document.
>  
>  Working Group Summary
>  
> 
>   The working group reviewed the proposal to publish this Informational
>   record of the issues and fixes to RFC 2960 in this form and gave consent
>   to this plan.  The rationale for publishing it was to cap revisions to
>   the long and complex RFC 2960 document when the bis effort is
>   undertaken - this document will be available as the limit on the 
>   normative corrections, corrections that have been discovered and vetted
>   in interop testing and extensive review. 
> 
>   The Responsible Area Director (also a Chair) did question the intended 
>   status as Informational, since some of the text changes will eventually modify
>  
>   a Proposed Standard document, RFC 2960.  The working group was not
>   supportive of the document as a Proposed Standard; the WGLC
>   for the document was for an Informational, because that was the
>   request made by the authors, and when the AD and the non-AD 
>   Chair proposed a WGLC for PS, there were a few vocal objectors,
>   including the Editor.
> 
>  Nevertheless, since RFC 2026 gives the IESG the discretion to modify
>  intended status of documents as required, the Responsible AD
>  decided to give the document an IETF Last Call as Proposed Standard
>  just in case, while still asking the IESG to review the document as 
>  Informational as the WG wished.  If the IESG viewed the document as
>  requiring standards track status, it would have been possible to consider
>  tht switch further.  The IESG agreed after a short discussion that
>  the document could remain as an Informational.
>   
> Protocol Quality
>  
>   On a number of the deltas, there was considerable review and discussion,
>   so that not only running code, but also detailed protocol review was
>   taken into account,  and the working group's comments led to new
>   tests and revision of the deltas.
> 
>   The Responsible Area Director is Allison Mankin.  The WG Chair shepherd
>   is James Polk.
> 
> Note to RFC Editor
>  
> Omit reference [2], RFC 2026, from being a citation and from
> the normative references.
> 
> Abstract
> 
> OLD:
>    Because some text is changed several times the last delta in the text
>    is the one which should be applied.
> NEW:
>    Because some text is changed several times, the last delta in
>    the document is the erratum for that text in RFC 2960.
> 
> 1. Introduction
> 
> OLD:
>    Note that when reading this document one must use care to assure that
>    a field or item is not updated further on within the document.  Each
>    section should be applied in sequence to the original RFC2960 [7]
>    since this document is a historical record of the sequential changes
>    that have been found necessary at various inter-op events and through
>    discussion on the list.
> 
> NEW:
>    
>    This document is a historical record of sequential changes what have
>    been found necessary at various interop events and through discussion
>    on this list.
> 
>    Note that because some text is changed several times, the last delta
>    for a text in the document is the erratum for that text in RFC 2960.
> 
> 
> _______________________________________________
> tsvwg mailing list
> tsvwg@ietf.org
> https://www1.ietf.org/mailman/listinfo/tsvwg

-- 
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 Dec 20 17:28:14 2005
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 1Eopxu-0004xP-Fr; Tue, 20 Dec 2005 17:28:14 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32)
	id 1Eopxp-0004wZ-HJ; Tue, 20 Dec 2005 17:28:09 -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 RAA07619;
	Tue, 20 Dec 2005 17:27:04 -0500 (EST)
Received: from [132.151.6.50] (helo=newodin.ietf.org)
	by ietf-mx.ietf.org with esmtp (Exim 4.43)
	id 1Eoq0K-0000OL-S7; Tue, 20 Dec 2005 17:30:45 -0500
Received: from apache by newodin.ietf.org with local (Exim 4.43)
	id 1Eopxo-0002cJ-F3; Tue, 20 Dec 2005 17:28:08 -0500
X-test-idtracker: no
From: The IESG <iesg-secretary@ietf.org>
To: IETF-Announce <ietf-announce@ietf.org>
Message-Id: <E1Eopxo-0002cJ-F3@newodin.ietf.org>
Date: Tue, 20 Dec 2005 17:28:08 -0500
X-Spam-Score: 0.0 (/)
X-Scan-Signature: a8a20a483a84f747e56475e290ee868e
Cc: Internet Architecture Board <iab@iab.org>,
	tsvwg mailing list <tsvwg@ietf.org>,
	tsvwg chair <jon.peterson@neustar.biz>,
	tsvwg chair <mankin@psg.com>, tsvwg chair <jmpolk@cisco.com>,
	RFC Editor <rfc-editor@rfc-editor.org>
Subject: [Tsvwg] UPDATED Document Action: 'Stream Control Transmission
 Protocol (SCTP) 
 Specification Errata and Issues' to Informational RFC 
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 IESG has approved the following document:

- 'Stream Control Transmission Protocol (SCTP) Specification Errata and Issues
'
   <draft-ietf-tsvwg-sctpimpguide-16.txt> as an Informational RFC

This document is the product of the Transport Area Working Group Working Group.
 

The IESG contact persons are Allison Mankin and Jon Peterson.

A URL of this Internet-Draft is:
http://www.ietf.org/internet-drafts/draft-ietf-tsvwg-sctpimpguide-16.txt

Technical Summary

   This document is a compilation of issues found during six
   interoperability events and 5 years of experience with implementing,
   testing, and using SCTP along with the suggested fixes.  This
   document provides deltas to RFC 2960 and is organized in a time based
   way.     Each section describes a problem that was found, details of
   the solution, and the snapshot of textual changes or delta for that
   problem solution.
   
   The issues are listed in the order they were found or brought up.
   The document provides a history of errata and deltas, and therefore
   some text is changed several times.  The detailed process of 
   deriving 2960bis from the present document is not discussed in
   this document.
 
 Working Group Summary
 

  The working group reviewed the proposal to publish this Informational
  record of the issues and fixes to RFC 2960 in this form and gave consent
  to this plan.  The rationale for publishing it was to cap revisions to
  the long and complex RFC 2960 document when the bis effort is
  undertaken - this document will be available as the limit on the 
  normative corrections, corrections that have been discovered and vetted
  in interop testing and extensive review. 

  The Responsible Area Director (also a Chair) did question the intended 
  status as Informational, since some of the text changes will eventually modify
 
  a Proposed Standard document, RFC 2960.  The working group was not
  supportive of the document as a Proposed Standard; the WGLC
  for the document was for an Informational, because that was the
  request made by the authors, and when the AD and the non-AD 
  Chair proposed a WGLC for PS, there were a few vocal objectors,
  including the Editor.

 Nevertheless, since RFC 2026 gives the IESG the discretion to modify
 intended status of documents as required, the Responsible AD
 decided to give the document an IETF Last Call as Proposed Standard
 just in case, while still asking the IESG to review the document as 
 Informational as the WG wished.  If the IESG viewed the document as
 requiring standards track status, it would have been possible to consider
 tht switch further.  The IESG agreed after a short discussion that
 the document could remain as an Informational.
  
Protocol Quality
 
  On a number of the deltas, there was considerable review and discussion,
  so that not only running code, but also detailed protocol review was
  taken into account,  and the working group's comments led to new
  tests and revision of the deltas.

  The Responsible Area Director is Allison Mankin.  The WG Chair shepherd
  is James Polk.

Note to RFC Editor
 
Omit reference [2], RFC 2026, from being a citation and from
the normative references.

Abstract

OLD:
   Because some text is changed several times the last delta in the text
   is the one which should be applied.
NEW:
   Because some text is changed several times, the last delta in
   the document is the erratum for that text in RFC 2960.

1. Introduction

OLD:
   Note that when reading this document one must use care to assure that
   a field or item is not updated further on within the document.  Each
   section should be applied in sequence to the original RFC2960 [7]
   since this document is a historical record of the sequential changes
   that have been found necessary at various inter-op events and through
   discussion on the list.

NEW:
   
   This document is a historical record of sequential changes what have
   been found necessary at various interop events and through discussion
   on this list.

   Note that because some text is changed several times, the last delta
   for a text in the document is the erratum for that text in RFC 2960.


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



From tsvwg-bounces@ietf.org Thu Dec 22 07:31:10 2005
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 1EpPbC-0003Tj-O4; Thu, 22 Dec 2005 07:31:10 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EpPb8-0003Rc-7S
	for tsvwg@megatron.ietf.org; Thu, 22 Dec 2005 07:31: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 HAA03786
	for <tsvwg@ietf.org>; Thu, 22 Dec 2005 07:30:00 -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 1EpPdw-0000HE-Rp
	for tsvwg@ietf.org; Thu, 22 Dec 2005 07:34:01 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBMCSnWk006991; 
	Thu, 22 Dec 2005 07:29:05 -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: <43AA9BE2.7070901@stewart.chicago.il.us>
Date: Thu, 22 Dec 2005 07:28:18 -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: TSWG <tsvwg@ietf.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: f66b12316365a3fe519e75911daf28a8
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <tuexen@fh-muenster.de>,
	Kacheong Poon <kacheong.poon@sun.com>
Subject: [Tsvwg] SCTP Socket API 
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

All:

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:

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.

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.

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.


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.

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


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 Thu Dec 22 09:08:13 2005
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 1EpR77-00084P-Ki; Thu, 22 Dec 2005 09:08:13 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EpR75-00084K-VH
	for tsvwg@megatron.ietf.org; Thu, 22 Dec 2005 09:08:11 -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 JAA15595
	for <tsvwg@ietf.org>; Thu, 22 Dec 2005 09:07:07 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EpR9u-0003sb-I4
	for tsvwg@ietf.org; Thu, 22 Dec 2005 09:11:08 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	ZAD07745; Thu, 22 Dec 2005 07:07:45 -0700
Message-ID: <43AAB34B.50502@middle.net>
Date: Thu, 22 Dec 2005 07:08:11 -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: ea4ac80f790299f943f0a53be7e1a21a
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP RTO / RTTVAR calcuation - difference with RFC2988
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


  There is a subtle difference between the way RFC2988 and RFC2960 
handle RTO and RTTVAR calculations. RFC2988 does not adjust RTTVAR 
upward to the clock granularity, but instead adjusts the "variance term" 
upward to the clock granularity:

    RTO <- SRTT + max (G, K*RTTVAR)
    where K = 4

RFC2960 on the other hand specifies:

    Whenever RTTVAR is computed, if RTTVAR = 0, then adjust RTTVAR <- G.
     RTO <- SRTT + 4 * RTTVAR

This can make a difference in some situations.  With RFC2988, the 
minimum possible RTO is G.  With RFC2960 the minimum possible RTO is 
4*G.  If you have a coarse grained clock, or low latency requirements it 
would be helpful to be able to specify an RTO.Min lower than that. 

It is also helpful to preserve RTTVAR == 0 information for use in other 
places, such as determining the proper round trip time for ECNE window 
reduction.  Adding RTTVAR to RTT in the once per RTT ECNE window 
reduction test reduces the risk of an improper double congestion window 
reduction.  If RTTVAR is raised upward to G, information is lost and 
ECNE congestion window reduction may occur twice as slowly as it would 
otherwise. 

Perhaps this is a candidate for an sctpimpguide erratum.

- Mark

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



From tsvwg-bounces@ietf.org Thu Dec 22 10:33:07 2005
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 1EpSRH-00082V-KH; Thu, 22 Dec 2005 10:33:07 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EpSRF-00080I-Ov
	for tsvwg@megatron.ietf.org; Thu, 22 Dec 2005 10:33: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 KAA25622
	for <tsvwg@ietf.org>; Thu, 22 Dec 2005 10:32:00 -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 1EpSU6-0006oa-8I
	for tsvwg@ietf.org; Thu, 22 Dec 2005 10:36:02 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBMFVGWk007531; 
	Thu, 22 Dec 2005 10:31:37 -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: <43AAC6A5.1020103@stewart.chicago.il.us>
Date: Thu, 22 Dec 2005 10:30:45 -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 RTO / RTTVAR calcuation - difference with RFC2988
References: <43AAB34B.50502@middle.net>
In-Reply-To: <43AAB34B.50502@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 0fa76816851382eb71b0a882ccdc29ac
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org, vern@aciri.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:

I only have few comments on this..

First and formost... this section's was Vern's to
write.. and so to me he needs to respond to this.. Vern?
----------------------------------------------------------
Second, I would think this only effects the initial RTT
setting.. since the fact that you are doing:

       RTTVAR <- (1 - beta) * RTTVAR + beta * |SRTT - R'|
       SRTT <- (1 - alpha) * SRTT + alpha * R'

over time could possibly adjust RTTVAR towards zero.. assuming
a steady state RTT.

I know on my FreeBSD boxes I have seen the RTT calculated
drop below 10ms.. which is the clock granularity (have not
looked at the RTTVAR though).. Not that
the overpowering RTO.min does not override that :-D
----------------------------------------------------------
Third, I would think that most implementations use VJ's
interger algorithm (for both TCP and SCTP).. I know we
did this when we built the BSD implementation.. I am sure
others did as well.. since otherwise you end up doing
float in the kernel.. a real no-no :-0
-----------------------------------------------------------
Finally, the sctp implementors guide is now closed. Its
in the RFC editors queue.. or will be shortly.. thus it will
not be updated again. Shortly after the 1st of the year
I will start the 2960bis.. but the changes will be restricted
to the I-G....

R


Mark Butler wrote:
> 
>  There is a subtle difference between the way RFC2988 and RFC2960 handle 
> RTO and RTTVAR calculations. RFC2988 does not adjust RTTVAR upward to 
> the clock granularity, but instead adjusts the "variance term" upward to 
> the clock granularity:
> 
>    RTO <- SRTT + max (G, K*RTTVAR)
>    where K = 4
> 
> RFC2960 on the other hand specifies:
> 
>    Whenever RTTVAR is computed, if RTTVAR = 0, then adjust RTTVAR <- G.
>     RTO <- SRTT + 4 * RTTVAR
> 
> This can make a difference in some situations.  With RFC2988, the 
> minimum possible RTO is G.  With RFC2960 the minimum possible RTO is 
> 4*G.  If you have a coarse grained clock, or low latency requirements it 
> would be helpful to be able to specify an RTO.Min lower than that.
> It is also helpful to preserve RTTVAR == 0 information for use in other 
> places, such as determining the proper round trip time for ECNE window 
> reduction.  Adding RTTVAR to RTT in the once per RTT ECNE window 
> reduction test reduces the risk of an improper double congestion window 
> reduction.  If RTTVAR is raised upward to G, information is lost and 
> ECNE congestion window reduction may occur twice as slowly as it would 
> otherwise.
> Perhaps this is a candidate for an sctpimpguide erratum.
> 
> - 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 Fri Dec 23 13:09:11 2005
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 1EprLr-0005Ay-JO; Fri, 23 Dec 2005 13:09:11 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EprLo-00057T-Pq
	for tsvwg@megatron.ietf.org; Fri, 23 Dec 2005 13:09: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 NAA15938
	for <tsvwg@ietf.org>; Fri, 23 Dec 2005 13:08:02 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EprOp-00033m-VS
	for tsvwg@ietf.org; Fri, 23 Dec 2005 13:12:19 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	AEF46946; Fri, 23 Dec 2005 11:08:46 -0700
Message-ID: <43AC3D32.9040603@middle.net>
Date: Fri, 23 Dec 2005 11:08:50 -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: 7d33c50f3756db14428398e2bdedd581
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP: suggested socket option SCTP_WINDOW_CLAMP
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 a suggested SCTP socket option: SCTP_WINDOW_CLAMP.  This would 
set the maximum size of the advertised association receive window, 
regardless of available buffering.  Linux TCP uses a similar 
TCP_WINDOW_CLAMP option.

  The primary use of window clamping is network burst control. Clamping 
the window smaller than the buffer size isolates the receive window from 
application scheduling delays.  This allows you to control the amount of 
data in flight to any given association, without reducing the amount of 
receive buffering for the application.  This is particularly useful when 
the network latency is low compared to the application scheduling delay.

This is an option that both shared buffer and independent buffer 
implementations could easily implement and benefit from, with properly 
portable semantics across both styles.   It is also equally applicable 
to one-to-one and one-to-many sockets. 

Comments?

 - Mark

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



From tsvwg-bounces@ietf.org Fri Dec 23 16:45:00 2005
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 1Epuii-0003cq-59; Fri, 23 Dec 2005 16:45:00 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Epuih-0003cg-1y
	for tsvwg@megatron.ietf.org; Fri, 23 Dec 2005 16:44:59 -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 QAA11613
	for <tsvwg@ietf.org>; Fri, 23 Dec 2005 16:43:52 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Epull-0001vE-Vy
	for tsvwg@ietf.org; Fri, 23 Dec 2005 16:48:11 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	AHP78244; Fri, 23 Dec 2005 14:44:44 -0700
Message-ID: <43AC6FD1.2050204@middle.net>
Date: Fri, 23 Dec 2005 14:44: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: Randall Stewart <randall@stewart.chicago.il.us>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.3 (/)
X-Scan-Signature: 93238566e09e6e262849b4f805833007
Content-Transfer-Encoding: 7bit
Cc: tsvwg@ietf.org
Subject: [Tsvwg] SCTP socket api: SCTP_RTOINFO vs. SCTP_ASSOCINFO vs.
	SCTP_STATUS
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 Randall,

I noticed the SCTP_RTOINFO, SCTP_ASSOCINFO, and SCTP_STATUS socket 
options are redundant, and should probably be merged in some fashion. 

There should be a single read only SCTP_ASSOC_INFO option used to get 
all the information about the association and a write only 
SCTP_ASSOC_PARAMS option to set association parameters,  split the way 
the read only SCTP_GET_PEER_ADDR_INFO is separated from the write only 
SCTP_PEER_ADDR_PARAMS.    The _INFO suffix should always indicate a read 
only option.  Also, the _GET_ infix in SCTP_GET_PEER_ADDR_INFO is 
redundant, and ought to be removed.

Comments anyone?

 - Mark









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



From tsvwg-bounces@ietf.org Sat Dec 24 04:04:02 2005
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 1Eq5Jq-00056D-MH; Sat, 24 Dec 2005 04:04:02 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Eq5Jp-000568-EC
	for tsvwg@megatron.ietf.org; Sat, 24 Dec 2005 04:04: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 EAA22879
	for <tsvwg@ietf.org>; Sat, 24 Dec 2005 04:02: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 1Eq5My-00072B-Tq
	for tsvwg@ietf.org; Sat, 24 Dec 2005 04:07:20 -0500
Received: from [192.168.1.100] (p5481F9E2.dip.t-dialin.net [84.129.249.226])
	by ilsa.franken.de (Postfix) with ESMTP
	id 65F6C245C3; Sat, 24 Dec 2005 10:03:46 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43AC6FD1.2050204@middle.net>
References: <43AC6FD1.2050204@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <6D2A9088-8610-4B77-A4ED-B4BBB016F7C2@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP socket api: SCTP_RTOINFO vs. SCTP_ASSOCINFO vs.
	SCTP_STATUS
Date: Sat, 24 Dec 2005 10:04:13 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
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,

I do not see why the three options are redundant (only the peer rwnd  
seems to be part of the SCTP_STATUS
and the SCTP_ASSOCINFO). I think it is good to be able to access  
information by piece. I might
be interested in modifying the parameters in the SCTP_RTOINFO  
structure but I'm not interested in the
parameters of the other structures.

Therefore I think there is no need in replacing the three socket  
options by one.

Best regards
Michael

On Dec 23, 2005, at 10:44 PM, Mark Butler wrote:

> Hello Randall,
>
> I noticed the SCTP_RTOINFO, SCTP_ASSOCINFO, and SCTP_STATUS socket  
> options are redundant, and should probably be merged in some fashion.
> There should be a single read only SCTP_ASSOC_INFO option used to  
> get all the information about the association and a write only  
> SCTP_ASSOC_PARAMS option to set association parameters,  split the  
> way the read only SCTP_GET_PEER_ADDR_INFO is separated from the  
> write only SCTP_PEER_ADDR_PARAMS.    The _INFO suffix should always  
> indicate a read only option.  Also, the _GET_ infix in  
> SCTP_GET_PEER_ADDR_INFO is redundant, and ought to be removed.
>
> Comments anyone?
>
> - 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 Mon Dec 26 16:58:28 2005
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 1Er0MO-0002bE-0P; Mon, 26 Dec 2005 16:58:28 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er0MC-0002a2-K9
	for tsvwg@megatron.ietf.org; Mon, 26 Dec 2005 16:58:26 -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 QAA08442
	for <tsvwg@ietf.org>; Mon, 26 Dec 2005 16:57:07 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Er0Pr-0006bq-Q8
	for tsvwg@ietf.org; Mon, 26 Dec 2005 17:02:07 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	DHF87451; Mon, 26 Dec 2005 14:57:51 -0700
Message-ID: <43B0676F.5040003@middle.net>
Date: Mon, 26 Dec 2005 14:58: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
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 9182cfff02fae4f1b6e9349e01d62f32
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>
Subject: [Tsvwg] SCTP_MAXSEG socket option semantics
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 all,

The current sctpsocket draft specifies SCTP_MAXSEG as specifying the 
maximum data payload to put into any outgoing data chunk, or the maximum 
fragmentation size.  The first problem with this definition is that it 
is incomplete - if only the fragmentation size is adjusted, the packet 
bundling process may reassemble multiple fragments of the same message 
back into the same outgoing packet, which is surely not desirable behavior.

The presumed purpose of such an option is to reduce total packet size.  
Messages larges than SCTP_MAXSEG are not rejected - they are fragmented. 
But even in the absence of large messages, a series of small messages 
may add up to nearly the PMTU size, making the option relatively 
ineffective.

So I suggest that the definition of SCTP_MAXSEG be changed to both bound 
the data fragmentation point and to advise the packet bundler to switch 
to a new packet after the sum of the chunk lengths meets or exceeds 
MAXSEG + 20, where 20 is the data chunk header size.  This definition 
would be compatible with the TCP_MAXSEG option and the advisory MSS 
information from the route tables on many systems.

Comments anyone?

 - Mark

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



From tsvwg-bounces@ietf.org Mon Dec 26 17:19:26 2005
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 1Er0gg-0005BD-Pm; Mon, 26 Dec 2005 17:19:26 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er0gf-0005B8-72
	for tsvwg@megatron.ietf.org; Mon, 26 Dec 2005 17:19:25 -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 RAA10592
	for <tsvwg@ietf.org>; Mon, 26 Dec 2005 17:18:15 -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 1Er0kM-0007Jf-Dx
	for tsvwg@ietf.org; Mon, 26 Dec 2005 17:23:15 -0500
Received: from [192.168.1.100] (p5481D74D.dip.t-dialin.net [84.129.215.77])
	by ilsa.franken.de (Postfix) with ESMTP
	id DB6E9245CF; Mon, 26 Dec 2005 23:19:08 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43B0676F.5040003@middle.net>
References: <43B0676F.5040003@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics
Date: Mon, 26 Dec 2005 23:19:06 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 50a516d93fd399dc60588708fd9a3002
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 below.

Best regards
Michael

On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:

> Hello all,
>
> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  
> the maximum data payload to put into any outgoing data chunk, or  
> the maximum fragmentation size.  The first problem with this  
> definition is that it is incomplete - if only the fragmentation  
> size is adjusted, the packet bundling process may reassemble  
> multiple fragments of the same message back into the same outgoing  
> packet, which is surely not desirable behavior.
As far as I understand the option, it defines the maximum payload to  
put in a chunk. It is OK to
bundle multiple DATA chunks in one packet. This might be useful for  
example if the MTU shrinks. You can
than still continue without IP fragmentation.
>
> The presumed purpose of such an option is to reduce total packet  
> size.  Messages larges than SCTP_MAXSEG are not rejected - they are  
> fragmented. But even in the absence of large messages, a series of  
> small messages may add up to nearly the PMTU size, making the  
> option relatively ineffective.
>
> So I suggest that the definition of SCTP_MAXSEG be changed to both  
> bound the data fragmentation point and to advise the packet bundler  
> to switch to a new packet after the sum of the chunk lengths meets  
> or exceeds MAXSEG + 20, where 20 is the data chunk header size.   
> This definition would be compatible with the TCP_MAXSEG option and  
> the advisory MSS information from the route tables on many systems.
If you want to disallow bundling, you might want to have an  
additional socket option which disables bundling.
>
> Comments anyone?
>
> - 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 Mon Dec 26 19:09:23 2005
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 1Er2P5-0000oQ-I7; Mon, 26 Dec 2005 19:09:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er2P3-0000oL-Gs
	for tsvwg@megatron.ietf.org; Mon, 26 Dec 2005 19:09: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 TAA21563
	for <tsvwg@ietf.org>; Mon, 26 Dec 2005 19:08:13 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Er2Sl-0002GT-Ky
	for tsvwg@ietf.org; Mon, 26 Dec 2005 19:13:13 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	EMK74907; Mon, 26 Dec 2005 17:09:07 -0700
Message-ID: <43B08634.4050604@middle.net>
Date: Mon, 26 Dec 2005 17:09:24 -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_MAXSEG socket option semantics
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
In-Reply-To: <786DCE6D-4136-4D4B-90CB-F7828F0C200E@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: c1c65599517f9ac32519d043c37c5336
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.

>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  the 
>> maximum data payload to put into any outgoing data chunk, or  the 
>> maximum fragmentation size.  The first problem with this  definition 
>> is that it is incomplete - if only the fragmentation  size is 
>> adjusted, the packet bundling process may reassemble  multiple 
>> fragments of the same message back into the same outgoing  packet, 
>> which is surely not desirable behavior.
>
> As far as I understand the option, it defines the maximum payload to  
> put in a chunk. It is OK to
> bundle multiple DATA chunks in one packet. This might be useful for  
> example if the MTU shrinks. You can
> than still continue without IP fragmentation.

Yes that is what the documentation says.  But if you have a 1500 byte 
MTU, a 300 byte SCTP_MAXSEG, and then send a 1000 byte message - what 
happens?  As currently defined the 1000 byte message is broken up into 
four fragments, and then bundled back together in the same packet 
(assuming the implementation does transmit bundling).  That just wastes 
60 bytes of chunk headers and a bunch of CPU overhead.  What purpose has 
been served?

>>
>> The presumed purpose of such an option is to reduce total packet  
>> size.  Messages larges than SCTP_MAXSEG are not rejected - they are  
>> fragmented. But even in the absence of large messages, a series of  
>> small messages may add up to nearly the PMTU size, making the  option 
>> relatively ineffective.
>>
>> So I suggest that the definition of SCTP_MAXSEG be changed to both  
>> bound the data fragmentation point and to advise the packet bundler  
>> to switch to a new packet after the sum of the chunk lengths meets  
>> or exceeds MAXSEG + 20, where 20 is the data chunk header size.   
>> This definition would be compatible with the TCP_MAXSEG option and  
>> the advisory MSS information from the route tables on many systems.
>
> If you want to disallow bundling, you might want to have an  
> additional socket option which disables bundling.

It is not very helpful to turn it off completely.  I am just suggesting 
that the only useful implementation of SCTP_MAXSEG quits bundling when 
the packet is above the specified size (roughly speaking).  Thanks for 
your comments.

 - Mark

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



From tsvwg-bounces@ietf.org Mon Dec 26 19:19:22 2005
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 1Er2Yk-0001wU-9G; Mon, 26 Dec 2005 19:19:22 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er2Yi-0001vy-KY
	for tsvwg@megatron.ietf.org; Mon, 26 Dec 2005 19:19: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 TAA22433
	for <tsvwg@ietf.org>; Mon, 26 Dec 2005 19:18:12 -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 1Er2cQ-0002YP-0Z
	for tsvwg@ietf.org; Mon, 26 Dec 2005 19:23:12 -0500
Received: from [192.168.1.100] (p5481EB1E.dip.t-dialin.net [84.129.235.30])
	by ilsa.franken.de (Postfix) with ESMTP
	id C7A1F245CB; Tue, 27 Dec 2005 01:19:10 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43B08634.4050604@middle.net>
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B08634.4050604@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <39197110-D5A5-4A77-B89E-FA868E88710D@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics
Date: Tue, 27 Dec 2005 01:19:07 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 244a2fd369eaf00ce6820a760a3de2e8
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 Dec 27, 2005, at 1:09 AM, Mark Butler wrote:

> Hello Michael - comments below.
>
>>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying   
>>> the maximum data payload to put into any outgoing data chunk, or   
>>> the maximum fragmentation size.  The first problem with this   
>>> definition is that it is incomplete - if only the fragmentation   
>>> size is adjusted, the packet bundling process may reassemble   
>>> multiple fragments of the same message back into the same  
>>> outgoing  packet, which is surely not desirable behavior.
>>
>> As far as I understand the option, it defines the maximum payload  
>> to  put in a chunk. It is OK to
>> bundle multiple DATA chunks in one packet. This might be useful  
>> for  example if the MTU shrinks. You can
>> than still continue without IP fragmentation.
>
> Yes that is what the documentation says.  But if you have a 1500  
> byte MTU, a 300 byte SCTP_MAXSEG, and then send a 1000 byte message  
> - what happens?  As currently defined the 1000 byte message is  
> broken up into four fragments, and then bundled back together in  
> the same packet (assuming the implementation does transmit  
> bundling).  That just wastes 60 bytes of chunk headers and a bunch  
> of CPU overhead.  What purpose has been served?
Well, as I said: If the MTU drops to let us say 500 byte, you can  
retransmit the chunks in four packets
without using IP fragmentation.
I do not this that something is 'wasted'. The user requested it.
>
>>>
>>> The presumed purpose of such an option is to reduce total packet   
>>> size.  Messages larges than SCTP_MAXSEG are not rejected - they  
>>> are  fragmented. But even in the absence of large messages, a  
>>> series of  small messages may add up to nearly the PMTU size,  
>>> making the  option relatively ineffective.
>>>
>>> So I suggest that the definition of SCTP_MAXSEG be changed to  
>>> both  bound the data fragmentation point and to advise the packet  
>>> bundler  to switch to a new packet after the sum of the chunk  
>>> lengths meets  or exceeds MAXSEG + 20, where 20 is the data chunk  
>>> header size.   This definition would be compatible with the  
>>> TCP_MAXSEG option and  the advisory MSS information from the  
>>> route tables on many systems.
>>
>> If you want to disallow bundling, you might want to have an   
>> additional socket option which disables bundling.
>
> It is not very helpful to turn it off completely.  I am just  
> suggesting that the only useful implementation of SCTP_MAXSEG quits  
> bundling when the packet is above the specified size (roughly  
> speaking).  Thanks for your comments.
But you could get your behaviour by combining the two socket options.
>
> - Mark
>


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



From tsvwg-bounces@ietf.org Mon Dec 26 23:03:52 2005
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 1Er63z-0002yY-QD; Mon, 26 Dec 2005 23:03:51 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er63x-0002wK-53
	for tsvwg@megatron.ietf.org; Mon, 26 Dec 2005 23:03:49 -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 XAA14039
	for <tsvwg@ietf.org>; Mon, 26 Dec 2005 23:02:39 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Er67i-0000uE-Ii
	for tsvwg@ietf.org; Mon, 26 Dec 2005 23:07:43 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	EQE82736; Mon, 26 Dec 2005 21:03:36 -0700
Message-ID: <43B0BD2A.6000200@middle.net>
Date: Mon, 26 Dec 2005 21:03:54 -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_MAXSEG socket option semantics
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B08634.4050604@middle.net>
	<39197110-D5A5-4A77-B89E-FA868E88710D@lurchi.franken.de>
In-Reply-To: <39197110-D5A5-4A77-B89E-FA868E88710D@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: f60d0f7806b0c40781eee6b9cd0b2135
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

Michael Tuexen wrote:

>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying   
>> the maximum data payload to put into any outgoing data chunk, or   
>> the maximum fragmentation size.  The first problem with this   
>> definition is that it is incomplete - if only the fragmentation   
>> size is adjusted, the packet bundling process may reassemble   
>> multiple fragments of the same message back into the same  outgoing  
>> packet, which is surely not desirable behavior.
>>
>>>
>>> As far as I understand the option, it defines the maximum payload  
>>> to  put in a chunk. It is OK to
>>> bundle multiple DATA chunks in one packet. This might be useful  
>>> for  example if the MTU shrinks. You can
>>> than still continue without IP fragmentation.
>>
>>
>> Yes that is what the documentation says.  But if you have a 1500  
>> byte MTU, a 300 byte SCTP_MAXSEG, and then send a 1000 byte message  
>> - what happens?  As currently defined the 1000 byte message is  
>> broken up into four fragments, and then bundled back together in  the 
>> same packet (assuming the implementation does transmit  bundling).  
>> That just wastes 60 bytes of chunk headers and a bunch  of CPU 
>> overhead.  What purpose has been served?
>
> Well, as I said: If the MTU drops to let us say 500 byte, you can  
> retransmit the chunks in four packets
> without using IP fragmentation.
> I do not this that something is 'wasted'. The user requested it.

Yes - however the differential cost is heavy and the differential 
benefit is rare.  Also, If the option is not going to behave like 
TCP_MAXSEG, it should be called something else.  Otherwise it is 
misleading.  And then when somebody wants a TCP_MAXSEG like option they 
have to call it something like SCTP_SHOULD_HAVE_BEEN_MAXSEG.

Extending the semantics would preserve backward compatibility - that of 
guaranteeing chunk payloads are no larger than the specified size.  So 
why not enhance compatibility and solve the general packet size problem 
as well?  - something that has common and well understood benefits in 
many environments, rather than something that incurs ongoing costs with 
much reduced benefit.

Say for example that I am on a local net with 9000 byte jumbo frames and 
PMTU discovery enabled.  I set SCTP_MAXSEG to 1400, connect to a remote 
SCTP host on a traditional Ethernet network and send a 64 KB message, 
and PMTU. So a couple of ~ 8500 byte packets go out with six fragments 
from the same message each with the DF bit set.  When the first packet 
reaches the remote gateway router, it will be dropped and an ICMP 
datagram too big message will be returned, and eventually the source 
stack will discover the PMTU and send the right size packets.  Of 
course, the chunks (all 46 of them) are the right size to go through, 
after this multiple RTT process has completed, the retransmit timer has 
expired, etc.

At the same time, a similar TCP connection is established, same network 
setup, PMTU discovery enabled, TCP_MAXSEG set to 1400, a 64KB message..  
The TCP stack breaks up the 64KB write into 46 packets with the DF bit 
set, sends them as the congestion window allows, and all of them arrive 
without an expensive PMTU discovery process.

Likewise, if SCTP_MAXSEG had similar extended semantics, all the chunks 
would have payloads less than 1400 bytes (as promised today), and the 
packets would all go through without PMTU discovery, just like TCP.

 - Mark


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



From tsvwg-bounces@ietf.org Tue Dec 27 02:21:17 2005
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 1Er993-0005Sg-E9; Tue, 27 Dec 2005 02:21:17 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Er991-0005SY-1X
	for tsvwg@megatron.ietf.org; Tue, 27 Dec 2005 02:21: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 CAA03606
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 02:20:03 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Er9Cl-00073O-K0
	for tsvwg@ietf.org; Tue, 27 Dec 2005 02:25:08 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	ETV81258; Tue, 27 Dec 2005 00:20:58 -0700
Message-ID: <43B0EB6E.9010109@middle.net>
Date: Tue, 27 Dec 2005 00:21: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: Vern Paxson <vern@icir.org>
Subject: Re: [Tsvwg] SCTP RTO / RTTVAR calcuation - difference with RFC2988
References: <200512270156.jBR1uEO2057407@jaguar.icir.org>
In-Reply-To: <200512270156.jBR1uEO2057407@jaguar.icir.org>
X-Spam-Score: 0.5 (/)
X-Scan-Signature: 7e439b86d3292ef5adf93b694a43a576
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="===============1890582897=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

Vern Paxson wrote:

>>>   RTO <- SRTT + max (G, K*RTTVAR)
>>>   where K = 4
>>>
>>>RFC2960 on the other hand specifies:
>>>
>>>   Whenever RTTVAR is computed, if RTTVAR = 0, then adjust RTTVAR <- G.
>>>    RTO <- SRTT + 4 * RTTVAR
>>>      
>>>
>
>I don't recall why we dropped the line for RFC 2988, and don't see any
>indication in my email archives about this either.  In general, it seems
>sound to me to not presume you can accurately measure anything smaller than
>your clock granularity, and since it's better for RTTVAR to be conservative,
>the rule in RFC 2960 strikes me as correct.  Trying to push on it further
>for things like optimizing ECNE tests strikes me as imprudent; at best,
>it'll gain just a bit, but at worst, you'll make significant errors.
>  
>
Thanks for checking.   Of course, how RTTVAR is used an independent 
issue.  My main point is that to the precision of the best available 
arithmetic, RTTVAR may be zero, and collapsing it with the RTTVAR = 1 
case loses information.  If the SRTT is 1, it is unlikely that the RTT 
variation is properly 1 as well, on most paths anyways.  The difference 
for a stable 10 ms path (with a 10 ms clock) is 20 ms for TCP and 50 ms 
for SCTP.   Or 10 ms vs 40 ms for paths too fast to measure.   I think 
the only reason this is not noticed is that RTO Min is normally one 
second or more, with 10 ms clocks.

One other anomaly with the specification is the if RTTVAR = 0 line 
appears to written only for clock granularity arithmetic, where the use 
of "G" implies rather that G may be something other than 1.  If one is 
using fixed point arithmetic to get more accurate results for whatever 
reason, the RFC2960 rule is potentially unstable as written. (i.e. if 
that is what is wanted it should be written if RTTVAR is less than G 
adjust RTTVAR <- G). 

Suppose I measure my RTTs as 0, 0, 0, G, 0, 0, 0, G, 0, 0, 0, G,....  If 
I use arithmetic with G=256, alpha=1/4 and beta=1/8 I should get an SRTT 
sequence of  0, 0, 0, 32, 28, 24, 21, 50, 43, 37, 32, 60,... and RTTVAR 
sequence of 0, 0, 0, 64, 48, 36, 27, 84, 63, 47, 35, 90, 67, 50, 37, 91, 
...  Note that the SRTT and the RTTVAR are both significantly less than 
G/2 and would round to zero for conversions.  After the last sample I 
should get a safe RTT of 424 or about 1.65 G, which would round up to 2 
clock ticks.

But if I used the RFC2960 equivalent rule of rounding RTTVAR up to G  
when less than G, I would the same SRTT sequance and an RTTVAR sequence 
of 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, .... leading 
to a safe RTT of 1084 or about 4.23 G, which would round up to 5 clock 
ticks.

In a G = 1 environment I would get SRTT of all zeroes, an RTTVAR of all 
zeroes with RFC2988 and a safe RTT of 1. With RFC2960, I would get 
RTTVARs all one and a safe RTT of 5. 

If one is doing something like not reducing the congestion window based 
on ECN echo information more than once every RTT or window of data (as 
specified by RFC3168 and 2481) you must  use some kind of formula - it 
is not an optimization issue, but necessary behavior - preferably one 
that avoids common double congestion window reductions from a single ECN 
marked packet.   I suppose the best solution is to self clock with data 
from the SACK return path instead of trying to use low precision timers.

 - Mark

.

--------------020105010005020406070201
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">
Vern Paxson wrote:<br>
<blockquote cite="mid200512270156.jBR1uEO2057407@jaguar.icir.org"
 type="cite">
  <blockquote type="cite">
    <blockquote type="cite">
      <pre wrap="">   RTO &lt;- SRTT + max (G, K*RTTVAR)
   where K = 4

RFC2960 on the other hand specifies:

   Whenever RTTVAR is computed, if RTTVAR = 0, then adjust RTTVAR &lt;- G.
    RTO &lt;- SRTT + 4 * RTTVAR
      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->
I don't recall why we dropped the line for RFC 2988, and don't see any
indication in my email archives about this either.  In general, it seems
sound to me to not presume you can accurately measure anything smaller than
your clock granularity, and since it's better for RTTVAR to be conservative,
the rule in RFC 2960 strikes me as correct.  Trying to push on it further
for things like optimizing ECNE tests strikes me as imprudent; at best,
it'll gain just a bit, but at worst, you'll make significant errors.
  </pre>
</blockquote>
Thanks for checking.&nbsp;&nbsp; Of course, how RTTVAR is used an independent
issue.&nbsp; My main point is that to the precision of the best available
arithmetic, RTTVAR may be zero, and collapsing it with the RTTVAR = 1
case loses information.&nbsp; If the SRTT is 1, it is unlikely that the RTT
variation is properly 1 as well, on most paths anyways.&nbsp; The difference
for a stable 10 ms path (with a 10 ms clock) is 20 ms for TCP and 50 ms
for SCTP.&nbsp;&nbsp; Or 10 ms vs 40 ms for paths too fast to measure.&nbsp;&nbsp; I think
the only reason this is not noticed is that RTO Min is normally one
second or more, with 10 ms clocks.<br>
<br>
One other anomaly with the specification is the if RTTVAR = 0 line
appears to written only for clock granularity arithmetic, where the use
of "G" implies rather that G may be something other than 1.&nbsp; If one is
using fixed point arithmetic to get more accurate results for whatever
reason, the RFC2960 rule is potentially unstable as written. (i.e. if
that is what is wanted it should be written if RTTVAR is less than G
adjust RTTVAR &lt;- G).&nbsp; <br>
<br>
Suppose I measure my RTTs as 0, 0, 0, G, 0, 0, 0, G, 0, 0, 0, G,....&nbsp;
If I use arithmetic with G=256, alpha=1/4 and beta=1/8 I should get an
SRTT sequence of&nbsp; 0, 0, 0, 32, 28, 24, 21, 50, 43, 37, 32, 60,... and
RTTVAR sequence of 0, 0, 0, 64, 48, 36, 27, 84, 63, 47, 35, 90, 67, 50,
37, 91, ...&nbsp; Note that the SRTT and the RTTVAR are both significantly
less than G/2 and would round to zero for conversions.&nbsp; After the last
sample I should get a safe RTT of 424 or about 1.65 G, which would
round up to 2 clock ticks. <br>
<br>
But if I used the RFC2960 equivalent rule of rounding RTTVAR up to G&nbsp;
when less than G, I would the same SRTT sequance and an RTTVAR sequence
of 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, 256, .... leading
to a safe RTT of 1084 or about 4.23 G, which would round up to 5 clock
ticks.<br>
<br>
In a G = 1 environment I would get SRTT of all zeroes, an RTTVAR of all
zeroes with RFC2988 and a safe RTT of 1. With RFC2960, I would get
RTTVARs all one and a safe RTT of 5.&nbsp; <br>
<br>
If one is doing something like not reducing the congestion window based
on ECN echo information more than once every RTT or window of data (as
specified by RFC3168 and 2481) you must&nbsp; use some kind of formula - it
is not an optimization issue, but necessary behavior - preferably one
that avoids common double congestion window reductions from a single
ECN marked packet.&nbsp;&nbsp; I suppose the best solution is to self clock with
data from the SACK return path instead of trying to use low precision
timers.<br>
<br>
&nbsp;- Mark<br>
<br>
.<br>
</body>
</html>

--------------020105010005020406070201--


--===============1890582897==
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

--===============1890582897==--




From tsvwg-bounces@ietf.org Tue Dec 27 07:17:51 2005
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 1ErDm3-00046K-R1; Tue, 27 Dec 2005 07:17:51 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ErDm2-00045Z-JY
	for tsvwg@megatron.ietf.org; Tue, 27 Dec 2005 07:17:51 -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 HAA07194
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 07:16: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 1ErDps-00011R-71
	for tsvwg@ietf.org; Tue, 27 Dec 2005 07:21:48 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBRCHjXE012690; 
	Tue, 27 Dec 2005 07:17:46 -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: <43B130E1.8070309@stewart.chicago.il.us>
Date: Tue, 27 Dec 2005 07:17:37 -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_MAXSEG socket option semantics
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
In-Reply-To: <786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: cd26b070c2577ac175cd3a6d878c6248
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 below.
> 
> Best regards
> Michael
> 
> On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:
> 
>> Hello all,
>>
>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  the 
>> maximum data payload to put into any outgoing data chunk, or  the 
>> maximum fragmentation size.  The first problem with this  definition 
>> is that it is incomplete - if only the fragmentation  size is 
>> adjusted, the packet bundling process may reassemble  multiple 
>> fragments of the same message back into the same outgoing  packet, 
>> which is surely not desirable behavior.
> 
> As far as I understand the option, it defines the maximum payload to  
> put in a chunk. It is OK to
> bundle multiple DATA chunks in one packet. This might be useful for  
> example if the MTU shrinks. You can
> than still continue without IP fragmentation.

Yep.. this is its purpose ... I believe the
RDDP folks expressed a desire to control this for
PMTU changes...

> 
>>
>> The presumed purpose of such an option is to reduce total packet  
>> size.  Messages larges than SCTP_MAXSEG are not rejected - they are  
>> fragmented. But even in the absence of large messages, a series of  
>> small messages may add up to nearly the PMTU size, making the  option 
>> relatively ineffective.
>>
>> So I suggest that the definition of SCTP_MAXSEG be changed to both  
>> bound the data fragmentation point and to advise the packet bundler  
>> to switch to a new packet after the sum of the chunk lengths meets  or 
>> exceeds MAXSEG + 20, where 20 is the data chunk header size.   This 
>> definition would be compatible with the TCP_MAXSEG option and  the 
>> advisory MSS information from the route tables on many systems.
> 
> If you want to disallow bundling, you might want to have an  additional 
> socket option which disables bundling.

This already exists .. its defined as follows:
"
7.1.12.  Enable/Disable message fragmentation (SCTP_DISABLE_FRAGMENTS)

    This option is a on/off flag and is passed an integer where a non-
    zero is on and a zero is off.  If enabled no SCTP message
    fragmentation will be performed.  Instead if a message being sent
    exceeds the current PMTU size, the message will NOT be sent and
    instead a error will be indicated to the user.
"

R
> 
>>
>> Comments anyone?
>>
>> - 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 Dec 27 18:57:24 2005
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 1ErOh2-0004B0-Gd; Tue, 27 Dec 2005 18:57:24 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ErOgz-00045C-R1
	for tsvwg@megatron.ietf.org; Tue, 27 Dec 2005 18:57: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 SAA08466
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 18:56:11 -0500 (EST)
Received: from e35.co.us.ibm.com ([32.97.110.153])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ErOkv-0002EA-RM
	for tsvwg@ietf.org; Tue, 27 Dec 2005 19:01:26 -0500
Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com
	[9.17.195.11])
	by e35.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id jBRNvCjb005399
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 18:57:12 -0500
Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168])
	by westrelay02.boulder.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id
	jBRNu3cH268572 for <tsvwg@ietf.org>; Tue, 27 Dec 2005 16:56:03 -0700
Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1])
	by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id
	jBRNvBtt016829 for <tsvwg@ietf.org>; Tue, 27 Dec 2005 16:57:11 -0700
Received: from w-sridhar2.beaverton.ibm.com (w-sridhar2.beaverton.ibm.com
	[9.47.18.20])
	by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id
	jBRNvB1A016804; Tue, 27 Dec 2005 16:57:11 -0700
From: Sridhar Samudrala <sri@us.ibm.com>
To: Randall Stewart <randall@stewart.chicago.il.us>
In-Reply-To: <43AA9BE2.7070901@stewart.chicago.il.us>
References: <43AA9BE2.7070901@stewart.chicago.il.us>
Content-Type: text/plain
Date: Tue, 27 Dec 2005 15:55:35 -0800
Message-Id: <1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 (2.0.4-7) 
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 34d35111647d654d033d58d318c0d21a
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <tuexen@fh-muenster.de>,
	Kacheong Poon <kacheong.poon@sun.com>, TSWG <tsvwg@ietf.org>
Subject: [Tsvwg] Re: SCTP Socket API
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

On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
> All:
> 
> 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:
> 
> 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.
instead, i guess MSG_TRUNC flag will be set.

> 
> 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.
> 
> 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.
> 
> 
> 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 think this should be allowed to be set only if SCTP_FRAGMENT_INTERLEAVE 
is supported and enabled.

> 
> 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
> 
> 
> R


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



From tsvwg-bounces@ietf.org Tue Dec 27 19:16:54 2005
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 1ErOzu-0005wy-8y; Tue, 27 Dec 2005 19:16:54 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ErOzr-0005ll-Cc
	for tsvwg@megatron.ietf.org; Tue, 27 Dec 2005 19:16:51 -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 TAA16616
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 19:15:40 -0500 (EST)
Received: from e36.co.us.ibm.com ([32.97.110.154])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ErP3k-00051Q-JJ
	for tsvwg@ietf.org; Tue, 27 Dec 2005 19:20:55 -0500
Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com
	[9.17.195.106])
	by e36.co.us.ibm.com (8.12.11/8.12.11) with ESMTP id jBS0GcEM008892
	for <tsvwg@ietf.org>; Tue, 27 Dec 2005 19:16:38 -0500
Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168])
	by d03relay04.boulder.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id
	jBS0ITZg166126 for <tsvwg@ietf.org>; Tue, 27 Dec 2005 17:18:29 -0700
Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1])
	by d03av02.boulder.ibm.com (8.12.11/8.13.3) with ESMTP id
	jBS0GX8r022173 for <tsvwg@ietf.org>; Tue, 27 Dec 2005 17:16:33 -0700
Received: from w-sridhar2.beaverton.ibm.com (w-sridhar2.beaverton.ibm.com
	[9.47.18.20])
	by d03av02.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id
	jBS0GWvY022164; Tue, 27 Dec 2005 17:16:32 -0700
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics
From: Sridhar Samudrala <sri@us.ibm.com>
To: Randall Stewart <randall@stewart.chicago.il.us>
In-Reply-To: <43B130E1.8070309@stewart.chicago.il.us>
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
Content-Type: text/plain
Date: Tue, 27 Dec 2005 16:14:57 -0800
Message-Id: <1135728897.6321.41.camel@w-sridhar2.beaverton.ibm.com>
Mime-Version: 1.0
X-Mailer: Evolution 2.0.4 (2.0.4-7) 
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 34d35111647d654d033d58d318c0d21a
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>, 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

On Tue, 2005-12-27 at 07:17 -0500, Randall Stewart wrote:
> Michael Tuexen wrote:
> > Hi Mark,
> > 
> > see my comments below.
> > 
> > Best regards
> > Michael
> > 
> > On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:
> > 
> >> Hello all,
> >>
> >> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  the 
> >> maximum data payload to put into any outgoing data chunk, or  the 
> >> maximum fragmentation size.  The first problem with this  definition 
> >> is that it is incomplete - if only the fragmentation  size is 
> >> adjusted, the packet bundling process may reassemble  multiple 
> >> fragments of the same message back into the same outgoing  packet, 
> >> which is surely not desirable behavior.
> > 
> > As far as I understand the option, it defines the maximum payload to  
> > put in a chunk. It is OK to
> > bundle multiple DATA chunks in one packet. This might be useful for  
> > example if the MTU shrinks. You can
> > than still continue without IP fragmentation.
> 
> Yep.. this is its purpose ... I believe the
> RDDP folks expressed a desire to control this for
> PMTU changes...
> 
> > 
> >>
> >> The presumed purpose of such an option is to reduce total packet  
> >> size.  Messages larges than SCTP_MAXSEG are not rejected - they are  
> >> fragmented. But even in the absence of large messages, a series of  
> >> small messages may add up to nearly the PMTU size, making the  option 
> >> relatively ineffective.
> >>
> >> So I suggest that the definition of SCTP_MAXSEG be changed to both  
> >> bound the data fragmentation point and to advise the packet bundler  
> >> to switch to a new packet after the sum of the chunk lengths meets  or 
> >> exceeds MAXSEG + 20, where 20 is the data chunk header size.   This 
> >> definition would be compatible with the TCP_MAXSEG option and  the 
> >> advisory MSS information from the route tables on many systems.
> > 
> > If you want to disallow bundling, you might want to have an  additional 
> > socket option which disables bundling.
> 
> This already exists .. its defined as follows:

I think what Mark is suggesting is a SCTP_DISABLE_BUNDLING option and
would like this to be on if SCTP_MAXSEG is set.

Currently SCTP_MAXSEG is defined as the maximum size of a SCTP data chunk
payload. Instead he seems to be suggesting this to be treated as the maximum
size of SCTP packet payload.
I think both the definitions may be useful in different scenarios. So i
would suggest adding a new option SCTP_DISABLE_BUNDLING and leave the
definition of SCTP_MAXSEG as it is now.

Setting SCTP_MAXSEG and enabling SCTP_DISABLE_BUNDLING should give what
Mark wants.

Thanks
Sridhar

> "
> 7.1.12.  Enable/Disable message fragmentation (SCTP_DISABLE_FRAGMENTS)
> 
>     This option is a on/off flag and is passed an integer where a non-
>     zero is on and a zero is off.  If enabled no SCTP message
>     fragmentation will be performed.  Instead if a message being sent
>     exceeds the current PMTU size, the message will NOT be sent and
>     instead a error will be indicated to the user.
> "
> 
> R
> > 
> >>
> >> Comments anyone?
> >>
> >> - 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 Dec 28 17:58:25 2005
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 1ErkFV-0005cW-UK; Wed, 28 Dec 2005 17:58:25 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ErkFG-0005Z6-KH
	for tsvwg@megatron.ietf.org; Wed, 28 Dec 2005 17:58:24 -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 RAA00817
	for <tsvwg@ietf.org>; Wed, 28 Dec 2005 17:56:58 -0500 (EST)
Received: from e5.ny.us.ibm.com ([32.97.182.145])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1ErkJM-00015p-IC
	for tsvwg@ietf.org; Wed, 28 Dec 2005 18:02:24 -0500
Received: from d01relay02.pok.ibm.com (d01relay02.pok.ibm.com [9.56.227.234])
	by e5.ny.us.ibm.com (8.12.11/8.12.11) with ESMTP id jBSMvpGW024395
	for <tsvwg@ietf.org>; Wed, 28 Dec 2005 17:57:51 -0500
Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215])
	by d01relay02.pok.ibm.com (8.12.10/NCO/VERS6.8) with ESMTP id
	jBSMvpa4116482 for <tsvwg@ietf.org>; Wed, 28 Dec 2005 17:57:52 -0500
Received: from d01av01.pok.ibm.com (loopback [127.0.0.1])
	by d01av01.pok.ibm.com (8.12.11/8.13.3) with ESMTP id jBSMvpKx009938
	for <tsvwg@ietf.org>; Wed, 28 Dec 2005 17:57:51 -0500
Received: from [127.0.0.1] (sig-9-48-58-121.mts.ibm.com [9.48.58.121])
	by d01av01.pok.ibm.com (8.12.11/8.12.11) with ESMTP id jBSMvmof009863; 
	Wed, 28 Dec 2005 17:57:50 -0500
Message-ID: <43B3186D.7020106@us.ibm.com>
Date: Wed, 28 Dec 2005 14:57:49 -0800
From: Sridhar Samudrala <sri@us.ibm.com>
User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Michael Tuexen <tuexen@fh-muenster.de>
Subject: Re: [Tsvwg] Re: SCTP Socket API
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>
	<559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>
In-Reply-To: <559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 2e8fc473f5174be667965460bd5288ba
Content-Transfer-Encoding: 7bit
Cc: Kacheong Poon <kacheong.poon@sun.com>,
	Randall Stewart <randall@stewart.chicago.il.us>, 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 Tuexen wrote:

> Dear all,
>
> see my comments in-line.
>
> Best regards
> Michael
>
> On Dec 28, 2005, at 12:55 AM, Sridhar Samudrala wrote:
>
>> On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
>>
>>> All:
>>>
>>> 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:
>>>
>>> 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.
>>
>> instead, i guess MSG_TRUNC flag will be set.
>
> I agree with the MSG_TRUNC flag. However, I could imagine that I want to
> use this functionality when I have some message size limits of the upper
> layer protocol and want to simplify my receive code. This would make  
> it simple
> to just ignore packets which are larger than the maximum size.
> But I do not see that this requires a SOCK_DGRAM. I would like to use  
> the
> 1-to-1 style API but still have this feature. So can we make it a  
> socket option
> for SOCK_STREAM and SOCK_SEQ_PACKET?  I do not know if than an  
> additional SOCK_DGRAM
> is needed...

Yes, i would also prefer a socket option instead of a a new SOCK_DGRAM 
socket type.

>>
>>>
>>> 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 would be a good option providing the above functionality.
> If the user sets this option, he simply tells the kernel that
> he will never want more bytes. If he provides less byte in a
> receive call, the procedure of A) apply. I do not know if it would
> make sense to send (optionally) also an ERROR chunk to let the peer
> know that part of the message was lost. I'm nor sure that
> it is good that the receiving SCTP side discards (part of) a message
> and SACKs it and the peer thinks that SCTP has delivered it to the
> user.
>
>>>
>>> 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.
>>>
>>>
>>> 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 think this should be allowed to be set only if  
>> SCTP_FRAGMENT_INTERLEAVE
>> is supported and enabled.
>
> Why?

May be we don't need this restriction if we only allow single 
outstanding partial delivery
by default and allow multiple partial deliveries on different 
streams/associations when
SCTP_FRAGMENT_INTERLEAVE is enabled.

>>
>>>
>>> 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
>>>
>>>
>>> R
>>
>>
>>
>> _______________________________________________
>> 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 Thu Dec 29 11:24:23 2005
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 1Es0Zj-0002fT-SO; Thu, 29 Dec 2005 11:24:23 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Es0Zd-0002dV-By
	for tsvwg@megatron.ietf.org; Thu, 29 Dec 2005 11:24:21 -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 LAA14790
	for <tsvwg@ietf.org>; Thu, 29 Dec 2005 11:23: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 1Es0dq-0002YT-9U
	for tsvwg@ietf.org; Thu, 29 Dec 2005 11:28:38 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBTGO2XE028459; 
	Thu, 29 Dec 2005 11:24:02 -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: <43B40DA2.4030605@stewart.chicago.il.us>
Date: Thu, 29 Dec 2005 11:24: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: Sridhar Samudrala <sri@us.ibm.com>
Subject: Re: [Tsvwg] Re: SCTP Socket API
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>
	<559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>
	<43B3186D.7020106@us.ibm.com>
In-Reply-To: <43B3186D.7020106@us.ibm.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: ec7c6dab5a62df223002ae71b5179d41
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <tuexen@fh-muenster.de>,
	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

One comment inline below :->

Sridhar Samudrala wrote:
> Michael Tuexen wrote:
> 
>> Dear all,
>>
>> see my comments in-line.
>>
>> Best regards
>> Michael
>>
>> On Dec 28, 2005, at 12:55 AM, Sridhar Samudrala wrote:
>>
>>> On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
>>>
>>>> All:
>>>>
>>>> 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:
>>>>
>>>> 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.
>>>
>>>
>>> instead, i guess MSG_TRUNC flag will be set.
>>
>>
>> I agree with the MSG_TRUNC flag. However, I could imagine that I want to
>> use this functionality when I have some message size limits of the upper
>> layer protocol and want to simplify my receive code. This would make  
>> it simple
>> to just ignore packets which are larger than the maximum size.
>> But I do not see that this requires a SOCK_DGRAM. I would like to use  
>> the
>> 1-to-1 style API but still have this feature. So can we make it a  
>> socket option
>> for SOCK_STREAM and SOCK_SEQ_PACKET?  I do not know if than an  
>> additional SOCK_DGRAM
>> is needed...
> 
> 
> Yes, i would also prefer a socket option instead of a a new SOCK_DGRAM 
> socket type.

I think I agree with this.. I would rather have a
SCTP_SOCKET_ATOMIC

option of some sort.. instead of a new SOCK_DGRAM type...

That would then allow someone to setup the 1-1 or the 1-M
any way they wanted...

I would still like to hear Kacheong's thoughts as well.. he
may refine my opinion more :-D

I know he is on Holiday.. so we will have to wait
for any rev of the spect to after the first of the
year... that will give time for anyone else as well (who
is on holiday) to respond too ...

R

> 
>>>
>>>>
>>>> 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 would be a good option providing the above functionality.
>> If the user sets this option, he simply tells the kernel that
>> he will never want more bytes. If he provides less byte in a
>> receive call, the procedure of A) apply. I do not know if it would
>> make sense to send (optionally) also an ERROR chunk to let the peer
>> know that part of the message was lost. I'm nor sure that
>> it is good that the receiving SCTP side discards (part of) a message
>> and SACKs it and the peer thinks that SCTP has delivered it to the
>> user.
>>
>>>>
>>>> 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.
>>>>
>>>>
>>>> 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 think this should be allowed to be set only if  
>>> SCTP_FRAGMENT_INTERLEAVE
>>> is supported and enabled.
>>
>>
>> Why?
> 
> 
> May be we don't need this restriction if we only allow single 
> outstanding partial delivery
> by default and allow multiple partial deliveries on different 
> streams/associations when
> SCTP_FRAGMENT_INTERLEAVE is enabled.
> 
>>>
>>>>
>>>> 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
>>>>
>>>>
>>>> R
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> 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 Dec 29 17:56:21 2005
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 1Es6h3-00072N-AB; Thu, 29 Dec 2005 17:56:21 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Es6gx-00072B-Rl
	for tsvwg@megatron.ietf.org; Thu, 29 Dec 2005 17:56:19 -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 RAA28545
	for <tsvwg@ietf.org>; Thu, 29 Dec 2005 17:55:04 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Es6lD-00084h-K3
	for tsvwg@ietf.org; Thu, 29 Dec 2005 18:00:44 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	GIG79648; Thu, 29 Dec 2005 15:55:48 -0700
Message-ID: <43B46989.8020901@middle.net>
Date: Thu, 29 Dec 2005 15:56: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: Randall Stewart <randall@stewart.chicago.il.us>
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
In-Reply-To: <43B130E1.8070309@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: e1b0e72ff1bbd457ceef31828f216a86
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>, 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 Randall, Comments inline...

Randall Stewart wrote:

> Michael Tuexen wrote:
>
>>
>> On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:
>>
>>>
>>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  
>>> the maximum data payload to put into any outgoing data chunk, or  
>>> the maximum fragmentation size.  The first problem with this  
>>> definition is that it is incomplete - if only the fragmentation  
>>> size is adjusted, the packet bundling process may reassemble  
>>> multiple fragments of the same message back into the same outgoing  
>>> packet, which is surely not desirable behavior.
>>
>>
>> As far as I understand the option, it defines the maximum payload to  
>> put in a chunk. It is OK to
>> bundle multiple DATA chunks in one packet. This might be useful for  
>> example if the MTU shrinks. You can
>> than still continue without IP fragmentation.
>
>
> Yep.. this is its purpose ... I believe the
> RDDP folks expressed a desire to control this for
> PMTU changes...

The RDDP SCTP draft says that fragmentation at the SCTP layer should be 
avoided.  However the SCTP_MAXSEG option cannot be used to get _less_ 
SCTP layer fragmentation, only _more_ SCTP layer fragmentation.  What an 
RDDP SCTP implementation needs is a way to determine the current maximum 
data chunk size that will not get fragmented.  This can be done with a 
getsockopt(...,SCTP_STATUS,...) call.  If the RDDP layer has better 
knowledge of the true PMTU, it can reduce the message size by itself.

SCTP needs a packet level MSS, like TCP.  A typical reason to clamp the 
MSS is to prevent PMTU discovery delays when you know that the PMTU is 
lower (or likely to be lower) than first hop MTU.  Another common 
application is limiting queuing delays on transit routers.  SCTP_MAXSEG 
doesn't currently help here, because it doesn't limit the packet size, 
only the fragment size. The primary motivation for SCTP is reduced 
message delivery latency relative to TCP,  correct? 

I can see the utility of two independent options.  In the name of not 
maintaining a radically different semantic for "Maximum Segment Size" 
than TCP and other protocols (spread throughout routing utilities, 
advisory routing metrics, and network documentation everywhere) I 
recommend that we make SCTP_MAXSEG behave like TCP_MAXSEG, and adopt a 
compatible definition of the SCTP MSS.

Then we should rename the option to clamp the data fragmentation point. 
Perhaps SCTP_MAX_DATA_SEG.  This is pretty obscure - the only 
differential use case is to avoid temporary IP layer fragmentation after 
PMTU discovery without the minimal additional overhead of reducing the 
packet size to match. 

MSS negotiation like TCP would also help.  This would require an INIT / 
INIT ACK parameter that advertised the local MSS.  On reception, each 
peer would then normally reduce its sending MSS accordingly. And in this 
context I mean a packet size based MSS like what TCP has: MSS  = PMTU - 
mandatory headers.

(more below)

>>>
>>>
>>> So I suggest that the definition of SCTP_MAXSEG be changed to both  
>>> bound the data fragmentation point and to advise the packet bundler  
>>> to switch to a new packet after the sum of the chunk lengths meets  
>>> or exceeds MAXSEG + 20, where 20 is the data chunk header size.   
>>> This definition would be compatible with the TCP_MAXSEG option and  
>>> the advisory MSS information from the route tables on many systems.
>>
>>
>> If you want to disallow bundling, you might want to have an  
>> additional socket option which disables bundling.
>
>
> This already exists .. its defined as follows:
> "
> 7.1.12.  Enable/Disable message fragmentation (SCTP_DISABLE_FRAGMENTS)
>
>    This option is a on/off flag and is passed an integer where a non-
>    zero is on and a zero is off.  If enabled no SCTP message
>    fragmentation will be performed.  Instead if a message being sent
>    exceeds the current PMTU size, the message will NOT be sent and
>    instead a error will be indicated to the user.

An option to disable bundling is different from an option to disable 
fragmentation.  You can certainly still fragment if you do not bundle.  
If one does not want bundling, the best way to disable it for practical 
purposes is to set SCTP_NODELAY. 

- Mark




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



From tsvwg-bounces@ietf.org Thu Dec 29 18:54:55 2005
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 1Es7bj-0007sM-PI; Thu, 29 Dec 2005 18:54:55 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Es7bh-0007q0-SL
	for tsvwg@megatron.ietf.org; Thu, 29 Dec 2005 18:54: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 SAA03468
	for <tsvwg@ietf.org>; Thu, 29 Dec 2005 18:53:42 -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 1Es7g3-0001K8-1m
	for tsvwg@ietf.org; Thu, 29 Dec 2005 18:59:23 -0500
Received: from [192.168.1.100] (p5481E076.dip.t-dialin.net [84.129.224.118])
	by ilsa.franken.de (Postfix) with ESMTP
	id 2EFD2245C4; Fri, 30 Dec 2005 00:54:39 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <43B46989.8020901@middle.net>
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
	<43B46989.8020901@middle.net>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <14FCA647-11C0-4EBF-9E37-20E82706FAB6@lurchi.franken.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics
Date: Fri, 30 Dec 2005 00:54:38 +0100
To: Mark Butler <butlerm@middle.net>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 37af5f8fbf6f013c5b771388e24b09e7
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


On Dec 29, 2005, at 11:56 PM, Mark Butler wrote:

> Hello Randall, Comments inline...
>
> Randall Stewart wrote:
>
>> Michael Tuexen wrote:
>>
>>>
>>> On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:
>>>
>>>>
>>>> The current sctpsocket draft specifies SCTP_MAXSEG as  
>>>> specifying  the maximum data payload to put into any outgoing  
>>>> data chunk, or  the maximum fragmentation size.  The first  
>>>> problem with this  definition is that it is incomplete - if only  
>>>> the fragmentation  size is adjusted, the packet bundling process  
>>>> may reassemble  multiple fragments of the same message back into  
>>>> the same outgoing  packet, which is surely not desirable behavior.
>>>
>>>
>>> As far as I understand the option, it defines the maximum payload  
>>> to  put in a chunk. It is OK to
>>> bundle multiple DATA chunks in one packet. This might be useful  
>>> for  example if the MTU shrinks. You can
>>> than still continue without IP fragmentation.
>>
>>
>> Yep.. this is its purpose ... I believe the
>> RDDP folks expressed a desire to control this for
>> PMTU changes...
>
> The RDDP SCTP draft says that fragmentation at the SCTP layer  
> should be avoided.  However the SCTP_MAXSEG option cannot be used  
> to get _less_ SCTP layer fragmentation, only _more_ SCTP layer  
> fragmentation.  What an RDDP SCTP implementation needs is a way to  
> determine the current maximum data chunk size that will not get  
> fragmented.  This can be done with a getsockopt 
> (...,SCTP_STATUS,...) call.  If the RDDP layer has better knowledge  
> of the true PMTU, it can reduce the message size by itself.
>
> SCTP needs a packet level MSS, like TCP.  A typical reason to clamp  
> the MSS is to prevent PMTU discovery delays when you know that the  
> PMTU is lower (or likely to be lower) than first hop MTU.  Another  
> common application is limiting queuing delays on transit routers.   
> SCTP_MAXSEG doesn't currently help here, because it doesn't limit  
> the packet size, only the fragment size. The primary motivation for  
> SCTP is reduced message delivery latency relative to TCP,  correct?
> I can see the utility of two independent options.  In the name of  
> not maintaining a radically different semantic for "Maximum Segment  
> Size" than TCP and other protocols (spread throughout routing  
> utilities, advisory routing metrics, and network documentation  
> everywhere) I recommend that we make SCTP_MAXSEG behave like  
> TCP_MAXSEG, and adopt a compatible definition of the SCTP MSS.
So what is the difference between your SCTP_MAXSEG and setting a MTU  
per assoc/path? Setting the MTU
is already possible.
>
> Then we should rename the option to clamp the data fragmentation  
> point. Perhaps SCTP_MAX_DATA_SEG.  This is pretty obscure - the  
> only differential use case is to avoid temporary IP layer  
> fragmentation after PMTU discovery without the minimal additional  
> overhead of reducing the packet size to match.
> MSS negotiation like TCP would also help.  This would require an  
> INIT / INIT ACK parameter that advertised the local MSS.  On  
> reception, each peer would then normally reduce its sending MSS  
> accordingly. And in this context I mean a packet size based MSS  
> like what TCP has: MSS  = PMTU - mandatory headers.
I'm not sure what you mean here. TCP has a header of limited size.  
SCTP has control chunks and there
is no limit. Even if you limit the size of DATA chunks, SCTP packets  
can be larger. So if you want small
packets, limit the (path) MTU. If you want to be able to retransmit  
without using IP fragmentation in
case of an MTU clamp, lower the fragmentation point.

>
> (more below)
>
>>>>
>>>>
>>>> So I suggest that the definition of SCTP_MAXSEG be changed to  
>>>> both  bound the data fragmentation point and to advise the  
>>>> packet bundler  to switch to a new packet after the sum of the  
>>>> chunk lengths meets  or exceeds MAXSEG + 20, where 20 is the  
>>>> data chunk header size.   This definition would be compatible  
>>>> with the TCP_MAXSEG option and  the advisory MSS information  
>>>> from the route tables on many systems.
>>>
>>>
>>> If you want to disallow bundling, you might want to have an   
>>> additional socket option which disables bundling.
>>
>>
>> This already exists .. its defined as follows:
>> "
>> 7.1.12.  Enable/Disable message fragmentation  
>> (SCTP_DISABLE_FRAGMENTS)
>>
>>    This option is a on/off flag and is passed an integer where a non-
>>    zero is on and a zero is off.  If enabled no SCTP message
>>    fragmentation will be performed.  Instead if a message being sent
>>    exceeds the current PMTU size, the message will NOT be sent and
>>    instead a error will be indicated to the user.
>
> An option to disable bundling is different from an option to  
> disable fragmentation.  You can certainly still fragment if you do  
> not bundle.  If one does not want bundling, the best way to disable  
> it for practical purposes is to set SCTP_NODELAY.
> - Mark
>
>
>
>


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



From tsvwg-bounces@ietf.org Thu Dec 29 20:35:36 2005
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 1Es9BA-00074A-1v; Thu, 29 Dec 2005 20:35:36 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1Es9B6-00073z-AU
	for tsvwg@megatron.ietf.org; Thu, 29 Dec 2005 20:35: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 UAA13023
	for <tsvwg@ietf.org>; Thu, 29 Dec 2005 20:34:20 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Es9FS-0004b3-89
	for tsvwg@ietf.org; Thu, 29 Dec 2005 20:40:02 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	HNN64019; Thu, 29 Dec 2005 18:35:19 -0700
Message-ID: <43B48EED.9060203@middle.net>
Date: Thu, 29 Dec 2005 18:35: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: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>
Subject: Re: [Tsvwg] SCTP_MAXSEG socket option semantics / SCTP MTU definition
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
	<43B46989.8020901@middle.net>
	<14FCA647-11C0-4EBF-9E37-20E82706FAB6@lurchi.franken.de>
In-Reply-To: <14FCA647-11C0-4EBF-9E37-20E82706FAB6@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: f60d0f7806b0c40781eee6b9cd0b2135
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

Michael Tuexen wrote:

>
> On Dec 29, 2005, at 11:56 PM, Mark Butler wrote:
>
>> SCTP needs a packet level MSS, like TCP.  A typical reason to clamp  
>> the MSS is to prevent PMTU discovery delays when you know that the  
>> PMTU is lower (or likely to be lower) than first hop MTU.  Another  
>> common application is limiting queuing delays on transit routers.   
>> SCTP_MAXSEG doesn't currently help here, because it doesn't limit  
>> the packet size, only the fragment size. The primary motivation for  
>> SCTP is reduced message delivery latency relative to TCP,  correct?
>> I can see the utility of two independent options.  In the name of  
>> not maintaining a radically different semantic for "Maximum Segment  
>> Size" than TCP and other protocols (spread throughout routing  
>> utilities, advisory routing metrics, and network documentation  
>> everywhere) I recommend that we make SCTP_MAXSEG behave like  
>> TCP_MAXSEG, and adopt a compatible definition of the SCTP MSS.
>
> So what is the difference between your SCTP_MAXSEG and setting a MTU  
> per assoc/path? Setting the MTU
> is already possible.

One problem is that (from what I can tell) the RFC2960 standard MTU is 
the IP layer MTU. Am I wrong?  Having the user specify the MTU in IP 
layer terms is a bit of a layering violation - what if you have IPIP or 
an IPSEC tunnel - should the MTU be the inner MTU or the outer MTU? 

Say one wants to add TCP like MSS negotiation to SCTP .  Each end may 
have a different encapsulation - there might be an IPv4 / IPv6 NAT in 
between, for example. For negotiation to work properly, each end needs 
to send something that is independent of the IP header size.  Otherwise 
if an IPv6 host talks to an IPv4 host, one will undershoot and the other 
will overshoot the proper size.   So unless the SCTP MTU should be 
interpreted at the SCTP layer instead of the IP layer, there needs to be 
an MSS or something like it.

>>
>> Then we should rename the option to clamp the data fragmentation  
>> point. Perhaps SCTP_MAX_DATA_SEG.  This is pretty obscure - the  only 
>> differential use case is to avoid temporary IP layer  fragmentation 
>> after PMTU discovery without the minimal additional  overhead of 
>> reducing the packet size to match.
>> MSS negotiation like TCP would also help.  This would require an  
>> INIT / INIT ACK parameter that advertised the local MSS.  On  
>> reception, each peer would then normally reduce its sending MSS  
>> accordingly. And in this context I mean a packet size based MSS  like 
>> what TCP has: MSS  = PMTU - mandatory headers.
>
> I'm not sure what you mean here. TCP has a header of limited size.  
> SCTP has control chunks and there
> is no limit. Even if you limit the size of DATA chunks, SCTP packets  
> can be larger. So if you want small
> packets, limit the (path) MTU. If you want to be able to retransmit  
> without using IP fragmentation in
> case of an MTU clamp, lower the fragmentation point.


There is a 12 byte mandatory header with SCTP.   TCP defines the MSS for 
negotiation purposes the same way - it excludes optional headers. Since 
the base TCP header is 20 bytes and the IPv4 header is 20 bytes, the 
standard MSS for TCP over IPv4 is PMTU - 40.   SCTP would have a 
standard MSS 8 bytes higher (PMTU - 32 for SCTP over IPv4).
Of course setting IP options reduces the effective MSS in both cases.

- Mark



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



From tsvwg-bounces@ietf.org Thu Dec 29 23:46:08 2005
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 1EsC9Y-0003Fv-3k; Thu, 29 Dec 2005 23:46:08 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsC9R-0003Eh-Ih
	for tsvwg@megatron.ietf.org; Thu, 29 Dec 2005 23:46: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 XAA00050
	for <tsvwg@ietf.org>; Thu, 29 Dec 2005 23:44:50 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsCDo-0002DU-Pa
	for tsvwg@ietf.org; Thu, 29 Dec 2005 23:50:33 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	HQX34348; Thu, 29 Dec 2005 21:45:48 -0700
Message-ID: <43B4BB92.60905@middle.net>
Date: Thu, 29 Dec 2005 21:46:10 -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] Re: SCTP Socket Semantics
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>	<559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>	<43B3186D.7020106@us.ibm.com>
	<43B40DA2.4030605@stewart.chicago.il.us>
In-Reply-To: <43B40DA2.4030605@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: 7e439b86d3292ef5adf93b694a43a576
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <tuexen@fh-muenster.de>,
	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

Comments below...

Randall Stewart wrote:

>
> Sridhar Samudrala wrote:
>
>> Michael Tuexen wrote:
>>
>>> On Dec 28, 2005, at 12:55 AM, Sridhar Samudrala wrote:
>>>
>>>> On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
>>>>
>>>>> All:
>>>>>
>>>>> 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:
>>>>>
>>>>> 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.
>>>>
>>>>
>>>>
>>>> instead, i guess MSG_TRUNC flag will be set.
>>>
>>>
>>>
>>> I agree with the MSG_TRUNC flag. However, I could imagine that I 
>>> want to
>>> use this functionality when I have some message size limits of the 
>>> upper
>>> layer protocol and want to simplify my receive code. This would 
>>> make  it simple
>>> to just ignore packets which are larger than the maximum size.
>>> But I do not see that this requires a SOCK_DGRAM. I would like to 
>>> use  the
>>> 1-to-1 style API but still have this feature. So can we make it a  
>>> socket option
>>> for SOCK_STREAM and SOCK_SEQ_PACKET?  I do not know if than an  
>>> additional SOCK_DGRAM
>>> is needed...
>>
>>
>>
>> Yes, i would also prefer a socket option instead of a a new 
>> SOCK_DGRAM socket type.
>
>
> I think I agree with this.. I would rather have a
> SCTP_SOCKET_ATOMIC
>
> option of some sort.. instead of a new SOCK_DGRAM type...
>
> That would then allow someone to setup the 1-1 or the 1-M
> any way they wanted...

I think that is a good thing, provided you are required to set the 
atomicity before connect() / bind() / sendmsg().  Trying to change it 
after data is queued would be problematic.

I think perhaps there should be a combined socket semantics option that 
should take a structure with the read atomicity, the write atomicity, 
the maximum message size, fragment interleave on/off, and partial 
delivery point.

If write atomicity was disabled, you could do multiple writes per 
message and would use MSG_EOR to end each one.  It is a matter of some 
importance that people be able to send messages larger than the send 
buffer.  sendfile() implementations do not terminate records, certainly 
not mid transfer. You have to do the MSG_EOR yourself, and properly so.

Can FreeBSD change atomicity at the socket level, by the way?

>>>>
>>>>>
>>>>> 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?? 
>>>>

I think MSG_TRUNC is fine. A message truncated due to exceeding the 
current maximum message size, but not the buffer size is an odd 
condition that requires no different treatment than one exceeding the 
buffer size.  Either way you know you have only part of the message.

>>>>> 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.
>>>>
I do not think basing the default on the socket receive buffer size is a 
good idea, because it is arbitrary on some systems.  Not to mention that 
by tradition setsockopt(SO_RCVBUF) silently truncates whatever you pass 
without an error.  If there needs to be a small default maximum message 
size, I suggest 8K.  If space is not available socket(2) would fail with 
error ENOMEM.


>>>>
>>>>
>>> This would be a good option providing the above functionality.
>>> If the user sets this option, he simply tells the kernel that
>>> he will never want more bytes. If he provides less byte in a
>>> receive call, the procedure of A) apply. I do not know if it would
>>> make sense to send (optionally) also an ERROR chunk to let the peer
>>> know that part of the message was lost. I'm nor sure that
>>> it is good that the receiving SCTP side discards (part of) a message
>>> and SACKs it and the peer thinks that SCTP has delivered it to the
>>> user.
>>
Unfortunately, the peer has no such guarantee without further protocol 
support, or ULP confirmation.  Cumulatively acknowledging a message 
doesn't mean the user ever read it from the socket. RFC2960 says that 
implementations should advance the cumulative ack point whenever TSNs 
are received in order.  If you delayed you would seriously increase the 
sending side buffer requirements.  And of course the receiving side 
might crash right after reading the message anyways.

To do this properly, the application or ULP layer needs to be involved, 
so it can confirm that the message was successfully processed, committed 
to disk, resulted in an error or whatever.  So short of a considerable 
protocol extension, it might be best to leave it to the ULP.  RDMA/DDP 
does its own confirmations, as does SMTP, NFS, SMB, ....

I am curious what anyone uses send failures for - the lack of a send 
failure does not indicate the other end received anything, so what do 
people do with them? 

 - Mark



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



From tsvwg-bounces@ietf.org Fri Dec 30 08:01:17 2005
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 1EsJsj-0006dj-Cn; Fri, 30 Dec 2005 08:01:17 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsJse-0006c7-6F
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 08:01: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 IAA14141
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 08:00:00 -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 1EsJx4-0000Tg-UY
	for tsvwg@ietf.org; Fri, 30 Dec 2005 08:05:48 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBUD17XE033551; 
	Fri, 30 Dec 2005 08:01:08 -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: <43B52F93.3090109@stewart.chicago.il.us>
Date: Fri, 30 Dec 2005 08:01: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_MAXSEG socket option semantics
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
	<43B46989.8020901@middle.net>
In-Reply-To: <43B46989.8020901@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 29dc808194f5fb921c09d0040806d6eb
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <Michael.Tuexen@lurchi.franken.de>, 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:
> Hello Randall, Comments inline...
> 
> Randall Stewart wrote:
> 
>> Michael Tuexen wrote:
>>
>>>
>>> On Dec 26, 2005, at 10:58 PM, Mark Butler wrote:
>>>
>>>>
>>>> The current sctpsocket draft specifies SCTP_MAXSEG as specifying  
>>>> the maximum data payload to put into any outgoing data chunk, or  
>>>> the maximum fragmentation size.  The first problem with this  
>>>> definition is that it is incomplete - if only the fragmentation  
>>>> size is adjusted, the packet bundling process may reassemble  
>>>> multiple fragments of the same message back into the same outgoing  
>>>> packet, which is surely not desirable behavior.
>>>
>>>
>>>
>>> As far as I understand the option, it defines the maximum payload to  
>>> put in a chunk. It is OK to
>>> bundle multiple DATA chunks in one packet. This might be useful for  
>>> example if the MTU shrinks. You can
>>> than still continue without IP fragmentation.
>>
>>
>>
>> Yep.. this is its purpose ... I believe the
>> RDDP folks expressed a desire to control this for
>> PMTU changes...
> 
> 
> The RDDP SCTP draft says that fragmentation at the SCTP layer should be 
> avoided.  However the SCTP_MAXSEG option cannot be used to get _less_ 
> SCTP layer fragmentation, only _more_ SCTP layer fragmentation.  What an 
> RDDP SCTP implementation needs is a way to determine the current maximum 
> data chunk size that will not get fragmented.  This can be done with a 
> getsockopt(...,SCTP_STATUS,...) call.  If the RDDP layer has better 
> knowledge of the true PMTU, it can reduce the message size by itself.

You miss my point I think..

A RDDP implementation that DOES NOT want fragmentation will
do the following:

setsockopt(...,SCTP_DISABLE_FRAGMENTS, on=1, sizeof(int));
setsockopt(...,SCTP_MAXSEG, sz=sizeof_there_segment, sizeof(int));

Now, what will happen is they will get no more tha size_there_segment
chunks and all in a single message.. no fragmentation will occur.



> 
> SCTP needs a packet level MSS, like TCP.  A typical reason to clamp the 
> MSS is to prevent PMTU discovery delays when you know that the PMTU is 
> lower (or likely to be lower) than first hop MTU.  Another common 
> application is limiting queuing delays on transit routers.  SCTP_MAXSEG 
> doesn't currently help here, because it doesn't limit the packet size, 
> only the fragment size. 

But you combine it with no fragmentation and you get only
single sized msgs of your prescribed size (at least
limited to that)..

Now I agree with Shridhar.. having a NO_BUNDLE option might
also help here... but I am still waiting to here what
Kacheong has to say as well ;-D

The primary motivation for SCTP is reduced
> message delivery latency relative to TCP,  correct?
> I can see the utility of two independent options.  In the name of not 
> maintaining a radically different semantic for "Maximum Segment Size" 
> than TCP and other protocols (spread throughout routing utilities, 
> advisory routing metrics, and network documentation everywhere) I 
> recommend that we make SCTP_MAXSEG behave like TCP_MAXSEG, and adopt a 
> compatible definition of the SCTP MSS.
> 
> Then we should rename the option to clamp the data fragmentation point. 
> Perhaps SCTP_MAX_DATA_SEG.  This is pretty obscure - the only 
> differential use case is to avoid temporary IP layer fragmentation after 
> PMTU discovery without the minimal additional overhead of reducing the 
> packet size to match.
> MSS negotiation like TCP would also help.  This would require an INIT / 
> INIT ACK parameter that advertised the local MSS.  On reception, each 
> peer would then normally reduce its sending MSS accordingly. And in this 
> context I mean a packet size based MSS like what TCP has: MSS  = PMTU - 
> mandatory headers.
> 
> (more below)
> 
>>>>
>>>>
>>>> So I suggest that the definition of SCTP_MAXSEG be changed to both  
>>>> bound the data fragmentation point and to advise the packet bundler  
>>>> to switch to a new packet after the sum of the chunk lengths meets  
>>>> or exceeds MAXSEG + 20, where 20 is the data chunk header size.   
>>>> This definition would be compatible with the TCP_MAXSEG option and  
>>>> the advisory MSS information from the route tables on many systems.
>>>
>>>
>>>
>>> If you want to disallow bundling, you might want to have an  
>>> additional socket option which disables bundling.
>>
>>
>>
>> This already exists .. its defined as follows:
>> "
>> 7.1.12.  Enable/Disable message fragmentation (SCTP_DISABLE_FRAGMENTS)
>>
>>    This option is a on/off flag and is passed an integer where a non-
>>    zero is on and a zero is off.  If enabled no SCTP message
>>    fragmentation will be performed.  Instead if a message being sent
>>    exceeds the current PMTU size, the message will NOT be sent and
>>    instead a error will be indicated to the user.
> 
> 
> An option to disable bundling is different from an option to disable 
> fragmentation.  You can certainly still fragment if you do not bundle.  
> If one does not want bundling, the best way to disable it for practical 
> purposes is to set SCTP_NODELAY.

That will NOT disable bundling.. consider

cwnd=3000 (intially)

while(true)
send (100)--->

Now it is true the first 30 or so messages will
hit the wire.. but after that you will queue
up messages to be sent.. and they WILL be bundled..

R

> - Mark
> 
> 
> 
> 
> 


-- 
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 Fri Dec 30 08:11:53 2005
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 1EsK2z-0001mj-6B; Fri, 30 Dec 2005 08:11:53 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsK2s-0001mP-Qa
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 08:11:51 -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 IAA15691
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 08:10:34 -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 1EsK7K-0000wd-MH
	for tsvwg@ietf.org; Fri, 30 Dec 2005 08:16:23 -0500
Received: from localhost (localhost [127.0.0.1])
	by stewart.chicago.il.us (8.12.9p2/8.12.8) with SMTP id jBUDBfXE033578; 
	Fri, 30 Dec 2005 08:11:41 -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: <43B5320D.8080105@stewart.chicago.il.us>
Date: Fri, 30 Dec 2005 08:11: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: Mark Butler <butlerm@middle.net>
Subject: Re: [Tsvwg] Re: SCTP Socket Semantics
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>	<559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>	<43B3186D.7020106@us.ibm.com>
	<43B40DA2.4030605@stewart.chicago.il.us>
	<43B4BB92.60905@middle.net>
In-Reply-To: <43B4BB92.60905@middle.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: bc6181926481d86059e678c9f7cb8b34
Content-Transfer-Encoding: 7bit
Cc: Michael Tuexen <tuexen@fh-muenster.de>,
	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

Mark Butler wrote:
> Comments below...
> 
> Randall Stewart wrote:
> 
>>
>> Sridhar Samudrala wrote:
>>
>>> Michael Tuexen wrote:
>>>
>>>> On Dec 28, 2005, at 12:55 AM, Sridhar Samudrala wrote:
>>>>
>>>>> On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
>>>>>
>>>>>> All:
>>>>>>
>>>>>> 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:
>>>>>>
>>>>>> 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.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> instead, i guess MSG_TRUNC flag will be set.
>>>>
>>>>
>>>>
>>>>
>>>> I agree with the MSG_TRUNC flag. However, I could imagine that I 
>>>> want to
>>>> use this functionality when I have some message size limits of the 
>>>> upper
>>>> layer protocol and want to simplify my receive code. This would 
>>>> make  it simple
>>>> to just ignore packets which are larger than the maximum size.
>>>> But I do not see that this requires a SOCK_DGRAM. I would like to 
>>>> use  the
>>>> 1-to-1 style API but still have this feature. So can we make it a  
>>>> socket option
>>>> for SOCK_STREAM and SOCK_SEQ_PACKET?  I do not know if than an  
>>>> additional SOCK_DGRAM
>>>> is needed...
>>>
>>>
>>>
>>>
>>> Yes, i would also prefer a socket option instead of a a new 
>>> SOCK_DGRAM socket type.
>>
>>
>>
>> I think I agree with this.. I would rather have a
>> SCTP_SOCKET_ATOMIC
>>
>> option of some sort.. instead of a new SOCK_DGRAM type...
>>
>> That would then allow someone to setup the 1-1 or the 1-M
>> any way they wanted...
> 
> 
> I think that is a good thing, provided you are required to set the 
> atomicity before connect() / bind() / sendmsg().  Trying to change it 
> after data is queued would be problematic.
> 
> I think perhaps there should be a combined socket semantics option that 
> should take a structure with the read atomicity, the write atomicity, 
> the maximum message size, fragment interleave on/off, and partial 
> delivery point.
> 
> If write atomicity was disabled, you could do multiple writes per 
> message and would use MSG_EOR to end each one.  It is a matter of some 
> importance that people be able to send messages larger than the send 
> buffer.  sendfile() implementations do not terminate records, certainly 
> not mid transfer. You have to do the MSG_EOR yourself, and properly so.
> 
> Can FreeBSD change atomicity at the socket level, by the way?

Yes, it can for SCTP at least .. since freebsd lets
one override the so_recv funcition to redefine
your own.. so does NetBSD.. OpenBSD does not.. so
our KAME stack does maintain an older interface that
is still used there....

The atomicity is all a matter of how the so_receive function
operates.. the default one looks at the protocol options
that are setup in the in_proto.c file.. but once you override
the standard so_receive.. you can do whatever you want... and
in order to worry about fragment interleave and all the
other nice things.. one has to do your own so_receive...



> 
>>>>>
>>>>>>
>>>>>> 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?? 
>>>>>
>>>>>
> 
> I think MSG_TRUNC is fine. A message truncated due to exceeding the 
> current maximum message size, but not the buffer size is an odd 
> condition that requires no different treatment than one exceeding the 
> buffer size.  Either way you know you have only part of the message.
> 
>>>>>> 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.
>>>>>
>>>>>
> I do not think basing the default on the socket receive buffer size is a 
> good idea, because it is arbitrary on some systems.  Not to mention that 
> by tradition setsockopt(SO_RCVBUF) silently truncates whatever you pass 
> without an error.  If there needs to be a small default maximum message 
> size, I suggest 8K.  If space is not available socket(2) would fail with 
> error ENOMEM.

Hmm.. I think 8k is a bit small for a default... gone are the
days of 64Meg of memory even... most machines are coming
standard at 256M and really 1Gig is getting more and more common...

I would think a minimum of 64k.. but really its a Implementation choice
IMO.. having a guideline is ok.. but it really is up to an
  implementation.
> 
> 
>>>>>
>>>>>
>>>> This would be a good option providing the above functionality.
>>>> If the user sets this option, he simply tells the kernel that
>>>> he will never want more bytes. If he provides less byte in a
>>>> receive call, the procedure of A) apply. I do not know if it would
>>>> make sense to send (optionally) also an ERROR chunk to let the peer
>>>> know that part of the message was lost. I'm nor sure that
>>>> it is good that the receiving SCTP side discards (part of) a message
>>>> and SACKs it and the peer thinks that SCTP has delivered it to the
>>>> user.
>>>
>>>
> Unfortunately, the peer has no such guarantee without further protocol 
> support, or ULP confirmation.  Cumulatively acknowledging a message 
> doesn't mean the user ever read it from the socket. RFC2960 says that 
> implementations should advance the cumulative ack point whenever TSNs 
> are received in order.  If you delayed you would seriously increase the 
> sending side buffer requirements.  And of course the receiving side 
> might crash right after reading the message anyways.
> 
> To do this properly, the application or ULP layer needs to be involved, 
> so it can confirm that the message was successfully processed, committed 
> to disk, resulted in an error or whatever.  So short of a considerable 
> protocol extension, it might be best to leave it to the ULP.  RDMA/DDP 
> does its own confirmations, as does SMTP, NFS, SMB, ....
> 
> I am curious what anyone uses send failures for - the lack of a send 
> failure does not indicate the other end received anything, so what do 
> people do with them?

There are a couple of different types of failures..

a) Ones where the data was sent.. but not ack'ed
b) Ones where they were never sent.

For the class <b> one KNOWS that one must resend this
to an alternative...

For the class <a> one would need to validate via an
application level audit..

Of course there may be other stuff also needing validation.. it
depends...

R

> - Mark
> 
> 
> 
> 


-- 
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 Fri Dec 30 16:11:47 2005
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 1EsRXP-0001OB-S8; Fri, 30 Dec 2005 16:11:47 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1ErWxx-0005lh-7L
	for tsvwg@megatron.ietf.org; Wed, 28 Dec 2005 03:47:29 -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 DAA09051
	for <tsvwg@ietf.org>; Wed, 28 Dec 2005 03:46:15 -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 1ErX1w-00068O-Vv
	for tsvwg@ietf.org; Wed, 28 Dec 2005 03:51:33 -0500
Received: from [192.168.1.100] (p5481F316.dip.t-dialin.net [84.129.243.22])
	by ilsa.franken.de (Postfix) with ESMTP
	id 2FF68245C7; Wed, 28 Dec 2005 09:47:05 +0100 (CET)
	(KNF account authenticated via SMTP-AUTH)
In-Reply-To: <1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>
References: <43AA9BE2.7070901@stewart.chicago.il.us>
	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>
Mime-Version: 1.0 (Apple Message framework v746.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>
Content-Transfer-Encoding: 7bit
From: Michael Tuexen <tuexen@fh-muenster.de>
Subject: Re: [Tsvwg] Re: SCTP Socket API
Date: Wed, 28 Dec 2005 09:47:11 +0100
To: Sridhar Samudrala <sri@us.ibm.com>
X-Mailer: Apple Mail (2.746.2)
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 6640e3bbe8a4d70c4469bcdcbbf0921d
Content-Transfer-Encoding: 7bit
X-Mailman-Approved-At: Fri, 30 Dec 2005 16:11:45 -0500
Cc: Kacheong Poon <kacheong.poon@sun.com>,
	Randall Stewart <randall@stewart.chicago.il.us>, 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,

see my comments in-line.

Best regards
Michael

On Dec 28, 2005, at 12:55 AM, Sridhar Samudrala wrote:

> On Thu, 2005-12-22 at 07:28 -0500, Randall Stewart wrote:
>> All:
>>
>> 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:
>>
>> 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.
> instead, i guess MSG_TRUNC flag will be set.
I agree with the MSG_TRUNC flag. However, I could imagine that I want to
use this functionality when I have some message size limits of the upper
layer protocol and want to simplify my receive code. This would make  
it simple
to just ignore packets which are larger than the maximum size.
But I do not see that this requires a SOCK_DGRAM. I would like to use  
the
1-to-1 style API but still have this feature. So can we make it a  
socket option
for SOCK_STREAM and SOCK_SEQ_PACKET?  I do not know if than an  
additional SOCK_DGRAM
is needed...
>
>>
>> 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 would be a good option providing the above functionality.
If the user sets this option, he simply tells the kernel that
he will never want more bytes. If he provides less byte in a
receive call, the procedure of A) apply. I do not know if it would
make sense to send (optionally) also an ERROR chunk to let the peer
know that part of the message was lost. I'm nor sure that
it is good that the receiving SCTP side discards (part of) a message
and SACKs it and the peer thinks that SCTP has delivered it to the
user.
>>
>> 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.
>>
>>
>> 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 think this should be allowed to be set only if  
> SCTP_FRAGMENT_INTERLEAVE
> is supported and enabled.
Why?
>
>>
>> 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
>>
>>
>> R
>
>
> _______________________________________________
> 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 Fri Dec 30 16:31:11 2005
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 1EsRqB-0006rK-9D; Fri, 30 Dec 2005 16:31:11 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsRq7-0006qX-OR
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 16:31: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 QAA14740
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 16:29:54 -0500 (EST)
Received: from webmail4.speakeasy.net ([69.17.117.51]
	helo=webmail4.sea5.speakeasy.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsRud-0002rK-1t
	for tsvwg@ietf.org; Fri, 30 Dec 2005 16:35:48 -0500
Received: (qmail 7016 invoked from network); 30 Dec 2005 21:30:50 -0000
Received: from localhost (HELO webmail4) ([127.0.0.1])
	(envelope-sender <cait@asomi.com>)
	by localhost (qmail-ldap-1.03) with SMTP
	for <tuexen@fh-muenster.de>; 30 Dec 2005 21:30:50 -0000
Received: from 63.87.1.243 (unverified [63.87.1.243])
	by webmail4 (VisualMail 4.0) with WEBMAIL id 14891;
	Fri, 30 Dec 2005 21:30:50 +0000
From: "Caitlin Bestler" <cait@asomi.com>
To: "Michael Tuexen" <tuexen@fh-muenster.de>, "Sridhar Samudrala" 
	<sri@us.ibm.com>
Importance: Normal
Sensitivity: Normal
Message-ID: <W7778825787148911135978250@webmail4>
X-Mailer: Mintersoft VisualMail, Build 4.0.111601
X-Originating-IP: [63.87.1.243]
Date: Fri, 30 Dec 2005 21:30:50 +0000
Subject: Re:  [Tsvwg] Re: SCTP Socket API
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 7baded97d9887f7a0c7e8a33c2e3ea1b
Content-Transfer-Encoding: 7bit
Cc: Randall Stewart <randall@stewart.chicago.il.us>,
	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

Michael Tuexen wrote:


> This would be a good option providing the above functionality.
> If the user sets this option, he simply tells the kernel that
> he will never want more bytes. If he provides less byte in a
> receive call, the procedure of A) apply. I do not know if it would
> make sense to send (optionally) also an ERROR chunk to let the peer
> know that part of the message was lost. I'm nor sure that
> it is good that the receiving SCTP side discards (part of) a message
> and SACKs it and the peer thinks that SCTP has delivered it to the
> user.

And how would it be a better idea to place the data in a ULP
buffer before the ULP ignored it?

With such an option the ULP is announcing its intention to 
ignore any portion of the message beyond offset X, and that
the SCTP implementation is free to optimize reception of
those bytes directly into the bit-bucket.

As that the receiving ULP is *always* free to bit-bucket any
portion of any message it receives I don't see why the peer
needs to be informed merely because an intermediate copy
was eliminated before the data reached the bit bucket.

Obviously the receiver must always be notified of the actual
data size that the peer attempted to send, or at least that
it was longer than the maximum allowed. But it is then up
to the Receiver to know whether the peer attempting to send
more data is an irrecoverable error, or merely a case of the
peer trying to provide more optional data than it can use.

The key distinction here is that it is the receiving ULP
that is ignoring the data, not the SCTP layer. The SCTP
layer would merely be optimally placing the data in the
buffer that the ULP specified, i.e. in the bit bucket.




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



From tsvwg-bounces@ietf.org Fri Dec 30 18:15:20 2005
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 1EsTSy-0007lD-Dl; Fri, 30 Dec 2005 18:15:20 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsTSw-0007l8-3V
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 18:15:18 -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 SAA25406
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 18:14:06 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsTXQ-0006Dx-Ts
	for tsvwg@ietf.org; Fri, 30 Dec 2005 18:19:59 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	HJS10956; Fri, 30 Dec 2005 16:14:56 -0700
Message-ID: <43B5BF8D.2050108@middle.net>
Date: Fri, 30 Dec 2005 16:15: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: Randall Stewart <randall@stewart.chicago.il.us>
Subject: Re: [Tsvwg] SCTP_MAXSEG / SCTP_DISABLE_FRAGMENTS
References: <43B0676F.5040003@middle.net>
	<786DCE6D-4136-4D4B-90CB-F7828F0C200E@lurchi.franken.de>
	<43B130E1.8070309@stewart.chicago.il.us>
	<43B46989.8020901@middle.net>
	<43B52F93.3090109@stewart.chicago.il.us>
In-Reply-To: <43B52F93.3090109@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: c0bedb65cce30976f0bf60a0a39edea4
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:
>
>> The RDDP SCTP draft says that fragmentation at the SCTP layer should 
>> be avoided.  However the SCTP_MAXSEG option cannot be used to get 
>> _less_ SCTP layer fragmentation, only _more_ SCTP layer 
>> fragmentation.  What an RDDP SCTP implementation needs is a way to 
>> determine the current maximum data chunk size that will not get 
>> fragmented.  This can be done with a getsockopt(...,SCTP_STATUS,...) 
>> call.  If the RDDP layer has better knowledge of the true PMTU, it 
>> can reduce the message size by itself.
>
>
> You miss my point I think..
>
> A RDDP implementation that DOES NOT want fragmentation will
> do the following:
>
> setsockopt(...,SCTP_DISABLE_FRAGMENTS, on=1, sizeof(int));
> setsockopt(...,SCTP_MAXSEG, sz=sizeof_there_segment, sizeof(int));
>
> Now, what will happen is they will get no more tha size_there_segment
> chunks and all in a single message.. no fragmentation will occur.

I do not understand why one would want to set SCTP_MAXSEG if 
fragmentation is disabled, unless as a crutch to make sure that you 
cannot send messages larger than the specified size.

If a user actually wants to send data with fragmentation disabled, he 
should read the current fragmentation point and reduce all sends to be 
less than or equal to that size.   Otherwise he/she  is liable to get 
immediate rejections and have to guess what the maximum is. And of 
course if SCTP fragmentation is disabled, the stack may have to fragment 
at the IP layer if the known PMTU goes down (another reason for MSS 
negotiation).  That limits the utility of SCTP_DISABLE_FRAGMENTS - 
generally speaking it is certainly better to fragment at the SCTP layer 
if  necessary than at the IP layer.

By the way, the SCTP_DISABLE_FRAGMENTS documentation says an immediaate 
error will be returned if a message if exceeds the current PMTU size.  
This should say the current fragmentation point I believe.  The MTU is 
defined at the IP layer right?  Or is it the SCTP layer?

>
>
> Now I agree with Shridhar.. having a NO_BUNDLE option might
> also help here... but I am still waiting to here what
> Kacheong has to say as well ;-D

Is an implementation really supposed to send ECNEs in separate 
messages?  Normally ECNE only rides with packets containing other 
chunks.  So I agree such an option is well defined, but why would anyone 
want it? 

>>
>> An option to disable bundling is different from an option to disable 
>> fragmentation.  You can certainly still fragment if you do not 
>> bundle.  If one does not want bundling, the best way to disable it 
>> for practical purposes is to set SCTP_NODELAY.
>
>
> That will NOT disable bundling.

I stand corrected (I meant most of the time, that is not the case either).

- Mark

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



From tsvwg-bounces@ietf.org Fri Dec 30 18:52:33 2005
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 1EsU2z-0000Nh-9O; Fri, 30 Dec 2005 18:52:33 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsU2x-0000NZ-D2
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 18:52:31 -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 SAA00163
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 18:51:19 -0500 (EST)
Received: from webmail4.speakeasy.net ([69.17.117.51]
	helo=webmail4.sea5.speakeasy.net)
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsU7V-0007h3-1j
	for tsvwg@ietf.org; Fri, 30 Dec 2005 18:57:13 -0500
Received: (qmail 30646 invoked from network); 30 Dec 2005 23:52:14 -0000
Received: from localhost (HELO webmail4) ([127.0.0.1])
	(envelope-sender <cait@asomi.com>)
	by localhost (qmail-ldap-1.03) with SMTP
	for <butlerm@middle.net>; 30 Dec 2005 23:52:14 -0000
Received: from 63.87.1.243 (unverified [63.87.1.243])
	by webmail4 (VisualMail 4.0) with WEBMAIL id 10548;
	Fri, 30 Dec 2005 23:52:14 +0000
From: "Caitlin Bestler" <cait@asomi.com>
To: "Mark Butler" <butlerm@middle.net>, "Randall Stewart" 
	<randall@stewart.chicago.il.us>
Importance: Normal
Sensitivity: Normal
Message-ID: <W8629729945105481135986734@webmail4>
X-Mailer: Mintersoft VisualMail, Build 4.0.111601
X-Originating-IP: [63.87.1.243]
Date: Fri, 30 Dec 2005 23:52:14 +0000
Subject: Re:  [Tsvwg] SCTP_MAXSEG / SCTP_DISABLE_FRAGMENTS
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Scan-Signature: fb6060cb60c0cea16e3f7219e40a0a81
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


> -----Original Message-----
> From: Mark Butler [mailto:butlerm@middle.net]
> Sent: Friday, December 30, 2005 11:15 PM
> To: 'Randall Stewart'
> Cc: tsvwg@ietf.org
> Subject: Re: [Tsvwg] SCTP_MAXSEG / SCTP_DISABLE_FRAGMENTS
> 
> Randall Stewart wrote:
> 
> > Mark Butler wrote:
> >
> >> The RDDP SCTP draft says that fragmentation at the SCTP layer should 
> >> be avoided.  However the SCTP_MAXSEG option cannot be used to get 
> >> _less_ SCTP layer fragmentation, only _more_ SCTP layer 
> >> fragmentation.  What an RDDP SCTP implementation needs is a way to 
> >> determine the current maximum data chunk size that will not get 
> >> fragmented.  This can be done with a getsockopt(...,SCTP_STATUS,...) 
> >> call.  If the RDDP layer has better knowledge of the true PMTU, it 
> >> can reduce the message size by itself.
> >
> >
> > You miss my point I think..
> >
> > A RDDP implementation that DOES NOT want fragmentation will
> > do the following:
> >
> > setsockopt(...,SCTP_DISABLE_FRAGMENTS, on=1, sizeof(int));
> > setsockopt(...,SCTP_MAXSEG, sz=sizeof_there_segment, sizeof(int));
> >
> > Now, what will happen is they will get no more tha size_there_segment
> > chunks and all in a single message.. no fragmentation will occur.
> 
> I do not understand why one would want to set SCTP_MAXSEG if 
> fragmentation is disabled, unless as a crutch to make sure that you 
> cannot send messages larger than the specified size.
> 
> If a user actually wants to send data with fragmentation disabled, he 
> should read the current fragmentation point and reduce all sends to be 
> less than or equal to that size.   Otherwise he/she  is liable to get 
> immediate rejections and have to guess what the maximum is. And of 
> course if SCTP fragmentation is disabled, the stack may have to fragment 
> at the IP layer if the known PMTU goes down (another reason for MSS 
> negotiation).  That limits the utility of SCTP_DISABLE_FRAGMENTS - 
> generally speaking it is certainly better to fragment at the SCTP layer 
> if  necessary than at the IP layer.
> 

The relevant "user" for RDDP is the DDP Layer itself. It "wants" to
send a given message in as few DDP Segments (SCTP Messages) as possible,
but it wants each DDP Segment to traverse the network atomically (i.e.
in a single SCTP packet).

The requirement in the DDP spec is that the Lower Layer Protocol
(i.e the SCTP Adaptation Layer or MPA) inform the DDP Layer of
changes in the maximum DDP Segment size that conforms to the PMTU.

The *mechanism* by which the SCTP Adaptation layer gets this information
is not specified. It would certainly be nice if the SCTP layer just
told it, but there is no real requirement for that as long as the
SCTP Adaptation layer can infer it from existing interfaces.
Bumping your head against the brick wall is one method of drawing
such inferences, it is also fairly effective. Whether a more
elegant interface was called for would be an implementation 
decision at least partially based upon your estimation of 
how often the PMTU changes.

So while I agree that a MSS equivalent query would be a really
neat feature, I don't think you can use RDDP to justify that
everyone needs to add it to their SCTP layer.




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



From tsvwg-bounces@ietf.org Fri Dec 30 19:10:13 2005
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 1EsUK5-00053k-Uy; Fri, 30 Dec 2005 19:10:13 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsUK5-00053f-8X
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 19:10: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 TAA02710
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 19:09:01 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsUOd-0008LF-Aa
	for tsvwg@ietf.org; Fri, 30 Dec 2005 19:14:55 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	IMP96804; Fri, 30 Dec 2005 17:10:04 -0700
Message-ID: <43B5CC7A.400@middle.net>
Date: Fri, 30 Dec 2005 17:10:34 -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] Re: SCTP socket semantics (buffer size / send failures
	/ MSG_TRUNC / PRSCTP control)
References: <43AA9BE2.7070901@stewart.chicago.il.us>	<1135727735.6321.32.camel@w-sridhar2.beaverton.ibm.com>	<559909A9-DBF0-48ED-92F0-093A49E63D41@fh-muenster.de>	<43B3186D.7020106@us.ibm.com>
	<43B40DA2.4030605@stewart.chicago.il.us>
	<43B4BB92.60905@middle.net>
	<43B5320D.8080105@stewart.chicago.il.us>
In-Reply-To: <43B5320D.8080105@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: 9ed51c9d1356100bce94f1ae4ec616a9
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:

>
> I would think a minimum of 64k.. but really its a Implementation choice
> IMO.. having a guideline is ok.. but it really is up to an
>  implementation.

The problem is one-to-many sockets with small default shared buffers.  
Whatever the default is, SOCK_DGRAM socket creation should fail if  
messages of the default maximum size cannot be received atomically.  
Otherwise the stack either deadlocks or aborts when a sufficiently large 
message arrives.  That is why the default size should be constrained by 
the default maximum buffer size.

Send failure notifications:

Having SEND_FAILED notifications return the original message is a 
serious constraint on buffer size.  There should be a socket option that 
says how much data from the head of the message is saved for a send 
failure notification.  Zero should mean none.  ENOMEM should be returned 
if the size isn't practical.  

When a send failure occurs, such data should be "moved" from the send 
buffer to the receive buffer to prevent deadlock. IF there is not enough 
room in the receive buffer, the data should be truncated, and both 
MSG_EOR and MSG_TRUNC set on the final read of the notification.

MSG_EOR / MSG_TRUNC policy:

I suggest that whenever a partial delivery is aborted, the next read 
returns zero bytes, with both MSG_EOR and MSG_TRUNC set.  It is a very 
good way to keep readers from running messages together.  Notable case 
is when a PR-SCTP receiver receives a FORWARD TSN that causes it to have 
to abort a partial delivery.  So MSG_TRUNC is a practical necessity even 
on sockets with atomic delivery turned off.

Because of this problem, PR-SCTP capability should have to be enabled 
with an option at the socket level.  By default, messages would still 
expire before transmission started, but not after (as specified by the 
current draft).  I suggest SCTP_PRSCTP_ENABLED for the option name.

 - Mark


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



From tsvwg-bounces@ietf.org Fri Dec 30 20:25:08 2005
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 1EsVUa-00051y-MI; Fri, 30 Dec 2005 20:25:08 -0500
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org)
	by megatron.ietf.org with esmtp (Exim 4.32) id 1EsVUY-00051t-5F
	for tsvwg@megatron.ietf.org; Fri, 30 Dec 2005 20:25: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 UAA10761
	for <tsvwg@ietf.org>; Fri, 30 Dec 2005 20:23:53 -0500 (EST)
Received: from webmail.readytek.net ([65.73.233.22])
	by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1EsVZ6-0002Ph-If
	for tsvwg@ietf.org; Fri, 30 Dec 2005 20:29:49 -0500
Received: from [192.168.0.2] ([67.137.150.193])
	by webmail.readytek.net (Readytek Broadband Web Mail) with ESMTP id
	IND35953; Fri, 30 Dec 2005 18:24:53 -0700
Message-ID: <43B5DE03.8090603@middle.net>
Date: Fri, 30 Dec 2005 18:25: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: Caitlin Bestler <cait@asomi.com>
Subject: Re: [Tsvwg] SCTP_MAXSEG / SCTP_DISABLE_FRAGMENTS
References: <W8629729945105481135986734@webmail4>
In-Reply-To: <W8629729945105481135986734@webmail4>
X-Spam-Score: 1.6 (+)
X-Scan-Signature: c54bc2f42d02429833c0ca4b8725abd7
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="===============1584545082=="
Sender: tsvwg-bounces@ietf.org
Errors-To: tsvwg-bounces@ietf.org

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

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

Hello Caitlin,

   Comments inline.

- Mark

Caitlin Bestler wrote:

>
>The relevant "user" for RDDP is the DDP Layer itself. It "wants" to
>send a given message in as few DDP Segments (SCTP Messages) as possible,
>but it wants each DDP Segment to traverse the network atomically (i.e.
>in a single SCTP packet).
>
>The requirement in the DDP spec is that the Lower Layer Protocol
>(i.e the SCTP Adaptation Layer or MPA) inform the DDP Layer of
>changes in the maximum DDP Segment size that conforms to the PMTU.
>
>The *mechanism* by which the SCTP Adaptation layer gets this information
>is not specified. It would certainly be nice if the SCTP layer just
>told it, but there is no real requirement for that as long as the
>SCTP Adaptation layer can infer it from existing interfaces.
>Bumping your head against the brick wall is one method of drawing
>such inferences, it is also fairly effective. Whether a more
>elegant interface was called for would be an implementation 
>decision at least partially based upon your estimation of 
>how often the PMTU changes.
>
>So while I agree that a MSS equivalent query would be a really
>neat feature, I don't think you can use RDDP to justify that
>everyone needs to add it to their SCTP layer.
>  
>

Actually, I was interested in a different semantic than what RDDP 
normally needs.   You can get the maximum data segment size already - 
just use the SCTP_STATUS option and get the association current 
fragmentation point.  

What I was asking for is for SCTP_MAXSEG to be defined to limit the 
total SCTP payload size, instead of clamping the data fragmentation 
point, so that it would be equivalent to and used for the same purposes 
as TCP_MAXSEG.  The debate is about whether independently clamping just 
the data fragmentation point (so as to get multiple fragments of the 
same message in the same packet) is actually a useful option.  I think 
it is unusally obscure, and should use a new option (SCTP_MAX_DATA_SEG) 
if necessary and let SCTP_MAXSEG carry the common case.

The current means of doing this for SCTP is specified in terms of the 
MTU. I think exposing and controlling the association MTU is unclean and 
a layering violation, if its the IP MTU we are talking about. 

  - Mark





>
>
>
>  
>


--------------020107040205000002030108
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">
Hello Caitlin,<br>
<br>
&nbsp;&nbsp; Comments inline.<br>
<br>
- Mark<br>
<br>
Caitlin Bestler wrote:<br>
<blockquote cite="midW8629729945105481135986734@webmail4" type="cite">
  <pre wrap=""><!---->
The relevant "user" for RDDP is the DDP Layer itself. It "wants" to
send a given message in as few DDP Segments (SCTP Messages) as possible,
but it wants each DDP Segment to traverse the network atomically (i.e.
in a single SCTP packet).

The requirement in the DDP spec is that the Lower Layer Protocol
(i.e the SCTP Adaptation Layer or MPA) inform the DDP Layer of
changes in the maximum DDP Segment size that conforms to the PMTU.

The *mechanism* by which the SCTP Adaptation layer gets this information
is not specified. It would certainly be nice if the SCTP layer just
told it, but there is no real requirement for that as long as the
SCTP Adaptation layer can infer it from existing interfaces.
Bumping your head against the brick wall is one method of drawing
such inferences, it is also fairly effective. Whether a more
elegant interface was called for would be an implementation 
decision at least partially based upon your estimation of 
how often the PMTU changes.

So while I agree that a MSS equivalent query would be a really
neat feature, I don't think you can use RDDP to justify that
everyone needs to add it to their SCTP layer.
  </pre>
</blockquote>
<br>
Actually, I was interested in a different semantic than what RDDP
normally needs.&nbsp;&nbsp; You can get the maximum data segment size already -
just use the SCTP_STATUS option and get the association current
fragmentation point.&nbsp;&nbsp; <br>
<br>
What I was asking for is for SCTP_MAXSEG to be defined to limit the
total SCTP payload size, instead of clamping the data fragmentation
point, so that it would be equivalent to and used for the same purposes
as TCP_MAXSEG.&nbsp; The debate is about whether independently clamping just
the data fragmentation point (so as to get multiple fragments of the
same message in the same packet) is actually a useful option.&nbsp; I think
it is unusally obscure, and should use a new option (SCTP_MAX_DATA_SEG)
if necessary and let SCTP_MAXSEG carry the common case.<br>
<br>
The current means of doing this for SCTP is specified in terms of the
MTU. I think exposing and controlling the association MTU is unclean
and a layering violation, if its the IP MTU we are talking about.&nbsp; <br>
<br>
&nbsp; - Mark<br>
<br>
<br>
<br>
<br>
<br>
<blockquote cite="midW8629729945105481135986734@webmail4" type="cite">
  <pre wrap="">



  </pre>
</blockquote>
<br>
</body>
</html>

--------------020107040205000002030108--


--===============1584545082==
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

--===============1584545082==--




