Re: [MIB-DOCTORS] InetAddress SIZE rules.
"Bert Wijnen (IETF)" <bertietf@bwijnen.net> Mon, 08 May 2017 21:54 UTC
Return-Path: <bertietf@bwijnen.net>
X-Original-To: mib-doctors@ietfa.amsl.com
Delivered-To: mib-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 023F312714F for <mib-doctors@ietfa.amsl.com>; Mon, 8 May 2017 14:54:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.72
X-Spam-Level:
X-Spam-Status: No, score=-0.72 tagged_above=-999 required=5 tests=[BAYES_40=-0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] 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 Pl2pe1a6EAx5 for <mib-doctors@ietfa.amsl.com>; Mon, 8 May 2017 14:54:24 -0700 (PDT)
Received: from lb3-smtp-cloud6.xs4all.net (lb3-smtp-cloud6.xs4all.net [194.109.24.31]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2CEFE124B0A for <mib-doctors@ietf.org>; Mon, 8 May 2017 14:54:23 -0700 (PDT)
Received: from Macintosh-4.fritz.box ([IPv6:2001:981:602b:1:7044:2816:a4f8:15a9]) by smtp-cloud6.xs4all.net with ESMTP id HxuL1v0081x6p3w01xuM10; Mon, 08 May 2017 23:54:21 +0200
To: MIB Doctors <mib-doctors@ietf.org>
References: <6ca4ae08-fa9b-60d8-436b-61515a739f57@bwijnen.net> <20170508143801.GB12134@elstar.local>
From: "Bert Wijnen (IETF)" <bertietf@bwijnen.net>
Message-ID: <b2c40ea2-0b80-e278-ad6c-8ab417a493a6@bwijnen.net>
Date: Mon, 08 May 2017 23:54:21 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <20170508143801.GB12134@elstar.local>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/mib-doctors/pa7oooWDrW5M9eG492gZCwMyl04>
Subject: Re: [MIB-DOCTORS] InetAddress SIZE rules.
X-BeenThere: mib-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: MIB Doctors list <mib-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mib-doctors>, <mailto:mib-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mib-doctors/>
List-Post: <mailto:mib-doctors@ietf.org>
List-Help: <mailto:mib-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mib-doctors>, <mailto:mib-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 08 May 2017 21:54:26 -0000
Juergen, thanks for the answer. I think we agree. You may worry that your answer is not clear? Maybe my review comments to the authors is even less clear. But I agree that what they have done does not seem very efficient (having a saparate object/pair (InetAddressType/Inetaddress) for IPv4 and one for IPv6. I think I made that clear in my comments to authors too (I did send a copy to MIB doctors list). Feel free to jump in if you want to. Bert On 08/05/2017 16:38, Juergen Schoenwaelder wrote: > On Mon, May 08, 2017 at 04:02:12PM +0200, Bert Wijnen (IETF) wrote: >> In https://tools.ietf.org/html/draft-ietf-softwire-map-mib-07 >> I see: >> >> mapRuleIPv6Prefix OBJECT-TYPE >> SYNTAX InetAddress(SIZE (0..16)) >> MAX-ACCESS read-only >> STATUS current >> DESCRIPTION >> "The IPv6 prefix defined in mapping rule which will be >> assigned to CE. The address type is given by >> mapRuleIPv6PrefixType." >> ::= { mapRuleEntry 3 } >> >> >> mmmmm, when the InetAddressType is ipv6(2), then my understanding of RFC4001 >> is that the SIZE for the InetAddress MUST be 16. Maybe Juergen can chime in here? >> >> Juergen (or anyone else) can you confirm if my understanding is correct? >> > > It seems the objects in question are always representing IPv6 > prefixes, that is, mapRuleIPv6PrefixType is essentially a constant as > if it were subtyped to only include the value ipv6(2). The question is > whether using the triple (InetAddressType, InetAddress, > InetAddressPrefixLength) is really useful and the suggested way of > doing things. This must have come up before but I think I garbage > collected this part of my memory. Using the triple is good for generic > tools, exchanging constants on the other hand is also not very > efficient. > > Right now, I would say that InetAddress(SIZE (0..16)) is consistent > with InetAddressType, i.e., the machine readable information says this > is a generic Internet address. The other alternative would be to use > InetAddressType { ipv6(2) } and InetAddress(SIZE (16)) and then both > together indicate to tools that this is by no means a generic Internet > address. Doing a mixture of both seems inconsistent - but on the wire > you will anyway get InetAddressType { ipv6(2) } and InetAddress(SIZE > (16)). > > Sorry for not providing a clear answer. > > /js >
- [MIB-DOCTORS] InetAddress SIZE rules. Bert Wijnen (IETF)
- Re: [MIB-DOCTORS] InetAddress SIZE rules. Juergen Schoenwaelder
- Re: [MIB-DOCTORS] InetAddress SIZE rules. Bert Wijnen (IETF)