Re: [homenet] I-D.ietf-homenet-prefix-assignment (RFC 4193 conformance)

Pierre Pfister <pierre.pfister@darou.fr> Thu, 09 October 2014 09:04 UTC

Return-Path: <SRS0=7cAE=7A=darou.fr=pierre.pfister@bounces.m4x.org>
X-Original-To: homenet@ietfa.amsl.com
Delivered-To: homenet@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9684C1ACCF0 for <homenet@ietfa.amsl.com>; Thu, 9 Oct 2014 02:04:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 q92_TNBYbM9n for <homenet@ietfa.amsl.com>; Thu, 9 Oct 2014 02:04:18 -0700 (PDT)
Received: from mx1.polytechnique.org (mx1.polytechnique.org [129.104.30.34]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 59AB01ACCF6 for <homenet@ietf.org>; Thu, 9 Oct 2014 02:04:18 -0700 (PDT)
Received: from [10.61.199.17] (173-38-208-170.cisco.com [173.38.208.170]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTPSA id 1C2CF1400062D; Thu, 9 Oct 2014 11:04:14 +0200 (CEST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_76378C2E-9568-4500-BED0-847F48F04E6A"
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
From: Pierre Pfister <pierre.pfister@darou.fr>
In-Reply-To: <20141009004559.44A9E2106591@rock.dv.isc.org>
Date: Thu, 09 Oct 2014 11:04:21 +0200
Message-Id: <7E7C5904-3F5B-4B1A-A18D-C5C858B820CD@darou.fr>
References: <CADhXe52TRJy0MA861bCnWY8LjLZnGQiPbb=qXQhxCirm_DHQ0Q@mail.gmail.com> <54348606.7010507@gmail.com> <A250131C-6D1B-4054-A8AE-EBC1BD899B7E@darou.fr> <5435D586.20806@gmail.com> <20141009004559.44A9E2106591@rock.dv.isc.org>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, James Woodyatt <jhw@nestlabs.com>
X-Mailer: Apple Mail (2.1878.6)
X-AV-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Thu Oct 9 11:04:15 2014 +0200 (CEST))
Archived-At: http://mailarchive.ietf.org/arch/msg/homenet/Wcusocn3RZxNsYsrBPe8gFHmAAA
Cc: HOMENET Working Group <homenet@ietf.org>
Subject: Re: [homenet] I-D.ietf-homenet-prefix-assignment (RFC 4193 conformance)
X-BeenThere: homenet@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <homenet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/homenet>, <mailto:homenet-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/homenet/>
List-Post: <mailto:homenet@ietf.org>
List-Help: <mailto:homenet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/homenet>, <mailto:homenet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Oct 2014 09:04:37 -0000

Hello James and Brian,

What do you think of the following proposal ?
It allows any router to generate a ULA (it adds more complexity because collisions must be avoided, even though the Backoff was necessary at boot anyway).
And it conforms to RFC4193 whenever possible (date is available and stable storage can be used).


9.1.  ULA Prefix Generation

   A router MAY spontaneously generate a ULA delegated prefix whenever
   the two following conditions are met.

   o  No other ULA delegated prefix is being advertised network-wide.

   o  The ULA Backoff Timer is not running.

   A router MUST stop advertising a spontaneously generated ULA prefix
   whenever another router is advertising a ULA delegated prefix.

   At startup, the ULA Backoff Timer is set to a random value between 0
   and ULA_DELAY_FACTOR * FLOODING_DELAY.  Whenever some other router
   starts advertising a ULA prefix, all routers except the Network
   Leader (Section 4.4) increase their Backoff Timer to a random value
   between 0 and ULA_DELAY_FACTOR * FLOODING_DELAY.

   ULA_DELAY_FACTOR initial value is 2 and is doubled each time the
   router has to withdraw its own spontaneously generated ULA prefix due
   to a collision.  The ULA_DELAY_FACTOR is reset to 2 if at least one
   ULA delegated prefix is advertised network-wide and no new ULA
   delegated prefix is advertised, for a lapse of time of 4 *
   FLOODING_DELAY.

   The most recently used ULA prefix SHOULD be stored in stable storage
   and reused whenever generating a ULA delegated prefix.  If no ULA
   prefix can be found in the stable storage, it MUST be randomly
   generated.

   ULA prefix generation SHOULD conform to [RFC4193].  Nevertheless, if
   the stable storage can't be used or the current date cannot be
   determined, the prefix CAN be pseudo-randomly generated based on
   hardware specific values.

   Not as well that this section doesn't prevent multiple ULA prefixes
   from existing simultaneously.  ULA prefixes may be provided by
   DHCPv6-PD or static configuration, as specified in Section 4.3, in
   which case they are not considered as 'spontaneously' generated and
   MUST NOT be withdrawn if another ULA delegated prefix is observed.



Le 9 oct. 2014 à 02:45, Mark Andrews <marka@isc.org> a écrit :

> 
> Why are we arguing about this?
> 
> You need to be able to *set* the ULA prefix to something that is
> externally generated.  This needs to remembered across reboots,
> power cycles etc.
> 
> There is no point in having a stable algorithm to generate a ULA
> prefix.  As far as I can see the only purpose is to avoid having
> any non-volatile memory in the box and I don't see that as a realistic
> box.
> 
> You will also need non-volatile memory for internal prefix delegation
> etc.  You you do want the same prefix to be handed to the same
> internal router regardless of the request order.
> 
> -- 
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: marka@isc.org
> 
> _______________________________________________
> homenet mailing list
> homenet@ietf.org
> https://www.ietf.org/mailman/listinfo/homenet