[dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative language, IA Address and option-len
Jen Linkova <furry13@gmail.com> Fri, 10 May 2024 11:34 UTC
Return-Path: <furry13@gmail.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5E575C15107E; Fri, 10 May 2024 04:34:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.848
X-Spam-Level:
X-Spam-Status: No, score=-1.848 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h4Cdm_mzF_Fw; Fri, 10 May 2024 04:34:30 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD431C14CE30; Fri, 10 May 2024 04:34:30 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2db17e8767cso25162481fa.3; Fri, 10 May 2024 04:34:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715340869; x=1715945669; darn=ietf.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=kgJqU4ak/bmkJ0gUZOX2QSjIFwPy6EjZ+EDGc60HuIM=; b=dOaQWkBah6Rqx/XBip23Ti0PIAhjYJqzTItTnc1sUieiqpPt5cG5ga+Jatw6CAMgby FEVpPOZ5bNCZ/rBiUyHJGxakbbpx4tfVNE5XbPA1hvbX6rDF0eH9gII6G18RVwDjk4h1 VNjaMFZZenxcJFSkW/TJTyMhicQP/qk40hYuRI6H7/ilPjIrFD/2fBYFzmqQZPD8DWfB W+Ir0+bCEDtyevG0Zzo7rMGr7LdWbcN1YvA4K2gzPVDgj19jCfsfPkW8lkXG4ZiQrgJ2 7u/Xoaj/KHGQj5UpOIaFg8JyjvQEXEYeb3X78WlhCwaFot2dwYAt2kuocUG6QEbGVPSm k5aQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715340869; x=1715945669; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kgJqU4ak/bmkJ0gUZOX2QSjIFwPy6EjZ+EDGc60HuIM=; b=NpE2T46jO5IsN5goiNXFWREg6HgM4bE0fh6yu1+XB2xEehbF0bWSsQZ6pTgtITZwGC x9M38oQRuXmKYc0UFhznq9f+ZdvsoyuXUgIMsHN96d4AohsKfavPbQIHtH8q57aioZtl Jlx/CfsP5HfdjseRV8UPQcstOx83xc/XTKQWOClYXymvijRMHAqJ1iSfQZpCJM4zvba4 oDq8vBdGsbz/bU97La/ronSH1lk24DHe2sYdNS25q4ugu9GE3eKqOwP804HcYx9MJcW9 fhnGHBjXu+7P6SM2m2RFavkWWOKTiWU4FD45hNL3mPzh0O8HztnKMGslh657phpLOQ0O gX1g==
X-Forwarded-Encrypted: i=1; AJvYcCUwAd8wA/X3YTk7LYBlDVZg6PtT8VLoT6uMk9Lo/CBxPfdx3n3ApXw7WDHe1U0fxPIZDHeHjR5eyduk7dtZ5mDWMbmxVYRSB5hcRVnzfnCcbS6Kdoiyd8SreL+eTlE0Ji+MZcs0kAcuSer9Gd+qIpG6p4G68Y+KLh4nwbwmeg==
X-Gm-Message-State: AOJu0YzrVQTIVU7Aj5Lz4Tyz4mzYYQLNtwfLs2ca9OlSQoe33nYprVmc K0Keny5qxf6mALa3Y9gSpajHDYxiWIhkLIiGAZRzByBS0rSfXm11ffMY0RM1weTUPSiXVvjIM06 sNAocea2bd8G4l8TR5jTnhXhcLrI=
X-Google-Smtp-Source: AGHT+IGjQaML8RjIsYwYYEtpIapMxA1J/71oS4WedQv/LzyUQFGcSBg1r/rhaerT0ugC/iJjPYPQ2YVhLBMlks29E60=
X-Received: by 2002:a2e:98d5:0:b0:2e1:2169:a5cc with SMTP id 38308e7fff4ca-2e51fd4a742mr16900581fa.15.1715340868697; Fri, 10 May 2024 04:34:28 -0700 (PDT)
MIME-Version: 1.0
References: <CAFU7BARhGJE-LrAE+qpx8yZehKpAEZeWEbcqERtj6oGywWOp0A@mail.gmail.com> <5BA53A14-028C-4BD7-B6AA-F728393B3752@gmail.com>
In-Reply-To: <5BA53A14-028C-4BD7-B6AA-F728393B3752@gmail.com>
From: Jen Linkova <furry13@gmail.com>
Date: Fri, 10 May 2024 21:34:17 +1000
Message-ID: <CAFU7BATn0ioEBt4PnsqpWCYkY6f2JZGLXfpX+03cRJ7CGMuQdg@mail.gmail.com>
To: Bernie Volz <bevolz@gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Message-ID-Hash: YHKKL77JPDT32SQH254H2H4JDTNPA3IT
X-Message-ID-Hash: YHKKL77JPDT32SQH254H2H4JDTNPA3IT
X-MailFrom: furry13@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-dhcwg.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: dhcwg <dhcwg@ietf.org>, draft-ietf-dhc-addr-notification@ietf.org, draft-ietf-dhc-rfc8415bis@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative language, IA Address and option-len
List-Id: Dynamic Host Configuration <dhcwg.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/ZEI90h9wfEnzdZ9YC-PKNf9d1To>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Owner: <mailto:dhcwg-owner@ietf.org>
List-Post: <mailto:dhcwg@ietf.org>
List-Subscribe: <mailto:dhcwg-join@ietf.org>
List-Unsubscribe: <mailto:dhcwg-leave@ietf.org>
Hi Bernie, On Fri, May 10, 2024 at 8:47 PM Bernie Volz <bevolz@gmail.com> wrote: > It does seem we need to fix the dhcpv6 standard (bis) as if you look at the DHCPv6 Leasequery RFC (5007), it makes use of the IAADDR option outside of IA_NA (we can ignore IA_TA as it has been deprecated). Ah, good to know our draft is not the only one conflicting with the current text ;) > Maybe we replace: > > 21.6. IA Address Option > > The IA Address option is used to specify an address associated with > an IA_NA. The IA Address option must be encapsulated in the > IA_NA-options field of an IA_NA option (see Section 21.4). The > IAaddr-options field encapsulates those options that are specific to > this address. > > With: > > 21.6. IA Address Option > > The IA Address option is used to specify an address, usually > associated with an IA_NA and encapsulated in the > IA_NA-options field of an IA_NA option (see Section 21.4). The > IAaddr-options field encapsulates those options that are specific to > this address. Do we need to say 'usally associated with an IA_NA'? Maybe smth like "The IA Address option is used to specify an address. It can be associated with other options (e.g. an IA_NA by encapsulated in the IA_NA-options field) or use without encapsulation." ? > That does bring up an interesting point … what should leasequery do if queried for a registered address? Just return the IAAddr without IA_NA or manufacture a “fake” IA_NA (perhaps with IAID 0 and adding the OPTION_ADDR_REG_ENABLE option in the IAAddr-options field to notify querier that this is a self registered address). We should address this — same concept can be used for failover (RFC8156). I think it would be reasonable to return IAAddr without IA_NA, with OPTION_ADDR_REG_ENABLE inside IAaddr-options. That would clearly indicate that it's not a lease. > Regarding your point of validation of option lengths we generally chose not to require that except of course that an option must at least be the “minimum” length (many options are variable length and unknown options are just that). So if your zero-length option is not that, it really does little harm (except wasting bytes). Yes, it might mean that the option is not really correct and some implementation may have hijacked that option number for a different purpose which could result in unexpected behavoir. > > Note that we do have text in section 16 about message validity - and that includes that the messages are encoded correctly - no extra bytes at end (i.e., incomplete option-code + length) or missing bytes at end of message (last option is too short for specified option length). Thank you! Just wanted to make sure that our draft is consistent with 8415. > On May 10, 2024, at 2:52 AM, Jen Linkova <furry13@gmail.com> wrote: > > Hello, > > While addressing various comments for draft-ietf-dhc-addr-notification > (which is on the Telechat agenda for the next week), we've noticed a > few interesting things in RFC8415/draft-ietf-dhc-rfc8415bis, which I'd > like to bring to the WG attention. > > 1. Both RFC8415 and draft-ietf-dhc-rfc8415bis are using [RFC2119] > [RFC8174] normative language. However there are 23 cases where 'must' > (lower case) is used (vs 200+ cases of MUST). > > The case which concerns me mostly is Section 21.6 (IA Address option). It says: > > "The IA Address option must be encapsulated in > the IA_NA-options field of an IA_NA option (see Section 21.4) or the > IA_TA-options field of an IA_TA option (see Section 21.5)." > > It is not MUST, so, strictly speaking, it's not a normative language. > Now I'm wondering; is it really not mandatory), is it just an > oversight or was it left untouched in -bis just in case there are > implementations which do not treat 'must' and 'MUST' so changing > 'must' to MUST would break them or make them violating 8415bis? > > (Sorry if it has been discussed already..) > > 2. If 'must' in Section 21.6 is actually 'MUST', then > draft-ietf-dhc-addr-notification clearly violates it: that draft is > using IA Address option in ADDR-REG-INFORM and ADDR-REG-REPLY w/o any > encapsulation. > > Shall we rephrase section 21.6 to smth like: > > "The IA Address option is used to specify an address associated with > an IA_NA or an IA_TA. In that case the IA Address option must be > encapsulated in > the IA_NA-options field of an IA_NA option (see Section 21.4) or the > IA_TA-options field of an IA_TA option (see Section 21.5). The > IAaddr-options field encapsulates those options that are specific to > this address. > IA Address option MAY be used with or without encapsulation in other > options and messages, when an address needs to be specified." > > Another possible action plan would be to wait 6 days and if > draft-ietf-dhc-addr-notification is approved for the publication, add > a reference to 8415bis (AFAIR it was proposed before but at that time > there was a risk of delaying 8415bis by doing so). > > 3. Last but not least...Another point raised during > draft-ietf-dhc-addr-notification review is that we do specify how the > sender shall set the option-len (MUST be zero) but we do not specify > the behaviour on the receiving side, if that MUST is violated. The > current text is consistent with 8415 - I could not find any text there > specifying the behavior for unexpected option-len value. I assume > it's intentional, as per the robustness principle - but I'd like to > confirm. > > Thanks! > > -- > Cheers, Jen Linkova -- Cheers, Jen Linkova
- [dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative … Bernie Volz
- [dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative … Jen Linkova
- [dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative … Michael Richardson
- [dhcwg] draft-ietf-dhc-rfc8415bis: normative lang… Jen Linkova