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

Martin Thomson <martin.thomson@gmail.com> Wed, 14 August 2013 16:10 UTC

Return-Path: <martin.thomson@gmail.com>
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 740DC21E80D5 for <mmusic@ietfa.amsl.com>; Wed, 14 Aug 2013 09:10:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.525
X-Spam-Level:
X-Spam-Status: No, score=-2.525 tagged_above=-999 required=5 tests=[AWL=0.075, BAYES_00=-2.599, NO_RELAYS=-0.001]
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 LnqgXCojGd7E for <mmusic@ietfa.amsl.com>; Wed, 14 Aug 2013 09:10:51 -0700 (PDT)
Received: from mail-wi0-x231.google.com (mail-wi0-x231.google.com [IPv6:2a00:1450:400c:c05::231]) by ietfa.amsl.com (Postfix) with ESMTP id 13A3021E80CC for <mmusic@ietf.org>; Wed, 14 Aug 2013 09:10:50 -0700 (PDT)
Received: by mail-wi0-f177.google.com with SMTP id hq12so2162886wib.4 for <mmusic@ietf.org>; Wed, 14 Aug 2013 09:10:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=foKRBCxeWwKqZFdqaQLW5ALY2yq5JC6irnaBgkyAM4o=; b=WY/rdXEhtGUI51MWWz27GOz3l17A7QWb/U7pnqnVwjOCpM3nZKF3GighYU5FvbQLrb a08n0gFSpP8WEeTJyc4fErjym23jwVoZ1ZJn/SS7fH6MxbrWmeXgR3b+rTn/Zi2yOEfd +fMwJaMUW5r7vj8uxccPdknwidP08KwhVu95ZdIGXA39Qoi3/dD7iyG1S798wDSq8qYD z/PYuX0yuDh7Uuo2qkPGP7eEg1Fpf2uZ0NSfIcUBtnIVgKtXTLrYAUtAMQLWipfU1Pd0 Zjmit3mqSAEE9Y6vR31ngCQfOVU2g54HBissPt7sM351daZsx5voSBG7aFcUXGuNx1XN rkEw==
MIME-Version: 1.0
X-Received: by 10.180.212.51 with SMTP id nh19mr5865211wic.14.1376496648102; Wed, 14 Aug 2013 09:10:48 -0700 (PDT)
Received: by 10.194.28.39 with HTTP; Wed, 14 Aug 2013 09:10:48 -0700 (PDT)
In-Reply-To: <520B299F.9060409@goodadvice.pages.de>
References: <520B299F.9060409@goodadvice.pages.de>
Date: Wed, 14 Aug 2013 17:10:48 +0100
Message-ID: <CABkgnnVMTjNfBQYUa5if-o4vKaxB_7NguAZJ8qiu=_mGDF9ePQ@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
To: Philipp Hancke <fippo@goodadvice.pages.de>
Content-Type: text/plain; charset="UTF-8"
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: Wed, 14 Aug 2013 16:10:52 -0000

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.

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