Re: [TLS] Suggestions in draft-mavrogiannopoulos-tls-cid

"Fossati, Thomas (Nokia - GB/Cambridge, UK)" <thomas.fossati@nokia.com> Fri, 07 July 2017 19:01 UTC

Return-Path: <thomas.fossati@nokia.com>
X-Original-To: tls@ietfa.amsl.com
Delivered-To: tls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A501D1317CD; Fri, 7 Jul 2017 12:01:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.91
X-Spam-Level:
X-Spam-Status: No, score=-2.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, 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=nokia.onmicrosoft.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 5rnAewFvf36S; Fri, 7 Jul 2017 12:01:56 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0114.outbound.protection.outlook.com [104.47.0.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D2C5312009C; Fri, 7 Jul 2017 12:01:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jYOnPzlJjp2exX3SFfgwRTjG8SzistYkVN70oas2E2I=; b=OtKjbO2Xdf9JZOSq5y96BEztr9ee5xBTHY6bTe+ydjdG7I083YQk2R5ZoGflJrbfRpWMqHCkgA6RueBvXHrlYRmuBa8VDi5isyHhII0+lHtpYr5oPow7dbbLSLboP+fgaz/8xoz88A76zJHVBRAaaY0FXOe34k5MWy3YT0MNkOY=
Received: from VI1PR07MB1102.eurprd07.prod.outlook.com (10.163.168.26) by VI1PR07MB1072.eurprd07.prod.outlook.com (10.163.168.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1240.6; Fri, 7 Jul 2017 19:01:49 +0000
Received: from VI1PR07MB1102.eurprd07.prod.outlook.com ([fe80::f53a:50dc:dcfe:9845]) by VI1PR07MB1102.eurprd07.prod.outlook.com ([fe80::f53a:50dc:dcfe:9845%13]) with mapi id 15.01.1240.013; Fri, 7 Jul 2017 19:01:48 +0000
From: "Fossati, Thomas (Nokia - GB/Cambridge, UK)" <thomas.fossati@nokia.com>
To: Raja ashok <raja.ashok@huawei.com>, "draft-mavrogiannopoulos-tls-cid@ietf.org" <draft-mavrogiannopoulos-tls-cid@ietf.org>, "nmav@redhat.com" <nmav@redhat.com>, "hannes.tschofenig@arm.com" <hannes.tschofenig@arm.com>
CC: "<tls@ietf.org>" <tls@ietf.org>, "Fossati, Thomas (Nokia - GB/Cambridge, UK)" <thomas.fossati@nokia.com>
Thread-Topic: Suggestions in draft-mavrogiannopoulos-tls-cid
Thread-Index: AdL3Jy6Gr1KoWVE3S5i3yCcIRuxQogANK+6A
Date: Fri, 07 Jul 2017 19:01:48 +0000
Message-ID: <AD171715-BB73-4B9D-A85F-70499C961415@nokia.com>
References: <FDFEA8C9B9B6BD4685DCC959079C81F5E22F7C99@BLREML503-MBX.china.huawei.com>
In-Reply-To: <FDFEA8C9B9B6BD4685DCC959079C81F5E22F7C99@BLREML503-MBX.china.huawei.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=nokia.com;
x-originating-ip: [92.20.230.170]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR07MB1072; 7:t/4Fi6h7na1rg809fY+OurJJEybRA7A6KTg8rKRfH7vQGGP9BrQhCvFD6umKJHV5heYMZ/86VrZDzWT718JYTgtOkihaWCpr41cG/IDOzk2crMAHSngshXC+xnzlN+4GkxDuB1GUzZtzSu8jmdWNtqhg6WXwPD/teIu7nYXh3FDimb6dH3yAugRxSOiT8thU7dbSmA4R/O3XL79uwEwMAFaIsRLtb1yjA3w65hRmc9cpEh/GRCCW7QZ4n+HQD5EBp/fXar+inGNmtEQP/a3xZuUBa5El+QAV7OQxyArIWOMPFhKp9sAF34+4OJqYT6vFU8NoqC1s6b+v25GwnrqWkOjDyvuLgg6E/hFQkaPFq/XO3eC0DhlL9I9C9dvT3EZ6y+YcMIG85MpqmdY+Jb3gYY316uLHYVtPD7k6my07z6DMnGQ75s9SXZHRoX8A972hongMLZqPpsWmG+Q2XumE7rGNgjzGlowhC9uWRD8b8871Bfv9ebZXhCe2kdpe4xPh7F6ILUxqxJmSxtjQJc6NMEBpl7F5qGS8cr3AbBJFuu4NoU+DB5R8/51Ta9dDYOn2OG1wM2ufj5uH9GpO6LTqRa7ldZ0pbhmCtWebJoelwFalHgbstdr5RkJsBWLYVhdym0K3kLLNXdyswYaNj7sl2+HRnKPT/SIn1GKA4rAZvij6pC30bFa0kswq0Uc2WvLo91UNNQSGy/WzoIlw3sUnKq1R2h7Bn9KBb1/rF5qzOmGrWZfDHkwndhgiBSRhMLuaVsxmcb5SFAbCeppOswjHmU+D0uGNR5uQSXLLTxe02gQ=
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(39450400003)(39860400002)(39840400002)(39850400002)(39400400002)(39410400002)(24454002)(53546010)(76176999)(107886003)(8936002)(561944003)(33656002)(2201001)(36756003)(230783001)(66066001)(9326002)(6506006)(4001350100001)(966005)(38730400002)(3660700001)(53386004)(81166006)(189998001)(236005)(8676002)(2906002)(53936002)(733005)(6512007)(54896002)(3280700002)(4326008)(99286003)(6246003)(54356999)(25786009)(6306002)(54556002)(6436002)(478600001)(14454004)(7736002)(6116002)(102836003)(2950100002)(5250100002)(2501003)(5890100001)(5660300001)(3846002)(6486002)(229853002)(2900100001)(50986999)(82746002)(83716003)(83506001)(86362001)(99936001); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB1072; H:VI1PR07MB1102.eurprd07.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en;
x-ms-office365-filtering-correlation-id: 3777d179-31ef-4aed-a02d-08d4c56a9ed7
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(48565401081)(300000503095)(300135400095)(2017052603031)(49563074)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:VI1PR07MB1072;
x-ms-traffictypediagnostic: VI1PR07MB1072:
x-microsoft-antispam-prvs: <VI1PR07MB107229CD08661E4B415AFDD280AA0@VI1PR07MB1072.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(151999592597050)(158342451672863)(278428928389397)(26388249023172)(236129657087228)(50582790962513)(48057245064654)(148574349560750)(88738726483465)(21748063052155);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(102415395)(6040450)(601004)(2401047)(2017060910067)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR07MB1072; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR07MB1072;
x-forefront-prvs: 0361212EA8
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/related; boundary="_004_AD171715BB734B9DA85F70499C961415nokiacom_"; type="multipart/alternative"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2017 19:01:48.6969 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB1072
Archived-At: <https://mailarchive.ietf.org/arch/msg/tls/_W4ZNZmmAyaO9GwhQAywSlA05vQ>
Subject: Re: [TLS] Suggestions in draft-mavrogiannopoulos-tls-cid
X-BeenThere: tls@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "This is the mailing list for the Transport Layer Security working group of the IETF." <tls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tls>, <mailto:tls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tls/>
List-Post: <mailto:tls@ietf.org>
List-Help: <mailto:tls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tls>, <mailto:tls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 07 Jul 2017 19:02:00 -0000

Hi Ashok,

Thanks very much for your comments.

See inline.

Cheers, t

On 07/07/2017, 14:44, "Raja ashok" <raja.ashok@huawei.com<mailto:raja.ashok@huawei.com>> wrote:

Hi Nikos, Hannes & Thomas,

This ConnectionID concept is really a useful feature for a client node which faces a change in transport and network layer. I am having few suggestions in the proposed draft, which are listed below.

1) In section 3 of this draft, explains about the modification in "DTLSCiphertext" structure. I feel instead of modifying existing DTLS and TLS record header, we can directly introduce a new record type (ContentType) for app data (application_data_with_cid(25)).

[tf] Why do you think a new record type would be better than the present construction?  (BTW, we would also need a new alert_with_cid, I guess.)

For this new record type, we can propose a modified record header for both TLS and DTLS.

[tf] If you are already modifying the record header, I am not sure why you also need to add new content type(s)?

2) More over section 3 says modification only in "DTLSCiphertext", not for "TLSCiphertext". I hope this CID mechanism should be used for both TLS and DTLS. Because this transport layer change problem is there for TLS based applications (HTTPS) also in Smartphone(when it switches from Wifi to LTE). But this TLS application problem is solved by MPTCP, but I dont think all webservers are supporting this MPTCP. So I feel CID is required for both TLS and DTLS.

