Re: [Dots] Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)

Francesca Palombini <francesca.palombini@ericsson.com> Thu, 03 February 2022 09:43 UTC

Return-Path: <francesca.palombini@ericsson.com>
X-Original-To: dots@ietfa.amsl.com
Delivered-To: dots@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 719A73A0BE6; Thu, 3 Feb 2022 01:43:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.676
X-Spam-Level:
X-Spam-Status: No, score=-2.676 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.576, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-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=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 SQLRK3yil7CP; Thu, 3 Feb 2022 01:43:43 -0800 (PST)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80087.outbound.protection.outlook.com [40.107.8.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A9F5A3A0BE3; Thu, 3 Feb 2022 01:43:42 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PdGfApVzVNQbjOK1wshNvSVbDvGHguajhY6glIE6aIYXtUgNS/IF1qBAev9PNannpkJizc/MoeSsqjwNeoeXxHxVdbfKuL00HpcpKTipejFfzP1Gw5jaVGuYwXsTsJUKhYKt13qVXzp4bMxUNdREbvVtqYIYpcSfmZyzQK5xNI2q35t1sbq7MvcG/1/z91zRZVOHnAi/Y6o46BV/zerCTzPifJnW3v6nt9If276FD+wXcwdGD4E+GuBEpYUabRv7nc/0IwRO5BCpaHhXZeoZi0r94Kf3VFEaOUSt8+sSfe4IJjJc87fFRxU/r8EeQnGjtNcaXpk3sLdpMLvWU78hnQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=HCJ2xfqLLijsvTw2hVNNkUjS4oEiddU7D9zhRtrAZ8M=; b=GTxXIIGGBHTmyvy4dk/Wt5ZLb8f5d8DlqdfgowJmORS38UJR/uD+MOaWAZixUqUSFJJlodmww2JNt2feLPyqQE14Rz85kZQtFoltrUMawOxS71g9ozbXPck+WF06KLYkmeTyoadXE6ObnIyzYKwdFmMAabIMRdbicvzM9nHr0qo/DYcWLmHQdjEdNJFjR5LIjL88k+tjeIzq5rHzlcuabMxWASArFix1spYXHZvb4ekRGgOgk8qn2C4LdLWYBIKjyxmVpRzFH4BBlzF0ueCsNNKyvFaT/wJaBFsqc6ymshz5dBfDHLD2pn3QNGnr7w84rJn2Z/SXV/st+J5NSWws9Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
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=HCJ2xfqLLijsvTw2hVNNkUjS4oEiddU7D9zhRtrAZ8M=; b=Oc6EOSl+oO/8VLH8wr2YGgSM7pWIm2BI9uFKW2Vd5Q1KVN/l+DIOD10hqcAXXno0XK89XAn1tIMFBCsiaJ/akxjsOgHjbwz/a5pDTMo8AmYOUZJqmijVnzdv1vScXa1Pv1OcrEXweEfxVt1DEpunQkjcxEPDOTIpCZuNWYJ91tM=
Received: from HE1PR07MB4217.eurprd07.prod.outlook.com (2603:10a6:7:96::33) by AM8PR07MB7538.eurprd07.prod.outlook.com (2603:10a6:20b:246::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Thu, 3 Feb 2022 09:43:38 +0000
Received: from HE1PR07MB4217.eurprd07.prod.outlook.com ([fe80::cc0c:4a01:c5e9:939a]) by HE1PR07MB4217.eurprd07.prod.outlook.com ([fe80::cc0c:4a01:c5e9:939a%6]) with mapi id 15.20.4951.012; Thu, 3 Feb 2022 09:43:38 +0000
From: Francesca Palombini <francesca.palombini@ericsson.com>
To: "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com>, "supjps-ietf@jpshallow.com" <supjps-ietf@jpshallow.com>, 'The IESG' <iesg@ietf.org>
CC: "dots-chairs@ietf.org" <dots-chairs@ietf.org>, "valery@smyslov.net" <valery@smyslov.net>, "draft-ietf-dots-telemetry@ietf.org" <draft-ietf-dots-telemetry@ietf.org>, "dots@ietf.org" <dots@ietf.org>
Thread-Topic: [Dots] Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)
Thread-Index: AQHYF2eXJUUpfWSXKk6HBHUE7f8Y1ax+uzaAgAGEnEqAACsigIABIDgAgAAGTLs=
Date: Thu, 03 Feb 2022 09:43:38 +0000
Message-ID: <HE1PR07MB4217B1678CBADDC568664E2298289@HE1PR07MB4217.eurprd07.prod.outlook.com>
References: <164371865356.12619.5935879215084457872@ietfa.amsl.com> <21518_1643724434_61F93E92_21518_238_1_787AE7BB302AE849A7480A190F8B93303548A2D0@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <HE1PR07MB421746E18879FFA0870F1B7F98279@HE1PR07MB4217.eurprd07.prod.outlook.com> <074901d8184c$e1b0c870$a5125950$@jpshallow.com> <9781_1643879046_61FB9A86_9781_34_1_787AE7BB302AE849A7480A190F8B93303548B4A0@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
In-Reply-To: <9781_1643879046_61FB9A86_9781_34_1_787AE7BB302AE849A7480A190F8B93303548B4A0@OPEXCAUBMA2.corporate.adroot.infra.ftgroup>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Enabled=True; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SiteId=90c7a20a-f34b-40bf-bc48-b9253b6f5d20; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SetDate=2022-02-03T09:02:46.0000000Z; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Name=unrestricted_parent.2; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_ContentBits=0; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Method=Privileged
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e05e936d-4fc6-4559-69c8-08d9e6f9a7d2
x-ms-traffictypediagnostic: AM8PR07MB7538:EE_
x-microsoft-antispam-prvs: <AM8PR07MB7538EB2D5F4439C37BAA0C9F98289@AM8PR07MB7538.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: OvJm/pWHeZP30pPd7Ba9XGrSg2MizdzfLWaDHGbtaZw4HPJj0Vcmjj5GwPi/dzuegwalksJJ2kb7QMj7pUueZSPUzNh7M93IkWs9IYtU2x9wfPHUJ2KQxFZIySBBYrWIdmYmKHwmvIXbDAUZf4FMZWecFjr3P0c5RZCTaaykEHw4JAm5ibAMEaFAziN5ofjByPkhf2FZ5ih7rjTM6XTAxompiRhKgBPo9AT7JfcykrEeKvA7U4zPv4EbjDcm/Oq3tnQhSeihSe9gGnPZTTtP2+WFuhKmRzLyI/XX8w3u3Znu8gCTidhc9zqJnVbFNxz3dsgHmcPoAJ6VkwAxfrcVIpq+CO4hPQ/Q5wEq6XSZJhyJuCN2RYTbAOO8z4ZJZdDrsaEQP+t5rkubZz97Aevu3gL6drzosyMSkBC9QVYLhRr7TrGDeKjNPMn5/ZifBhlDUPMVEXOqznXWWN6nSIrLX2KTt1k9tMf0msx3eOw+iXnzM4AlcV7ZU8Z0n68Sz5kO28kD0Wd+JXkg9Z+TaT/f/r7tUm7LppfaX3CAIB9McU4m6SAO4BbbHJePqdRQUA9utVyTwbLjDE3UFf4JEv36Y3owBsR5thHQlnbKimXHbW4GhcSVFwrXz41W0LJ54wyDmo4KtILE/1ZWH1xOPuYfBs50JkQkXhy3MyJ7gwTs5DPtBMOqoI3heMaVgmzTvsg/PE0/0RqGDfJsG5BhNP+R9StZJr+e4pyeG9kcF/DgDu/Na8XqQbBlUVWUQwdMc2J74ulR2HVOJbdMNyc9EMBjoERiImrjWjx6YcfO4rhc8nBEslSXpWjMsXPmCKWMxfwC
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR07MB4217.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(38100700002)(122000001)(166002)(38070700005)(86362001)(82960400001)(54906003)(66574015)(8676002)(8936002)(64756008)(66446008)(66476007)(66556008)(4326008)(66946007)(316002)(91956017)(76116006)(110136005)(2906002)(52536014)(55016003)(9326002)(186003)(33656002)(5660300002)(30864003)(44832011)(9686003)(83380400001)(966005)(508600001)(6506007)(7696005)(71200400001)(53546011); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 2
x-ms-exchange-antispam-messagedata-0: 9vSTTJjDGXz/c08Oy4nIDGILVsonQZfKQDQ6upDFbyLUaaZk+kEBYhSRLPThUgUGHxVSviJhQColZRB4wt0Y9m2TG2ugXz2as6ZTDeg2ER9dYXVZuOidGLZqC4bIgVFR4uROC3DaFdoO0GcERTKgYmWX62F++ws+WX2hx14F53Ki1iHs197pGNi04hXdhnNMJcf7HzOWMgGjzEcac8ClnMhGTQU3vFMg09z7iaBrNBhvyHeL+6Jx5LjnXh/+hUiFImPF3WsSUeudSaD6PhHu7qYVWfDr/8QOd3DF8XPIvH3eD8dz/mQ4g8J6P/KW8n3WCBvYar4ucHi3aBaTODBTBKoo6YKBYeViNunhjqxnwgudFtfyJDEg3PcgWw6c9TjKTTm1FgaCi1iosfd6yfSFmdrGxuB/CtnoVrQDKhLZZ0w/7I1tV1onFckhNL39+MhOiVwKHuCnsoix/x5cN2XvCQTwLH6LtRwzhEFGwcerzfrdjVwwmCaC8WAyTYhuMRlia2q4ujrPKWhVqkqs+g3OwA8J9VeBa3Q4eugYX900+eKjoZq/gX5/h30xbuzED6xq0b89lBHSmMKgAOgTtkIhbv51Gq8Rk5n6W5l2FmBHSNg8AAoGfpmIbqpEkcLpUiEQB2H1pUrQsea5hni0y4hrZW6ouXopj1vj+KCflbSnjikTnZ6gAbFpwxhnhliYn6ybFm2XmBVx8jFytt+1sU2awcLVANC0nk//jz4flcdLLHW4TNHR/BVVSlRLHuV7gQhvoAQelQh9ZCrtzgOEpmPVTKtv1ggcF+Rn6oBpJlPMtiH0oNqzmngbGm6KhrR7uJYOsRtPyr5y6LiInzWJpaygRnSBBHn9jhliL8CTMGneZasbS5zBH6MfvZ5BhHppmk9A6xy+vgs2aHmBjr5mkIDXv65bG1shjM7oo1itgcGK5uMbXtSvmUTPqfMUwch0JDCTZTtVUqr912Q5ZcgutXuKsLWtrcww0g6PwVBYcafPKNj5T9bhU6U0VWDf85mBCRZKwB2dbkAedyi7B6YcDvD2iWyk3M//zR53EaFm0JzjlVWdKZo7E8wWJ8Yk5OqWR0h43p6WgwIKPw4KT/SApYYFgWTtNJgtoZYfZT8l9byBLuHvQHf3V3W4Zfd+LQsrhjA/mNkj3G/wm5/uDV7VrIx+Lou3APwhfxmJKbafDHTSM7uRb1fBjF3MrGgK4weXu7zhUr7N57w+Jsl+sF2jJCupqFtaFawHnGxzOmMfxTjX0r2lBmcVRQxzARTpWhmN4BWMlo/URobjxRyEENubpjwN+IeC/SzR1PBoiEraJgvZTVVYVzpGstcTKCdpoqq4A6PLuHqD6y+aVP7nRmLiq+7MdpP5UBnhjPkBlC3RGehCLHyRcoKtk05rAmLUrt37lu1+yDpRIpmUSFK9RyOL26alz+RxlPT25RvYR086cTvEVyfhhSvtvGA+32lBcQM1Iws5wUF/geciGtfFVFqJ3WdyuQ1okGWEun/qLppLBb9Vv+LTuWd6MV5CgkeEdmffL/+cGMqBUPAf6gS75xwLPIWnhJcs2wQ6NCQZl1btegjT7/vBL+AXswqDshne5nyjiLOhbzgeVbPL30E7f/ll/erEMxuSDmYdYemcxnWoODAPsnJdaIGVS3Q38SH+ZmYY4LCSGV3Jc7i/ugCPUhOQzIqIbAHh1XXgG4eE17oUZGr0hNUJhaXFl8JOFaIUGfxT+yGoR0VE8sWeGY+xos6M7gJt9Cj+L5lFy8Nf5cesPi9aIzP0jPLm4fYJCkLflTSHnYp3qX+bMa8D
x-ms-exchange-antispam-messagedata-1: 61jsl5wLNs2auaAZv7IiFnfsYXvNaywu7/A=
Content-Type: multipart/alternative; boundary="_000_HE1PR07MB4217B1678CBADDC568664E2298289HE1PR07MB4217eurp_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: HE1PR07MB4217.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: e05e936d-4fc6-4559-69c8-08d9e6f9a7d2
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2022 09:43:38.5059 (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-CrossTenant-userprincipalname: TvN50cd5zQAgAfKyvK5mn4WkNLOfMav2ZHZdvsZ4MPMM3+be1bwkYFOBghNVSi33oX6rZQ+P0Y19e4I0jtw5UdX83iEpuT1sH6Ch00AJcGQshLkoKFJa1UsL3Is1wTPD
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB7538
Archived-At: <https://mailarchive.ietf.org/arch/msg/dots/XW-6O-B1D5UXwZ2w4CVbOKXQFMc>
Subject: Re: [Dots] Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)
X-BeenThere: dots@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "List for discussion of DDoS Open Threat Signaling \(DOTS\) technology and directions." <dots.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dots>, <mailto:dots-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dots/>
List-Post: <mailto:dots@ietf.org>
List-Help: <mailto:dots-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dots>, <mailto:dots-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Feb 2022 09:43:49 -0000

Hi Med,

Thank you! Although, to be clear, I still would have preferred the actual CBOR types and CBOR diagnostic notation being used, the new note and text in 5.6 ease my concerns enough to remove the block.

Jon: I have a feeling you didn’t fully understand my point: I did not want all figures replaced with the equivalent of figure 8 of 9132. I was concerned that readers would interpret the current examples by being CBOR diagnostic notation rather than the equivalent JSON representation, so they would have misinterpreted all types, if they did not go and look at the table and realized the examples are in JSON. My preference would have been to have CBOR diagnostic notation while keeping the parameter names as key instead of using the CBOR key for it, which would have made the examples as readable as JSON, but with the additional text it is much more clear that the examples are JSON (that was hidden in one simple sentence in a section far far away, before), so I’ll remove the block.

Thanks again for the quick response and the addition to the text,
Francesca

From: mohamed.boucadair@orange.com <mohamed.boucadair@orange.com>
Date: Thursday, 3 February 2022 at 10:05
To: supjps-ietf@jpshallow.com <supjps-ietf@jpshallow.com>, Francesca Palombini <francesca.palombini@ericsson.com>, 'The IESG' <iesg@ietf.org>
Cc: dots-chairs@ietf.org <dots-chairs@ietf.org>, valery@smyslov.net <valery@smyslov.net>, draft-ietf-dots-telemetry@ietf.org <draft-ietf-dots-telemetry@ietf.org>, dots@ietf.org <dots@ietf.org>
Subject: RE: [Dots] Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)
Hi Francesca, all,

