Re: IPv6 Link Local Addresses

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 11 June 2019 23:09 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 64D9E120090 for <ipv6@ietfa.amsl.com>; Tue, 11 Jun 2019 16:09:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.999
X-Spam-Level:
X-Spam-Status: No, score=-0.999 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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 feJwfuT8p2_N for <ipv6@ietfa.amsl.com>; Tue, 11 Jun 2019 16:09:37 -0700 (PDT)
Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 BE219120074 for <ipv6@ietf.org>; Tue, 11 Jun 2019 16:09:37 -0700 (PDT)
Received: by mail-pf1-x42e.google.com with SMTP id c85so8390317pfc.1 for <ipv6@ietf.org>; Tue, 11 Jun 2019 16:09:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=8YYGaSE81vnbENKb0zxqlSsgCYZU3Kcbv0zPx+NKr60=; b=cQzkWZazX1y1v7tKuL5MFlvZrEq62tLKUaLh37G24xGCUEdK08fn5Ni6LI5Gx3S64l Qq2vWOQZ86l5lQmd0BYDWR+U1wLr5QpAXBn2F/bGMjJ02qQl5RtFekIGe+xEhB6dAf3M kg0SAyXwKZgYZYZnzWaGfCn0++6JZYcmA6JS/7Qps6kdPIloJze+CMb1oDROK/DenK8M SGO4QYrq2F0Inj5GL7vMZd7EyLDJllfwsQhWrcVgFejAAEu0l/33kqlZ0rll/Dmhq6Zg H9K75cre93aXtZ2Lx7/NKkqaQkbxKZ5KZ79I8F4dQwdvGvkyQFi0Q1oHhtfRRJ0/KTVS OJRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=8YYGaSE81vnbENKb0zxqlSsgCYZU3Kcbv0zPx+NKr60=; b=fcV+wCaPiY8fk8JgpX6sAHQKszd2FLmIRuJAT85BNlmFEbYnshgVv0TZgje2CHrj03 kSHJejdwOYBvzZeTWr0JoL3lXaLroEq5tWL5/CsCP+CYQYQadF4XhG/AHHdlEMivKwBw fSgZ+nylcJrVZFj5613tsBvP0gwtTKXNi5lSBSl02wu+hM8mKQXM1VIoCXQU0yUXC/u8 wWw8Uq/5wrjvtljbK1ReMTQTzIf83vAsXO1fcspNLqj7m7VE8AHZ/2T7S788w4HS2H0r h4ZzURP2qgoZG+hlDeoKWaJX/pciztRDTEV5CgZ0jrDy9oQwTB3agnyx6Y2SnoxppVBI ABdA==
X-Gm-Message-State: APjAAAX1sheN0xpR3t+0nNnFHEjM3Pi9pObDipm9SM565wf1edccie8Z MsbMGD6N5DluArf6HDSCJD7O8TDw
X-Google-Smtp-Source: APXvYqzchZnUvGL9c3neD86Ajpzfv6K4qvPMCTeSuO6H/Lz9kPRG8Qsz/s2103FfxpybMrR/FA4E5A==
X-Received: by 2002:a63:2147:: with SMTP id s7mr17148114pgm.283.1560294576862; Tue, 11 Jun 2019 16:09:36 -0700 (PDT)
Received: from [192.168.178.30] (32.23.255.123.dynamic.snap.net.nz. [123.255.23.32]) by smtp.gmail.com with ESMTPSA id r11sm12763629pgs.39.2019.06.11.16.09.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 11 Jun 2019 16:09:35 -0700 (PDT)
Subject: Re: IPv6 Link Local Addresses
To: Kerry Lynn <kerlyn@ieee.org>
Cc: 6man <ipv6@ietf.org>
References: <DM6PR15MB2506E62560613C85F74A1FF8BB100@DM6PR15MB2506.namprd15.prod.outlook.com> <CALx6S36vVpD9bAPSBQmhV+daR0Yr4heQ-LaiB4hABAs8ofVfNQ@mail.gmail.com> <DM6PR15MB25063BAF058C1825E2B63E30BB130@DM6PR15MB2506.namprd15.prod.outlook.com> <CAKQ4NaW-QRZDO52zDZTSqz_MsfrS1uQHdz6zFjo+gXvtYVnFxA@mail.gmail.com> <DM6PR15MB2506E06165EA22E66BBB9524BB130@DM6PR15MB2506.namprd15.prod.outlook.com> <7E03089C-8429-4B56-96D6-441490C850B2@gmail.com> <32ad99f9-7e22-d214-7311-266d4f12caba@gmail.com> <CABOxzu1Lr0n7VfaW3_CECYbe2UphGoQ8ByWMkvKfx1HpohfeBA@mail.gmail.com> <CAAedzxrex4MN5yXvxE+C=JTPeRMyGmHVXY-5OaWY-gLd=j48JQ@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <f8b19e29-a131-375c-6817-1b6ea4c6f49b@gmail.com>
Date: Wed, 12 Jun 2019 11:09:33 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0
MIME-Version: 1.0
In-Reply-To: <CAAedzxrex4MN5yXvxE+C=JTPeRMyGmHVXY-5OaWY-gLd=j48JQ@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/G5-Rt8_Qnz0R6rLGR5NX5YpBbBk>
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, 11 Jun 2019 23:09:39 -0000

