Re: [dhcwg] [homenet] What to do when we lose DHCPv4 election?

Steven Barth <cyrus@openwrt.org> Mon, 17 August 2015 11:46 UTC

Return-Path: <cyrus@openwrt.org>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 968CF1B2CC6; Mon, 17 Aug 2015 04:46:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.25
X-Spam-Level:
X-Spam-Status: No, score=-2.25 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
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 G6rmoA2BBSrM; Mon, 17 Aug 2015 04:46:40 -0700 (PDT)
Received: from mail.core-networks.de (mail.core-networks.de [82.96.72.7]) (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 CD7E31B2CC2; Mon, 17 Aug 2015 04:46:39 -0700 (PDT)
Received: from localhost ([127.0.0.1]) by mail.core-networks.de id 1ZRIs7-0001mp-4n with ESMTPSA (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) for ; Mon, 17 Aug 2015 13:46:35 +0200
To: Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr>, Michael Richardson <mcr+ietf@sandelman.ca>
References: <87pp2oioik.wl-jch@pps.univ-paris-diderot.fr> <26135.1439773503@sandelman.ca> <87k2suw6w2.wl-jch@pps.univ-paris-diderot.fr>
From: Steven Barth <cyrus@openwrt.org>
Message-ID: <55D1C99A.20203@openwrt.org>
Date: Mon, 17 Aug 2015 13:46:34 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0
MIME-Version: 1.0
In-Reply-To: <87k2suw6w2.wl-jch@pps.univ-paris-diderot.fr>
Content-Type: text/plain; charset="windows-1252"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/dhcwg/UYFL_1rvTKPpL5vrQyKcfC_-R7E>
Cc: dhcwg <dhcwg@ietf.org>, Homenet <homenet@ietf.org>
Subject: Re: [dhcwg] [homenet] What to do when we lose DHCPv4 election?
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.15
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, 17 Aug 2015 11:46:41 -0000


Am 17.08.2015 um 12:23 schrieb Juliusz Chroboczek:
>>> When a Homenet router was previously acting as DHCPv4 server for
>>> a link, and subsequently loses an election, should it:
> 
>>> 1. remain silent;
>>> 2. remain silent in response to DHCPDISCOVER, but NAK any DHCPREQUEST; or
>>> 3. NAK both DHCPDISCOVER and DHCPREQUEST?
> 
>> I think that #2 is probably correct
> 
> Thanks.  What after a renumbering event and the addresses that the client
> requests are no longer onlink?  I'd like a precise reference, if that's
> okay.
At first glance all 3 behaviors seem sensible, while 2 and 3 look more preferable.
However I do not particularly remember all the implications. In any case I'm
thinking of adding "Routers which seize to be elected DHCP
        servers SHOULD - when applicable - invalidate remaining existing
        bindings in order to trigger client reconfiguration."
as a generic recommendation.


> 
>> 1) do Homenet-aware DHCPv4 servers pick the same rfc1918 address spaces to
>>    give out?
> 
> Not necessarily -- if there are multiple prefixes assigned to the link,
> the spec doesn't say which prefix is used by each server.  (Shncpd uses
> them all, which I'm not sure is a good idea.)  Electing a single DHCPv4
> server for each link works around the issue.
There is only one IPv4 "delegated" prefix at a time in an HNCP network.

"In case multiple IPv4
      prefixes are announced, only the one published by the node with
      the highest node identifier is kept among those with a Prefix
      Policy of type 0 - if there is any."

So as long as the Assigned Prefix for a link does not change the DHCPv4
pools stays the same. Individual DHCPv4 servers might use different
algorithms to assign addresses from within the pool.