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

Peter Saint-Andre - &yet <peter@andyet.net> Thu, 12 February 2015 02:47 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 027D31A1B91 for <stox@ietfa.amsl.com>; Wed, 11 Feb 2015 18:47:37 -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 Q80qi2uA50gn for <stox@ietfa.amsl.com>; Wed, 11 Feb 2015 18:47:32 -0800 (PST)
Received: from mail-ie0-f179.google.com (mail-ie0-f179.google.com [209.85.223.179]) (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 660AA1A1B18 for <stox@ietf.org>; Wed, 11 Feb 2015 18:47:32 -0800 (PST)
Received: by iecat20 with SMTP id at20so8823930iec.12 for <stox@ietf.org>; Wed, 11 Feb 2015 18:47:31 -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=sRw4ToWs3Ca1QUcQhGQe447jlLDnLJH+fss3QQDTSqg=; b=KpDn6xw6eS7GHvEK/6RZRx+RFtkQvrEw9en0Cn3oyr0X5jzSViaD1gyN8rrts15l45 0xBi6wqTg0pNI+utCcnbub7YhNrpRXCJnMmpf7LjV4OFBk/j3z4NkYA05WhXP8DbQ/tm glG1t+UE2/f5ICUOF8/sdcNTkWymLsmHWaEq2D0NhmNNfe+JD1DUB158joPXEnLdJXAp af2sGtmOiB84MOgmCLDRkUI7dCpwB6Ux7BtgJOHJ1G8wXbjCqOJ9xvCgV+mpvhHOVUov l6VJHV4ZTXsUuBK3dbya3eCQtPxpasPXq2rjAZHrN+hHEmol7zq2FoL6rrDqe+7vdXmm iJbw==
X-Gm-Message-State: ALoCoQlKkdwFPP3IaOq7dqJx4gnxN5nFQy1SAWx1/9NvmbrTcBuzKRD1wuHEXQpPFXWgdJEGCBls
X-Received: by 10.107.46.213 with SMTP id u82mr2219453iou.68.1423709251793; Wed, 11 Feb 2015 18:47:31 -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 a125sm1607521ioa.40.2015.02.11.18.47.30 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Feb 2015 18:47:30 -0800 (PST)
Message-ID: <54DC1441.2090305@andyet.net>
Date: Wed, 11 Feb 2015 19:47:29 -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>, draft-ietf-stox-im.all@tools.ietf.org
References: <E77F1000-DD04-44E7-9636-348DA463E6E8@nostrum.com> <54DC0CE3.8090405@andyet.net>
In-Reply-To: <54DC0CE3.8090405@andyet.net>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/stox/ikMMk7JYKZcsI8Mz2QRDAeas6KM>
Cc: stox@ietf.org, Alissa Cooper <alissa@cooperw.in>
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 02:47:37 -0000

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.

Peter

-- 
Peter Saint-Andre
https://andyet.com/