[Dime] Adding a new derived type

Tom Taylor <tom.taylor.stds@gmail.com> Mon, 07 July 2014 17:00 UTC

Return-Path: <tom.taylor.stds@gmail.com>
X-Original-To: dime@ietfa.amsl.com
Delivered-To: dime@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 107AE1A0370 for <dime@ietfa.amsl.com>; Mon, 7 Jul 2014 10:00:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, SPF_PASS=-0.001] autolearn=ham
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 205WMd7GQjWz for <dime@ietfa.amsl.com>; Mon, 7 Jul 2014 10:00:40 -0700 (PDT)
Received: from mail-ie0-x22b.google.com (mail-ie0-x22b.google.com [IPv6:2607:f8b0:4001:c03::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD66B1A041F for <dime@ietf.org>; Mon, 7 Jul 2014 10:00:40 -0700 (PDT)
Received: by mail-ie0-f171.google.com with SMTP id rp18so1364889iec.2 for <dime@ietf.org>; Mon, 07 Jul 2014 10:00:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=H8jRyn2A+ODHZFxWOiRqAmsrbKu3ubUSycEewY9Bp+Y=; b=tq1+EXHw3RfHSU4LFNsZVU89WyMvBtch9GIn5vgoXtO6y+I9VdLRolpBg5AR7Ifkb1 HVDrI9V8mQcAq0ySsKIBGGQVQcux5Z0W5ZZrdze8p7qTNBaAwgWMY8lO1R3nWfPq6naw pw61pNv+Z9BKoII0lGK/lxLm/3xPb1nXOSxHR8ivgAsVSdGjD2Ov/b7Ay14syW24ErPW 7AVqjRIBtTr+HevHj/nLnCG+jtW64JX455JbyNqKIcUKCQmKBQqIyRpk1q1hVMtkVOvA omc8I0/BQYlph3BUKZNe4glUx8xVm/I8SUKacg4k6VUyzdxGUWAeSoNfZviKwYdqXbs7 UEHQ==
X-Received: by 10.51.17.97 with SMTP id gd1mr41365583igd.18.1404752440165; Mon, 07 Jul 2014 10:00:40 -0700 (PDT)
Received: from [192.168.0.102] (dsl-173-206-11-121.tor.primus.ca. [173.206.11.121]) by mx.google.com with ESMTPSA id v6sm13112274igz.21.2014.07.07.10.00.39 for <dime@ietf.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 07 Jul 2014 10:00:39 -0700 (PDT)
Message-ID: <53BAD236.5000100@gmail.com>
Date: Mon, 07 Jul 2014 13:00:38 -0400
From: Tom Taylor <tom.taylor.stds@gmail.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: "dime@ietf.org" <dime@ietf.org>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: http://mailarchive.ietf.org/arch/msg/dime/o7oqNsZkwraaHD0SIzLgq5N6QDc
Subject: [Dime] Adding a new derived type
X-BeenThere: dime@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Diameter Maintanence and Extentions Working Group <dime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dime>, <mailto:dime-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dime/>
List-Post: <mailto:dime@ietf.org>
List-Help: <mailto:dime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dime>, <mailto:dime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Jul 2014 17:00:42 -0000

I have wondered from time to time why the derived AVP data formats in 
RFC 6733 Section 4.3 were not a little more general. In particular, it 
would be nice to have an address-or-prefix type rather than just an 
address, and an FQDN broken out from DiameterIdentity.

This is to lead in to our latest revision of 
draft-zhou-dime-4over6-provisioning, which, alas, I forgot to submit 
before the deadline. Within the updated document, several attributes are 
either addresses or prefixes. Reading the introduction to Section 4.3, I 
gathered that defining a new derived AVP data format is permissible, 
although none has been registered with IANA as they are supposed to be. 
I present below the current text of the unsubmitted 
draft-zhou-dime-4over6-provisioning-03 that defines a new derived AVP 
data format, AddressOrPrefix.

Comments?

Tom Taylor

3.  Derived AVP Data Formats: AddressOrPrefix

    The above requirements involve IP addresses and prefixes in a number
    of contexts.  To simplify specification of these attributes, this
    section defines a new derived AVP data format, AddressOrPrefix,
    according to the rules given in Section 4.3 of [RFC6733].

    AddressOrPrefix

       The AddressOrPrefix data format is an extension of the Address
       data format defined in Section 4.3.1 of [RFC6733].  Like the
       Address data format, it is derived from the OctetString basic AVP
       format.  As well as an AddressType, it contains a PrefixLength
       field.  The detailed specification is as follows:

       *  As with the Address AVP, the first two octets represent the
          AddressType, which contains an Address Family, defined in
          [IANAADFAM].

       *  The next two octets are interpreted as a 16-bit unsigned
          integer representing the PrefixLength.  Valid values of
          PrefixLength are from 0 to 32 for IPv4 and from 0 to 128 for
          IPv6.  The value 0 is included in each range to allow for
          presentation of a "null prefix", the meaning of which must be
          defined by applications that use AVPs based on the
          AddressOrPrefix data format.

       *  The remaining octets present the prefix or address, most
          significant octet first.  If the prefix does not extend to an
          octet boundary, the low-order bits of the final octet are
          padded with zeroes.