Re: [v6ops] [dhcwg] IPv6-Only Preferred DHCPv4 option

Lorenzo Colitti <lorenzo@google.com> Thu, 05 December 2019 03:48 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 C8074120802 for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 19:48:25 -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 aQ4W0f3r3Q65 for <v6ops@ietfa.amsl.com>; Wed, 4 Dec 2019 19:48:23 -0800 (PST)
Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 60B4E12001A for <v6ops@ietf.org>; Wed, 4 Dec 2019 19:48:23 -0800 (PST)
Received: by mail-io1-xd2d.google.com with SMTP id z23so2058199iog.11 for <v6ops@ietf.org>; Wed, 04 Dec 2019 19:48:23 -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=e4ts32lkOaN+Ut/sOdwmF5VA+F89vTh8XGY7eWNOw+k=; b=oD9yuGxEb9L4rhh0B0wRG2ahCRIY4CJ6QmIFT6afvUsh0wuDrdq01pLyIJceGJuXtq 1N+5JOCtaDfEyRaNP7mIIvGEti8kcj4N08uYEbADqtAVBnunnbtf9CN0qGp7W3+KAydA QAowEbQpfT9zGuq2taigXy2ksD4PkdEMOb4RbL97AZahIW6fcicvV/rXemsPnvZsxQ+L ahnwKUv0w3I9NKmzrrWMt8yfvbBIx66jlMi6PmJKLu0F8wAKuBndFqNENNPMhlw/nd1n vI+QpTNpzMZvUtOR35i9SCbAg5OvmVPyhqUBTHGQu1X6qrG049m+d/Pq72pG5TKy+gyp nOag==
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=e4ts32lkOaN+Ut/sOdwmF5VA+F89vTh8XGY7eWNOw+k=; b=IK6A8VZT92yf9oAsXUj7ZWj80K9A1k4snrqTP9KdwOrHhmVnRozueUvy632BFB2G7d AeiwCIlux53yC+mv43uiqxWDLuSPgPqv+7l/wWMALnvLaGJsxgqTnULqHH7WHu5fyxlp H69Ns7wVtcOZY12F8qGv3EF29ivZPZCRcVYJYbEY0XTigshigB/AWD9hacPivRNRJ31q rJCu6nqyYJLpjlJna0cobW6OXnjgzcaag3MWVur+Vu0+AMgqYSXZUaHVe/mkED8sTf8q fBfY9I6W4okBxIDV2AytCxcWbVP/tZnQBTPi6sOZDjQajBB8L2HhW0/QNHqgX3BzfIX2 Nahg==
X-Gm-Message-State: APjAAAVj7pfQwXixVb7kJjUNB5CCylGWYg8f5TBfwTEX4SrD1po6MUZf 1R0OkuUnokgvmR//TRkcJkqPH/7Xe7tiwzfn6ciTng==
X-Google-Smtp-Source: APXvYqyWeV8Itr9HANOoiyEpz26siqZyTb7HFlcjxT6aZKvZjCbXZxtVg0WMHG24oWwpE2brpKe20yzKrPl2UMk1VVo=
X-Received: by 2002:a02:9203:: with SMTP id x3mr6204110jag.62.1575517702323; Wed, 04 Dec 2019 19:48:22 -0800 (PST)
MIME-Version: 1.0
References: <CAFU7BAR1JLUZps=CAqJfeQtUf-xQ88RYvgYrPCP+QP0Ter7YFg@mail.gmail.com> <da078a21-b606-f0d9-3833-d66b20410853@marples.name> <CAFU7BASdWZv1RTVa5v4thbKPqCrmG886G+hK2J0UoZ3TbELDnw@mail.gmail.com> <b52fdd35-9663-e7df-7303-748a6b3a57ce@marples.name> <CAKD1Yr0vp2gaVRza+wei0qM6T9oN=iu39jRjK-cvhheorgE=Xg@mail.gmail.com> <67155c63-2442-2846-57f2-82fa4da16251@marples.name>
In-Reply-To: <67155c63-2442-2846-57f2-82fa4da16251@marples.name>
From: Lorenzo Colitti <lorenzo@google.com>
Date: Thu, 05 Dec 2019 12:48:10 +0900
Message-ID: <CAKD1Yr3y9eycfenN-t9oU_zgPHEZPy-AVXs3qXkWOBe9UXxVUQ@mail.gmail.com>
To: Roy Marples <roy@marples.name>, Tomek Mrugalski <tomasz.mrugalski@gmail.com>
Cc: Jen Linkova <furry13@gmail.com>, dhcwg@ietf.org, draft-link-dhc-v6only@ietf.org, V6 Ops List <v6ops@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000fc80570598eccc8f"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/tOJzCy2QTiGAiFc7nZaJPdo95ho>
Subject: Re: [v6ops] [dhcwg] 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 03:48:26 -0000

On Thu, Dec 5, 2019 at 11:50 AM Roy Marples <roy@marples.name> wrote:

> > The T2 timer is about the validity of the address that is offered
>
> Wrong.
> The T2 timer addresses the lease as a whole. At this point the address
> is just meta data, just like domain or dns servers.
>

Regardless: the T2 timer is about the validity of the information that is
offered. The V6ONLY_WAIT timer is different: it's about when the client
should ask again if the client *does not request* the offer.

Or at least V6ONLY_WAIT is at the very least badly worded, but DHCP
> should not depend on any IPv6 settings - or vice versa. Is it too much
> to ask to keep protocol setup separate?
>

Then suggest a name that you like more? I can think of DISCOVER_WAIT and
INIT_WAIT, but I'm fine with any name that has WG consensus.

As we're not offering an address in this situation, how is V6ONLY_WAIT
> different from a timer source that cannot exist? As such, why invent a
> new timer source?
>

In the document as currently worded, the network does offer an address. It
says that the client MUST NOT configure the address if it supports the new
option.


> > If there is consensus that this is useless we can remove it, but I don't
> > see a a strong reason to give up that extra flexibility. Is there?
>
> I don't see any extra flexibility offered. You talk about lease times
> and yet say T1/T2 can't be used - why? All I see is more complication
> when things can be kept simple.
>

There's a difference in semantics: the least time is meaningful to clients
that request the lease and directly affects their behaviour and the number
and frequency of DHCP packets that they send. The V6ONLY_WAIT timer is
meaningful to clients that do not request the lease. As in the example I
provided, the operator is likely going to want to configure them
differently. We should also bear in mind that there may be devices on the
path (e.g., relays, snooping switches) that see these offer packets. Using
a separate timer avoids the possibility that these devices would act on the
T2 field in ways that we don't anticipate or desire. Using a separate
option also makes it clear that there is no need for this document to
update RFC 2132 and RFC 8415 to amend the definition of the IP address
lease time option and the T1/T2 timers.

>From a complexity perspective, I think a separate timer is actually
simpler. While it does need to be parsed, that needs to happen anyway. The
fact that it's a separate option and has separate semantics makes it easier
to reason about the behaviour of the state machine than if we were
overloading the existing option. As the maintainer of a popular DHCP client
myself, I would prefer it.

Additionally, I would expect that a separate option would be simpler to
implement on the server side. This is because the server can just continue
to consider the lease time a property of the address pool, and treat this
new option simply as a statically-configured option that is returned to
clients iff they requested it in the PRL. If we use the same field for the
lease timer and the V6ONLY_WAIT timer, then the server will need to change
the lease timer in DHCPOFFER packets depending on whether the option was
requested or not, and I would expect that to be more complex. +Tomek
Mrugalski <tomasz.mrugalski@gmail.com> any thoughts on this?