Re: [MMUSIC] Magnus Westerlund's Discuss on draft-ietf-mmusic-data-channel-sdpneg-25: (with DISCUSS and COMMENT)

Magnus Westerlund <magnus.westerlund@ericsson.com> Wed, 10 April 2019 08:18 UTC

Return-Path: <magnus.westerlund@ericsson.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 D93B91200FE; Wed, 10 Apr 2019 01:18:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.com
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 CGM9z2sFxgoA; Wed, 10 Apr 2019 01:18:27 -0700 (PDT)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70047.outbound.protection.outlook.com [40.107.7.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0CB6A120198; Wed, 10 Apr 2019 01:18:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U+NGe/D2fMwFbsl5Ldeb4FGPB0uD/H79qpqosNR6ZpU=; b=nHQJSW8NM+Q5jtnPuqtlH2eLy+/tCHr9JVb9TxxbsCDytvSlsdvdkucKresu2MnFc2Wuqt9FjQaZVX0qJo/qIPxsTFxM2ECDXMnqDm3LTrFQP8ZBGBXM57d+ET5eaLcUtE4qL7gKJZ0jVnO4qtUduTZGCicaOLuaNqkOyhde9go=
Received: from HE1PR0701MB2522.eurprd07.prod.outlook.com (10.168.128.149) by HE1PR0701MB2412.eurprd07.prod.outlook.com (10.168.128.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.8; Wed, 10 Apr 2019 08:18:23 +0000
Received: from HE1PR0701MB2522.eurprd07.prod.outlook.com ([fe80::107c:5f27:2ef:8505]) by HE1PR0701MB2522.eurprd07.prod.outlook.com ([fe80::107c:5f27:2ef:8505%5]) with mapi id 15.20.1792.009; Wed, 10 Apr 2019 08:18:23 +0000
From: Magnus Westerlund <magnus.westerlund@ericsson.com>
To: Adam Roach <adam@nostrum.com>, The IESG <iesg@ietf.org>
CC: "mmusic-chairs@ietf.org" <mmusic-chairs@ietf.org>, "draft-ietf-mmusic-data-channel-sdpneg@ietf.org" <draft-ietf-mmusic-data-channel-sdpneg@ietf.org>, "mmusic@ietf.org" <mmusic@ietf.org>
Thread-Topic: [MMUSIC] Magnus Westerlund's Discuss on draft-ietf-mmusic-data-channel-sdpneg-25: (with DISCUSS and COMMENT)
Thread-Index: AQHU66fNA40h4UsP7kq3a/Vv5QT6wQ==
Date: Wed, 10 Apr 2019 08:18:23 +0000
Message-ID: <HE1PR0701MB2522ADFF02F9BF4CA7EBAB72952E0@HE1PR0701MB2522.eurprd07.prod.outlook.com>
References: <155446588097.13196.6373243259627185094.idtracker@ietfa.amsl.com> <1afcb116-36cb-be51-81ac-e78fc52c9255@nostrum.com> <HE1PR0701MB252226AB6D1CBCD2DFEFB4AB952D0@HE1PR0701MB2522.eurprd07.prod.outlook.com> <b1b54496-2f51-511b-9ef8-6c5b6a085640@nostrum.com>
Accept-Language: sv-SE, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=magnus.westerlund@ericsson.com;
x-originating-ip: [193.180.17.5]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: fdf8d6ae-00e5-4f2e-295e-08d6bd8d19ae
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7193020); SRVR:HE1PR0701MB2412;
x-ms-traffictypediagnostic: HE1PR0701MB2412:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <HE1PR0701MB24129CB7D1E757F7D65545AC952E0@HE1PR0701MB2412.eurprd07.prod.outlook.com>
x-forefront-prvs: 00032065B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(136003)(366004)(396003)(52314003)(199004)(189003)(52536014)(71200400001)(71190400001)(236005)(6506007)(81166006)(25786009)(4326008)(6306002)(54896002)(53546011)(110136005)(229853002)(93886005)(8676002)(8936002)(9686003)(86362001)(7736002)(966005)(55016002)(81156014)(478600001)(5660300002)(105586002)(3846002)(6116002)(316002)(97736004)(606006)(68736007)(256004)(6436002)(99286004)(6246003)(74316002)(26005)(476003)(54906003)(76176011)(446003)(186003)(2906002)(53936002)(7696005)(33656002)(66066001)(44832011)(102836004)(486006)(14454004)(106356001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0701MB2412; H:HE1PR0701MB2522.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: r2quPq6cgQo2441WylLHvGh3kF2pHIXNJVeb+/NTxi6KJAWeba4d25A+HN2H9CvxM9UFEguxPqDr1rfXcZ0aY4JYzVw3WsFTnQibsAA0rqyEJAin3E/wjySCeugluc9DZ48ABjz0NMS89df8gApSRoqzVaYnUbcBXgyESk+UHInWORkyf9oh12mUchJFLCilrki1dMCwJbkWz0qSDGixK8jHAZxzj6x3fr7PTDdjVPIi0GsndMVTCwAZ2n9oSewk9coZAFQXbZSUHe89BYyrPXTli57XXXz3Jl4PKEa+6IuGEyQsMl3m+td57A67HWKoJ7QoGznJUzX/g4evyTujtEvVl7O/bX/7Ogy4uMR28sNUKkEV54fZPTOO6/KLJ2UhEZG5Tra79JpDOuxldKWQt3XkbroqrozMbdkJthe5810=
Content-Type: multipart/alternative; boundary="_000_HE1PR0701MB2522ADFF02F9BF4CA7EBAB72952E0HE1PR0701MB2522_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: fdf8d6ae-00e5-4f2e-295e-08d6bd8d19ae
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Apr 2019 08:18:23.6735 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0701MB2412
Archived-At: <https://mailarchive.ietf.org/arch/msg/mmusic/wuQvzCmzuh9mWwL9m95cGcgkLgo>
Subject: Re: [MMUSIC] Magnus Westerlund's Discuss on draft-ietf-mmusic-data-channel-sdpneg-25: (with DISCUSS and COMMENT)
X-BeenThere: mmusic@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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, 10 Apr 2019 08:18:30 -0000

On 2019-04-09 18:51, Adam Roach wrote:
On 4/9/19 4:00 AM, Magnus Westerlund wrote:
On 2019-04-08 17:55, Adam Roach wrote:
On 4/5/19 7:04 AM, Magnus Westerlund via Datatracker wrote:

----------------------------------------------------------------------
DISCUSS:
----------------------------------------------------------------------

There might be a serious issue in label definition.

5.1.3.  Label Parameter

   The 'label' parameter indicates the name of the channel.  It
   represents a label that can be used to distinguish, in the context of
   the WebRTC API [WebRtcAPI], an RTCDataChannel object from other
   RTCDataChannel objects.  This parameter maps to the 'Label' parameter
   defined in [I-D.ietf-rtcweb-data-protocol].  The 'label' parameter is
   optional.  If it is not present, then its value defaults to the empty
   string.

  label-opt       = "label=" quoted-string
  quoted-string   = DQUOTE *(quoted-char / escaped-char) DQUOTE
  quoted-char     = SP / quoted-visible
  quoted-visible  = %x21 / %x23-24 / %x26-7E ; VCHAR without " or %
  escaped-char    = "%" HEXDIG HEXDIG

I interpret that as the intention is to enable the SDP Attribute to carry the
label as defined in W3C API. That value is in the current candidatate
specification an https://www.w3.org/TR/webrtc/ as an USVSsting
(https://heycam.github.io/webidl/#idl-USVString). And in the reference version
of the WebRTC API as an DOMstring. Both are not limited to ASCII and may
contain any Unicode characters. Thus the escaping mechanism defined appear to
be insufficient.

I think the "quoted-string" need a definition of what type of string this truly
are so that it is clear what a character in the string is.

In addition the specification of escaping is undersspecified. I would recommend
at least adding discussion of the need and how to escape DQUOTE and % that can
be relatively common operations.


I can see that this could benefit from some explicit detail about how to convert the cited USVString string into the "quoted-string" construct defined here. I think this roughly consists of:

  *   Serialize the WebRTC label as a UTF-8 string
  *   Treat the UTF-8 serialization as a series of bytes
  *   For each byte in the serialization:
     *   If the byte can be expressed as a `quoted-char`, do so
     *   Otherwise, express the byte as an `escaped-char`.

Would including text to that effect satisfy your concern?

Yes it would be clear what is expected. However, I fail to understand why one need to ASCIIify and escape the UTF-8 encoded characters where one could simply define the label value as an UTF-8 string something that is compatible with SDP specification. Wouldn't that reduce the set of characters needing escaping to a much smaller set.


That's a little tricky. RFC 4566: "SDP also allows other character sets such as ISO 8859-1 to be used when desired."

Even if we just constrain this to SIP, RFC 3261: "When no explicit charset parameter is provided by the sender, media subtypes of the 'text' type are defined to have a default charset value of 'UTF-8'."

So there's a bias towards UTF-8, but no strict requirement.

I'd support a short document that deprecated non-UTF-8 encodings of SDP so that specifications like this one could simply assume that the full character set can be used directly, but that's not the current state of affairs.

Is this something that actually should be addressed in4566bis?

Anyway, I am fine with the previous outline for solution as my issue was that it was not clear how to get the intended labels into the SDP when desired in a way that is interoperable. So I will remove my discuss when the document has been addressed.

cheers

Magnus Westerlund

----------------------------------------------------------------------
Network Architecture & Protocols, Ericsson Research
----------------------------------------------------------------------
Ericsson AB                 | Phone  +46 10 7148287
Torshamnsgatan 23           | Mobile +46 73 0949079
SE-164 80 Stockholm, Sweden | mailto: magnus.westerlund@ericsson.com<mailto:magnus.westerlund@ericsson.com>
----------------------------------------------------------------------