Re: [Stox] Comments on draft-ietf-stox-im-11

Ben Campbell <ben@nostrum.com> Fri, 13 February 2015 03:00 UTC

Return-Path: <ben@nostrum.com>
X-Original-To: stox@ietfa.amsl.com
Delivered-To: stox@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F183C1A0252 for <stox@ietfa.amsl.com>; Thu, 12 Feb 2015 19:00:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7B-Fg2mh30qe for <stox@ietfa.amsl.com>; Thu, 12 Feb 2015 19:00:18 -0800 (PST)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0761C1A0211 for <stox@ietf.org>; Thu, 12 Feb 2015 19:00:18 -0800 (PST)
Received: from [10.9.94.181] (mobile-166-173-058-122.mycingular.net [166.173.58.122]) (authenticated bits=0) by nostrum.com (8.14.9/8.14.7) with ESMTP id t1D305lP058712 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Feb 2015 21:00:08 -0600 (CST) (envelope-from ben@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host mobile-166-173-058-122.mycingular.net [166.173.58.122] claimed to be [10.9.94.181]
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (1.0)
From: Ben Campbell <ben@nostrum.com>
X-Mailer: iPad Mail (12B466)
In-Reply-To: <54DD3093.3030501@andyet.net>
Date: Thu, 12 Feb 2015 21:00:00 -0600
Content-Transfer-Encoding: quoted-printable
Message-Id: <E5DE3508-7F5E-4EDE-AF8A-7A5230316725@nostrum.com>
References: <E77F1000-DD04-44E7-9636-348DA463E6E8@nostrum.com> <54DC0CE3.8090405@andyet.net> <54DC1441.2090305@andyet.net> <DEC2CB7F-6A39-4E1D-8B6D-82252399F891@nostrum.com> <54DD28F4.7070200@andyet.net> <54DD3093.3030501@andyet.net>
To: Peter Saint-Andre - &yet <peter@andyet.net>
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/w7OdS5KueUBUgM13CAvLQsjF6n0>
Cc: "stox@ietf.org" <stox@ietf.org>, Alissa Cooper <alissa@cooperw.in>, "draft-ietf-stox-im.all@tools.ietf.org" <draft-ietf-stox-im.all@tools.ietf.org>
Subject: Re: [Stox] Comments on draft-ietf-stox-im-11
X-BeenThere: stox@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: SIP-TO-XMPP Working Group discussion list <stox.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/stox>, <mailto:stox-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/stox/>
List-Post: <mailto:stox@ietf.org>
List-Help: <mailto:stox-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/stox>, <mailto:stox-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Feb 2015 03:00:20 -0000



> On Feb 12, 2015, at 5:00 PM, Peter Saint-Andre - &yet <peter@andyet.net> wrote:
> 
>> On 2/12/15 3:28 PM, Peter Saint-Andre - &yet wrote:
>>> On 2/11/15 8:07 PM, Ben Campbell wrote:
>>> 
>>>> On Feb 11, 2015, at 8:47 PM, Peter Saint-Andre - &yet
>>>> <peter@andyet.net> wrote:
>>>> 
>>>>> On 2/11/15 7:16 PM, Peter Saint-Andre - &yet wrote:
>>>>>> On 2/9/15 4:27 PM, Ben Campbell wrote:
>>>>>> (No hats)
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> (I apologize that these comments are late in the process.
>>>>>> Please feel free to defer them to last call.)
>>>>>> 
>>>>>> This version mostly looks good, but there are a few minor
>>>>>> issues:
>>>>>> 
>>>>>> -- Message Size
>>>>>> 
>>>>>> It might be worth a discussion on message size limits (e.g. the
>>>>>> SIP MESSAGE method limits the size to 1300 octets except under
>>>>>> some pretty narrow circumstances.)
>>>>> 
>>>>> Thank you for pointing this out. I had glossed over it in my
>>>>> reading of RFC 3428. I think it deserves a section of its own in
>>>>> the -im document.
>>>> 
>>>> I propose the following text:
>>>> 
>>>> [RFC3428] specifies that (outside of a media session) the size of
>>>> a MESSAGE request is not allowed to exceed 1300 bytes.  Although
>>>> in practice XMPP instant messages do not often exceed that size,
>>>> neither [RFC6120] nor [RFC6121] sets an upper limit on the size of
>>>> XMPP stanzas.  However, XMPP server deployments usually do limit
>>>> the size of stanzas in order to help prevent denial of service
>>>> attacks, and [RFC6120] states that if a server sets a maximum
>>>> stanza size then the limit is not allowed to be less than 10,000
>>>> bytes.  Because of this mismatch, an XMPP-to-SIP gateway MUST
>>>> return a <policy-violation/> stanza error if an XMPP user attempts
>>>> to send an XMPP message stanza that would result in a SIP MESSAGE
>>>> greater than 1300 bytes.
>>> 
>>> That just stepped in a bit of discomfort on my part, in that I'm not
>>> sure how a gateway that happened to support both stox-im and
>>> stox-chat decides which to invoke. I'm mostly willing to ignore that
>>> particular elephant, but would it be reasonable for an implementation
>>> to decide that larger messages would get promoted to MSRP (assuming
>>> support at the other end)? If so, the MUST return a
>>> <policy-violation/> seems to forbid it.
>> 
>> We've been treating -im (page mode) and -chat (session mode) as entirely
>> separate things. However, you're right that "upgrading" from page mode
>> (SIP MESSAGE) to session mode (MSRP) might make sense in some
>> situations. Without hearing in detail from those who've implemented such
>> systems, I would be hesitant to specify guidelines for when such an
>> upgrade makes sense. Thus I'd be most comfortable with a SHOULD here and
>> leaving the upgrade logic up to implementations.
> 
> Proposed text:
> 
> ###
> 
> 6.  Message Size
> 
>   [RFC3428] specifies that (outside of a media session) the size of a
>   MESSAGE request is not allowed to exceed 1300 bytes.  Although in
>   practice XMPP instant messages do not often exceed that size, neither
>   [RFC6120] nor [RFC6121] sets an upper limit on the size of XMPP
>   stanzas.  However, XMPP server deployments usually do limit the size
>   of stanzas in order to help prevent denial of service attacks, and
>   [RFC6120] states that if a server sets a maximum stanza size then the
>   limit is not allowed to be less than 10,000 bytes.  Because of this
>   mismatch, an XMPP-to-SIP gateway SHOULD return a <policy-violation/>
>   stanza error if an XMPP user attempts to send an XMPP message stanza
>   that would result in a SIP MESSAGE greater than 1300 bytes.  Although
>   such a gateway might decide to "upgrade" from page mode to session
>   mode using the Message Session Relay Protocol (MSRP) and thus
>   treating the instant message as part of a chat session as described
>   in [I-D.ietf-stox-chat], such behavior is application-specific and
>   this document provides no guidelines for how to complete such an
>   upgrade.
> 
> ###
> 

WFM

Thanks!

Ben.


>