Re: IPv6 Link Local Addresses [was Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?]

Fred Baker <fredbaker.ietf@gmail.com> Mon, 10 June 2019 21:06 UTC

Return-Path: <fredbaker.ietf@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 3915C1200E3 for <ipv6@ietfa.amsl.com>; Mon, 10 Jun 2019 14:06:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.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, RCVD_IN_DNSWL_NONE=-0.0001, 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zczzDMFSHq-J for <ipv6@ietfa.amsl.com>; Mon, 10 Jun 2019 14:06:12 -0700 (PDT)
Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (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 E011912000F for <ipv6@ietf.org>; Mon, 10 Jun 2019 14:06:12 -0700 (PDT)
Received: by mail-pg1-x532.google.com with SMTP id s27so5674885pgl.2 for <ipv6@ietf.org>; Mon, 10 Jun 2019 14:06:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=qCSWYxa0Ua6cGo5JmQF3TqmKJAPaVoCBxyvlWOsLXJs=; b=RwQKR/PiLADg633G25QCTy/TF1+G0szG+h+NkctAzWezzFPoOkuvN+7liRKA8T7n7p 6PHXcXdjSGXpWp4lVAp8IQb0KZ357Dat5dn7ddHe/zG9CwrEt/3ZG9HGWN5QC/Hoxch0 Z/CgO3RZaZBSeAAk2CC8n2XJHaQaS0jpYnrV47xg4zZvMjaFeFxrAQDiiMQVzS/U33b1 +Ts/Hvn+RnL9HIpTMIYdHGYYIOWDyro+Q8A3NgH+QtbQF9tKecdxG98zUUkfC6iap1YC /keoIciy6rbGdZjz9qpc9DYyx5vcJMz6lSlFyaGXMkJnyQPiQo5z/nj+g57JjIFoARXZ fgVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=qCSWYxa0Ua6cGo5JmQF3TqmKJAPaVoCBxyvlWOsLXJs=; b=RK42hQCf/2JDT1F8KB3DWPIyiQNxM9hz/xlnCmNe6w/Bpnd7dxsAJYRHEDyOgX2gTn 7zSs2QWdDrOSywk4AzHkePlaN95b+Ts5G4D7f9OgAekI7g+ytHkPtZY5/93Q6KP1dkjl Pjs5u8Hl2z9UdKARVJYGACLJZqwkFviWVZW8XEF98q25a15HcloCIRT+EnMo978CDwpJ gi1ywB768HkKuYi/cwarrg8hu1kFEpJj90vqE46Wa2IyQCL+Mv91M8q8xWXqidNh+mwR Zzt7E/2COGrROFHrYUaLc/h0y0XuT+DgBDp+9PCiJTPC647USKQvPtl8Eq5VTPiczRUD reEA==
X-Gm-Message-State: APjAAAWGtZidpEvnWxengX33W8SzQuYHqRpvr0l51eZTkjPNb7zNwHs+ OP2Gqd4Xnq4WvNaNQIQSCk8=
X-Google-Smtp-Source: APXvYqxA99j2l4ia2nx6FjsUMgelL96OkoccJ/cZ1eBw47mFtl6K0lJOKypnNriDEBZOziZVfCmwTw==
X-Received: by 2002:a65:56c5:: with SMTP id w5mr17078834pgs.434.1560200772328; Mon, 10 Jun 2019 14:06:12 -0700 (PDT)
Received: from ?IPv6:2600:8802:5903:df16::1006? ([2600:8802:5903:df16::1006]) by smtp.gmail.com with ESMTPSA id b135sm11683333pfb.44.2019.06.10.14.06.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 14:06:10 -0700 (PDT)
From: Fred Baker <fredbaker.ietf@gmail.com>
Message-Id: <1A4AE95B-86FF-47F3-AFA8-2139A65385FB@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_FD632976-0EAF-47EF-B775-4E18559A0500"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Subject: Re: IPv6 Link Local Addresses [was Re: Is 1111 1110 10 equal to 0xfe80 or 0x3fa?]
Date: Mon, 10 Jun 2019 14:06:09 -0700
In-Reply-To: <B3D43A45-5E90-4D04-BA64-17150EE6D2AA@gmail.com>
Cc: Bob Hinden <bob.hinden@gmail.com>, IPv6 List <ipv6@ietf.org>
To: Dennis Ferguson <dennis.c.ferguson@gmail.com>
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> <B3D43A45-5E90-4D04-BA64-17150EE6D2AA@gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/IrEDaod4kkeQ3fg_yDjtlZCGpUA>
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, 10 Jun 2019 21:06:15 -0000

I think I could argue it either way. Your option #1 assumes that the address is local (an interesting assumption in the context of RFC 4943), which would be consistent with a link-local address, which this address isn't - it's site-local if anything, and site-local is deprecated. Your option #2 assumes that the router knows where to find it, or will drop it if it doesn't, which seems as safe a safe bet as any. The only real question the operator might ask is "why in the world are you sending me these packets?"

If anything, I think I might suggest as a third option an "address whose usage is undefined", and discarding it because you don't know what else to do.

> On Jun 10, 2019, at 11:18 AM, Dennis Ferguson <dennis.c.ferguson@gmail.com> wrote:
> 
> 
>> On Jun 10, 2019, at 12:44, Bob Hinden <bob.hinden@gmail.com> wrote:
>> 
>> 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.
> 
> So if an application asks my implementation to send a packet addressed to fe80:1::1 out a particular link what should the implementation do with it? It seems like there are only 3 choices:
> 
>   1. Run ND on that link to see if it can find a neighbor there with that address to send the packet to.
> 
>   2. Send the packet to the current default router.
> 
>   3. Something else (what?).
> 
> I had though 1. was the answer since that is what is done with packets addressed to link-local unicast destinations (which is what that address is according to RFC4191 section 2.4), but that now seems to be ambiguous.
> 
> Dennis Ferguson
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------

--------------------------------------------------------------------------------
Victorious warriors win first and then go to war,
Defeated warriors go to war first and then seek to win.
     Sun Tzu