Re: [dhcwg] Regarding DHCP Discover with Dest Ip as subnet broadcast

Ted Lemon <mellon@fugue.com> Mon, 18 May 2020 16:46 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 6032C3A089C for <dhcwg@ietfa.amsl.com>; Mon, 18 May 2020 09:46:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.001
X-Spam-Level:
X-Spam-Status: No, score=0.001 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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=fugue-com.20150623.gappssmtp.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 Z82hqn5uoylb for <dhcwg@ietfa.amsl.com>; Mon, 18 May 2020 09:46:10 -0700 (PDT)
Received: from mail-qt1-x832.google.com (mail-qt1-x832.google.com [IPv6:2607:f8b0:4864:20::832]) (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 8C1FB3A08AC for <dhcwg@ietf.org>; Mon, 18 May 2020 09:46:10 -0700 (PDT)
Received: by mail-qt1-x832.google.com with SMTP id z18so8657813qto.2 for <dhcwg@ietf.org>; Mon, 18 May 2020 09:46:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=Ef34P/lXU+gTjAGmUew1vBUD7vWzQt9IFzdjRtXzI1o=; b=ORi/E2m5cSQvF0yYssGq5azaMHeL72rmRRG8evJLSX+FNru/U7+kg3HjQcVHNScJeJ g3oB6i5eCi4vwoaqfSkNYB8Xjo33MWsMuufWY/XIdk/nK9issLCpaPIuglWh6466DdAe zl4ppK5aFPzB6btn9VQWix/DBxT+Q7tBbbBAfGEenuJphZyse9yj6FW9A0QOi4C0JHru DXOLyxi5iSpwlkfr71hq3UuiUsi44tZAMY+5YBGELKSpgBUkovlj6uGNabZ5w0g5e19H sK2QcUtRpHzHTicjL1i+S8oUEak21+ZNVfEZSin3/BvKMNmAoZsukRwrtLRoBc09bgh+ hYyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=Ef34P/lXU+gTjAGmUew1vBUD7vWzQt9IFzdjRtXzI1o=; b=MjgtArhMHSZhG/saekwaM99XG4YgSJjni6J2m4YdtWV/YKEPLqy+SnmZc64JDKfSPn drQfvnVgxNQ3r5fS/aITn8h8X0nfCl0pwLRq7ZhBfj0xk3lQXeRvFpqOeLor1o5FeIJ3 oB7q2lbuXJX/Fyc/ufaFniz5ejscQbhot7YsdYxJMRFU3NOd3wQOGWAB+GHgKgadneHH cct4UrcYdwXv+3hJqEbGp/obLUNKKf4vuKGos5xn+bn0jJkUBQErj49G8t0eJHGkJj6P d61xmjXjZFDN+ZfGLMfIpUq0UkGTvixVLUca/tlv8egj5ORJb1WIcOukeJGV36mS66wr lwrA==
X-Gm-Message-State: AOAM531VyGLCkn9keUgFJZIFRuyL+SS3SoaAo+PIk9SRp2A5bNmYUqfK s1JU9xQzN9ck3092RcpmKk85yQ==
X-Google-Smtp-Source: ABdhPJygbqjKWaH9Pcm/Zw69CiSgeUHGBODdKcL2EvxRCn2CjNyFtIwDTVEYz5O6KzJla4j9qXkyBg==
X-Received: by 2002:aed:2e42:: with SMTP id j60mr16731038qtd.309.1589820369187; Mon, 18 May 2020 09:46:09 -0700 (PDT)
Received: from ?IPv6:2601:18b:300:36ee:3565:ee1a:a0aa:93d5? ([2601:18b:300:36ee:3565:ee1a:a0aa:93d5]) by smtp.gmail.com with ESMTPSA id j36sm10081517qta.71.2020.05.18.09.46.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 May 2020 09:46:07 -0700 (PDT)
From: Ted Lemon <mellon@fugue.com>
Message-Id: <93D40BA5-EFED-4A36-B575-A3ABF537BFBE@fugue.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_20B8751B-FD51-4E37-90B9-7383E60AAF08"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.13.2.1\))
Date: Mon, 18 May 2020 12:46:05 -0400
In-Reply-To: <CANgMM_BYjZZyMuPjJWcO32AK+VRWmACDCb-6KoTR6FbJbBtGaw@mail.gmail.com>
Cc: dhcwg@ietf.org
To: Venkataratnam Naidu <ratnameee@gmail.com>
References: <CANgMM_Dp+f6yhGpx-yGJ1K6+NPRCv=0Mi4NMHsen4fAPxNeAmQ@mail.gmail.com> <EFA18B49-FDBB-43C6-AB29-008C15C1F389@fugue.com> <CANgMM_BYjZZyMuPjJWcO32AK+VRWmACDCb-6KoTR6FbJbBtGaw@mail.gmail.com>
X-Mailer: Apple Mail (2.3608.80.13.2.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/CNFrVdZ9oARHLWTserxz0QbkvHQ>
Subject: Re: [dhcwg] Regarding DHCP Discover with Dest Ip as subnet broadcast
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <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: Mon, 18 May 2020 16:46:12 -0000

On May 18, 2020, at 12:23 PM, Venkataratnam Naidu <ratnameee@gmail.com> wrote:
> Thank you for the reply.  Dhcp client using 255.255.255.255 always works. But wanted to know the dhcp server behavior when it receives Discover/Request with below. And also would like to know any dhcp-client implementations using the "subnet broadcast" as destination ip.

If you don’t see the behavior called out explicitly in the spec, you should not count on there being any standard behavior.  No correctly implemented client will use the subnet broadcast address, because this will not work in all cases. Some client that isn’t able to use the link-local broadcast may use subnet broadcast and hope for the best, but you can assume that there will be cases where this definitely will not work. If the client tries to do anything other than DHCPINFORM this way, there is a good chance that the DHCP server will guess the wrong subnet and give an address that won’t work. Or it might work just fine. But using the 255.255.255.255 broadcast is required for broadcast packets, not optional.

The DHCP server is permitted to unicast its response, and a client with no address listening on 0.0.0.0 is expected to handle this correctly.