FWIW, in addition to the changes already made to Section 5.6, -21 includes this NEW note right before Figure 4 to further insist on the notations:


  Note: The payload of the message depicted in Figure 4 is CBOR-

        encoded as indicated by the Content-Format set to "application/

        dots+cbor" (Section 10.3 of [RFC9132]).  However, and for the sake

        of better readability, the example (and other similar figures

        depicting a DOTS telemetry message body) follows the conventions

        set in Section 5.6: use the JSON names and types defined in

        Section 12.

Cheers,
Med

De : Dots <dots-bounces@ietf.org> De la part de supjps-ietf@jpshallow.com
Envoyé : mercredi 2 février 2022 16:52
À : 'Francesca Palombini' <francesca.palombini@ericsson.com>; 'The IESG' <iesg@ietf.org>
Cc : dots-chairs@ietf.org; valery@smyslov.net; draft-ietf-dots-telemetry@ietf.org; dots@ietf.org
Objet : Re: [Dots] Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)

Hi Francesca,

Please see inline Jon1>

Regards

Jon

From: Francesca Palombini [mailto: francesca.palombini@ericsson.com<mailto:francesca.palombini@ericsson.com>]
Sent: 02 February 2022 13:57
To: mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com>; The IESG
Cc: draft-ietf-dots-telemetry@ietf.org<mailto:draft-ietf-dots-telemetry@ietf.org>; dots-chairs@ietf.org<mailto:dots-chairs@ietf.org>; dots@ietf.org<mailto:dots@ietf.org>; valery@smyslov.net<mailto:valery@smyslov.net>
Subject: Re: Francesca Palombini's Discuss on draft-ietf-dots-telemetry-20: (with DISCUSS and COMMENT)

