Re: [MMUSIC] Comments on ABNF in draft-petithuguenin-mmusic-ice-sip-sdp-01

Ari Keränen <ari.keranen@ericsson.com> Fri, 24 January 2014 14:03 UTC

Return-Path: <ari.keranen@ericsson.com>
X-Original-To: mmusic@ietfa.amsl.com
Delivered-To: mmusic@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 95C4C1A0477 for <mmusic@ietfa.amsl.com>; Fri, 24 Jan 2014 06:03:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.601
X-Spam-Level:
X-Spam-Status: No, score=-1.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=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 rnxt5jAayQE9 for <mmusic@ietfa.amsl.com>; Fri, 24 Jan 2014 06:03:22 -0800 (PST)
Received: from sesbmg20.ericsson.net (sesbmg20.ericsson.net [193.180.251.56]) by ietfa.amsl.com (Postfix) with ESMTP id D1A7A1A0377 for <mmusic@ietf.org>; Fri, 24 Jan 2014 06:03:21 -0800 (PST)
X-AuditID: c1b4fb38-b7f418e000001099-7d-52e26f234bfc
Received: from ESESSHC014.ericsson.se (Unknown_Domain [153.88.253.124]) by sesbmg20.ericsson.net (Symantec Mail Security) with SMTP id 21.65.04249.32F62E25; Fri, 24 Jan 2014 14:48:20 +0100 (CET)
Received: from ESESSMB205.ericsson.se ([169.254.5.205]) by ESESSHC014.ericsson.se ([153.88.183.60]) with mapi id 14.02.0387.000; Fri, 24 Jan 2014 14:48:19 +0100
From: Ari Keränen <ari.keranen@ericsson.com>
To: Magnus Westerlund <magnus.westerlund@ericsson.com>
Thread-Topic: Comments on ABNF in draft-petithuguenin-mmusic-ice-sip-sdp-01
Thread-Index: AQHPF1VgyDIAHSSGLku7JH0ZsrROJpqT1nEA
Date: Fri, 24 Jan 2014 13:48:18 +0000
Message-ID: <CFACE3F5-EA1A-42EB-9CE9-842AF9DF883B@ericsson.com>
References: <52DF90E9.2070902@ericsson.com>
In-Reply-To: <52DF90E9.2070902@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [153.88.183.150]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <87C20A0EBD5A1B4CBC0DD5FF2B987D54@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMLMWRmVeSWpSXmKPExsUyM+Jvja5K/qMgg+aV7BZTlz9msbiw5i6T A5PH5SveHkuW/GQKYIrisklJzcksSy3St0vgytjSvY6tYLZkRf+NVYwNjIcEuxg5OSQETCQa 5q1igbDFJC7cW8/WxcjFISRwhFGibelCJghnCaNEd9d0VpAqNgF7iclrPjKC2CICZhIPJ+xn A7GZBQIlujtPM4PYwgJeEnu2L2GCqPGW+NPSzgxhG0msn9cJNodFQFXi78kzYDYv0MyjqzeB zRQS0JbY++wV2ExOAR2Jg+ePgV3HCHTd91NrmCB2iUvcejKfCeJqAYkle84zQ9iiEi8f/2OF sJUkVmy/xAhRrydxY+oUoJkcQLa1xJn58RBhbYllC18zQ5wgKHFy5hOWCYzis5BsmIWkexZC 9ywk3bOQdC9gZF3FyFGcWpyUm25ksIkRGFEHt/y22MF4+a/NIUZpDhYlcd6Pb52DhATSE0tS s1NTC1KL4otKc1KLDzEycXBKNTDWHS/dUj3H/OBtd7NNmwvEt6eVXIxZcqFSwtm1Yq+ljkyX 0aXvy/KKeMxvnnrMIfuSKeATz3tGa8t3E1Rm+3xbxl6vb1THZs49535bY9d7rwDn1qms53fN 2KP6Q8DFc4nCBf3tP8p2XavY+uHIishu+df7/edvP787TFVm+u2GOxzp4cq1Kl+VWIozEg21 mIuKEwGr8avvdgIAAA==
Cc: Marc Petit-Huguenin <petithug@acm.org>, "mmusic (E-mail)" <mmusic@ietf.org>
Subject: Re: [MMUSIC] Comments on ABNF in draft-petithuguenin-mmusic-ice-sip-sdp-01
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.15
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, 24 Jan 2014 14:03:23 -0000

Hi Magnus,

Good point. That ABNF indeed seems to be overly liberal on the extension attribute names and values. Perhaps e.g., token would be more appropriate at least for the extension-att-name (like att-field in RFC4566). 

For extension-att-value, are there any reasonable use cases where e.g., VCHAR would not be sufficient? Are RFC4566 att-values with non-printable characters used somewhere?


Cheers,
Ari

On 22 Jan 2014, at 11:35, Magnus Westerlund <magnus.westerlund@ericsson.com> wrote:

> Hi,
> 
> As part of the RTSP for NAT work I actually noticed an issue with the
> ABNF that is defined for ICE in SDP.
> 
> From Section 8.1:
> 
>   candidate-attribute   = "candidate" ":" foundation SP component-id SP
>                           transport SP
>                           priority SP
>                           connection-address SP     ;from RFC 4566
>                           port         ;port from RFC 4566
>                           SP cand-type
>                           [SP rel-addr]
>                           [SP rel-port]
>                           *(SP extension-att-name SP
>                                extension-att-value)
> 
>   foundation            = 1*32ice-char
>   component-id          = 1*5DIGIT
>   transport             = "UDP" / transport-extension
>   transport-extension   = token              ; from RFC 3261
>   priority              = 1*10DIGIT
>   cand-type             = "typ" SP candidate-types
> 
> 
> 
> Petit-Huguenin & KeranenExpires August 29, 2013                 [Page 9]
> 
> Internet-Draft             ICE SIP/SDP Usage               February 2013
> 
> 
>   candidate-types       = "host" / "srflx" / "prflx" / "relay" / token
>   rel-addr              = "raddr" SP connection-address
>   rel-port              = "rport" SP port
>   extension-att-name    = byte-string    ;from RFC 4566
>   extension-att-value   = byte-string
>   ice-char              = ALPHA / DIGIT / "+" / "/"
> 
> The issue is what is allowed in extension-att-name and
> extension-att-value. They are listed here as byte-string. That is an
> extremely wide allowance in what values to be included.
> 
> First of all it includes SP the character used for delimiting the
> -att-name against the -att-value and the next set of name and value. I
> can't see that one can allow that, and if one have values that includes
> space, then they must be escaped.
> 
> Further I wonder if it wise to include the non-visible values from the
> below 128 range of the byte. It might be okay, but some thought needs to
> be put into this.
> 
> Cheers
> 
> Magnus Westerlund
> 
> ----------------------------------------------------------------------
> Services, Media and Network features, Ericsson Research EAB/TXM
> ----------------------------------------------------------------------
> Ericsson AB                 | Phone  +46 10 7148287
> Färögatan 6                 | Mobile +46 73 0949079
> SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com
> ----------------------------------------------------------------------
>