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

Peter Saint-Andre - &yet <peter@andyet.net> Thu, 12 February 2015 22:28 UTC

Return-Path: <peter@andyet.net>
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 080141A1A99 for <stox@ietfa.amsl.com>; Thu, 12 Feb 2015 14:28:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level:
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] 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 tCRjl9EFfJvg for <stox@ietfa.amsl.com>; Thu, 12 Feb 2015 14:28:12 -0800 (PST)
Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3D8C61A0AF7 for <stox@ietf.org>; Thu, 12 Feb 2015 14:28:06 -0800 (PST)
Received: by iebtr6 with SMTP id tr6so4921864ieb.10 for <stox@ietf.org>; Thu, 12 Feb 2015 14:28:05 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ytYfdoZabcUtS0q7orscSyCWYQoSAFaqL9+Kma6eQq8=; b=eb2q4kLW+luXk9hXnyES/PcLXi4PddnMtriEP/dCzSsy9AVrzauY4fiPwACg4KkqAj ctCkvEH//l+jd0BXws5BbkoeNXv8ZJbhYZg7boFJt2/DZoCyudijr62IpqFU87g/BvTH 2M5jPlmuWuyo4yiWoL0lcAHRGU4SUDKyqE4y3ztF6AHmG1M7T6EqtRg1nwFqxqzaUDTE uMvbV3n2WMKiAdJl57gL1pR6lb6HPDCdk04NY5z0X90N+coKR/g/A/o9t885ugRqMINV /lS/ruiPX9iYakXJ0c6BhPZk2EjFDfRGTwf1Eo9gswZ0xDPnXK99HyUsNhY23exVy7ZL kp1w==
X-Gm-Message-State: ALoCoQmNdbi7wIl5A1JYRzOV6msK3xz4co9SS51cFwXqHL3aI34MaSLjoR5Ufkj4Dmms3yS14vS2
X-Received: by 10.42.153.132 with SMTP id m4mr11144230icw.49.1423780085686; Thu, 12 Feb 2015 14:28:05 -0800 (PST)
Received: from aither.local (c-73-34-202-214.hsd1.co.comcast.net. [73.34.202.214]) by mx.google.com with ESMTPSA id ip8sm2032447igb.17.2015.02.12.14.28.04 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Feb 2015 14:28:05 -0800 (PST)
Message-ID: <54DD28F4.7070200@andyet.net>
Date: Thu, 12 Feb 2015 15:28:04 -0700
From: Peter Saint-Andre - &yet <peter@andyet.net>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Ben Campbell <ben@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>
In-Reply-To: <DEC2CB7F-6A39-4E1D-8B6D-82252399F891@nostrum.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/DB-I_ytAmBy6i7kxxokq1-mLUOg>
Cc: stox@ietf.org, Alissa Cooper <alissa@cooperw.in>, 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: Thu, 12 Feb 2015 22:28:16 -0000

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.

> (While I'm still standing in it--what happens in stox-chat if the
> MSRP side sends a message larger than the largest allowed? Apologies
> if the draft talks about that--I don't have it in front of me.)

That's messy. :/

Ideally we'd be talking about unchunked MSRP messages. In RFC 3921/6121 
we don't have the concept of chunking for regular chat messages, and the 
only chunking method we have in XMPP is not used for chat messages but 
for file transfer (XEP-0047). For chat purposes, a typical XMPP client 
won't have the necessary application logic to handle chunked messages 
and an MSRP-to-XMPP gateway can't assume that it's OK to chunk a 
message. However, I don't see a way in RFC 4975 for an entity such as a 
gateway to advertise that it doesn't support chunking. Although in 
theory the max-size a-line could help, that applies to full messages 
before chunking. I also don't see a way in RFC 4975 to reject a 
particular MSRP SEND because it's too big.

Sigh.

Peter