Hi Med,

Answers inline.

Thanks,
Francesca

From: mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com> <mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com>>
…


Thank you for the careful review. The changes can be tracked at: https://protect2.fireeye.com/v1/url?k=31323334-501d5122-313273af-454445555731-90283074e9eba628&q=1&e=a4b1b643-167e-4fad-bbea-997afe323130&u=https%3A%2F%2Ftinyurl.com%2Fdots-telemetry-latest

Please see inline for more context.

Cheers,
Med

> -----Message d'origine-----
…
> 1. -----
>
>    JSON encoding of YANG-modeled data is used to illustrate the various
>    telemetry operations.
>
> FP: There is an inconsistency between this text and the use of
> "application/dots+cbor" in the examples. Either the Content-Format
> should be changed

[Med] The content format "application/dots+cbor" is correct.
FP: Thank you for confirming that application/dots+cbor is the correct format. The inconsistency I noted is that in all the examples, instead of using CBOR diagnostic notation (which I expected for an example in CBOR), you use the JSON encoding for the CoAP payload. I also understand that it is for readability purposes (“status”: “attack-successfully-mitigated” is more readable than “status”: 2), but that can be easily mitigated by adding comments, instead of reporting the examples body in JSON when they should be CBOR. So for example:

OLD:            "status": "attack-successfully-mitigated",

