Question about RFC6724

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 02 May 2022 04:32 UTC

Return-Path: <brian.e.carpenter@gmail.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 459E1C14F720 for <ipv6@ietfa.amsl.com>; Sun, 1 May 2022 21:32:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YLS_q_v9YFym for <ipv6@ietfa.amsl.com>; Sun, 1 May 2022 21:32:51 -0700 (PDT)
Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE411C157B47 for <ipv6@ietf.org>; Sun, 1 May 2022 21:32:51 -0700 (PDT)
Received: by mail-pl1-x629.google.com with SMTP id s14so11608567plk.8 for <ipv6@ietf.org>; Sun, 01 May 2022 21:32:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=SQ8KigzgzWgGYjcOtYrTz7aZQCtBtuJpTEeUypVd0RE=; b=IhlGXCkWrapdDzP/CwFw8L2sfrv/3uS1DxRgNoDG1bBeZW3rM4tAKd+jpG0iS6D6uI U6wtUAwt3NjT+mj5yMLKM2xgMJTEkRSDEWIa//faHqKPYgFxsKleWcuUWYqJDspB3wzM PEm0ruertvMMU9jIdncJIzAUdvIqIWCJQ536VqFqbHsWSVBf9pp70I8Szwwq3+GKhsQH /+eQXPlfx9StmMvv/QzBLiVQvm+hftov7uWZFoNo6QIIsCeilvsvyykn3Lm7zW5p2u5d 7VmeoXUWIVYQneIU+hR8/BboQOxJUOMMQ34R4js8Vx//xUZSyxafFEK2dBoSJ8ojT+fH IYjQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=SQ8KigzgzWgGYjcOtYrTz7aZQCtBtuJpTEeUypVd0RE=; b=qECf4FLbV6a0SyHeAdB6ulJ7oxd6iBoQ0sx99IviWspm4GYOoJ0jTGYr2dm+lH0iWD ioySU5CZmqCVpyo3jTsvmR7AVvb0f8rZ/6gteQdWPdz8Yko4acjrtvyQEy1O6aCggaQs FsCUIg+NtQSUGAs/g7oGL01fShJuEs8Vmr0zJ4cGhUQAaS2UjtnyU7cNWL8V5l0f0NTD bRuWRUKOT6wjTPsiqR5i1GdUlENC3YHUK4gDYmCf9Vl9d/hjfZnOApOzA5k3IXdD5Dhs S+/jfRijsm0UECLA1yOFYGLyO9/+CyngyhHEsVyoyMEhV1eMngP7sC0fpe4ZSGPWlvv2 D48Q==
X-Gm-Message-State: AOAM533S/DFRqQz8AEGR8pip/zMYbAH+9ODE0OYy5ix4aoPnnKd7ytSQ 3PRsq5tTxVQulUQF3Uy+UfGT/uG2xjYf3w==
X-Google-Smtp-Source: ABdhPJxLUR6oE2V6Zxdv3Oe+o8RAlMkIMYjXnQPzUFahvPGgAzKDwzR499lNW3AlBXfXQS3fubNhFQ==
X-Received: by 2002:a17:903:244b:b0:15e:9b15:4890 with SMTP id l11-20020a170903244b00b0015e9b154890mr6007996pls.160.1651465970769; Sun, 01 May 2022 21:32:50 -0700 (PDT)
Received: from ?IPv6:2406:e003:1005:b501:80b2:5c79:2266:e431? ([2406:e003:1005:b501:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id n25-20020a62e519000000b0050dc7628182sm3741641pff.92.2022.05.01.21.32.48 for <ipv6@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 May 2022 21:32:50 -0700 (PDT)
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
To: 6man <ipv6@ietf.org>
Subject: Question about RFC6724
Message-ID: <985e9c94-b6f7-b45d-208d-e9b26664540b@gmail.com>
Date: Mon, 02 May 2022 16:32:46 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/h8KN2zvuc5uTKLa4Gis-RQPMA54>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.34
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: Mon, 02 May 2022 04:32:52 -0000

Hi,

Excuse my ignorance, but I have a question about RFC6724. The rules depend on longest prefix matching and therefore on the definition of CommonPrefixLen(S, D).

The way it's defined doesn't work for ::ffff:0:0/96, as far as I can see:

> 
> 2.2.  Common Prefix Length
> 
>    We define the common prefix length CommonPrefixLen(S, D) of a source
>    address S and a destination address D as the length of the longest
>    prefix (looking at the most significant, or leftmost, bits) that the
>    two addresses have in common, up to the length of S's prefix (i.e.,
>    the portion of the address not including the interface ID).  For
>    example, CommonPrefixLen(fe80::1, fe80::2) is 64.

The "interface ID" is simply a non-concept for IPv4-mapped IPv6 addresses. So what do implementations do? What is the common prefix length of ::ffff:10.1.0.10 and :ffff:10.1.0.1, in terms of the RFC6724 rules?

      Brian