Re: [netmod] 6021 ipv4-prefix

"Acee Lindem (acee)" <acee@cisco.com> Fri, 26 April 2019 16:55 UTC

Return-Path: <acee@cisco.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 A9677120161 for <netmod@ietfa.amsl.com>; Fri, 26 Apr 2019 09:55:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.5
X-Spam-Level:
X-Spam-Status: No, score=-14.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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=iaeCPv8H; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=SyQd2Cfq
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 sU3wnltpPD2t for <netmod@ietfa.amsl.com>; Fri, 26 Apr 2019 09:55:07 -0700 (PDT)
Received: from rcdn-iport-5.cisco.com (rcdn-iport-5.cisco.com [173.37.86.76]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9B1B612021F for <netmod@ietf.org>; Fri, 26 Apr 2019 09:55:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3372; q=dns/txt; s=iport; t=1556297707; x=1557507307; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=zVjLBcgA2B0zx6RUO3i+upWxBTIRkqEm5nMEz9nQZjA=; b=iaeCPv8H7Q8H0wgRTsRA0wTqUptABSx6PoDHzMMRo0gj62tRXXzL4oHw 31UolQTcx9FlAy7xqIxD9E6UEQ+TBagiHl5naoEdB/qxD6BtNYErp1V9M +Dhxl1D5lVFDYuG72SZJKWe2iMTk9OqhMsdaglOVhM9KVMd7UY3GR1Hla A=;
IronPort-PHdr: =?us-ascii?q?9a23=3A4S+uxRAbv4ElYWBnKX4eUyQJPHJ1sqjoPgMT9p?= =?us-ascii?q?ssgq5PdaLm5Zn5IUjD/qgw3kTRU9Dd7PRJw6rNvqbsVHZIwK7JsWtKMdRXUg?= =?us-ascii?q?Mdz8AfngguGsmAXETwIfPCZC0hF8MEX1hgrDm2?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AGAADwNsNc/49dJa1jAxkBAQEBAQE?= =?us-ascii?q?BAQEBAQEHAQEBAQEBgVEEAQEBAQELAYE9UANoVSAECygKhAWDRwOEUoo4gle?= =?us-ascii?q?XHoEugSQDVA4BARgLCoN6RgIXhhsjNAkOAQMBAQQBAQIBAm0cDIVLAQEBAwE?= =?us-ascii?q?BEBERDAEBLAsBDQICAQgOAggCAiYCAgIZDAsVEAIEAQ0FIoMAAYFpAxwBDqM?= =?us-ascii?q?ZAoE1iF9xgS+CeQEBBYUFGIIOAwYFgQYnAYtJF4F/gTgfgkw+gmEBAYFLFhc?= =?us-ascii?q?KJoJDMYImjTWZNwkCggiSLhuVHIwHlEICBAIEBQIOAQEFgU84gVZwFTsqAYJ?= =?us-ascii?q?Bgg+DbzOEYYU/coEpkjQBgSABAQ?=
X-IronPort-AV: E=Sophos;i="5.60,398,1549929600"; d="scan'208";a="333037960"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 26 Apr 2019 16:55:05 +0000
Received: from XCH-RCD-012.cisco.com (xch-rcd-012.cisco.com [173.37.102.22]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id x3QGt599029137 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 26 Apr 2019 16:55:05 GMT
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by XCH-RCD-012.cisco.com (173.37.102.22) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 11:55:04 -0500
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Fri, 26 Apr 2019 11:55:04 -0500
Received: from NAM01-SN1-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Fri, 26 Apr 2019 11:55:04 -0500
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=zVjLBcgA2B0zx6RUO3i+upWxBTIRkqEm5nMEz9nQZjA=; b=SyQd2CfqLyIizgK2dzfI3WKOS/MX9DYOzCMOR/t2jpI+4r1yDklSHVtwlU5LAmSMvbY9sYCl07+FS6TmbD+QVPXa8PQdDyb4QJVq5ETq159GoEDf51OiSCPCBmB7AvZiqXEgZ4sjGDWpZKCcMMn9Zo9eKNtTqhowzC2h5gLDBXk=
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com (10.174.112.11) by BN6PR1101MB2305.namprd11.prod.outlook.com (10.174.238.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.13; Fri, 26 Apr 2019 16:55:02 +0000
Received: from BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::2db0:8c4c:1fe3:d1e1]) by BN6PR1101MB2226.namprd11.prod.outlook.com ([fe80::2db0:8c4c:1fe3:d1e1%9]) with mapi id 15.20.1835.010; Fri, 26 Apr 2019 16:55:02 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Kristian Larsson" <kristian@spritelink.net>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] 6021 ipv4-prefix
Thread-Index: AdT0l4zGpLjvUofYRmmSWqlDWwoAHABHw8uAAAHDNYAAA12WgAABgE0AAAD0FQAAAKy0gAF1SI2AAAERvAAAFIrFgAAG4xuAAADAhoAACALZAAAA/vWA///S6oA=
Date: Fri, 26 Apr 2019 16:55:02 +0000
Message-ID: <B2FAF932-0BD9-42BF-BBCA-38A37F6B33C9@cisco.com>
References: <alpine.DEB.2.20.1904181128480.3490@uplift.swm.pp.se> <20190418102604.y5wyqflcudiywj2i@anna.jacobs.jacobs-university.de> <alpine.DEB.2.20.1904181251000.3490@uplift.swm.pp.se> <20190418111241.5csf5kkgwgxwtsnm@anna.jacobs.jacobs-university.de> <227a2452-69f9-6786-2643-822e70dc636d@spritelink.net> <20190425215134.pabdl3bbbjoivbaj@anna.jacobs.jacobs-university.de> <24fff697cde3ac2e0c9a09cf2dfa1153ca61bd90.camel@nic.cz> <5d6b915d-2b6b-2844-6343-5e42abe01e3b@spritelink.net> <20190426111829.6wkml53a72swxt4b@anna.jacobs.jacobs-university.de> <56a9b51c-d143-6436-7ebe-8db5f66b2fff@spritelink.net> <20190426153623.wpb4owuqsdfjc5q5@anna.jacobs.jacobs-university.de>
In-Reply-To: <20190426153623.wpb4owuqsdfjc5q5@anna.jacobs.jacobs-university.de>
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: [173.38.117.82]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 4fca9d94-abc2-47e1-925c-08d6ca67ed31
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:BN6PR1101MB2305;
x-ms-traffictypediagnostic: BN6PR1101MB2305:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <BN6PR1101MB2305E823BBEED3C4C2181D52C23E0@BN6PR1101MB2305.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-forefront-prvs: 001968DD50
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(346002)(39860400002)(136003)(376002)(189003)(199004)(99286004)(305945005)(2616005)(229853002)(7736002)(97736004)(256004)(82746002)(4326008)(316002)(110136005)(53936002)(66446008)(64756008)(66556008)(66476007)(66946007)(73956011)(25786009)(6486002)(36756003)(6246003)(91956017)(76116006)(6306002)(6512007)(6436002)(478600001)(186003)(86362001)(966005)(2906002)(11346002)(81166006)(3846002)(33656002)(76176011)(6116002)(14454004)(93886005)(68736007)(81156014)(8676002)(26005)(8936002)(102836004)(6506007)(5660300002)(83716004)(66066001)(476003)(71200400001)(446003)(71190400001)(486006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR1101MB2305; H:BN6PR1101MB2226.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A: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: ZC9qeZ6r9gZYecOd9MnjAW7Qup4FwK02f24xCQN9NwLhP5VycXtQGPdxZsc6GJ+CqBrKZbGZLsXxLyvWUTyl3G1ndnZutLrGdyfNpIbbNR+aJbAUL1cfmLOI+Vk1bwt7VKNZwVgx1zxTRSDhz4y/YCjKr+h8k9GM+aWUrRDsotIQ7iak6XfoR55wbFx8CmZHEOMHsuwtOtwRgqG9EgsqAR6q1tdm00LGC/Bd5hWyrIjQAKbGtrsk/ndTXcQ8omjVxSLqtJdNsh+cAkV8WxgHsGHhlCChVrXl8G5X7fSCuoq+9OqUdBhod6MQJYZbbsal/zzFso6YbyPQBDXyvyULLH1B9gKO+Emsh15V7HFXdvZ7p7p5srqDDmKKPKvwMUgq98gHoezyO0cX+KPwoxV2zCogea0omqpuRg/eASIVCCc=
Content-Type: text/plain; charset="utf-8"
Content-ID: <CB1F847BFE1EB842B8429B718E5C2B3A@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 4fca9d94-abc2-47e1-925c-08d6ca67ed31
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Apr 2019 16:55:02.8444 (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: BN6PR1101MB2305
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.22, xch-rcd-012.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/BgIfHcTFRpqg03uBzIPWc8FhVlU>
Subject: Re: [netmod] 6021 ipv4-prefix
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: Fri, 26 Apr 2019 16:55:10 -0000

Hi Juergen, 

On 4/26/19, 11:36 AM, "netmod on behalf of Juergen Schoenwaelder" <netmod-bounces@ietf.org on behalf of j.schoenwaelder@jacobs-university.de> wrote:

    On Fri, Apr 26, 2019 at 05:07:52PM +0200, Kristian Larsson wrote:
    > 
    > I think the canonical representation is quite clear as is the part that the
    > server must return data (and conceptually store) in canonical format. What
    > is much less clear is the allowed input formats which then includes
    > 2001:db8::1/64. I think it could be worthwhile to explicitly state this as
    > it is a bit surprising. Unlike say the uintX types, there is no "lexical
    > representation" section for ip-prefix (I presume because they are not
    > basetypes and so the lexical presentation follows the base, string in this
    > case + the pattern) that explains things in any detail. Do you think we
    > could add some clarifications, perhaps to the description of the type about
    > this? Or could we even add a lexical representation section with examples?
    > Or just an examples section?
    >
    
    I have added text along these lines in my sources (goes behind the
    definition of the canonical format):
    
          The definition of ipv6-prefix does not require that bits,
          which are not part of the prefix, are set to zero. However,
          implementations have to return values in canonical format,
          which requires non-prefix bits to be set to zero. This means
          that 2001:db8::1/64 must be accepted as a valid value but it
          will be converted into the canonical format 2001:db8::/64.
    
    I have added similar text to the definition of ipv4-prefix. I hope
    that text like this clarifies the situation inline in the type
    definition.

I must admit that I think this is the worst possible outcome. Independent of the original intent, at a high level it is just not a good idea to accept the non-canonical prefix format and return the canonical format. 

Thanks,
Acee


    
    /js
    
    -- 
    Juergen Schoenwaelder           Jacobs University Bremen gGmbH
    Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
    Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
    
    _______________________________________________
    netmod mailing list
    netmod@ietf.org
    https://www.ietf.org/mailman/listinfo/netmod