Re: [v6ops] IPv6-Only Preferred DHCPv4 option

Mark Smith <markzzzsmith@gmail.com> Thu, 05 December 2019 00:53 UTC

Return-Path: <markzzzsmith@gmail.com>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8F9F212008A for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 16:53:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.497
X-Spam-Level:
X-Spam-Status: No, score=-0.497 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, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, HTML_MESSAGE=0.001, 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 mQp-R-gvd0PK for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 16:53:03 -0800 (PST)
Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) (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 05813120018 for <v6ops@ietf.org>; Wed, 4 Dec 2019 16:53:03 -0800 (PST)
Received: by mail-oi1-x234.google.com with SMTP id v140so1181874oie.0 for <v6ops@ietf.org>; Wed, 04 Dec 2019 16:53:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KyrZrIlhCUnpsGBU7tDFGofV8L6wVVrrhCOQ/xbzZX0=; b=YGEcmhQoKFnLaMydh5hd9QgeTYuMzZZS45tEVdmiGCRJAffpAQ2jNS1QW+qwB+o/dS zNCJ88pzA+GsR86StO60pKEOSbvrNv6kgypqTpLSyWiiwf4aKXKtO1BdNARy6jws1+sb nT+cly5sq0/yqVKn8qFt83CoSdTRRsmY2DHjl0ZqoE3bjy1eLQrzc5rzSKO9f0QnscQz n0fslnER5/txEfW+watLnYfUngvzCnEaMaW/uo4bkC2qkCmMwI2c8bgbBXWl8uIw4DRG 43QPfZJRM3fjyQ5busFZtxQXKyJg4GOQtSf6ZdL+3JfFaEA4pgJGJpT/EFteNZGSXhHu wnsw==
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:from:date :message-id:subject:to:cc; bh=KyrZrIlhCUnpsGBU7tDFGofV8L6wVVrrhCOQ/xbzZX0=; b=Y0kyj8u537+keIFVXureTuT5BxOktkdpj4OWbHhjYhaf6g87vYKn47/+gX2ZrMkSRg P8rYRxdk5UHGkipfGMBEEIUevHk3vtLJA4OkNlcXk6Am7IQcYSFhWcSgYb1R0C/VYilm iU4x3c1rMGOmjs+VP2Qn405aYzYaeeIdIhmA7rQTjgG4o6J9Xw0zrzImkOdCWJ5kUlvN 1CUPnfFeq8cF3mCcwrbfLEdSLMiChxdtBxfEwoL47r4hd4PSu4Nd76GK1f7vlAu4lnv3 Ja3EeseEWk8hmD5DR5FEkTF4FP8bJczJGVddqsFnafFTEiHD0nMbBsOa9g45iN5WqjYw ApTA==
X-Gm-Message-State: APjAAAUNpq1Gvf6xTgg/zBzPEmL6DXeKqnRRymIYyL6128Z3LFj/TUgg 3Vse0J2INZj2HC/j1h+w/ybyKZQN9Siv2dY08Ok=
X-Google-Smtp-Source: APXvYqwRNy4bAEFfG2DJK19xeyhvs8+FuNIwRE4RlsGabtFkm+D2u30ZZn8HfhQCBGqiakg/Qv7CtxrUzH3blJir1t8=
X-Received: by 2002:a05:6808:98d:: with SMTP id a13mr5197123oic.7.1575507182300; Wed, 04 Dec 2019 16:53:02 -0800 (PST)
MIME-Version: 1.0
References: <CAFU7BAR1JLUZps=CAqJfeQtUf-xQ88RYvgYrPCP+QP0Ter7YFg@mail.gmail.com> <E03BBE6C-3BED-4D49-8F79-0A1B313EFD9D@apple.com> <28594.1575483729@localhost> <7ac18a46-31d9-74cc-117a-0fd908413aac@gmail.com> <9bd73ee1-46f7-5084-06a6-59c7b391f9cb@foobar.org> <CAKD1Yr0KPfFvk7Y49WkiVnm1q0E6i1u1hi4p_x56=p+kP9g=0g@mail.gmail.com>
In-Reply-To: <CAKD1Yr0KPfFvk7Y49WkiVnm1q0E6i1u1hi4p_x56=p+kP9g=0g@mail.gmail.com>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Thu, 05 Dec 2019 11:52:35 +1100
Message-ID: <CAO42Z2w1hK75xBEKfFH52ki9U5ZTC=RNSs4d+9K0PFAtMYa42A@mail.gmail.com>
To: Lorenzo Colitti <lorenzo=40google.com@dmarc.ietf.org>
Cc: Nick Hilliard <nick@foobar.org>, v6ops list <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f131180598ea5949"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/PS2HW9ZrMZfQLD0AMqsXmN6V654>
Subject: Re: [v6ops] IPv6-Only Preferred DHCPv4 option
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Dec 2019 00:53:05 -0000

On Thu, 5 Dec 2019, 10:57 Lorenzo Colitti, <lorenzo=
40google.com@dmarc.ietf.org> wrote:

> On Thu, Dec 5, 2019 at 5:43 AM Nick Hilliard <nick@foobar.org> wrote:
>
>> > As an ex-author of an ex-draft that suggested using IPv6 to tell
>> > hosts to avoid IPv4, I'm curious to know whether a draft that
>> > suggests using IPv4 to tell hosts to prefer IPv6 will also be accused
>> > of being an operational nightmare.
>>
>> I haven't read the draft yet - and won't get to it for a couple of days
>> - but am also curious about why this approach is better than the other
>> way around :-)
>>
>
> Here are a couple of reasons why we believe this proposal will fare better
> than the IPv6-only flag:
>
>    1. It has a clear goal and clear semantics.  There was little
>    consensus on the meaning of the IPv6-only flag. Did it mean that there was
>    no IPv4 on the link? That the network should not provide IPv4 addresses? Or
>    that hosts should never send packets with IPv4 ethertypes? If the latter,
>    why not drop the packets in the infrastructure? But then, what
>    about link-local? And so on. In contrast, this option's goal is very clear
>    (conserve IPv4 addresses) and its meaning is very clear: here's an IPv4
>    address if you want it, but please don't use it if you don't need it.
>
>
So I haven't read the draft either, although the following applied in the
context of the the IPv6-only flag draft and I think this one.

