[dhcwg] Re: draft-ietf-dhc-rfc8415bis: normative language, IA Address and option-len
Bernie Volz <bevolz@gmail.com> Fri, 10 May 2024 10:47 UTC
Return-Path: <bevolz@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 5969EC14F700; Fri, 10 May 2024 03:47:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 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_FROM=0.001, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_HI=-5, 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 IuDM1cRV4Ufi; Fri, 10 May 2024 03:47:08 -0700 (PDT)
Received: from mail-yw1-x112d.google.com (mail-yw1-x112d.google.com [IPv6:2607:f8b0:4864:20::112d]) (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 EA1ADC1840EA; Fri, 10 May 2024 03:47:07 -0700 (PDT)
Received: by mail-yw1-x112d.google.com with SMTP id 00721157ae682-61d35d266e7so20319867b3.1; Fri, 10 May 2024 03:47:07 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715338027; x=1715942827; darn=ietf.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=5JowjIQbMssKKjCMWqoVF6UUZ9rFLhzwtLmWJumErsc=; b=dhiyEZR9OC8inB04G5Ip8cndI/n9GU/vKUHnwTwhsC/194IhkmWBBBAm4jenAV70tA qP3xNMfQIV2Zndt7h/BkzBYaOL6m4KOll4I1MATsbQba0aGNV/TVuEu/1cjgupcNFnkx 0zCWoIBbezcTNQmZedF4Iu1DUREp96d7ocM4fk36W5Wno1NrMT06S93KFMW696IKx/SD UCN/pYX6+QOfiAFCqgKu0WjRInhO+N5wRBdn7TreuwsjHnJdTLwUH8HBqBHHXtE9t5WW 8OTwIma1TqMzDL0kJI8xMyx5hhcRgF+v+4ur9QUOirOKeCP6xv7muvjsM9iL368VLFG/ 6hrw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715338027; x=1715942827; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5JowjIQbMssKKjCMWqoVF6UUZ9rFLhzwtLmWJumErsc=; b=v9yXCe+WYkXlSqzQQax7a+38gbDc9f0VN3bE8V1c6Ce9IJXyj5EBWGjMGnqiIKCX/0 48SItwdFPBpuWX3FhWrdk3THKxpHlhqZxoWZAGMyYPevb0Y44jUCjloLoC9PzvtCxtv6 p46g7J1BRX9cYINpoaROijiwklQDP28O9Qzxy10NZexqO37awXsh1Q+iVB5xiCfrDtaX DT0qwc1FEoIlF/xJwUZd1UcW5JJGtKIW8wWTKbrAZYE9C3Sdja/rxd6mC8YN1qG24gOo MNUKuh+GNRNxx+GAKUQn18oa6zStNneY4dOUoZMdavFncJQjUSQSiuXBYcT3LsGgAASS L9Wg==
X-Forwarded-Encrypted: i=1; AJvYcCW9wH1LSK/fKuwhqgkrk9JyGvhcCFF84x8af2O38ZuAQ+iJz150hj8Ws20HJT7zeP7qnGxrWavOh+m6d0JjgI6pJbAqcqw+fmsQ971eIUOQhckfeNikXrVCkv+zf6sM1qieOK0uCCRM2XiFfrK3I6+2hPfQW5WyksWp7yIYfA==
X-Gm-Message-State: AOJu0YxGo9lSg1BUMhH2qGa1ERK7X5ht2NoDcKzmldzS0UtXh3ocssG4 86XifiPl7AaOq7lE6Hst8uNsJX/JwOMtYa4u2Cy88vzEOZ2xJYpeaRyc
X-Google-Smtp-Source: AGHT+IFBoYdgHFo5eVqKT297xV/RzuLsRP0N8D2hF/2AzLl0kE98PzpoLHLRrsL+3t8vBt0u5nlm4w==
X-Received: by 2002:a05:690c:6f82:b0:60a:17a2:5627 with SMTP id 00721157ae682-622b016d442mr24456457b3.50.1715338026474; Fri, 10 May 2024 03:47:06 -0700 (PDT)
Received: from smtpclient.apple (d-69-161-122-95.nh.cpe.atlanticbb.net. [69.161.122.95]) by smtp.gmail.com with ESMTPSA id 00721157ae682-6209e273844sm6847127b3.74.2024.05.10.03.47.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 May 2024 03:47:05 -0700 (PDT)
Content-Type: multipart/alternative; boundary="Apple-Mail-C1C0DD20-84A3-4E35-8FCA-5A953489FE8C"
Content-Transfer-Encoding: 7bit
From: Bernie Volz <bevolz@gmail.com>
Mime-Version: 1.0 (1.0)
Date: Fri, 10 May 2024 06:46:54 -0400
Message-Id: <5BA53A14-028C-4BD7-B6AA-F728393B3752@gmail.com>
References: <CAFU7BARhGJE-LrAE+qpx8yZehKpAEZeWEbcqERtj6oGywWOp0A@mail.gmail.com>
In-Reply-To: <CAFU7BARhGJE-LrAE+qpx8yZehKpAEZeWEbcqERtj6oGywWOp0A@mail.gmail.com>
To: Jen Linkova <furry13@gmail.com>
X-Mailer: iPad Mail (21E236)
Message-ID-Hash: DUW4NSQNF6ADN4AFR2XTIRBP6RWZYXF4
X-Message-ID-Hash: DUW4NSQNF6ADN4AFR2XTIRBP6RWZYXF4
X-MailFrom: bevolz@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/f_KZ6QN9lYTcoBAQQuZVp_7WdXU>
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: 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). 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. I don’t believe we have any uses for IAPREFIX options outside of IA_PD, but we could consider similar change there (21.22)? Odd that that section doesn’t mention IAprefix-options field. (Leasequery doesn’t allow a query by prefix as query by address is sufficient - the query returns either IA_NA with IAAddr or IA_PD with IAPrefix.) — 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). — 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). - Bernie (from iPad) > 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
- [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