[tf] In principle I’m not opposed to open the solution space to TLS, but we need to work out the implications.

3) As part of defining new record type, we can remove some unused fields like version, epoch. After removing epoch we can mandate that  both entity should not start renegotiation. Sample design for new record header with CID is mentioned below
    struct {
        uint8_t ContentType;
        uint8_t CID_len;
        CID cid;        /* Length varies from 4 to 8 (or 16) */
        uint48 sequence_number;
        uint16_t record_length;
    } DTLSRecordHeader;
    opaque CID <4..8>;

    struct {
        uint8_t ContentType;
        uint8_t CID_len;
        CID cid;        /* Length varies from 4 to 8 (or 16) */
        uint16_t record_length;
    } TLSRecordHeader;
    opaque CID <4..8>;

4) Another option is we can keep CID_len as 4 bit to represent a CID of size. And this 4 bit can be placed in the MSB of the CID field.
        ....
        uint8_t CID_len:4;
        CID cid;        /* Length varies from 28bit to 60 bit (or 124bit) */
        ....

5) Section 3.1 and 3.2 talks about the new extensions for negotiating this feature support. But I feel no need of new extensions to negotiate this, we can make client to add new SCSV cipher in its cipher list. If server accepts then after handshake the first application data send by server should be of type application_data_with_cid(25), which should hold the new record header with CID. The same CID should be used by client in the further messasge. If client sends the 1st application data after handshake, then it can send application data with default record type (application_data(23)). If the first application data record received from server is not of application_data_with_cid(25) means client should understand that server has not accepted the SCSV proposed. And client should continue app transfer with default record type (application_data(23)).

[tf] What is the problem with using a new extension?  How would negotiating parameters (e.g., CID type, CID length) work in your proposal?

Please provide your comments on this suggestion.

Regards,
Ashok


________________________________
[ompany_logo]

Raja Ashok V K
Huawei Technologies
Bangalore, India
http://www.huawei.com
________________________________
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI, which
is intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender by
phone or email immediately and delete it!