Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-model-10.txt> (A YANG Data Model for NTP) to Proposed Standard

tom petch <daedulus@btconnect.com> Mon, 08 February 2021 12:22 UTC

Return-Path: <daedulus@btconnect.com>
X-Original-To: ntp@ietfa.amsl.com
Delivered-To: ntp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2AC2E3A16A0; Mon, 8 Feb 2021 04:22:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-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=btconnect.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 4cD43HND0Yxs; Mon, 8 Feb 2021 04:22:05 -0800 (PST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2131.outbound.protection.outlook.com [40.107.20.131]) (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 D5CBD3A169C; Mon, 8 Feb 2021 04:22:04 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nEOjCoDYYk8vCQ0lQjVL6gZdnot3wQrjuJGDj4coVGp45EXfEn1xFT0fur1/Tx3mWzX92tAjswypLpUyc8lIR/R2XOzHRUC0sHy1Y2jrqayA5op+VggLSWj37iLcoDLOvm5/tw5NPiWdrH9quvBnprRJ7MboR9fclH1DMg3e9zcX5hxQNqbvEooXFLWlAnwpgl2Npo0bNMYRj3vp5vXioKsIo70KB5F2aee4lFol0G/1pR/9pND3MBBWVF/LETC3KxDGehqn12poHoBu4Z4nWT8dV4Jvn9hOHRv9UKy0wx58Dgcoesh+0uNCCR7xZukTiYvCnufAkJU18yTfal2CAw==
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-SenderADCheck; bh=weVDYmhinqAT3hfq7zgoDw7WKizpqCcgu2AmXkVAhyY=; b=IBo2BBPO54JfKw9FGrfEBStVxvlvilCIdeyyvcCaYorCw6venT61o2SxUISwBGOolORI8t1szfIEjkg4iJSSSFkCKlfMs+h8qhDCVUbrdkgA8ezym20lUPHntaCYkGVe9uwzn/h0WOiEMWouX23S6cbKTkubD70RHCym+iL0VbmyiStWC72fioWKYSu13nOLMbrg/UnUsjvhMJbOQ8jsqwHDcd8gdefXT4F9oYE5b3qs7qJhII8+PJVNOGwvSCLM+KVcpdGSwtyN9xF0qYxjVXAAyOnUSryts9PoMsH5WvaxQQEo8mF31ioyoUZRruEvSQvKPWvQNSpq7KJB92QF4Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=weVDYmhinqAT3hfq7zgoDw7WKizpqCcgu2AmXkVAhyY=; b=LNv4OCGa6Nt5KwdOl+iG/RmY66niVs1cGRfISo1PW5ck2NWnO8/5N7neLskS1M2MYkydhC8r1rgGkqktsV/Q1qaGSDPExCaXaWvacYkJ0TUP4zmylWQChrTyGLvQbsU4c6kXRItm32+i7i8U2yJtAIfrvBapV9FRupD41G0RTDk=
Authentication-Results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=btconnect.com;
Received: from (2603:10a6:800:18b::8) by VI1PR07MB6701.eurprd07.prod.outlook.com (2603:10a6:800:183::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3825.8; Mon, 8 Feb 2021 12:21:59 +0000
Received: from VI1PR07MB6704.eurprd07.prod.outlook.com ([fe80::181c:709a:6f7a:b811]) by VI1PR07MB6704.eurprd07.prod.outlook.com ([fe80::181c:709a:6f7a:b811%3]) with mapi id 15.20.3825.030; Mon, 8 Feb 2021 12:21:59 +0000
From: tom petch <daedulus@btconnect.com>
To: Last Call <last-call@ietf.org>
References: <161195994417.2651.6499166797756243533@ietfa.amsl.com>
Cc: ek.ietf@gmail.com, ntp-chairs@ietf.org, ntp@ietf.org, dsibold.ietf@gmail.com, draft-ietf-ntp-yang-data-model@ietf.org
Message-ID: <60211ECF.10000@btconnect.com>
Date: Mon, 08 Feb 2021 11:21:51 +0000
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:38.0) Gecko/20100101 Thunderbird/38.5.0
In-Reply-To: <161195994417.2651.6499166797756243533@ietfa.amsl.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [86.146.121.140]
X-ClientProxiedBy: LO4P123CA0291.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::8) To VI1PR07MB6704.eurprd07.prod.outlook.com (2603:10a6:800:18b::8)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.1.65] (86.146.121.140) by LO4P123CA0291.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:196::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3825.17 via Frontend Transport; Mon, 8 Feb 2021 12:21:58 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: f8bf22ae-098b-4c7e-3ac2-08d8cc2c21df
X-MS-TrafficTypeDiagnostic: VI1PR07MB6701:
X-Microsoft-Antispam-PRVS: <VI1PR07MB6701C4BC90A79076DC80274BC68F9@VI1PR07MB6701.eurprd07.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: pbq5qmSApnEYCn/NO2YqVFi5RjpGYoEp3HwRsRg6/K7GnvFppUxq0/j0rxpkHCKrmfUq0Ho1f/Bvc7c9KwsHQERvH5NrQ1qklqS+CHbFbRHYfRwW5g1zKBSQ6qPGY/NA2pmutcvCuzVekTsdS6nZ5di5R+/Jx69iBAMiDe5+V+7VVVl6XdvF2i++shiAQ1cwqnlQHqnXdMfcV416dpIDNkgRzeyiG2duUmUczWCD8rJwHfR3NuiI43WvIeTykSrcr4tIbk43ZkwIwcipGgl0RYmjZC5GyEcrmMnmwpXcv1BxZOZRd3hmQr9sv5X+rY2DZTpbHNBehAlc3XFtfiMyZ7al06XvYJ6CADDSb9FppzC/XJcXm+LF2Ui5eCEL4nOK5aGuEVK33AUuPDnniwATOQ8vFzsulo9fd7m/c7NayKtfft5qIt7Qbc+81vEFXrlT3pqWiHIzGN3CMzbM211vL9C9aFyY1GxsGQv3DmbIi918NKI/7nLKdB6xeCMsNu0ngsXliDRBnZGNPQguPR11x2qWI3YbVpagq0kt5vGydGpvWvIdssryyor1Xkp6tJREX9ZLQ2uQlDsZpWjddIeK7mcNjR8zui0xELLU4rIJilU=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR07MB6704.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(396003)(366004)(376002)(39860400002)(346002)(136003)(8936002)(66476007)(66556008)(83380400001)(316002)(956004)(36756003)(2906002)(66946007)(6486002)(86362001)(8676002)(5660300002)(33656002)(16576012)(478600001)(6916009)(52116002)(4326008)(186003)(16526019)(45080400002)(6666004)(26005)(2616005)(21314003)(43740500002); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: g6H9Qgm9eNE2iq0FAbmi2RUdKSGKGyqhNz0ihhqmzwG6r6+dHeA9efzFrJQHQkdHrS/+lYxS9ePeH2h+eexsJhcq0tbbWBkkv97kyz6XfPh388nqM2cZ4CoqCUdakxBtbNj5idEyMzOdYax9EKEFLorNilikPCdtvSas8jlulim/ksosohYTpezrObrxsF93PmOdTOpvCr64nx7b27/YO27YRcA6E2Y0YqxCljnxrVSQJ8xDMKOk53D3sx1rEM7CmoQlcvpLlVGTP5tovguKSwVKDqcGO9ktgfSoO7kLBPsY/rVemqMl6c7zbntEKBNRhXCoyfGhSvqJdwG+URaCYoGsQ6DxLC1ymXX/QoTlqd9yGDyUSjRBHFXrX6hTiLPNw9C4+jUzjVD/BLRkzX/UYXuU8dFVQgXKVOE4T7/vngXbP49lmCSX4KUy2aHLDdYlGLSWA4ny2gWg8ck8gL7+XE1bOSVC/1196N5S1U8wqqoRKc/DWWsUYwmP/j/CGweaDVWmmuulm69fGp7NtBLS82MUoxp7ea85U6aUIbZDNgkRbNUyA65JXei2aXeJtoMsJb7lFu54oRdlEY8bQrRUsIVyIchQAZLnLaksSlH4xbtI6bhNzK+d/TlQ9KmJGp6z//ubgE6wmgw+i6tSrmRdMASq6dhtQpfdvNcf22ry4ISoEtnMa4fa3DNrPv1atUPZhh/CsQsIJ/4ZkHaEwEEp7+lrQIuWY1Ho5/+3PLvsIBCYocG4nnW0POk5wD2syMX48jKmKedRdp8KMBxzqKKkAxqL67GvGU/njawVtPCadaI+o95DgeZCmZWe6Tj8JuuS+VrDMPZBc8qEXDjVwP06mOQsnMw91uSCrJG0QVq0Z7J8nEMcJYPQcW6/D6G4MJGL4JJjg25m84+5OEfgVWE+mTYSWmXoM9bKOWLOddWSKfuyWTQ7lAElT30V/PAEQVrVr0wDkyGHo/R+8YzSwHdbOoC8zq3x/urYQ4Ctaqt5SBkiMU7gamrxlcuRhUyOC15PoPa8PLxoJTHl9vM0uCYg9iB9lLrIPbDCzOsXgRwVsIuFyhbEcn7pGF0PJM7imp14I7tWExwacrIa3g6iyrBCRIqA0NSyu2MDyvVmQ+ZM1p55SEfTgRVJWbjDMUaOKZaTvLO1D+M3Ncb4dawGG0jP2mIedZN9p8GxWMKt7QHDTStS3KIDDnFSfQ3Q1yb58/6CwQ6HuhJ5OxHfUvVvFktxGk1UBa5vgTW9yRzBeQNZNTP675ciMdubU3Vf6axOafjNBSZoP+bXxR71rUOXZGiY3AAN791AATOhj1FwKr1xS+ioy81G/RW5AgeczrneeW3p
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f8bf22ae-098b-4c7e-3ac2-08d8cc2c21df
X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB6704.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2021 12:21:59.3552 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 1DPSA2AdIYQmOFTBSr4OTDn8ziq/XLC4beeuXaNe5owDg7tcYJ6uSVgQxJONp7FaGf3YSh2Qv+D9h2Yc1DUn/w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6701
Archived-At: <https://mailarchive.ietf.org/arch/msg/ntp/F28eQhxm0W1tEa0aG7GRKdJ92lA>
Subject: Re: [Ntp] Last Call: <draft-ietf-ntp-yang-data-model-10.txt> (A YANG Data Model for NTP) to Proposed Standard
X-BeenThere: ntp@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <ntp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ntp>, <mailto:ntp-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ntp/>
List-Post: <mailto:ntp@ietf.org>
List-Help: <mailto:ntp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ntp>, <mailto:ntp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 Feb 2021 12:22:08 -0000

