Re: [Anima] ANI Autoconfiguration via DNS

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 13 December 2022 19:57 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 63F30C151706 for <anima@ietfa.amsl.com>; Tue, 13 Dec 2022 11:57:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=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=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PeHoWckA-rHH for <anima@ietfa.amsl.com>; Tue, 13 Dec 2022 11:57:42 -0800 (PST)
Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BF68AC14CE45 for <anima@ietf.org>; Tue, 13 Dec 2022 11:57:42 -0800 (PST)
Received: by mail-pf1-x436.google.com with SMTP id a14so2974652pfa.1 for <anima@ietf.org>; Tue, 13 Dec 2022 11:57:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=aPudvGONGyqi5zk1wo4J9lk/GtFHakq/yB5IRvZUEDE=; b=bU55ZiX8pW4a7nAzRu6WQQx/Du+62Fi51yX0TOxgOu/EeDbX3sDFbhaxZwluvyOvPZ 7j8vABhcLJq6oVo3lYrt6pnDkVwG6VVjztZI68qDv5zIW2zc85Ukgxrfe8bUFcZDj8LA ko49TQ5/gCYooqGyauHPkw1m05vPYzAnWgl0Vis2VvBG+bnjcOFpSCRoAFYz+A7kEnc7 wKO4Ua683xpwHP6ccRxSWQ/5rds1OGj6Fod2NCv02ycp6giqcc80P1JgBl6ww2E4aNlO 7hfStr3s6Ri6UpmdIrUfcvbHhRp4i2lBKZWQ6zXYGi2rqDP7kK2C4NppVUtSwHwJCTmC icdw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aPudvGONGyqi5zk1wo4J9lk/GtFHakq/yB5IRvZUEDE=; b=aSufgTcPMy+jroodEzZDg098xQKbJtENM8ssnAvhiiBlf9FArzhXmOkUMtEMPKKFk2 /M279oajGPjeDmKm6z0thT7+q9Yet/yV3zLOOqiLGXfnQopuxbmFnmMG9++W6dduDdh6 2/EzphuSxS4xuB6+JU4+HiWYwoXkLf9Ta2FZel4R7FQWYQXjXsrCR+mHD8agwiYeAKbv 3qRHKAqg5/CjkhAYmrxPt8BgkWFAYPB/llkiK5mpc4Vu26eKhlbxZJh70pDWCQ2jdebZ ezTZCXu3KHfY9zB9y/sg2iBNCIEmrlnNrCxaVT7MD8zc+vbfRk9Lydc5ujvRxNYXUZZo OfZw==
X-Gm-Message-State: ANoB5pnSoezgHmqqi1PIX6MIpp+4FHHLl93mQ5wj7w1qrDCphOKUHfVq x+NNRdxMp0wgDjoEyIg+4i8=
X-Google-Smtp-Source: AA0mqf7F4FGRKkfPyMC1BVnm2NbScnLFPsY3bkMUT1beYOTn805J+Q1JAnEiluy+doYLHT+TQLmVjw==
X-Received: by 2002:a05:6a00:e14:b0:573:d183:4218 with SMTP id bq20-20020a056a000e1400b00573d1834218mr21949613pfb.10.1670961462070; Tue, 13 Dec 2022 11:57:42 -0800 (PST)
Received: from ?IPV6:2406:e003:10c2:2501:6969:5efe:7979:3937? ([2406:e003:10c2:2501:6969:5efe:7979:3937]) by smtp.gmail.com with ESMTPSA id 69-20020a621548000000b005741cb643bdsm7983833pfv.215.2022.12.13.11.57.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Dec 2022 11:57:41 -0800 (PST)
Message-ID: <328d24f5-07ea-35f6-9c67-e6a3a64753ae@gmail.com>
Date: Wed, 14 Dec 2022 08:57:38 +1300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Esko Dijk <esko.dijk@iotconsultancy.nl>, William Atwood <william.atwood@concordia.ca>, Anima WG <anima@ietf.org>
References: <853134d2-197b-dde4-ccc2-3828854dae27@concordia.ca> <DU0P190MB19789DFB5B9FA99D008DF242FDE39@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <DU0P190MB19789DFB5B9FA99D008DF242FDE39@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/H8c3-z7Ik59Q9zMyUKxz8Amio1Y>
Subject: Re: [Anima] ANI Autoconfiguration via DNS
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Dec 2022 19:57:43 -0000

On 13-Dec-22 23:53, Esko Dijk wrote:
> Hello Bill,
> 
> You mention "the advantages of using native CBOR encoding".  So this refers to the CBOR encoding of (DNS) service properties, which would avoid parsing of the old DNS format.
> As I understand there's a wish of people to avoid having a DNS data parser in devices in the ACP, since the already-present CBOR parser can then be used instead.
> 
> Now if we would have such DNS-in-CBOR format, it would be more generally useful in IETF and not just in ANIMA. Do you agree?

If it's a 1:1 encoding of DNS format into CBOR, yes, and it sounds like useful work in any case.

However, when making a toy implementation of Toerless's proposal when it first appeared, I found that it is something different. What he proposes is a great simplification of the complexities of DNS-SD, where the semantics are split up over SRV, AAAA (or A) and TXT records, all of which need to be parsed to extract the semantic content and then merged into a single JSON-like object. This complexity is much better done in a single autonomic service agent that doesn't need to be in a constrained node. That is the advantage of Toerless's proposal and it is really ANIMA scope, IMHO.

Code at https://github.com/becarpenter/graspy/blob/master/ASA-examples/GetDNSSD2.py , lines 199 through 281. You will see several calls to the DNS resolver and analysis of the results;
the client node will just see a single CBOR object (inside a GRASP objective) or an error return.

Regards
     Brian
  
> If the format is more generally useful it could be defined in either one of the CBOR, CoRE, or DNSSD WGs.  (Although the latter may not be willing to renew something that's "already good")
> And we need to keep in mind the effort of the CoRE WG (still ongoing draft-ietf-core-href) to define a better encoding of the URI -> the CRI, in CBOR. It isn't trivial to cover all properties of the URI correctly. It takes a lot of effort.
> 
> If we still decide to do this in ANIMA WG context I would just go for the simplest possible subset of DNS-SD that fulfills the use cases and not try to be complete.
> 
> Regards
> Esko
> 
> -----Original Message-----
> From: Anima <anima-bounces@ietf.org> On Behalf Of William Atwood
> Sent: Monday, November 7, 2022 15:56
> To: Anima WG <anima@ietf.org>
> Subject: [Anima] ANI Autoconfiguration via DNS
> 
> Item 08 in the ANIMA agenda for IETF 115.
> 
> draft-eckert-anima-grasp-dnssd presents standards for the data
> structures (GRASP objectives) that will be required to effect
> autoconfiguration of basic services such as syslog, NTP, and DNS, using
> GRASP.
> 
> draft-eckert-anima-services-dns-autoconfig presents standards for
> actually providing these services, using the objectives defined in
> draft-eckert-anima-grasp-dnssd.
> 
> A strong argument is given in section 1 of
> draft-eckert-anima-grasp-dnssd, showing that the reliability and
> security of GRASP, and the advantages of using native CBOR encoding and
> GRASP flooding, justify the effort to define a GRASP-specific approach,
> rather than just using GRASP to carry the packets of the needed services.
> 
> Clearly these services are essential to any running distributed system,
> and standardizing their on-the-wire representation will likely reduce
> potential problems with incompatible software in the future.
> 
> I therefore encourage the WG to adopt these two drafts as Working Group
> documents.
> 
>     Bill Atwood
>