Re: [Anima] New Version of draft-eckert-anima-grasp-dnssd

Toerless Eckert <tte@cs.fau.de> Wed, 26 July 2023 13:44 UTC

Return-Path: <eckert@i4.informatik.uni-erlangen.de>
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 DBBE0C153CBF for <anima@ietfa.amsl.com>; Wed, 26 Jul 2023 06:44:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.658
X-Spam-Level:
X-Spam-Status: No, score=-6.658 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 2wIVPyiYwC14 for <anima@ietfa.amsl.com>; Wed, 26 Jul 2023 06:44:54 -0700 (PDT)
Received: from faui40.informatik.uni-erlangen.de (faui40.informatik.uni-erlangen.de [131.188.34.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 4B838C151987 for <anima@ietf.org>; Wed, 26 Jul 2023 06:44:50 -0700 (PDT)
Received: from faui48e.informatik.uni-erlangen.de (faui48e.informatik.uni-erlangen.de [IPv6:2001:638:a000:4134::ffff:51]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by faui40.informatik.uni-erlangen.de (Postfix) with ESMTPS id 4R9wB41hgJznkWB; Wed, 26 Jul 2023 15:44:44 +0200 (CEST)
Received: by faui48e.informatik.uni-erlangen.de (Postfix, from userid 10463) id 4R9wB413SnzkwXs; Wed, 26 Jul 2023 15:44:44 +0200 (CEST)
Date: Wed, 26 Jul 2023 15:44:44 +0200
From: Toerless Eckert <tte@cs.fau.de>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "anima@ietf.org" <anima@ietf.org>
Message-ID: <ZMEjTHl41WmjELL5@faui48e.informatik.uni-erlangen.de>
References: <DB9PR10MB63549176EF0E405161B85649F33BA@DB9PR10MB6354.EURPRD10.PROD.OUTLOOK.COM> <1808d3ce-c03a-6871-a208-0845ad691427@gmail.com> <4024.1689630438@localhost> <DB9PR10MB63543A608EA0141A9860F65EF302A@DB9PR10MB6354.EURPRD10.PROD.OUTLOOK.COM> <6c2888e7-a2bd-b5ba-2aea-04dc26e95173@gmail.com> <2512.1690290441@localhost> <1C974DB3-2FCA-4B41-83E7-A9C095D7512B@tzi.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <1C974DB3-2FCA-4B41-83E7-A9C095D7512B@tzi.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/_8i9cnC-s3npskd2cszacysRM2U>
Subject: Re: [Anima] New Version of draft-eckert-anima-grasp-dnssd
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: Wed, 26 Jul 2023 13:44:58 -0000

DNS-SD TXT RR's are a sequenze of zero limited strings "key1=value1" ... "keyn=valuen"

In my current grash/dsn-sd draft i have just proposed to encode this in
CBOR with as little as possible changes, e.g.: 

[ "key1=value1", ...  "keyn=valuen" ]

Thinking that one needs to be able to parse this when using DNS-SD, so why
parse differently. But of course that logic was flawed, only e.g.: a
GRASP/DNS-SD proxy would need to be able to parse both encodings. And you
obviously want to use the maximum of CBOR and minimum or none of
application parsing.

[ [ "key1", "value1" ], ...  [ "keyn", "valuen" ] ]

And given how DNS-SD also has the shortening option "key1" implying "key1=1",
this could also be

[ "key1",  ...  "keyn" ]

If all the keys only had values 0 or 1. Which is what Esko proposed.

Chers
    toerless

On Tue, Jul 25, 2023 at 03:46:11PM +0200, Carsten Bormann wrote:
> On 25. Jul 2023, at 15:07, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> > 
> > I have resisted suggestions that we put an array for the objective-value, and
> > also that it have a string that needs to be parsed like "mode=prm,foo=1,bar=2"...
> 
> You give a good reason not to do this at all.
> But if you want to do this, do resist the urge to do a parsable string by all means.
> 
> (I need to write that draft, CBOR anti-patterns :-) (*)
> 
> Grüße, Carsten
> 
> (*) Yes, anti-pattern drafts are now a thing:
> https://www.ietf.org/archive/id/draft-bormann-restatement-00.html
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://www.ietf.org/mailman/listinfo/anima

-- 
---
tte@cs.fau.de