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

Brian E Carpenter <brian.e.carpenter@gmail.com> Thu, 09 October 2014 19:12 UTC

Return-Path: <brian.e.carpenter@gmail.com>
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 1452A1A1ADC for <homenet@ietfa.amsl.com>; Thu, 9 Oct 2014 12:12:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=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 s_N1zlLTyxc1 for <homenet@ietfa.amsl.com>; Thu, 9 Oct 2014 12:11:58 -0700 (PDT)
Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6FEA81A1ACC for <homenet@ietf.org>; Thu, 9 Oct 2014 12:11:58 -0700 (PDT)
Received: by mail-pa0-f50.google.com with SMTP id kx10so278054pab.37 for <homenet@ietf.org>; Thu, 09 Oct 2014 12:11:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=V0kmfVBe6zTfWVzw1PtJJYr0lm+h08fCI29or1dbUeI=; b=mLLOCW3WDdtBEIqjIcOTy1I98YZQW+rrcNXiVJsGAxQTO8CkVIcOlWHFbHs3rkG9lL z3rMboNp9zW04+cbeOmgwzw47XbP5+iyru7p8exO6FbKbgzvHL48PnUvRvD1MlfizMmh jiAAyWSDsyYOF+DQnRfMTL1QGsiE0DuaczPkCfi+XuNL/GS3tl1ETqqjFZ4QAv5sszfQ MorQmh4vIk8iVl/+gtmd40yCr+lcSNeGBiCRy7RwTn5OlgvWXcT92TzbeBinHCBA2htd Dc6hGboOtgxcSt+7/qaOk4pyDtrm5AH+VgNstTBg2VXxJCvZ73YF2QZvUI+1/EFdpPw5 H4GA==
X-Received: by 10.70.39.67 with SMTP id n3mr1863pdk.99.1412881918114; Thu, 09 Oct 2014 12:11:58 -0700 (PDT)
Received: from [192.168.178.23] (247.192.69.111.dynamic.snap.net.nz. [111.69.192.247]) by mx.google.com with ESMTPSA id dj4sm1283394pdb.18.2014.10.09.12.11.54 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 Oct 2014 12:11:57 -0700 (PDT)
Message-ID: <5436DE02.8070209@gmail.com>
Date: Fri, 10 Oct 2014 08:12:02 +1300
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: Pierre Pfister <pierre.pfister@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> <7E7C5904-3F5B-4B1A-A18D-C5C858B820CD@darou.fr>
In-Reply-To: <7E7C5904-3F5B-4B1A-A18D-C5C858B820CD@darou.fr>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: http://mailarchive.ietf.org/arch/msg/homenet/kilnoxRm4LZ3KEeCLjGNkJUUF2o
Cc: HOMENET Working Group <homenet@ietf.org>, James Woodyatt <jhw@nestlabs.com>
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 19:12:00 -0000

Works for me, but for RFC 2119, s/CAN/MAY/.

Thanks
   Brian

On 09/10/2014 22:04, Pierre Pfister wrote:
> 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
> 
>