on-link and off-link addresses, side discussion

Alexandre Petrescu <alexandre.petrescu@gmail.com> Mon, 05 July 2021 08:50 UTC

Return-Path: <alexandre.petrescu@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 E77FC3A0A1F for <ipv6@ietfa.amsl.com>; Mon, 5 Jul 2021 01:50:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.63
X-Spam-Level:
X-Spam-Status: No, score=-1.63 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665] autolearn=no 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 YNwmy13uLQMH for <ipv6@ietfa.amsl.com>; Mon, 5 Jul 2021 01:50:01 -0700 (PDT)
Received: from sainfoin-smtp-out.extra.cea.fr (sainfoin-smtp-out.extra.cea.fr [132.167.192.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDF143A0A1C for <ipv6@ietf.org>; Mon, 5 Jul 2021 01:50:00 -0700 (PDT)
Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by sainfoin-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 1658nv0t039671; Mon, 5 Jul 2021 10:49:57 +0200
Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 94FCF2033BB; Mon, 5 Jul 2021 10:49:57 +0200 (CEST)
Received: from muguet1-smtp-out.intra.cea.fr (muguet1-smtp-out.intra.cea.fr [132.166.192.12]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 862B7203321; Mon, 5 Jul 2021 10:49:57 +0200 (CEST)
Received: from [10.8.35.150] (is154594.intra.cea.fr [10.8.35.150]) by muguet1-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 1658nvdV026646; Mon, 5 Jul 2021 10:49:57 +0200
Subject: on-link and off-link addresses, side discussion
To: Jen Linkova <furry13@gmail.com>
Cc: 6man <ipv6@ietf.org>
References: <162512790860.6559.14490468072475126698@ietfa.amsl.com> <CAFU7BAT0O9nsuhs5FyNjvPfRKY+EM1fLYKaMYTwaPg2QjZAEpA@mail.gmail.com> <61e14cd7-ff37-5380-e547-8a9b6d3993da@gmail.com> <CAFU7BASF-vas+PP2dVNXuqScQArC+joB-fwRGzG3UZnsqq1QJg@mail.gmail.com>
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Message-ID: <2f1f68a1-8130-45b6-0586-6340f5e0bf9a@gmail.com>
Date: Mon, 05 Jul 2021 10:49:57 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <CAFU7BASF-vas+PP2dVNXuqScQArC+joB-fwRGzG3UZnsqq1QJg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: fr
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/4a-BOi9W-H06eoK7uEYfu5PWAoA>
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: Mon, 05 Jul 2021 08:50:04 -0000


Le 02/07/2021 à 00:46, Jen Linkova a écrit :
[...]
> I suggest you look at it from a different angle. "on-link address" is
> defined as an address that is assigned to an interface on a specified
> link.

But, each address is on a link.

On-link means the address is on this link that we are assuming commonly.
  The term off-link means that the address is not on this link we assume
commonly, but is on-link on another link.

In the RA, where the 'on-link' prefixes are present, there is no
identifier of a link.  If there were, then we could say that that
prefix, and the SLAAC-formed addresses, were 'on-link' on the specified
link.

And, there is no address that is not on a link.  All addresses are on a
link.  Even on virtual interfaces, the 'on-link' addresses are on-link
on that virtual link.

> There are different ways to indicate that the address is on-link and 
> one of them is "the address is covered by an on-link prefix,

Conceptually, yes, but the relationship 'covered by' can not be
implemented correctly unless we specify a prefix length to input into a
matching algorithm.  It is not the plen of the prefix in the PIO, it is
a length used in a search algorithm.

Only the persons who believe that length is 64, and always 64, consider
that 'covered by' is an implementable operation.

> e,g, as indicated by the on-link flag in the Prefix Information
> option". L bit just indicates that addresses covered by the prefix
> shall be considered on-link. That's it.
> 
>> This 'on-link' and 'off-link' discussion relates a lot to the 
>> difficulties we have in suggesting at IETF that a new extension is 
>> needed to tell that a prefix advertised on a link might not be for
>> that link to be used for SLAAC, but for putting in a routing table
>> entry.  A little bit similar to RFC4191's RIOs.
> 
> OK, disclaimer: I'm writing this before my first coffee...but...L
> flag has nothing to do with SLAAC, A flag is used for that. L=1, A=0
> would just mean 'addresses on that prefix are on-link but do not use
> the prefix for auto-configuration'.

'addresses on that prefix', you mean addresses whose plen is always 64, 
I think.

> 
> Smth like:
> 
> 2001:db8:1::/64----node1-------node2 If node2 receives a PIO for
> 2001:db8:1::/64 with L=1, A=0 it would assume that 2001:db8:1::f00,
> for example, is on-link and would try to resolve its link-layer
> address using ND. If node1 acts as an ND proxy, it would work.

Fair enough.  The concept of ND proxy blurs a little bit all that I have 
written above.

> 
>> But when told that the RIO of RFC4191 might be appropriate for the
>> V2V case that I needed I always reply that what we need is an RIO
>> that is always outside the link (I dont use the term 'off-link'),
>> and always at least 2-hops away, never 1-hop away.  SO there I dont
>> use either the on/off-link terms.
> 
> Sorry, I've not been following that discussion. Wouldn't "L=1, A=0 + 
> ND proxy" do what you want?
Err, no.

What I need is a prefix in an PIO (or a RIO) of an RA that is on a link 
('on-link') situated always at least one IP hop away; it is never 
'on-link' on this link where the RA is sent. These prefixes are never 
used to form addresses elsewhere than where they are 'on-link'.

The topology is below.  Each vertical and horizontal lines are 'links'. 
  The triple dot separate links with IP routers.

R2 sends an RA towards R1 containing the P prefixes below each other 
router.  These prefixes are at least one IP hop away from R2's link on 
which it sends that RA.

        RA[P2, ...Pn] <--
     R1------------------R2---...---Rn
     |                   |P2        |Pn
     |                   |          |
   Host1               Host2      Hostn

Alex