Re: [I2nsf] [yang-doctors] Need YANG Doctor reviewing the YANG module of draft-ietf-i2nsf-sdn-ipsec-flow-protection which I2NSF is about to call WGLC

Yoav Nir <ynir.ietf@gmail.com> Tue, 09 April 2019 11:25 UTC

Return-Path: <ynir.ietf@gmail.com>
X-Original-To: i2nsf@ietfa.amsl.com
Delivered-To: i2nsf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A9EA4120779; Tue, 9 Apr 2019 04:25:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 (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 QdIHKv5HFNtw; Tue, 9 Apr 2019 04:25:14 -0700 (PDT)
Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) (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 02189120770; Tue, 9 Apr 2019 04:25:13 -0700 (PDT)
Received: by mail-wm1-x336.google.com with SMTP id z24so2886120wmi.5; Tue, 09 Apr 2019 04:25:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=GGMVKJ+gLITjzyaFpWE+l1cgiNFGm7GqnYpND9nTyEM=; b=lXv8Q2uhKt/J6q8Z7I53gSg/CWmKA7t9mMCJt5inqhvcp7kkpCIaiGA+GBDRLCiBry /SnRGwwnTKo24lSPVq5/0H7TUa/T7kXAwy/mHSDa3N+Mp2ZO1ufz3vHaK5Fol7hhPC+B yDDfYlT4QEvVyIEvUwDzqnH8ckiAX31xIOuWjQtcdonKLW1sIjTbnFzZuG2MWcVO8HG+ 7t9CsehJ2EUvj68zdIqllOxRq5RWfQEeM/+ty5Wlj8M+P7GZdtkXKM7DSBSCbuPmWifD 7Nv9MNaxGc420CLRKCt1zBM1qNWUVHDvOo/LUHrYRGTgjnh9WS7W8zgiDdlQyADZwsFr 8HPw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=GGMVKJ+gLITjzyaFpWE+l1cgiNFGm7GqnYpND9nTyEM=; b=t8V/adSAW8qN79l/6GwNqimw5WBS0foBKG7/ZglSBjIqHGI7ovq3gV+quY/3JGxQd4 C608YVCFBtLeirq/RiCUVhrEV7wkGna3cah67OzUy2Pv6hY3f8MEKBLtfpQ1ai2dCRLK HshCAKyxyi5S1OFU5xY2uPHyvfC9BYZ0QgqaXDg86yQYV/9bbK1Nih9Bwr+VH37Ctt+y 0lSoyL3jMUJUii8MxYSOMSTPfkwxhN01NIaP6HoCAG03HWqcnpmWjwEGhC2HbAki1tR/ GDRooBP7iOtX9IJGnS8cyvP6HSkv7YPnO4MjWSK/g4kZPOACpiyBH6G/r753LP2PgxHu ZqgQ==
X-Gm-Message-State: APjAAAXB8MBoE9s+jxBumxuBVC0E1dH4mMzcqiIFH6R6uFFee65seLMV wWFfDLoVFNgWzzPUIoP/koo=
X-Google-Smtp-Source: APXvYqzEv4qPo4QmWHJO2qppBj9et40Nf7tres4RhVfVswnv4v1fUk3wV1sgBHUQCnZJB5OsrSd+9g==
X-Received: by 2002:a1c:6587:: with SMTP id z129mr21685004wmb.84.1554809112501; Tue, 09 Apr 2019 04:25:12 -0700 (PDT)
Received: from [192.168.1.13] ([46.120.57.147]) by smtp.gmail.com with ESMTPSA id o10sm49117766wru.54.2019.04.09.04.25.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 04:25:11 -0700 (PDT)
From: Yoav Nir <ynir.ietf@gmail.com>
Message-Id: <6CC456A8-69B9-4D87-9A29-2DCE65E60EB2@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_1C901F1C-FAF7-4E87-ABF0-35281D042607"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
Date: Tue, 9 Apr 2019 14:25:08 +0300
In-Reply-To: <D19CB266-D1D8-429E-A215-6BE866098E90@um.es>
Cc: Andy Bierman <andy@yumaworks.com>, Mahesh Jethanandani <mjethanandani@gmail.com>, "i2nsf@ietf.org" <i2nsf@ietf.org>, Linda Dunbar <linda.dunbar@huawei.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>
To: Rafa Marin-Lopez <rafa@um.es>
References: <4A95BA014132FF49AE685FAB4B9F17F66B363EB2@sjceml521-mbs.china.huawei.com> <420D3E9A-9E3C-4575-9C92-200CAA0B868C@gmail.com> <CABCOCHRf3iGUt9wb3htpDYGJ+pAKErvq8OrozndgELUVKYT4Kg@mail.gmail.com> <80347D5B-C4DB-4F0C-BD73-A927585442BF@gmail.com> <D19CB266-D1D8-429E-A215-6BE866098E90@um.es>
X-Mailer: Apple Mail (2.3445.104.8)
Archived-At: <https://mailarchive.ietf.org/arch/msg/i2nsf/60p3AAKfOLTUuma3Lr1MCUKniTY>
Subject: Re: [I2nsf] [yang-doctors] Need YANG Doctor reviewing the YANG module of draft-ietf-i2nsf-sdn-ipsec-flow-protection which I2NSF is about to call WGLC
X-BeenThere: i2nsf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "*I2NSF: Interface to Network Security Functions mailing list*" <i2nsf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/i2nsf/>
List-Post: <mailto:i2nsf@ietf.org>
List-Help: <mailto:i2nsf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/i2nsf>, <mailto:i2nsf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 09 Apr 2019 11:25:18 -0000

Good.  But since we are getting a YANG doctor review, let’s wait for that before revving the draft.

Yoav


> On 9 Apr 2019, at 10:49, Rafa Marin-Lopez <rafa@um.es>; wrote:
> 
> Hi Yoav:
> 
> After thinking about these past days, I personally think the same. 
> 
> I would add a uint16 and a comment in the description. As we agreed in the last IETF meeting, I do not think our I-D should solve this problem, since this problem happens in general.
> 
> As an example:
> 
> typedef ike-integrity-algorithm-t {
> 			type uint32; 
> 			description “The acceptable numbers are defined in IANA Registry - Internet Key Exchange Version 2 (IKEv2) Parameters - IKEv2  Transform Type 1 - Encryption Algorithm Transform IDs";
> }
> 
> Is this reasonable?
> 
> 
>> El 5 abr 2019, a las 20:13, Yoav Nir <ynir.ietf@gmail.com <mailto:ynir.ietf@gmail.com>> escribió:
>> 
>> At this point I’m wondering if it would not be a better strategy to avoid all enumerations of algorithms, whether they are spelled out or imported from draft-ietf-netconf-crypto-types, and instead use the numbers from the IANA registry for IPsec.
>> 
>> That does not help us deprecate old algorithms, but it solves the other issue, which is what to do when a new algorithm is added to IPsec. We don’t want to have to publish a new i2nsf document whenever that happens, and if the algorithm identifier is just a number, new values can be added by IANA.
>> 
>> Yoav
>> 
>>> On 5 Apr 2019, at 20:42, Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com>> wrote:
>>> 
>>> Hi,
>>> 
>>> I think conformance for identities is handled very poorly in YANG.
>>> There is an if-feature-stmt allowed inside an identity in YANG 1.1.
>>> This implies that any identity without if-feature is mandatory-to-implement.
>>> 
>>> If the identities are in a separate module, the server can list it as an imported module,
>>> which tells the client the server does not implement any of the identities.
>>> 
>>> There is no standard way for the server to inform the client which identities it supports
>>> for a given identityref data node.
>>> 
>>> The common implementation strategy is to completely ignore YANG conformance for identities
>>> (as Mahesh explained). You just try setting the leaf and see if the server accepts it.
>>> 
>>> Andy
>>> 
>>> 
>>> On Fri, Apr 5, 2019 at 10:33 AM Mahesh Jethanandani <mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>> wrote:
>>> Hi Linda,
>>> 
>>> 
>>>> On Apr 5, 2019, at 9:51 AM, Linda Dunbar <linda.dunbar@huawei.com <mailto:linda.dunbar@huawei..com>> wrote:
>>>> 
>>>> Dear YANG Doctor:
>>>>  
>>>> We need your help in reviewing the YANG model in draft-ietf-i2nsf-sdn-ipsec-flow-protection which I2NSF WG is about to call WGLC.
>>>>  
>>>> In particular, we need your advice on the following issue:
>>>>  
>>>> draft-ietf-i2nsf-sdn-ipsec-flow-protection-04 imports from draft-ietf-netconf-crypto-types, which appears to be a generic list of algorithms.
>>>> The problem is that the list in draft-ietf-netconf-crypto-types could contain algorithms that are not suitable for IPsec (such as secp192r1 for key agreement), and right now it seems to lack some older algorithms that have fallen out of fashion (3DES) but is still needed in IPsec.  
>>> 
>>> All the algorithms in draft-ietf-netconf-crypto-types are defined as identities. If you do not find the algorithm you are looking for in the list of defined algorithms, you can go ahead and define your own in your own draft, using the same base identity from the ietf-crypto-types module.
>>> 
>>>>  
>>>>  
>>>> Questions to the YANG Doctor:
>>>> 1.       Is it better to list the IPsec specific algorithms in draft-ietf-i2nsf-sdn-ipsec-flow-protection (which is a subset of draft-ietf-netconf-crypto-types? Or to import all crypto algorithms many of which are not relevant to IPsec? What is the common practice? 
>>> 
>>> Importing ietf-crypto-types does not mean you have to implement every algorithm listed in the module. You can import the module and chose to implement the algorithms you want to implement, including defining any new ones.
>>> 
>>>> 2.      If we do import from draft-ietf-netconf-crypto-types, does it mean draft-ietf-i2nsf-sdn-ipsec-flow-protection cannot be published until draft-ietf-netconf-crypto-types is published?
>>> 
>>> Yes. The i2nsf draft will hit the state of MISSREF in the RFC Editor queue. But that should not prevent anyone from starting implementation of the module. As a side note, the NETCONF WG is planning on sending the crypto-types draft to IESG shortly. What you do not want is to duplicate the definition of the algorithms in your own draft.
>>> 
>>> HTH.
>>> 
>>>>  
>>>>  
>>>> Thank you very much, 
>>>>  
>>>> Linda & Yoav
>>>>  
>>>> _______________________________________________
>>>> yang-doctors mailing list
>>>> yang-doctors@ietf.org <mailto:yang-doctors@ietf..org>
>>>> https://www.ietf.org/mailman/listinfo/yang-doctors <https://www.ietf.org/mailman/listinfo/yang-doctors>
>>> Mahesh Jethanandani
>>> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> yang-doctors mailing list
>>> yang-doctors@ietf.org <mailto:yang-doctors@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/yang-doctors <https://www.ietf.org/mailman/listinfo/yang-doctors>
>>> _______________________________________________
>>> I2nsf mailing list
>>> I2nsf@ietf.org <mailto:I2nsf@ietf.org>
>>> https://www.ietf.org/mailman/listinfo/i2nsf <https://www.ietf.org/mailman/listinfo/i2nsf>
>> _______________________________________________
>> I2nsf mailing list
>> I2nsf@ietf.org <mailto:I2nsf@ietf.org>
>> https://www.ietf.org/mailman/listinfo/i2nsf
> 
> -------------------------------------------------------
> Rafa Marin-Lopez, PhD
> Dept. Information and Communications Engineering (DIIC)
> Faculty of Computer Science-University of Murcia
> 30100 Murcia - Spain
> Telf: +34868888501 Fax: +34868884151 e-mail: rafa@um.es <mailto:rafa@um.es>
> -------------------------------------------------------
> 
> 
> 
>