NEW:           "status": 2,      ; "attack-successfully-mitigated",



Jon> Once I had implemented the YANG-CBOR encoding with the JSON type for all of the parameters for RFC9132 as per https://datatracker.ietf.org/doc/html/rfc9132#section-6 Table 5, it was then very easy to extend RFC 9132 Table 5 with this draft’s Table 3.  Enumerations from the YANG modules were also mapped from JSON to CBOR and back as appropriate (the above enum is from https://datatracker.ietf.org/doc/html/rfc9132#section-5.2).  Within my, and other implementations I know of, everything is processed as JSON and then converted to CBOR to go out over the wire, and anything coming in over the wire was converted to JSON before any further processing. This makes the implementation’s code much easier to read.



Jon> So looking the examples could be shown as CBOR with suitable comments, but it is hard work mapping RFC9132 Figure 8 with RFC9132 Figure 7 – especially as the parameter names are encoded as CBOR numbers, not strings.



Jon> My preference is to stay as-is.



By the way most of these changes are very simple: for example "start-time": "1608336568" would become "start-time": 1608336568

Jon> Actually, because of JSON limitations for handling 64 bit numbers (max ~ 2^53), this has to be represented as a string, not a number when using JSON representation.
, or all the examples should be adapted to JSON
> Content-Format (I am not sure about what Content-Format you should use
> then, you probably know better).