On 12-Jun-19 06:31, Erik Kline wrote:
> 
> On Tue, 11 Jun 2019 at 10:42, Kerry Lynn <kerlyn@ieee.org <mailto:kerlyn@ieee.org>> wrote:
> 
>     On Tue, Jun 11, 2019 at 9:05 AM Alexandre Petrescu <alexandre.petrescu@gmail.com <mailto:alexandre.petrescu@gmail.com>> wrote:
> 
> 
> 
>         Le 10/06/2019 à 18:44, Bob Hinden a écrit :
>         > Hi,
>         >
>         > RFC4291 defines Link Local Address as:
>         >
>         >   2.5.6.  Link-Local IPv6 Unicast Addresses
>         >
>         >     Link-Local addresses are for use on a single link.  Link-Local
>         >     addresses have the following format:
>         >
>         >     |   10     |
>         >     |  bits    |         54 bits         |          64 bits           |
>         >     +----------+-------------------------+----------------------------+
>         >     |1111111010|           0             |       interface ID         |
>         >     +----------+-------------------------+----------------------------+
>         >
>         >     Link-Local addresses are designed to be used for addressing on a
>         >     single link for purposes such as automatic address configuration,
>         >     neighbor discovery, or when no routers are present.
>         >
>         >     Routers must not forward any packets with Link-Local source or
>         >     destination addresses to other links.
>         >
>         > This means that link local addresses have a 10 bit prefix (1111111010) followed by 54 bits of zeros.  That is it, nothing more.   Address with different prefixes or with a 1111111010 prefix followed by non-zero 54 bits are not link local addresses.
>         >
>         > This is not ambiguous.
> 
>         Bob,
> 
>         The RFC4291 link local addresses have a 10 bit prefix and 54bits of
>         zero.  That is fe80::/64.
> 
>         The IANA allocation of IPv6 link-local addresses is fe80::/10.
> 
>          > fe80::/10    Link-Scoped Unicast     [RFC3513][RFC4291]     
> 
>         In that sense, the IANA definition and the RFC4291 differ with respect
>         to the definition of link-local addresses.
> 
>         fe80::/10 and fe80::/64 are not the same thing.
> 
>         Alex
> 
> 
>     Bob et al.
> 
>     Would a correct router implementation base its "must not forward" decision
>     on the most-significant 10 bits or most significant 64 bits?
> 
> 
> IMHO, /10.

Correct, IMHO, because clearly the whole of that prefix is defined as LL.

However, it might also be appropriate to log an error if the following
54 bits are non-zero, since they are specified to be zero.

     Brian

> 
> The well-known prefix on a link is the /64.
> 
> The extra empty space between the two does have its uses (https://www.freebsd.org/doc/en/books/developers-handbook/ipv6.html#ipv6-scope-index), even if not officially sanctioned by a document.
> 
>     Kerry
>     --------------------------------------------------------------------
>     IETF IPv6 working group mailing list
>     ipv6@ietf.org <mailto:ipv6@ietf.org>
>     Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>     --------------------------------------------------------------------
> 
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>