Re: [Lsr] "unknown TLVs" in YANG data models

"Acee Lindem (acee)" <acee@cisco.com> Mon, 01 April 2019 14:18 UTC

Return-Path: <acee@cisco.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3ED1E120152 for <lsr@ietfa.amsl.com>; Mon, 1 Apr 2019 07:18:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=XiZ9jhqd; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=c5OmojsH
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 iuIgdVcAtH1E for <lsr@ietfa.amsl.com>; Mon, 1 Apr 2019 07:18:25 -0700 (PDT)
Received: from alln-iport-4.cisco.com (alln-iport-4.cisco.com [173.37.142.91]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E5200120149 for <lsr@ietf.org>; Mon, 1 Apr 2019 07:18:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5666; q=dns/txt; s=iport; t=1554128305; x=1555337905; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=9K9CFcnbRB1NX46sxKBN103bJFcKNMdf6/ZGNiG8s0U=; b=XiZ9jhqd5KXIs0YDicXjK8HWYBZJz4O3vU1NHa4GpPeoHN/4Ib1DBX4a sRjscgDZFV72bq/GQKGY8sWIHfgDKWTqPiYMqRXG620/sLNxZZD/CcjCA TME6tcu+VCr1Z+OdpK+QMuyvsROLO83ftRO8i5P1R3BJcohasGUOJFObJ 0=;
IronPort-PHdr: 9a23:jdXwXRDz58H92uBz62bkUyQJPHJ1sqjoPgMT9pssgq5PdaLm5Zn5IUjD/qgw3kTRU9Dd7PRJw6rNvqbsVHZIwK7JsWtKMdRXUgMdz8AfngguGsmAXETwIfPCZC0hF8MEX1hgrDm2
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AEAAAxHaJc/5NdJa1jGgEBAQEBAgEBAQEHAgEBAQGBUQUBAQEBCwGBPVADaHQECyeEDoNHA4RSimBKgg2XD4EuFIEQA1QOAQEYCwmEQAIXhS0iNAkNAQEDAQEJAQMCbRwMhUoBAQEBAwEBIREMAQEsDAsEAgEIEQQBAQECAiYCAgIlCxUICAIEARKDIgGBXQMVAQ6gHgKKFHGBL4J5AQEFhHkYggwDBYELJAGLMheBf4EQAScfgkw+gmEBAYE7DgIWJoJkMYImjQOLX4wLYAkCk14aggOLNoZziz+BGJI2AgQCBAUCDgEBBYFNOIFWcBU7KgGCQYIKDBeDS4UUhT9ygSiMZ4JMAQE
X-IronPort-AV: E=Sophos;i="5.60,296,1549929600"; d="scan'208";a="252676616"
Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by alln-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 01 Apr 2019 14:18:23 +0000
Received: from XCH-ALN-012.cisco.com (xch-aln-012.cisco.com [173.36.7.22]) by rcdn-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id x31EINe4027402 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 1 Apr 2019 14:18:23 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-012.cisco.com (173.36.7.22) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 1 Apr 2019 09:18:22 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 1 Apr 2019 10:18:21 -0400
Received: from NAM05-CO1-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 1 Apr 2019 10:18:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector1-cisco-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9K9CFcnbRB1NX46sxKBN103bJFcKNMdf6/ZGNiG8s0U=; b=c5OmojsH8ocKkTxPQRt4ZiJ0Qj5NAlmjcneczoy/gwc5wt/RMJBJ1TiORWI32tJiWb9ZDbdsXxCSql9H8h/OdGIeQ2ZIkScJC2C/j6bciZTzENBcuSPUrn5Fp/kvQsrCr6XZMwqQ/yG8gK6Q1uEi59G947GzCeBl7ztYEvnVvGY=
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com (10.174.112.11) by BN6PR1101MB2081.namprd11.prod.outlook.com (10.174.113.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.22; Mon, 1 Apr 2019 14:18:20 +0000
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1]) by BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::9c05:e282:840b:51a1%8]) with mapi id 15.20.1750.017; Mon, 1 Apr 2019 14:18:20 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: "Les Ginsberg (ginsberg)" <ginsberg@cisco.com>, Christian Hopps <chopps@chopps.org>, "lsr@ietf.org" <lsr@ietf.org>
Thread-Topic: [Lsr] "unknown TLVs" in YANG data models
Thread-Index: AQHU6BpNQR9HeNt+yEybR+GpD6OBkqYnF+WA
Date: Mon, 01 Apr 2019 14:18:19 +0000
Message-ID: <FCE850E4-B672-4B67-A033-281F8D6F7033@cisco.com>
References: <FEF33125-8B40-4E19-AB72-049C5C9EB2EC@chopps.org> <068C6E29-B716-4137-AD71-8898F84285EB@cisco.com> <BYAPR11MB36380AD7476B61E65C2ACDE0C1540@BYAPR11MB3638.namprd11.prod.outlook.com>
In-Reply-To: <BYAPR11MB36380AD7476B61E65C2ACDE0C1540@BYAPR11MB3638.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=acee@cisco.com;
x-originating-ip: [2001:420:c0c8:1003::5d9]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 84ae64e0-5827-49a2-9ecb-08d6b6ace455
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:BN6PR1101MB2081;
x-ms-traffictypediagnostic: BN6PR1101MB2081:
x-ms-exchange-purlcount: 1
x-microsoft-antispam-prvs: <BN6PR1101MB20816870A78DC511073000D7C2550@BN6PR1101MB2081.namprd11.prod.outlook.com>
x-forefront-prvs: 0994F5E0C5
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(396003)(346002)(376002)(136003)(13464003)(199004)(189003)(2906002)(97736004)(966005)(36756003)(33656002)(256004)(14444005)(102836004)(76176011)(6506007)(53546011)(68736007)(14454004)(6486002)(6116002)(6436002)(229853002)(82746002)(71190400001)(71200400001)(478600001)(83716004)(25786009)(105586002)(106356001)(476003)(6512007)(53936002)(2616005)(446003)(11346002)(486006)(86362001)(46003)(8676002)(2501003)(6246003)(110136005)(186003)(81156014)(316002)(5660300002)(7736002)(81166006)(8936002)(305945005)(99286004)(6306002)(170073001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1101MB2081; H:BN6PR1101MB2226.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: dvHvjVHps5CRpup1JNZ2DLAJQYV14ndqLriIZnLX6uUear3CnQzpOOrXeAnEZ/p2vmmMlIwmu110xjD8kY84V1xg4l5yPS9VOQtnn+347YPqPbBbUcALshwWh2c7lF7yXnamK1OI5UTrKcOoTKYqKkPCmTUvl53yD/J2jzLgh7yjelPrkbrOZFD/ZVdFzqeTo37Z4FH8iDIq7u+ReXAzNIDijAI+xOasn1gpY/D4+gqxNAWdyTHC0JR5kB8rPmnIX/gE6l50whJ6cKJITuMyXQ9cuIag1b+K5lZi/kBWaQOydoslrGjJMihay7t3Kc5sywQMw8+se9/hty5K2nxRparBErpnQ0fxfKRJNuJqzS4INSZSCP3Wd/LRGSZcVOeYRNQR0jzjzwZqePJ5BJjXNFTW+ZEa78cgaRV0ygX1bo8=
Content-Type: text/plain; charset="utf-8"
Content-ID: <A66DD3D2CD072244AD7E0C8458DF1F77@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 84ae64e0-5827-49a2-9ecb-08d6b6ace455
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Apr 2019 14:18:19.8668 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2081
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.22, xch-aln-012.cisco.com
X-Outbound-Node: rcdn-core-11.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/x0z1L1G1xFDd38t2neTRtwcUMws>
Subject: Re: [Lsr] "unknown TLVs" in YANG data models
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 01 Apr 2019 14:18:27 -0000

Hi Les,

On 3/31/19, 7:34 PM, "Les Ginsberg (ginsberg)" <ginsberg@cisco.com> wrote:

    Acee -
    
    A minor correction. 
    IS-IS has no limit to the number of levels "TLVs" can be nested. The most we have needed thus far is 2 (i.e., sub-sub-TLV) - but there is no protocol limitation. 
    That said, I do not encourage deep nesting - I am not thrilled to have sub-sub-TLVs - but when it makes sense then we define them.

For OSPF, that ship sailed a long time ago in support of GMPLS Optical network signaling (OTN, WDM, etc). The TE parameters for these technologies nest multiple levels deep and their definition is the purview of the CCAMP WG. However, in OSPF have avoided the repetition of "Sub-" for TLVs below the second level. We only have top-level TLVs (aka, TLVs) and sub-TLVs which are precisely defined for the subsuming TLVs and Sub-TLVs.  I'm not sure who came up with the IS-IS  "sub-sub-" semantics but it was a mistake - especially if we intend to continue the redundant repetition at every level.

Thanks,
Acee
    
    I do agree with you that "raw" seems to be sufficient to cover "unknown" as well.
    
       Les
    
    
    > -----Original Message-----
    > From: Lsr <lsr-bounces@ietf.org> On Behalf Of Acee Lindem (acee)
    > Sent: Sunday, March 31, 2019 3:00 PM
    > To: Christian Hopps <chopps@chopps.org>; lsr@ietf.org
    > Subject: Re: [Lsr] "unknown TLVs" in YANG data models
    > 
    > Hi Chris,
    > 
    > On 3/31/19, 4:24 PM, "Lsr on behalf of Christian Hopps" <lsr-
    > bounces@ietf.org on behalf of chopps@chopps.org> wrote:
    > 
    >     So this came up during the second session at IETF104. Our base YANG data
    > models have "baked" representations of TLV data and then a catch all
    > "unknown tlv" list for the unrecognized data.
    > 
    >     When a new feature is added that adds a new TLVs it would seem obvious
    > to also add an augmentation to the base model to provide a similar "baked"
    > version of the new TLV data. However, does this now mean that the TLV is
    > no longer "unknown"? Is the data removed from the unknown list or just
    > present in both cases?
    > 
    > If the device supports the new feature, it is no longer unknown and
    > removed.
    > 
    > 
    >     Thinking about this made me realize the following: It's very common to
    > want to get *all* the TLV data in raw form. With the current design the client
    > has to settle for reverse engineering the baked data in addition to pulling the
    > TLV data from the unknown list.
    > 
    > We already provide the whole LSA in "raw" format do the data is there.
    > 
    >     A more functional choice is to simply have the "unknonwn-tlv" list return
    > *all* the TLV data. Whether a TLV is "known" (i.e., a baked version is
    > present) to the server is already indicated by looking at the servers reported
    > capabilities.
    > 
    > Well, this would be a 3rd representation of the same data. Also, note that
    > TLVs can be nested so this would be applied recursively. I know that IS-IS
    > only nests two level and refers to the latter as sub-sub-TLV. OSPF doesn't
    > have this limitation.
    > 
    >     At least with the IS-IS module this could be a minor change (rename
    > "unknown-tlvs" to "tlvs" and update the description). I believe the change is
    > also similarly minor for OSPF as well.
    > 
    > Right - only it would be applied at each level. For example, a TLVs would have
    > a raw list of sub-TLVs.
    > 
    >     It would be nice, if people agree, and agree its not too late, to make this
    > change now rather than wait for the IESG/IETF LC to complete and then have
    > to do a BIS update.
    > 
    > I'm not opposed though I'd ask why the raw LSA format would not suffice.
    > 
    > Thanks,
    > Acee
    > 
    >     Thanks,
    >     Chris.
    > 
    > 
    > _______________________________________________
    > Lsr mailing list
    > Lsr@ietf.org
    > https://www.ietf.org/mailman/listinfo/lsr