[Med] We are actually using the convention/notation introduced in RFC9132 to ease the readability of the bodies. RFC9132 includes an example to illustrate the CBOR equivalent (Figure 8).
FP: Just to be clear, I don’t think it is necessary to illustrate the examples in CBOR encoding (so the equivalent of Fig 8 in 9132), but I do think it is worth using CBOR diagnostic notation instead of JSON. Also because with no note about this, one could interpret the example to be CBOR diagnostic notation with all the types wrong (string every time it’s something else).
Jon> Actually no, the types are never wrong.  The CBOR JSON mapping is very exact and fully 2-way when using this draft’s Table 3.  Any potential ‘string’ ambiguity is ruled out when the parameter name (represented as a CBOR number) is also considered.

We have also another notation flavor in RFC9132-Figure 6, that we don't use here:

"Note that this figure (and other similar figures
   depicting a schema) are non-normative sketches of the structure of
   the message."

Would adding a note to basically recalling this context be useful?
FP: You do have the note in 5.6 to say that JSON is used, however I still think it would be best to fix the examples so that they use CBOR diagnostic notation.
Jon> The real challenge I have with Diagnostic Notation is that the parameter name is represented as a number, whereas when the CBOR is mapped into JSON with the parameter name as a textual name rather than a number, it is much easier to get my head around what is being referred to.
> My preference is to keep CBOR and keep the Content-Format. I went
> through all the examples and reported below the inconsistencies.
>
> Section 7.1.2, Figure 4, 5,
>
> FP: If in CBOR, the percentiles should be expressed with the tagged item
> Decimal fraction (represented as a tagged array).

