Re: [Anima-bootstrap] anima-bootstrap: Bootstrap proxy discovery options

"Max Pritikin (pritikin)" <pritikin@cisco.com> Fri, 04 December 2015 23:44 UTC

Return-Path: <pritikin@cisco.com>
X-Original-To: anima-bootstrap@ietfa.amsl.com
Delivered-To: anima-bootstrap@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E1811A037E for <anima-bootstrap@ietfa.amsl.com>; Fri, 4 Dec 2015 15:44:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -13.911
X-Spam-Level:
X-Spam-Status: No, score=-13.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, J_CHICKENPOX_64=0.6, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] 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 6n0my7bsK1rE for <anima-bootstrap@ietfa.amsl.com>; Fri, 4 Dec 2015 15:44:55 -0800 (PST)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 624A11A022C for <anima-bootstrap@ietf.org>; Fri, 4 Dec 2015 15:44:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3408; q=dns/txt; s=iport; t=1449272695; x=1450482295; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=EJtGxMx+wrFXtQnybTAnWMtz+pEvs7BhCKS0lza4EtU=; b=hiYM66Oo21Ngua5oFcsMtmbKqKoDSVag0YjbtB0xcL7yAXlQD+q1QvIT +ayCM3+59+RZvsZjT/u5ZVigJjcuEwzpo35Bd+21429k7DCdaqZdXhS7m Oo406BKRxiIDzmDM/EQ7cQv3C0HwznruoV6Rxw0Wt27A0EGxERF0yJ1VU 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AAAgCgJGJW/5JdJa1dgzpTbga9PwENgW4XCoVtAhyBCzgUAQEBAQEBAYEKhDQBAQEDAQEBASAEDToLBQsCAQgYAgImAgICHwYLFRACBA4FiBoDCggNrz6MCA2EWQEBAQEBAQEBAQEBAQEBAQEBAQEBARQEgQGHYoJuglOCBhiDBi+BFQWWYQGLRIF3lRSHWAEfAQFCghEdgVZyAYQkBj2BBwEBAQ
X-IronPort-AV: E=Sophos;i="5.20,382,1444694400"; d="scan'208";a="50791262"
Received: from rcdn-core-10.cisco.com ([173.37.93.146]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 04 Dec 2015 23:44:54 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by rcdn-core-10.cisco.com (8.14.5/8.14.5) with ESMTP id tB4NisuB003457 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 4 Dec 2015 23:44:54 GMT
Received: from xch-aln-013.cisco.com (173.36.7.23) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1104.5; Fri, 4 Dec 2015 17:44:53 -0600
Received: from xch-aln-013.cisco.com ([173.36.7.23]) by XCH-ALN-013.cisco.com ([173.36.7.23]) with mapi id 15.00.1104.000; Fri, 4 Dec 2015 17:44:53 -0600
From: "Max Pritikin (pritikin)" <pritikin@cisco.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Thread-Topic: [Anima-bootstrap] anima-bootstrap: Bootstrap proxy discovery options
Thread-Index: AQHRLjUzUXhNiuqCZk29llWSg8eoaJ66oGCAgAFDVQA=
Date: Fri, 04 Dec 2015 23:44:53 +0000
Message-ID: <29E5EEC1-9995-4137-B8BE-7E2103810CD9@cisco.com>
References: <20151204014333.GZ29056@cisco.com> <56611639.9060508@gmail.com>
In-Reply-To: <56611639.9060508@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.99.106.4]
Content-Type: text/plain; charset="utf-8"
Content-ID: <748979C2AFA3A6408E2938F4C875C679@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/anima-bootstrap/mQ6NCI0upeHD8AWqgV-IGIzRo80>
Cc: "Toerless Eckert (eckert)" <eckert@cisco.com>, "anima-bootstrap@ietf.org" <anima-bootstrap@ietf.org>
Subject: Re: [Anima-bootstrap] anima-bootstrap: Bootstrap proxy discovery options
X-BeenThere: anima-bootstrap@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Mailing list for the bootstrap design team of the ANIMA WG <anima-bootstrap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima-bootstrap/>
List-Post: <mailto:anima-bootstrap@ietf.org>
List-Help: <mailto:anima-bootstrap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima-bootstrap>, <mailto:anima-bootstrap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Dec 2015 23:44:57 -0000

Brian, 

Are the session-id and the nonce equivalent?

Why is the 30000 a parameter passed into the into the grasp.discover call? This looks like a timeout for how long to wait for a response (GRASP_DEF_TIMEOUT/2)? If so this would provide the 30s behavior but is leveraging a side-effect dubiously. Sufficient for PoC; I’m just asking to understand. 

Toerless’s suggestion appears to be to include the “locator-option” within the discover message. Did you include that? Currently "locator-option” is not part of the [grasp] s3.7.2 Discover Message. Are you comfortable adding that as Toerless argues for?

- max

> On Dec 3, 2015, at 9:27 PM, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
> 
> On 04/12/2015 14:43, Toerless Eckert wrote:
> 
> ...
>>   IMHO, i would let the proxy periodically (30 secs) just announce that its providing
>>   AN enrollment proxy function via link-local IPv6 multicast. 
> 
> Here's the Python code to do that with my prototype:
> 
> import grasp
> import time
> 
> OK, nonce = grasp.register_asa("Boot")
> if not OK:
>    #we've got a serious problem...
>    raise RuntimeError("Can't register as ASA")
> 
> obj = objective(0,":Boot")
> x = grasp.register_obj(nonce, obj)
> if not x == "OK":
>    #we've got a different problem...
>    raise RuntimeError(x)
> 
> while True:
>    grasp.discover(nonce, obj, 30000)
> 
> What this does is register the caller as an ASA called "Boot" that handles the
> objective called ":Boot", and then LL multicast a discovery message every
> 30s. That will tell the others that it's there. It's running in another window
> as I type. I didn't write the handler code for the receiving end yet though,
> so I just get output like this twice a minute:
> 
> CBOR->Python gives:  [1, 1248700, b'$\x06\xe0\x07S\x07\x00\x01(\xcc\xdcL\x97\x03g\x81', ':Boot', 0, 6, 0]
> 
>> Maybe with port-number
>>   and protocol (EST over IPv6 link-local ) as parameters so it's extensible.
> 
> If you want parameters, we'd need to use the (synch) flooding method
> instead. Maybe I'll write that code next week; it will be very similar to
> the discovery case. I don't think there are any real problems here.
> 
> Python+CBOR is fun. Thanks, Toerless, for pushing the CBOR idea.
> 
>   Brian
> 
> _______________________________________________
> Anima-bootstrap mailing list
> Anima-bootstrap@ietf.org
> https://www.ietf.org/mailman/listinfo/anima-bootstrap