Why aren't IPv4 (and IPv6) addresses acquired on-demand when the first
application opens an IPv4 (or IPv6) socket, and then released when the last
application closes the last IPv4 socket?

It seems to me that it is really only tradition that devices acquire
network layer addresses when the host boots up or when an interface
attaches to a new link. Devices are acquiring addresses even though there
may never be applications running on the host that use the address.

If hosts only acquired IPv4 addresses via DHCPv4 based on when the first
IPv4 application started running, then when a host is only running IPv6
only applications, it would never acquire an IPv4 address because it
wouldn't need one, meaning never try to use DHCPv4 (so would avoid the
link-layer broadcast DHCP_DISCOVERS) and never use ARP (avoid link-layer
broadcast ARP Requests).

If all IPv4 on-demand hosts on a link are then only running IPv6 only
applications, IPv4 would not ever appear on the link. Hosts would
effectively switch off IPv4 on links themselves because they don't need it.

More generally, IPv4 would automatically drain away from networks more
hosts exclusively running IPv6 only applications appear. In this scenario,
there would be no need for any out-of-band signalling mechanism to say
switch off IPv4, such as what this draft proposes or what the IPv6-only RA
flag draft proposed.

Some might say they want hosts to acquire addresses for security purposes
of knowing what devices are on a link. However, I can attach to a link,
purposely not acquire an IPv4 (or an IPv6) address, yet spoof packets with
IPv4 or IPv6 addresses. In other words, if you truly want to have an audit
trail of devices that attach to your link/network for security purposes,
you need to do it at layer1 and/or layer 2 at the point of attachment of
the device, not layer 3.


>    1. It is using a protocol that already configures IPv4 to configure
>    IPv4. The IPv6-only flag was trying to affect IPv4 using an IPv6 protocol,
>    and that allows attackers to mount attacks on existing networks that have
>    not deployed IPv6 and thus have no IPv6 security measures in place.
>
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops
>