I have two main problems and a lot of lesser ones with this I-D; given
the number, about 50, I am not optimistic that a single cycle of
revision will see them addressed.

I see a potential loophole in the security which I will post separately
since the audience is likely to be different.

References are missing or not specific enough so when I try to compare
values in the I-D with those of the protocol, either I cannot find them
or they seem to be different. Giving values to enumerations is unusual
in YANG, since NETCONF does not transmit them, and their presence
suggests that they are protocol values, in which case I want to see what
the protocol says.  A reference to a 110 page I-D, with two updating
I-D, is inadequate IMO - section numbers are needed in every case.

Introduction
should mention support, or lack thereof, for NMDA

1.4.  Prefixes in Data Node Names
            | ianach    | iana-crypt-hash          | [RFC7317] |
the reference is wrong; this is an IANA- maintained module so the
reference must be to the IANA website

1.5.  Refrences in the Model
/Refrences/References/
/refrenced in /referenced in /

2.  NTP data model

I do not see the value of a condensed model followed immediately by a
full model. Perhaps the full model should be an Appendix although at
less than three pages, this is quite small and would be ok on its own
IMHO.

4.  Relationship with RFC 7317
/supports per-interface configurations /
support per-interface configuration/

5.  Access Rules
/refer access-mode) and attach different acl-rule/
see access-mode) and attach a different acl-rule/