[Med] Agree if we have to produce a figure similar to Figure 8 of RFC9132. The type used in this figure is String following this mapping table:

  +----------------------+-------------+------+---------------+--------+
  | Parameter Name       | YANG        | CBOR | CBOR Major    | JSON   |
  |                      | Type        | Key  |    Type &     | Type   |
  |                      |             |      | Information   |        |
  +======================+=============+======+===============+========+
  | low-percentile       | decimal64   |TBA3  | 6 tag 4       |        |
  |                      |             |      |  [-2, integer]| String |

(same comment applies for the subsection comments).
FP: No, you could report that as 4([-2, int]) (with int = the right value). Plus adding the comment next to it “; 5.00”.
Jon> See above response.

>
> 2. -----
>
> Section 7.2.1, Figure 11, 13, 15, 17
>
> FP: Same comment as 1: unit and peak-g should be unsigned in CBOR.
>
> 3. -----
>
> Section 7.3.1, Figure 19, 20
>
> FP: Same comment as 1: capacity and unit should be unsigned in CBOR.
>
> 4. -----
>
> Section 7.2.1, Figure 11, 13, 15, 17
>
> FP: Same comment as 1: unit and peak-g should be unsigned in CBOR.
>
> 5. -----
>
> Section 7.3.1, Figure 19, 20
>
> FP: Same comment as 1: capacity and unit should be unsigned in CBOR.
>
> 6. -----
>
> Figure 36, figure 43
>
> FP: Same comment as 1: unit, mid-percentile-g, start-time and attack-
> severity should be unsigned in CBOR.
>
> 7. -----
>
> Figure 45, 47
>
> FP: attack-status, unit, mid-percentile-g, peak-g should be unsigned. I
> also note that some of the attributes defined in 9132 are used here and
> on previous examples and have for values the full spelled out meaning
> for readability, instead of the actual parameter (for example "status",
> that should have value 2 for "attack-successfully-mitigated"), and I
> think that should be at least noted in the text before the example, or
> if you want to be more precise the "attack-successfully-mitigated" could
> be a comment next to the value 2.
>
> 8. -----
>
> Section 7.1.3
>
>    client, it MUST respond with a 4.04 (Not Found) error Response Code.
>
> FP: I have a preference to remove this MUST here - it is expected
> behavior that if a resource is not present the server responds with
> 4.04, so it is not necessary to add the requirement here, actually
> redefining the response code (although it is the expected one in this
> case) should be discouraged. I suggest
> replacing: s/it MUST respond/it responds. (Note that 7.1.4 has the text
> I would expect, describing the behavior but not adding any already
> existing requirements).
>
>

[Med] We are using the normative language here to be consistent with a similar behavior in 9132:

