Re: [netmod] 6991bis: address-with-prefix-length

Ladislav Lhotka <lhotka@nic.cz> Thu, 18 April 2019 07:40 UTC

Return-Path: <lhotka@nic.cz>
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 F1B43120094 for <netmod@ietfa.amsl.com>; Thu, 18 Apr 2019 00:40:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
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 GmkeOJchaeNt for <netmod@ietfa.amsl.com>; Thu, 18 Apr 2019 00:40:52 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 0D7C3120048 for <netmod@ietf.org>; Thu, 18 Apr 2019 00:40:52 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id CF7BA1820414; Thu, 18 Apr 2019 09:41:56 +0200 (CEST)
Received: from localhost (unknown [172.29.2.100]) by trail.lhotka.name (Postfix) with ESMTPSA id 69EF71820408; Thu, 18 Apr 2019 09:41:40 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Kristian Larsson <kristian@spritelink.net>
Cc: netmod@ietf.org
In-Reply-To: <20190417195437.gpnvh6woidqkkqtt@anna.jacobs.jacobs-university.de>
References: <10d3413c-df96-6e7d-df82-5542bb02348d@spritelink.net> <20190401161321.seiodlfsmjjvjcp5@anna.jacobs.jacobs-university.de> <699d2c10-9b08-97f1-69d9-f66e3a83c643@spritelink.net> <20190417192013.zdhz4e5fwakm3x4a@anna.jacobs.jacobs-university.de> <048ecdb8-759e-2905-11a8-4c1caedc9371@spritelink.net> <20190417195437.gpnvh6woidqkkqtt@anna.jacobs.jacobs-university.de>
Mail-Followup-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Kristian Larsson <kristian@spritelink.net>, netmod@ietf.org
Date: Thu, 18 Apr 2019 09:40:33 +0200
Message-ID: <874l6vsqvi.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/i98EIJBqaNtLmc9Q7yeTe7JreXM>
Subject: Re: [netmod] 6991bis: address-with-prefix-length
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: Thu, 18 Apr 2019 07:40:55 -0000

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> writes:

> On Wed, Apr 17, 2019 at 09:35:51PM +0200, Kristian Larsson wrote:
>> 
>> I wonder though, isn't ipX-address-and-prefix-length the clearer name, or if
>> we do want to shorten then ipX-address-and-plen. I think Martin stated the
>> case for ipX-address-and-prefix but that is IMHO not the way this is
>> typically perceived by people.
>> 
>> 1.2.3.4/24
>> ^^^^^^^----- ipv4 address
>>        ^^^-- ipv4 prefix length
>> 
>> now, taking the prefix-length you know that 1.2.3 is the prefix but does
>> that mean the above is an IPv4 address and a prefix? Or is it just that you
>> can infer the prefix from the above? It's just different ways of looking at
>> it. My experience tells me ipX-address-and-prefix-length is the clearer way
>> of conveying what this is.
>>
>
> I guess this is somewhat subjective. The prefix length is the number
> used to convey what the prefix is. So you are effectively defining an
> address and the prefix that this address belongs to. ;-)

Strictly speaking, what is being defined by the number is a subnet mask.

>
> Given that we already have ip-prefix (which does as well use a prefix
> length to convey what the prefix is), it seems ip-address-and-prefix
> is more consistent with the existing RFC 6991 definitions. Being
> consistent with what we have was the main reason for me to prefer
> ip-address-and-prefix.

I am not in favour of adding this type. Having ip-prefix next to
ip-address-and-prefix is confusing. Moreover, the most natural use for
this type would be the address specification in the "ietf-ip" module,
but we already have two leaves there: ip and prefix-length.

Lada

>
> /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

-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67