6.  Key Management
/32-bits unsigned /32-bit unsigned/

/this YANG modules/this YANG module/

NTP association (for example unicast-server),
/specefied/specified/

7.  NTP YANG Module

     import iana-crypt-hash {
      reference         "RFC 7317: A YANG Data Model for System
Management";
wrong reference - this module is IANA-maintained so the reference must
be to the IANA website

     contact
        WG List:  <mailto: ntpwg@lists.ntp.org
this is not the address I see on the datatracker

the I-D has five editors but there are only two here

     typedef access-mode {
I cannot find this in RFC5905

     typedef association-mode {
this I can find but it ranges from 0 to 7 whereas the I-D has 0 to 4 - is
this intended?

     typedef ntp-sync-state {
this I cannot find; a search for 'spike' yields a value of 2 in the
RFC, 5 here - is this intended?

              effect in XXX seconds.";
for what value of XXX?

       leaf packet-sent {
       leaf packet-received {
       leaf packet-dropped {
            discontinuities in the value of sysUpTime.";
those who have been involved with network management for ten years or
less will likely not recognise this object.  You could add a reference
but I suggest you replace it with a YANG-based approach; see for example
how draft-ietf-ospf-yang handles discontinuities

           leaf access-mode {
/defination/definition/

           leaf clock-refid {
...                         reference clock of the peer to
                which clock is synchronized.";

I do not understand this.  Presumably this corresponds to
               type string {
                 length "4";
from the three type union but what object is this?

           leaf clock-offset {
examples could do with units to make it clear that it is '1.232mS' and
not '1.232s'

         leaf address {
           type inet:host;
this includes the domain name, which I see no mention of in the RFC

       list associations {
            /and isconfigured is required/and isconfigured are required/

         leaf address {
           type inet:host;
as above, the description seems to ignore the option of the domain name

         leaf refid {
same union as for leaf clock-refid, but a completely different
description, neither of which I understand.

                '20.1.1.1'
this address would appear to be assigned to Microsoft, not an
affiliation I see among the authors.  Is the company ok with this?

         leaf reach {
           type uint8;
is this the 8-bit p.reach shift register? reference needed (again:-)

         leaf unreach {
ditto

         leaf poll {
           type uint8;
           units "seconds";
           description
             "The polling interval for current association";
is there a useful default?  2s appears in the RFC in places

         leaf offset {
as above, the example values would be clearer with units

         leaf transmit-time {
           type yang:date-and-time;
           description
             "This is the local time, in timestamp format,
              at which the NTP packet departed the peer(T3).
              If the peer becomes unreachable the value is set to zero.";
I think, but am not sure, that a yang:date-and-time can never be set to
zero, the syntax does not allow it; the usual approach with YANG is a
union with another type which can indicate a special condition - int,
boolean, etc

         leaf input-time {
           type yang:date-and-time;
ditto

             leaf ttl {
               type uint8;
               description
                 "Specifies the time to live (TTL)
TTL does not exist in IPv6

             uses common-attributes {
               description
/attribute like/attributes such as/

             leaf ttl {
               type uint8;
               description
                 "Specifies the maximum time to live (TTL) for
TTL does not exist in IPv6

             uses common-attributes {
/attributes like/attributes such as/

             leaf beacon {
what are the units and is there a default? Is there a maximum of 15?  As
ever, a reference could tell me.

8.  Usage Example
lots of examples but none for IPv6 or JSON

8.1
      <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
sys: is a defined prefix and must not be re-used

          <refid>20.1.1.1</refid>
as above, is Microsoft ok with this?

8.2
        <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
sys: is a defined prefix and must not be re-used

8.3
        <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
sys: is a defined prefix and must not be re-used

8.4
        <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
sys: is a defined prefix and must not be re-used

8.5
  "224.1.1.1"
would appear to be a reserved address.  Other RFC used 224.0.1.1

        <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
and again, twice

              <address>224.1.1.1</address>
as above

8.6
  "224.1.1.1"
as above

         <sys:ntp xmlns:sys="urn:ietf:params:xml:ns:yang:ietf-ntp">
as above, twice

8.7
      <ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp">
as above

8.8
      <ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp">
as above

          <refid>20.1.1.1</refid>
as above

8.9
      <ntp xmlns="urn:ietf:params:xml:ns:yang:ietf-ntp">
as above

12.2
    [RFC7317]  Bierman, A. and M. Bjorklund, "A YANG Data Model
wrong reference in the wrong place
this is an IANA-maintained module and so the reference must be to the
IANA website; and since the module is imported, the reference must be
Normative.

Tom Petch


----- Original Message -----
From: "The IESG" <iesg-secretary@ietf.org>
To: "IETF-Announce" <ietf-announce@ietf.org>
Cc: <ek.ietf@gmail.com>; <ntp-chairs@ietf.org>; <ntp@ietf.org>;
<dsibold.ietf@gmail.com>; <draft-ietf-ntp-yang-data-model@ietf.org>
Sent: Friday, January 29, 2021 10:39 PM
Subject: Last Call: <draft-ietf-ntp-yang-data-model-10.txt> (A YANG Data
Model for NTP) to Proposed Standard