Re: [dhcwg] recommendation on DHCP6 source port numbers

Bernie Volz <bevolz@gmail.com> Fri, 01 March 2024 11:31 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 1B4E3C151093 for <dhcwg@ietfa.amsl.com>; Fri, 1 Mar 2024 03:31:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.212
X-Spam-Level:
X-Spam-Status: No, score=-1.212 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_HTML_ONLY=0.1, MIME_HTML_ONLY_MULTI=0.001, MIME_QP_LONG_LINE=0.001, MPART_ALT_DIFF=0.79, 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=no 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 52b5G-ryyRir for <dhcwg@ietfa.amsl.com>; Fri, 1 Mar 2024 03:31:45 -0800 (PST)
Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (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 843C8C14E515 for <dhcwg@ietf.org>; Fri, 1 Mar 2024 03:31:45 -0800 (PST)
Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-68facd7ea4bso8690926d6.0 for <dhcwg@ietf.org>; Fri, 01 Mar 2024 03:31:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709292704; x=1709897504; 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=YLWuqC7qcHkaDIsrPQrsz4syC9+jK/iPF2ohqY3UDeM=; b=MfhU+ZV/K/LEKEBBhEzNlGKQiVDteqVJ7moKD8drmZQOTOUAW83fBAF29h8DAwuBpG YPdNZqDQRpO5AzAk1LH/b9hXweMFwP1ubCpLQZM7WFHhtB70FoHOL+FYbFA5TkloH6Jw 4aUy74aXYlx2O0f3Odt89BDgsv9gezaWghVz3/OfTSVAtDFgHIziE9vAeamIu02fU41L HggnwWgXNAixZCCfqp0iZ0Cba7SSa34hKq5oK3dNzBPlCl5aUye1Q0cNgRtn6qUv5PCu kvN8zmt/EoC+n63I/qJ5dl5+mdBXyUtxlh3PVGSKmKT3jcshtVU4JsFIKaeNcDgTCQhU ie+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709292704; x=1709897504; 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=YLWuqC7qcHkaDIsrPQrsz4syC9+jK/iPF2ohqY3UDeM=; b=dyxHNqO6IuYhnxv1/lmrIbZFkNxXZP+M4KHV1/IM5x/Bd7i0Psu2zYL6t/myVVTIdA q7OyflKJJ42bWhnTT0sPqa1LudBiJBNjsxHjvZbSjYwk+ZpxpwzsRG28737bxaRkuscw oUc0nBPzQQUe5as588X5PO+jcRTU8UN/mtn1FMGlvXV1A/vI4bcdNHXfOlQGbnlcvGZn zixTgH52JsQkkS9TAUurDN78Nov0gtVIn61B2QpXLOdAE4CRI5fsitnmes4E+pnH8Q0O PMdQclCQBr2UH8h8BxTgiscZMf72fiE15f8KcqXjm5PWSeOzD4gQjKe7POyptNyMxH// XUAQ==
X-Forwarded-Encrypted: i=1; AJvYcCUjEJl+BsoKF518rZrkTbHaTL3cu+5VsNuSDMCD2CKAZ5nTCLhYm6D139eoao+kdWctlzkhjMFIUtvrLH74CQ==
X-Gm-Message-State: AOJu0Yzc1qV/sCKwhvHiyZ+0kuyitOzT4FtSaFEpnQjlcUYi/epfi9Rl M5gl/uB6wMcOefcIeZdekD2M9PpKtJrNbEKKAT3aBDY1uD+m7b4=
X-Google-Smtp-Source: AGHT+IG+jgWGtbId8hOzZ7PIXB/rdy/TAb7ISei8FYe5TgOv6rlQKk8hRsLWoNu4nnVOMux5holfHQ==
X-Received: by 2002:a0c:fbce:0:b0:690:562f:f849 with SMTP id n14-20020a0cfbce000000b00690562ff849mr1283474qvp.56.1709292703553; Fri, 01 Mar 2024 03:31:43 -0800 (PST)
Received: from smtpclient.apple (d-69-161-122-95.nh.cpe.atlanticbb.net. [69.161.122.95]) by smtp.gmail.com with ESMTPSA id mb5-20020a056214550500b0068f9592f381sm1777937qvb.10.2024.03.01.03.31.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Mar 2024 03:31:43 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail-47FCC1D3-564C-4EB9-983F-08AE2A34DD8B"
Content-Transfer-Encoding: 7bit
From: Bernie Volz <bevolz@gmail.com>
Mime-Version: 1.0 (1.0)
Date: Fri, 01 Mar 2024 06:31:32 -0500
Message-Id: <D349A7D1-D6FE-4509-9DD2-9FCE7E6E12A4@gmail.com>
References: <2D11BD95-831F-4F19-A4DE-17C1D15F9E42@employees.org>
Cc: Tomoyuki Sahara <tsahara@iij.ad.jp>, Lorenzo Colitti <lorenzo@google.com>, dhcwg@ietf.org
In-Reply-To: <2D11BD95-831F-4F19-A4DE-17C1D15F9E42@employees.org>
To: Ole Troan <otroan@employees.org>
X-Mailer: iPad Mail (21D61)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/TYWIVSvZpOuHEjeRYfa2fy8f0NQ>
Subject: Re: [dhcwg] recommendation on DHCP6 source port numbers
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, 01 Mar 2024 11:31:46 -0000

https://datatracker.ietf.org/doc/html/rfc8415#section-7.2" rel="nofollow">7.2.  UDP Ports

   Clients listen for DHCP messages on UDP port 546.  Servers and relay
   agents listen for DHCP messages on UDP port 547.

From 8415.

- Bernie (from iPad)

On Mar 1, 2024, at 5:56 AM, Ole Troan <otroan@employees.org> wrote:


(b) sends response messages to the source port of the request message.

This server is broken and needs to follow the RFC.

Yes, you could fix this by changing client to send from 546 source port. But it is server that is broken and should be fixed.

And it is usually a lot easier to fix (& update) a few servers than lots of clients.

Which text in RFC8415 does such a server violate?

RFC768 says:
Source Port is an optional field, when meaningful, it indicates the port
of the sending process, and may be assumed to be the port to which a
reply should be addressed in the absence of any other information. If
not used, a value of zero is inserted.


So unless there is text in RFC8414 (or someone has already implemented BOOTP) it would be fair to assume you’d just swap source and dest ports.

O.