Re: [MMUSIC] RFC 5245: ice-ufrags of length 256 vs stun maximum username length of 512 bytes

Philipp Hancke <fippo@goodadvice.pages.de> Fri, 16 August 2013 07:48 UTC

Return-Path: <fippo@goodadvice.pages.de>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0926B11E810F for <mmusic@ietfa.amsl.com>; Fri, 16 Aug 2013 00:48:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FtC+qNeOWeHL for <mmusic@ietfa.amsl.com>; Fri, 16 Aug 2013 00:48:31 -0700 (PDT)
Received: from lo.psyced.org (lost.IN.psyced.org [188.40.42.221]) by ietfa.amsl.com (Postfix) with ESMTP id B1CB611E810A for <mmusic@ietf.org>; Fri, 16 Aug 2013 00:48:30 -0700 (PDT)
Received: from lo.psyced.org (localhost [127.0.0.1]) by lo.psyced.org (8.14.3/8.14.3/Debian-9.4) with ESMTP id r7G7mRX2014329 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Aug 2013 09:48:27 +0200
Received: from localhost (fippo@localhost) by lo.psyced.org (8.14.3/8.14.3/Submit) with ESMTP id r7G7mRR0014325; Fri, 16 Aug 2013 09:48:27 +0200
X-Authentication-Warning: lo.psyced.org: fippo owned process doing -bs
Date: Fri, 16 Aug 2013 09:48:27 +0200
From: Philipp Hancke <fippo@goodadvice.pages.de>
X-X-Sender: fippo@lo.psyced.org
To: Martin Thomson <martin.thomson@gmail.com>
In-Reply-To: <CABkgnnVMTjNfBQYUa5if-o4vKaxB_7NguAZJ8qiu=_mGDF9ePQ@mail.gmail.com>
Message-ID: <alpine.DEB.2.00.1308160938080.14145@lo.psyced.org>
References: <520B299F.9060409@goodadvice.pages.de> <CABkgnnVMTjNfBQYUa5if-o4vKaxB_7NguAZJ8qiu=_mGDF9ePQ@mail.gmail.com>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
Cc: "mmusic@ietf.org" <mmusic@ietf.org>
Subject: Re: [MMUSIC] RFC 5245: ice-ufrags of length 256 vs stun maximum username length of 512 bytes
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Multiparty Multimedia Session Control Working Group <mmusic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mmusic>, <mailto:mmusic-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/mmusic>
List-Post: <mailto:mmusic@ietf.org>
List-Help: <mailto:mmusic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mmusic>, <mailto:mmusic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 16 Aug 2013 07:48:36 -0000

On Wed, 14 Aug 2013, Martin Thomson wrote:
> On 14 August 2013 07:54, Philipp Hancke <fippo@goodadvice.pages.de> wrote:
>>
>> Off by one?
>
> Maybe.  It certainly looks like an off-by-one error in the specs,
> though you could technically argue that both sets of length
> restrictions apply, since they are independent.  After all, not all
> users of the STUN username attribute are also doing ICE.

Right. I'd actually hope that implementations don't send anything longer 
than 512 bytes. I am not so sure about the comparison on the receiving 
end.
It's probably a good idea to mention this explicitly in 5245bis or
draft-ietf-mmusic-ice-sip-sdp though.

>> For ice-pwd this isn't a problem, right?
>
> This doesn't transit the network in STUN packets.  In SDP, the maximum
> size is 256 characters, but that's not a limit that other signaling
> protocols need to respect.

phew :-)