Re: [v6ops] IPv6-Only Preferred DHCPv4 option

Lorenzo Colitti <lorenzo@google.com> Thu, 05 December 2019 02:20 UTC

Return-Path: <lorenzo@google.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 94657120133 for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 18:20:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.5
X-Spam-Level:
X-Spam-Status: No, score=-17.5 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 IQ6IkNgoj_tc for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 18:20:05 -0800 (PST)
Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (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 CD000120043 for <v6ops@ietf.org>; Wed, 4 Dec 2019 18:20:05 -0800 (PST)
Received: by mail-il1-x12a.google.com with SMTP id t17so1515924ilm.13 for <v6ops@ietf.org>; Wed, 04 Dec 2019 18:20:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rok+rql13osFt4vlzhjGSzSPXXNPDvBxy13wbXdJWCs=; b=i86umn+m3pcEKXdbjc+Qkq3yUKnhAJCrncfdfF+g+clVVyuA46osHq+l0T0kJ3WcfP +ijrdlf8DOJM4WGTVoo2yzQ8O7UPPg9mnt4wQFCxPDdlv4SSlt0P/FxGdo0GSch0qiq8 5fidt3T1Ow7V48ajLVdin67ij7L33DDPzT+031radpd5Lzkwa3lqfq13EOZCiaqp1JJB 3a0JWcJY+oehJZwyweUionQrbpkweNMWnZq41nZ/0wUw1bMSOhmoR4/iGwYQAXCgwGtO 5LeGAvzG7m1/JAN6PEwiiTs7KBhjI62nz9onz8ot0ESzhjtYOZ77aQ4N4lYVpNXFS+wH sq+g==
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=rok+rql13osFt4vlzhjGSzSPXXNPDvBxy13wbXdJWCs=; b=c+2Ed9Mt8SZK1aE3Cy1JxAoaPQEo6urEUalGqv7CIg5NA/Tpt0+RIivIiBFdPRF0vB uGGhgCeg81qQkzyEkCnb+S0kp6czieDowraB+wajJX9mDrQAgyK0e+KfdtlraO2v1416 a0evz26moHOj1y6xZyeQcX0cpIHN0K0eTUMTY/z53d86MrwQJ8By6p1eCAdm9Q/FFtgc iFiDir67p08Lodk88IzmcaWtYm3AJ5HQ+MR034idH0Ewe84/T2BCEHDG8HDZXP48Giwj t34WnP0gMktjXva5MxlQEgJXBddiPfkdh9GcpTmu8qv7/JidYCJcUjZ4REzSpbswhJug 8DtA==
X-Gm-Message-State: APjAAAXZYTq/ONaHgFZ54hkZCX+mWssvV1BlU09VK2j6nHzhNO5TeziN DtsA6dQDgfw/4HT7xdPR5aPMUnyjisJ1VWMcDH36Qw==
X-Google-Smtp-Source: APXvYqxwEL38tMqSon75QDc5FUVLaiP9P0qz5iqGeHpiTMMLzmmVT1f6O+M5fKVt9PA2/NoqtPiovv15q+//w2rZHLE=
X-Received: by 2002:a92:8912:: with SMTP id n18mr6762042ild.241.1575512404899; Wed, 04 Dec 2019 18:20:04 -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> <CAO42Z2w1hK75xBEKfFH52ki9U5ZTC=RNSs4d+9K0PFAtMYa42A@mail.gmail.com>
In-Reply-To: <CAO42Z2w1hK75xBEKfFH52ki9U5ZTC=RNSs4d+9K0PFAtMYa42A@mail.gmail.com>
From: Lorenzo Colitti <lorenzo@google.com>
Date: Thu, 05 Dec 2019 11:19:52 +0900
Message-ID: <CAKD1Yr1M-00APXU4F2dnf1aaTqp7wmuugKSC=Rn14wW5WPk+CA@mail.gmail.com>
To: Mark Smith <markzzzsmith@gmail.com>
Cc: Lorenzo Colitti <lorenzo=40google.com@dmarc.ietf.org>, v6ops list <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003c29c20598eb914c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/EAsfa3ClXuGahcIXJrb6dnZb2sM>
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 02:20:08 -0000

On Thu, Dec 5, 2019 at 9:53 AM Mark Smith <markzzzsmith@gmail.com> wrote:

> 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).
>

Speaking as an OS implementer: how do I know whether an application is an
IPv4 application?

   - When it calls getaddrinfo() with AF_UNSPEC? Pretty much all apps do
   that.
   - When it creates an IPv4 socket? But what if it's creating an IPv4
   socket for the purpose of connecting to another network on the system
   (e.g., cellular data) that does have IPv4?
   - When it does a connect() on an IPv4 socket? But what if that's just a
   happy eyeballs stack that is using IPv4 because it might be available?
   - What if the app knows it needs IPv4 and will refuse to do any
   networking if it doesn't find an IPv4 address on the system?