[Ice] draft-thatcher-ice-network-cost (was Re: STUN attribute 0xC057 - What is this?)

Adam Roach <adam@nostrum.com> Fri, 10 June 2016 02:10 UTC

Return-Path: <adam@nostrum.com>
X-Original-To: ice@ietfa.amsl.com
Delivered-To: ice@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3F52C12D68D for <ice@ietfa.amsl.com>; Thu, 9 Jun 2016 19:10:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.326
X-Spam-Level:
X-Spam-Status: No, score=-3.326 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.426] autolearn=ham autolearn_force=no
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 B1ej6Qkp7wPD for <ice@ietfa.amsl.com>; Thu, 9 Jun 2016 19:10:28 -0700 (PDT)
Received: from nostrum.com (raven-v6.nostrum.com [IPv6:2001:470:d:1130::1]) (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 D13B1128874 for <ice@ietf.org>; Thu, 9 Jun 2016 19:10:28 -0700 (PDT)
Received: from Svantevit.local (99-152-145-110.lightspeed.dllstx.sbcglobal.net [99.152.145.110]) (authenticated bits=0) by nostrum.com (8.15.2/8.15.2) with ESMTPSA id u5A2ARxt019160 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Thu, 9 Jun 2016 21:10:28 -0500 (CDT) (envelope-from adam@nostrum.com)
X-Authentication-Warning: raven.nostrum.com: Host 99-152-145-110.lightspeed.dllstx.sbcglobal.net [99.152.145.110] claimed to be Svantevit.local
To: Ross Finlayson <finlayson@live555.com>, ice@ietf.org
References: <C3FF0F69-2BC2-412E-A54A-97713429194D@live555.com>
From: Adam Roach <adam@nostrum.com>
Message-ID: <14d29af6-91f1-e782-c64c-9dfc29e5676c@nostrum.com>
Date: Thu, 09 Jun 2016 21:10:27 -0500
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
MIME-Version: 1.0
In-Reply-To: <C3FF0F69-2BC2-412E-A54A-97713429194D@live555.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ice/djoLxB0GZIHEnkLRAjBdJsgAxFE>
Subject: [Ice] draft-thatcher-ice-network-cost (was Re: STUN attribute 0xC057 - What is this?)
X-BeenThere: ice@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Interactive Connectivity Establishment \(ICE\)" <ice.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ice>, <mailto:ice-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ice/>
List-Post: <mailto:ice@ietf.org>
List-Help: <mailto:ice-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ice>, <mailto:ice-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Jun 2016 02:10:30 -0000

On 6/9/16 8:15 PM, Ross Finlayson wrote:
> (Apologies in advance for the slightly off-topic question)
>
> I’ve found that my STUN server (in my WebRTC server implementation) often receives STUN Binding Requests that contain an unknown attribute type 0xC057.  This attribute is always 4-bytes long, with each of the four bytes being zero.
>
> This unknown attribute is sent by Chrome (and Opera) browsers, but apparently never by Firefox.
>
> According to RFC 5389 (and IANA), STUN attribute 0xC057 is unassigned, but is in the 'Designated Expert’ Comprehension-Optional range.
>
> Does anyone know what this is?

Yep, it's part of the webrtc.org code:

https://chromium.googlesource.com/external/webrtc/+/6ab3db249b075e0e820a263d54804f521e7bc24b/webrtc/p2p/base/stun.h#611

It appears to have been introduced here:

https://codereview.webrtc.org/1815473002

And it seems to be described, at least at a high level, here:

https://tools.ietf.org/html/draft-thatcher-ice-network-cost-00

Maybe Peter will explain his draft further? I would suggest that the 
IANA section, at least, is incorrect.

/a