Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang

Xufeng Liu <xufeng.liu.ietf@gmail.com> Mon, 24 February 2020 18:27 UTC

Return-Path: <xufeng.liu.ietf@gmail.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A2F83A10B0 for <netmod@ietfa.amsl.com>; Mon, 24 Feb 2020 10:27:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 afGOzMXET2Ka for <netmod@ietfa.amsl.com>; Mon, 24 Feb 2020 10:27:02 -0800 (PST)
Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 94BEC3A10A8 for <netmod@ietf.org>; Mon, 24 Feb 2020 10:27:02 -0800 (PST)
Received: by mail-io1-xd43.google.com with SMTP id m25so11265772ioo.8 for <netmod@ietf.org>; Mon, 24 Feb 2020 10:27:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vdFGsAAIPwM+Xc+o2DzkOqL59Jcf1b4ODJJUnS4vNyg=; b=o3HW3tUbrUVk4MWNkqkcxUnZV/MUO59dnJtjH7FjjkmE0ZfJRygBcSAID0264ovp2I C+Oa0k5OMW4cES/ofASjmv0Vfs8SlgxlvTr0O8fnLt2fQtcEfXLNp7IgUmGJyeqJ9FcZ 7vIQv+epYQtQY7O34Layc1Rinp4h3EJFv1WWCWPQ9q116oN9VGDn13j0e9+onEcBoMvv tBqcUaV6Z3YHIQZoMDhDNAMetnPy6VnQGDV+22AyNtekC7625q0I4hTWrlC/QyOUYrLA 7tGvvAgOQYhYiI3Pcgv+cdVqytIeMSpNJgjTtDHPFIsvLC4xCzYP8EAGb2Ss4nFgL9gT fqIA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vdFGsAAIPwM+Xc+o2DzkOqL59Jcf1b4ODJJUnS4vNyg=; b=XxjusCKbY3IYUVwuIwoZ9eeC0bl961WFVTQz0i4cdBSdLUhP5zAGRskD4JXLuZ9YX0 a5RZk/38SiSAqwH832fqrVMv1ZeCgxwXKep612/1kNmoF/+8VII2l1PNq3VHirqjKeYM db0d/PrU2ZlCnWjyaZYq/Kh9eeEpJ1pQnDY0u+ua7VLNjDl1uSE683pLpZ+JIdbGfqLc 2h5JS7IxV8qU2dogNGJecTpU8NUzLRhz0hyjX2lHPv4o0nTUaC+kaFyEAlZrG/E2nz1A Fmiq5zVpQWDPw89jslueMnEoEu9NGNMRYfK+vMFs+TrTZMkdW1D2Oi01+QDh5BnxRrr+ dU8Q==
X-Gm-Message-State: APjAAAX/CDDtrUgclqhLO+Z2qPZ2MNguuwKXvbWfMBrwKlbRDu0fCOvF 9lBe0WfVWIjNEBaeXEY5zIODOtWq6nSYSZw9znE=
X-Google-Smtp-Source: APXvYqx7onHZD3pLBy1XvIeNjgXVM38Vs7KVSp0dIUjvfy0QBXHCy4Y20+NMtKWUopJlQ95T78Me01Pfj4rflSsXnb4=
X-Received: by 2002:a5d:8a10:: with SMTP id w16mr50704586iod.216.1582568821652; Mon, 24 Feb 2020 10:27:01 -0800 (PST)
MIME-Version: 1.0
References: <e655193d-79f5-f339-7043-65e2044c406e@bogus.com> <20200218231700.3tho6ngescf2k4zh@anna.jacobs.jacobs-university.de> <4b29cb4d-d252-b139-a46c-b5530f998a3b@cisco.com> <CWXP265MB0775983A3A9DB3FABC23D932D6100@CWXP265MB0775.GBRP265.PROD.OUTLOOK.COM>
In-Reply-To: <CWXP265MB0775983A3A9DB3FABC23D932D6100@CWXP265MB0775.GBRP265.PROD.OUTLOOK.COM>
From: Xufeng Liu <xufeng.liu.ietf@gmail.com>
Date: Mon, 24 Feb 2020 13:26:50 -0500
Message-ID: <CAEz6PPSgRX=NEfhDj_HyVddCMPHtQ9Zoo84mvyvLsdmmF4givQ@mail.gmail.com>
To: "King, Daniel" <d.king@lancaster.ac.uk>
Cc: Benoit Claise <bclaise@cisco.com>, "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>, Joel Jaeggli <joelja@bogus.com>, "netmod@ietf.org" <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007281a4059f5684b6"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/UNf-AoGmJ_Mb1snfctboPgkAXDM>
Subject: Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Feb 2020 18:27:06 -0000

Agree with Dan. The use case is valid, though the errors in the data model
can be fixed.
Support.
Thanks,
- Xufeng

On Wed, Feb 19, 2020 at 6:44 AM King, Daniel <d.king@lancaster.ac.uk> wrote:

> Hi All,
>
>
>
> Expressing, and delegating base imperative policy to network nodes
> (regardless if it’s a switch, router, network function, or indeed
> “controller”) is a critical step for facilitating network automation. I
> support the I-D and would like to see the WG adopt the work. Yes, the I-D
> needs to be developed further and this would be better managed if the
> effort was owned by the WG.
>
>
>
> I do agree somewhat with Jürgen that past experiences have shown a lack
> of willingness between vendors for expressing policy (imperative or
> otherwise). Major vendors have tended to implement their own policy
> language, or specific purpose (security, role management, et al.) language
> that has been based on standards (formal) or open-source project (de
> facto). The fact that the I-D author and contributor list already has a
> good mix of implementors demonstrates a willingness to develop an
> interoperable network-wide solution.
>
>
>
> BR, Dan.
>
>
>
> *From:* netmod <netmod-bounces@ietf.org> *On Behalf Of *Benoit Claise
> *Sent:* 19 February 2020 10:46
> *To:* Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de>; Joel
> Jaeggli <joelja@bogus.com>
> *Cc:* netmod@ietf.org
> *Subject:* Re: [netmod] Adoption poll for draft-wwx-netmod-event-yang
>
>
>
> Jürgen,
>
> To tell that I was skeptical about the SUPA work is just wrong.
>
> I had great hopes for SUPA, as having consistent policy constructs in YANG
> module was key. The big hope was that those SUPA constructs could be
> re-used in other YANG modules
>     example: routing, ACL, security ...
>     Regardless of the location: in a network element or in a
> controller/orchestrator
>     Regardless of the function: network element and service YANG modules
> If successful, in the end, SUPA would have helped to reuse code.
>
> Was I disappointed by the progress? Yes. The results were not there while
> the rest of the world uses their YANG policy constructs. Timing was key so,
> as AD, I had to pull the plug.
> The world has moved on. So be it.
> You can't infer skepticism from pragmatism.
>
> Now, back to the draft.
> From a network element point, I stressed the need to take have *simple *ECA
> rules directly routers.
> Think about RMON event/alarm but for YANG. Think about removing the RMON
> event/alarm restrictions that it works only for integer/counter.
> If your point is that the draft is not perfect, fair point.
> Should we solve attempt to solve that issue? Yes.
>
> A confusion comes from the abstract that implies that this work is based
> on SUPA.
>
> Abstract
>
>
>
>    RFC8328 defines a policy-based management framework that allows
>
>    definition of a data model to be used to represent high-level,
>
>    possibly network-wide policies.  Policy discussed in RFC8328 are
>
>    classified into imperative policy and declarative policy, Event
>
>    Condition Action (ECA) policy is an typical example of imperative
>
>    policy.  This document defines a YANG data model for the ECA policy
>
>    management.  The ECA policy YANG provides the ability for the network
>
>    management function (within a network element) to control the
>
>    configuration and monitor state change and take simple and instant
>
>    action on the server when a trigger condition on the system state is
>
>    met.
>
> Actually, in my mind, the abstract should be simplified to something such
> as (and yes, it could be improved)
>
> Abstract
>
>
>
>    This document defines a YANG data model for the ECA policy
>
>    management.  The ECA policy YANG provides the ability for the network
>
>    management function (within a network element) to control the
>
>    configuration and monitor state change and take simple and instant
>
>    action on the server when a trigger condition on the system state is
>
>    met.
>
> And then, somewhere in the introduction, the following text should be
> reused:
>
>    RFC8328 defines a policy-based management framework that allows
>
>    definition of a data model to be used to represent high-level,
>
>    possibly network-wide policies.  Policy discussed in RFC8328 are
>
>    classified into imperative policy and declarative policy, Event
>
>    Condition Action (ECA) policy is an typical example of imperative
>
>    policy.
>
>
> Regards, Benoit.
>
> On Tue, Feb 18, 2020 at 08:44:18AM -0800, Joel Jaeggli wrote:
>
> This email begins a 2 week working group adoption poll for:
>
>
>
> https://tools.ietf.org/html/draft-wwx-netmod-event-yang-06
>
>
>
> Please voice your support or objections before the poll completes on
>
> March 3rd.
>
>
>
> I am against adoption of this draft. I wonder whether Benoit will
>
> explain his contributions to this document; Benoit was added as a
>
> co-author in -06 and he used to be rather sceptical about the SUPA
>
> work (and this is essentially part of the SUPA work resubmitted to the
>
> NETMOD WG). Despite this, the YANG definitions are clearly not up to
>
> the level one would expect for WG adoption. Many descriptions are
>
> just repetition of leaf names and there are obvious errors such as
>
>
>
>           leaf-list day-of-month {
>
>             type uint8 {
>
>               range "0..59";
>
>             }
>
>             description
>
>               "A set of days of the month at which this
>
>                scheduling timing will trigger.";
>
>           }
>
>
>
> Despite the strange range, it is unclear how a number will in the
>
> range will identify a set. Note, this is an example, there are lots of
>
> them in the document. The examples provides are not convincing and
>
> technically wrong (how can <interval>10m</interval> match
>
>
>
>           leaf interval {
>
>             type uint32 {
>
>               range "1..max";
>
>             }
>
>             units "seconds";
>
>             mandatory true;
>
>             description
>
>               "The number of seconds between two triggers
>
>                generated by this periodic timing object.";
>
>           }
>
>
>
> and I have serious doubts that the design is anywhere close to be
>
> practically usable. There need to be mechanisms to bind 'variables'
>
> while matching conditions that and be reused in action definitions, it
>
> is not scalable to have constants such as interface names in the
>
> examples hard-coded in policy rules - this would lead to a huge number
>
> of rules if you want to apply policy rules to all interfaces.
>
>
>
> There is also a lack of extensibility, which is important for a core
>
> policy language, and definitions like:
>
>
>
>   identity function-type {
>
>     description
>
>       "Possible values are:
>
>        plus, minus, mult, divide, remain.";
>
>   }
>
>
>
> without ever defining these operators feels strange. I also not
>
> convinced that the resulting expressions are expressive enough for
>
> real-world use.
>
>
>
> This document is in a state that requires way too much effort to fix
>
> in a WG process. I also doubt that expressing policies in such a
>
> low-level format is usable in practice. Policy languages for network
>
> management have a long history and this proposal seems to ignore the
>
> lessons learned in the past.
>
>
>
> /js
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>