Re: Question for w.g. on <<draft-ietf-6man-ra-pref64-04>

Erik Kline <ek@loon.com> Tue, 10 September 2019 05:20 UTC

Return-Path: <ek@google.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 29DBE120837 for <ipv6@ietfa.amsl.com>; Mon, 9 Sep 2019 22:20:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.497
X-Spam-Level:
X-Spam-Status: No, score=-9.497 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=loon.com
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 AZyLcBDQs6LB for <ipv6@ietfa.amsl.com>; Mon, 9 Sep 2019 22:20:54 -0700 (PDT)
Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4191C12081A for <ipv6@ietf.org>; Mon, 9 Sep 2019 22:20:54 -0700 (PDT)
Received: by mail-wr1-x42d.google.com with SMTP id q17so12603511wrx.10 for <ipv6@ietf.org>; Mon, 09 Sep 2019 22:20:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=loon.com; s=google; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=7EXisdYnS3SKhkszYTXG3joZM/R4LtYB2/tCRRzCPJY=; b=DHS+uUIKHAYz1XsjJjg1GznUA8XnRY/qYBzmF0ehoYgXAdLVgFmKeP0SUI5uauFFvp X8dU1/f42OwalBDl0FE3fTms0JDjG+GNnA60bsUUpbze35rFm6BD0pp5y34IuzZiMw10 eKKmwytXQOat3iEYp7qULBnBkqr9owjzzSk7k=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=7EXisdYnS3SKhkszYTXG3joZM/R4LtYB2/tCRRzCPJY=; b=RtHTRVMJO52dAvuMpE0sgiElzjKCoI00XdY6f4wbNCWhhsfvbEEyXy6zAL3vYdhrp2 zIXa3bTU6h2VqCmfWNDy82KDQ/WY91O24RXd+oabfR2kCrzrowzcpSBjkvSs4r2Hzox3 MwtyK+sF2ttZiy0XtRFjBB27QuMcDo9+cxYK4hQZdm3ytwsiFozlBXqZ3uOhyuHA0Kac qcI0OZTfEnE3Pjhq8MLZ2YCMGBCiLzdGoYsQPwFCfqOuC2n5UOIEtIE/ZwCw3Mxa59Oh w9RQXIwkOawYpLo3gaKXHhy7dNAR4phNd/4f+tk0+WQWsr9BzPVIH7snRRDYVoorvPTS 6LRA==
X-Gm-Message-State: APjAAAWJLt1o+AWysSgoNIz945EKpoFHdFxU3kXAlhoWonyE+lHPt58g GCHGQ9uOlEl0/akCMGmkKzKP6ZWsfzGubSBbfCujuA==
X-Google-Smtp-Source: APXvYqwGXx9C6kCXVmartIA9pfpWSyv7TvkmUxH9etlNnmFx/l10aLdvnPBe4cB7hE4HKo8fOSXYdszjpatFtaJAyRY=
X-Received: by 2002:adf:f7c3:: with SMTP id a3mr23764783wrq.141.1568092852390; Mon, 09 Sep 2019 22:20:52 -0700 (PDT)
MIME-Version: 1.0
References: <6C018A55-208A-4BB5-9DDD-9C035A882227@gmail.com>
In-Reply-To: <6C018A55-208A-4BB5-9DDD-9C035A882227@gmail.com>
Reply-To: ek@loon.com
From: Erik Kline <ek@loon.com>
Date: Mon, 09 Sep 2019 22:20:40 -0700
Message-ID: <CAAedzxohoZzHbZ0_Ny-UDXeAsXcbSPAR4EQyThk-3WQV1W2T9Q@mail.gmail.com>
Subject: Re: Question for w.g. on <<draft-ietf-6man-ra-pref64-04>
To: Bob Hinden <bob.hinden@gmail.com>, Lorenzo Colitti <lorenzo@google.com>, Jen Linkova <furry@google.com>
Cc: IPv6 List <ipv6@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007179b805922c113f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/BZ5oF-sLifJr4cg3woxNpcEHWhA>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Sep 2019 05:20:57 -0000

How about a 3rd/Nth format?  One whereby it's still possible to specify a
/96 but you don't have to include all the trailing zero-valued bytes?

My apologies if this has been raised already.

1st 8 bytes:  {
    uint8_t  type = IANA_TBD;
    uint8_t  len = 2 || 3;  /* octets */
    uint16_t  lifetime;  /* same as other lifetimes, no tinkering */

    uint8_t  prefix_len;  /* <= 96 */
    uint8_t  number_of_nonzero_prefix_bytes;  /* <= 12 */
    uint16_t  padding;  /* send: zero, recv: ignored */
}

prefix_len tells a client where to append the IPv4 address, and
number_of_nonzero_prefix_bytes tells the client when it can stop copying
prefix bytes out of this option.

2nd 8 bytes {
    uint32_t  s6_addr32_0;
    uint32_t  s6_addr32_1;
}

3rd 8 bytes /* if necessary */ {
    uint32_t  s6_addr32_2;
    uint32_t  padding;  /* send: zero, recv: ignored */
}

Note that with trivial effort we could also have some indication in the
first 8 bytes that the prefix is the WKP, and if so limit the option to
just 1 8-octet entry.

On Mon, 9 Sep 2019 at 11:38, Bob Hinden <bob.hinden@gmail.com> wrote:

> Hi,
>
> From my reading of the list for <draft-ietf-6man-ra-pref64-04>, we have a
> choice between the format described in the draft:
>
>      0                   1                   2                   3
>      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     |     Type      |    Length     |           Lifetime            |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     |                                                               |
>     +                                                               +
>     |              Highest 96 bits of the Prefix                    |
>     +                                                               +
>     |                                                               |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     | Lowest bits (96-127) of the prefix (optional, if Length > 2)  |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     | Prefix Length |                  Reserved                     |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> This format supports two lengths of the option (20 & 28 bytes) and allows
> for different NAT64 prefix lengths in the 28 byte version.
>
> Based on the chairs comments and list discussion, the following format has
> been proposed:
>
>      0                   1                   2                   3
>      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     |     Type      |    Length     |       Lifetime          |  PL |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>     |                                                               |
>     +                                                               +
>     |              Highest 96 bits of the Prefix                    |
>     +                                                               +
>     |                                                               |
>     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> This allow for the ranges of prefix lengths (32, 40, 48, 56, 64) supported
> by NAT64 (RFC6052) and is 20 bytes long.
>
> The merits of these formats has been discussed.
>
> Please read the discussion and respond with your preference.  It would be
> good to hear from people who haven’t responded so far.
>
> Thanks,
> Bob
>
>
>
>
>
>
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>