"...it MUST respond with a 4.04 (Not Found) error Response Code"
FP: You are right, I don’t like that either (unfortunately I missed it when reviewing 9132). See section 4.6 of https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-bcp56bis#section-4.6 for more context around this. I still think this is worth changing, and I’ll make sure to discuss with Ben during the telechat.
Jon> “4.04 (Not Found)” is well defined for CoAP https://datatracker.ietf.org/doc/html/rfc7252#section-5.9.2.5 and we are not trying to change its meaning here.  Hence, I think the use of MUST is valid here.
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
>
> 9. -----
>
> FP: Related to the DISCUSS point about encoding, it would be good to
> state somewhere in the text (possibly in section 5.6) that CBOR Key
> Values can be used instead of the parameter names (see section 13.1),
> but that for readability all examples use the full names.

[Med] Updated this text:

OLD:
  JSON encoding of YANG-modeled data is used to illustrate the various telemetry operations.

NEW:
JSON encoding of YANG-modeled data is used to illustrate the various telemetry operations. Parameters names are, thus, used rather than their CBOR key values.
FP: Thanks.
>
> 10. -----
>
> Section 7.1.2, tsid definition
>
>         This is a mandatory attribute. 'tsid' MUST follow 'cuid'.
>
> FP: I am not sure I understand the use of the term "follow" here.

[Med] As the order is important to build the target, the tsid must appear after cuid. Changed to "'tsid' MUST appear after 'cuid'."

 Also I
> am confused by the fact that tsid here is named as an "attribute" while
> instead it is defined as a Uri-Path parameter, and does not appear in
> the list of attributes of Figure 3.

[Med] That's correct because we do have:

'cuid' and 'tmid' MUST NOT appear in the PUT request message body.

We used to have those in the message body but changed the design to exclusively include them as Uri-Paths.
FP: Ok, thanks for the clarification.


>
> 11. -----
>
>    Many of the pre-or-ongoing-mitigation telemetry data use a unit that
>    falls under the unit class that is configured following the procedure
>    described in Section 7.1.2.  When generating telemetry data to send
>
> FP: Section 7.1.2 does not describe the procedure to configure the unit
> (which at this point in the text I can't find anywhere).

[Med] What is configured is the unit class, not the unit. The unit will be decided based on auto-scaling.
FP: Right, but 7.1.2 still does not describe the procedure to configure the unit class (it only mentions that it is possible to configure). Anyway, this is minor.
Jon> I would be expecting auto-scaling to not be sacrificing accuracy which was a part of your original question.
 All 7.1.2 says
> is:
>
>    DOTS clients can also configure the unit class(es) to be used for
>    traffic-related telemetry data among the following supported unit
>    classes: packets per second, bits per second, and bytes per second.
>    Supplying both bits per second and bytes per second unit-classes is
>    allowed for a given telemetry data.  However, receipt of conflicting
>    values is treated as invalid parameters and rejected with 4.00 (Bad
>    Request).
>
> what am I missing?
>
> 12. -----
>
> Figure 33
>
> FP: Please either add the Reponse header (HTTP/1.1 200 OK \ Content-
> Type:
> /yang-data+json + any other header field) (this is my preferred option)
> or change the caption to indicate that this is only the response
> content.
>

[Med] Will be fixed. thanks.

> 13. -----
>
> Section 8.2
>
>         This is a mandatory attribute. 'tmid' MUST follow 'cuid'.
>
> FP: Same question as 10.

[Med] Idem as above

>
> 14. -----
>
> Section 8.1.6
>
> FP: Suggestion to add a sentence reminding the reader that this exchange
> happens over the data channel and that's why HTTP and JSON are used. (As
> Ben made me notice, this is very clearly explained in section 4.1, but I
> had forgotten by the time I got to this point in the text).
>

[Med] ACK.

> 15. -----
>
> FP: question for my understanding that comes from my low experience with
> YANG:
> I see that connection-all and connection-percentile-and-peak are groups
> of the exact same containers. Do they both need to be defined because
> the description (and hence the use) is different?
>
>

[Med] connection-all includes also current values which are not part of the structure of connection-percentile-and-peak.
FP: Ok, thanks.

_________________________________________________________________________________________________________________________



Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc

pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler

a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,

Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.



This message and its attachments may contain confidential or privileged information that may be protected by law;

they should not be distributed, used or copied without authorisation.

If you have received this email in error, please notify the sender and delete this message and its attachments.

As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.

Thank you.