Re: [dhcwg] [Technical Errata Reported] RFC2131 (5100)

Ted Lemon <mellon@fugue.com> Fri, 12 January 2024 13:59 UTC

Return-Path: <mellon@fugue.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 65BEDC14F705 for <dhcwg@ietfa.amsl.com>; Fri, 12 Jan 2024 05:59:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.905
X-Spam-Level:
X-Spam-Status: No, score=-6.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20230601.gappssmtp.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 RG20qHQxagLz for <dhcwg@ietfa.amsl.com>; Fri, 12 Jan 2024 05:59:28 -0800 (PST)
Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) (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 1B38BC14F6B7 for <dhcwg@ietf.org>; Fri, 12 Jan 2024 05:59:27 -0800 (PST)
Received: by mail-qk1-x72f.google.com with SMTP id af79cd13be357-783137d7fb4so449714285a.2 for <dhcwg@ietf.org>; Fri, 12 Jan 2024 05:59:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20230601.gappssmtp.com; s=20230601; t=1705067966; x=1705672766; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6VZMtVqc1UkWqX79IBY85lgL40DQNXPw3pGeiZFUsm4=; b=HmZ5pWeL7soIAuGuJ46hP1XuPeZYWXBLPK6poCVLBqqcBwAx8tuxnwAJNcUuQ+HMSn FAxbAnZd/x8hv4/3zmfhbh0ekvHgc7OSkx6ucYCaVLyhX7Xgt5mn1r53sAtbDx66YUlq txS3haY+rOQQ0LBdV0tNa87nTtwsvi5IA4SiDIaBU/WOHl3muQWliujqr/DCSyCTRCYj utr+YD00+UykmTtLFTA7CHPu0zP5rBi/7kZUBKMdEAgswTq/W8hFc6X96atxHyMrXR24 U9WYzAFjmnef3gFl+2LPHY4gZr+MMYBSTa7+OHjTtmYNkXN1hkEUJZWY+pTpT1IeTOy1 S32Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705067966; x=1705672766; h=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=6VZMtVqc1UkWqX79IBY85lgL40DQNXPw3pGeiZFUsm4=; b=SMx44k9OvPRooaynOG7yaxRJIRBTArkST4o3Lgy9BdUjAYEEcPJSM4HO5UUyjYzhe0 KSaSm+lB+JR5wDE5s0MUaJMYI1b83oKlDrD0j21bj5flFXsjTCdDjq5dkMvMv0c7J4jd hRGDQLif+UATiHr4Ph1J+ZzfsXYgbH1G83XoF7hPu+n7NefczWKKAvfiAk90lngfTuE5 Qwah0ZqfmD1W8Mk6+YXbwSxic0KNiGwLgiIVgkJWyBkQQjd3VAI0GI6/8KX/uUo1H1Nx BfVzI9SpMINo75zzmg/t9IuYfuk3EB2ayNFdkagAY0kQkSkCUGeA2sAxe/ulbKkp1Eeu t6NQ==
X-Gm-Message-State: AOJu0YzfsFg0D/C52YUixK4AQRh5wTM21r94xUbHaW+JAEgjFTpAICod eg5dWl8ZvP7YLxP4kbvwV+9lqZo/jb/MysTy9obFVxZO9yy5ww==
X-Google-Smtp-Source: AGHT+IEPnzG4tEiF+kM+khvopDi3dCrxGATJbfoAEDgEqU1Etx/Kb1gbr9dhjKllo9c4S6QCu3bSui8XQzGv8SGL9tc=
X-Received: by 2002:a05:6214:2481:b0:681:29f:a339 with SMTP id gi1-20020a056214248100b00681029fa339mr917727qvb.67.1705067966613; Fri, 12 Jan 2024 05:59:26 -0800 (PST)
MIME-Version: 1.0
References: <20170829025725.CAD8DB8107D@rfc-editor.org> <3FE33334-43C1-40CB-AE0B-12C656EDA498@cisco.com> <E28AC935-D768-4418-8E5D-27C89CF58F5E@cisco.com>
In-Reply-To: <E28AC935-D768-4418-8E5D-27C89CF58F5E@cisco.com>
From: Ted Lemon <mellon@fugue.com>
Date: Fri, 12 Jan 2024 08:58:50 -0500
Message-ID: <CAPt1N1kUK=vLFj09SM=4VsPtPuoct-vOYFZ_2zw45=godr4nLA@mail.gmail.com>
To: "Eric Vyncke (evyncke)" <evyncke=40cisco.com@dmarc.ietf.org>
Cc: "droms@bucknell.edu" <droms@bucknell.edu>, "tomasz.mrugalski@gmail.com" <tomasz.mrugalski@gmail.com>, Bernie Volz <bevolz@gmail.com>, "fanlen@126.com" <fanlen@126.com>, "dhcwg@ietf.org" <dhcwg@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000077e0b5060ec012d8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/8Pm5ynqAKkrhfZBAMiudHFA58Zc>
Subject: Re: [dhcwg] [Technical Errata Reported] RFC2131 (5100)
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Dynamic Host Configuration <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 12 Jan 2024 13:59:32 -0000

What's possibly being missed here is that the DHCP server has the client's
MAC address, and is not relying on just on the routing table in the kernel,
but also on giaddr and chaddr to determine how to send unicast responses.
If giaddr is nonzero, the server sends the response using regular unicast
through the IP stack's routing table, but if giaddr is zero, the server
constructs a layer 2 frame with chaddr as the layer 2 destination address
and unicasts that frame out the appropriate interface, bypassing the
kernel's routing table and layer 3 processing entirely. So it doesn't
actually matter what the IP destination address is other than that the
client stack has to recognize that address as its own. The 'broadcast' bit
takes care of the case where the client isn't able to do this. The server
is always permitted to broadcast if it doesn't have the ability to route
the response directly over layer 2, but at the time this RFC was written
this was considered suboptimal, and the RFC goes to some lengths to make it
possible for DHCP servers and relay agents to avoid sending broadcasts.

So the text as written is correct.

On Fri, Jan 12, 2024 at 1:47 AM Eric Vyncke (evyncke) <evyncke=
40cisco.com@dmarc.ietf.org> wrote:

> Let's start this new year with fixing this old errata...
>
> I would appreciate the wisdom of the DHC WG on this one
>
> Regards
>
> -éric
>
> On 03/08/2023, 13:14, "Eric Vyncke (evyncke)" <evyncke@cisco.com <mailto:
> evyncke@cisco.com>> wrote:
>
>
> While processing this old (2017) errata, I would like a confirmation by
> the DHC WG that the corrected text should rather be:
> " Normally, DHCP servers and BOOTP relay agents attempt to deliver
> DHCPOFFER, DHCPACK and DHCPNAK messages directly to the client using
> unicast delivery except when noted in section 4.1 when 'giaddr' is zero."
>
> Thank you Fan for the errata and thank you all in advance for the
> confirmation,
>
> Regards
>
> -éric
>
> On 29/08/2017, 04:57, "RFC Errata System" <rfc-editor@rfc-editor.org
> <mailto:rfc-editor@rfc-editor.org>> wrote:
>
>
> --------------------------------------
> You may review the report below and at:
> http://www.rfc-editor.org/errata/eid5100 <
> http://www.rfc-editor.org/errata/eid5100>
>
>
> --------------------------------------
> Type: Technical
> Reported by: Fan Wei <fanlen@126.com <mailto:fanlen@126.com>>
>
>
> Section: 4.1
>
>
> Original Text
> -------------
> Normally, DHCP servers and BOOTP relay agents attempt to deliver
> DHCPOFFER, DHCPACK and DHCPNAK messages directly to the client using
> uicast delivery.
>
>
> Corrected Text
> --------------
> Normally, DHCP servers and BOOTP relay agents attempt to deliver
> DHCPOFFER, DHCPACK messages directly to the client using
> uicast delivery.
>
>
> Notes
> -----
> According to prior part description in section 4.1: "In all cases, when
> ’giaddr’ is zero, the server broadcasts any DHCPNAK messages to
> 0xffffffff.", the DHCP server should not send DHCPNAK in unicast to client
> unless 'giaddr' is not zero.
>
>
> Instructions:
> -------------
> This erratum is currently posted as "Reported". If necessary, please
> use "Reply All" to discuss whether it should be verified or
> rejected. When a decision is reached, the verifying party
> can log in to change the status and edit the report, if necessary.
>
>
> --------------------------------------
> RFC2131 (no draft string recorded)
> --------------------------------------
> Title : Dynamic Host Configuration Protocol
> Publication Date : March 1997
> Author(s) : R. Droms
> Category : DRAFT STANDARD
> Source : Dynamic Host Configuration
> Area : Internet
> Stream : IETF
> Verifying Party : IESG
>
> _______________________________________________
> dhcwg mailing list
> dhcwg@ietf.org
> https://www.ietf.org/mailman/listinfo/dhcwg
>