[dnssd] Review of draft-ietf-dnssd-srp-04; and relation to CoRE Resource Directory

Esko Dijk <esko.dijk@iotconsultancy.nl> Tue, 13 October 2020 13:40 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
X-Original-To: dnssd@ietfa.amsl.com
Delivered-To: dnssd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0B6843A102D for <dnssd@ietfa.amsl.com>; Tue, 13 Oct 2020 06:40:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.8
X-Spam-Level:
X-Spam-Status: No, score=-2.8 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancy.nl
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 FY604wsfBGRt for <dnssd@ietfa.amsl.com>; Tue, 13 Oct 2020 06:40:44 -0700 (PDT)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80110.outbound.protection.outlook.com [40.107.8.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 38E533A1009 for <dnssd@ietf.org>; Tue, 13 Oct 2020 06:40:43 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XMr7kZ46o0uTwF7oPBUg1q7Tn1/fKbrk7HgI+doQdxqpJdZk1mBVeY6jL90joREWhXnli/56alotgLDi2ZHLRvsyXWLFt4wxSjWKh2KvSL2wmDWSYXt5yj/yMqmgayr4scgVgkkB/Ykb+93lUptFNyT4zTluRW44UVMo65ntHNRVYCAcwxhcnReGI4exzSsrWuk5XX3NKt0sKIQ6TGoBoa6CEP48VaTdB0zaV8fiq1mYnhaFz4aWGOm4UMf5bY5HAfzHLdKHa5f8DNkooMIMA9sISFqka36UHY44IgG4Qlc/RY4HIAiQKujIRj0L4YTOXVkzJ6JUh0LUH+c7gTAu3A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=moGp+WKQyCe2O3+OnJhHCiHL+0o3boQqnR/Tsoas5lU=; b=lxLkWSfe9fHQCw82UTLmlJcqhwF8qLWndxwNJf9yYlKZzEpW9Fwtg1IUkAXkdYFmW4+7hY++GMbTdRTNcXpMO3mx+6NdC9uuTJKS5vW1ZSCgje8uhAOGg+dSeVMujjZvX3Pc6Qflz2WVH5cI2/PFK4TWu2DbKsbk0MMXH0tRJULdMU302tyEauQMDnmG9bTFw3vU6hCaS33TXOvDnLlQZ+1CxB5IPMuH6R/pPSAPDEXBRHpFCBvR1e7BbUqHZpNAUfat5CsvPP0fLbxXJYGroERO0s/tE/tXa52/5a4GfeCXo3Z0SnCgy7YnwnDr/flPHX58hs0N3IQ9WxW8aO9Jqw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancy.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=moGp+WKQyCe2O3+OnJhHCiHL+0o3boQqnR/Tsoas5lU=; b=xhYWVYr+G8JuxlXOojgoIWZ6hcjo1p6oiWyy6VGAwnaSJmCUqg8cGySLzgXt5i2qcyhgeu47HuLMFoCskAX7RPQSLiUNSP1H+XgvdiH/4IpsO9E+r31ufmtUqP5lnpb9/X6mjzbIMZecLiflm6VBqxzAOpGh8qfqsrs5o6ycXPI=
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1d3::8) by AM0P190MB0578.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:1a1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3455.21; Tue, 13 Oct 2020 13:40:40 +0000
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa]) by AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa%5]) with mapi id 15.20.3477.020; Tue, 13 Oct 2020 13:40:40 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: "dnssd@ietf.org" <dnssd@ietf.org>
Thread-Topic: Review of draft-ietf-dnssd-srp-04; and relation to CoRE Resource Directory
Thread-Index: AdahZCdWnFqFugrYTgawM9Kzp4FPCA==
Date: Tue, 13 Oct 2020 13:40:40 +0000
Message-ID: <AM8P190MB09797A6986A3187C2178F440FD040@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
Accept-Language: en-US, nl-NL
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: ietf.org; dkim=none (message not signed) header.d=none; ietf.org; dmarc=none action=none header.from=iotconsultancy.nl;
x-originating-ip: [2001:1c02:3103:f000:89dc:581d:1c08:f7fd]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f690ffad-a4ab-49aa-484b-08d86f7d9328
x-ms-traffictypediagnostic: AM0P190MB0578:
x-microsoft-antispam-prvs: <AM0P190MB057813331A2F1A31D11B6709FD040@AM0P190MB0578.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 30j+fjrQNWOZt6SxQLDzaLFMTgwt4z5BgKEUX6MiFPXSGbmoPjNVDQAc9JiHooipf9aJDAoDcTeW0Nq9kZBaQbZ8JlrUBdPdkdgDuTnMR1JXKwiedW1ARNR8h+Jrj6m8yxqcW/5eU1fSOVzOgDoJahzkHbKKtSkQvshoxOaVkIYELDxGt+1rs6YLkT0I4mFf3RpH0zUylWvE3prWnMkFRyouSI9S1vx9jd4KJbfeXjMjJTxmMBC+TFlErpYzZ4iZPi1zYQ20GqZLc2b77tgoxEjsMY1gmrV9v9R/HWiApTLzXAyiwTV4exgpolATuBQx
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8P190MB0979.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(366004)(346002)(396003)(39830400003)(376002)(478600001)(5660300002)(86362001)(83380400001)(186003)(2906002)(66446008)(64756008)(66476007)(76116006)(66556008)(33656002)(9686003)(316002)(8676002)(66946007)(8936002)(55016002)(52536014)(6506007)(9326002)(6916009)(44832011)(71200400001)(7696005); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: vqUTGzDtxQlL6X4JfDzxlD62JoBwh8dPDdOgNTO059soCGxj0SZjsoBTaU2VAPNioTiASjaB3MebmKgrlwl7SQ8p9oKZpkGhi6jHren+u4AMWnqG8oOe0DfGEvVLf+qL4WODL+mwhqZBs11AyuNdMRMBmA5zC/URLpwXAcv459uPNCsfEHdbKaNU8iVrRdLiaNsqfMZBRRfXB2Jk2MaVrEIWMXfN6Z2GldcPBWhhTemT8ziVk5EJghRGPHSFEhmSeM6rJ/OGvlXLBQXjzPzbcnpSwmjVkrD8Cg+lR1ZEqdZJKN8q4E1Chwr7aFJhDbIK+WE9hlfEyTzULg6vEECd3L3dNlYfHW7qxcf0DXtNcaizXtRydgPbTpH2OtgqfQr2jwwAkle6waoU4Au0hfMQH3cgJo9M66jqEF3XNpVWFUcqzOtN9/1jMR5t5UBN0lXxAXqwGCIsydjIyw0Uf7nfgX8ts06zYx+A/DkDCcSS0Wx8TYRouTlBmBg3YbgR7Zgb926OszsG9aekH31SX1AQA4ylJ06qVgEsRCjFUq4LZGa53x+NajKL0zM3CQBL4ONMtL/aiG4mj4RqmO5rRgkb4ZYx1wPTSmxAyr/sYDjYXtrAA0A3A0nXTVL8Kpn3xwKj0a5lQMnS31wxkrtUIF7VylILrSXaMp7dZ9YVAHjZbTsCMCiTsVslDOjVGLUPdM2Bo/v5EIPnatqxCjrzevTRwQ==
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_AM8P190MB09797A6986A3187C2178F440FD040AM8P190MB0979EURP_"
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8P190MB0979.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: f690ffad-a4ab-49aa-484b-08d86f7d9328
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2020 13:40:40.2644 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: SKNvmHj/eBVWc5rlBJwEjtDBLNeW2o78I22yaznhu8D4gWeZgxDyG4Z7Xl5ogoSIt0c1Mtvm3jqhKP3K1aBR10k5oMnKXSarRROzTfC+rYk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0P190MB0578
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/7SdN99K-r8oMhZhL7ITSnrZWGk0>
Subject: [dnssd] Review of draft-ietf-dnssd-srp-04; and relation to CoRE Resource Directory
X-BeenThere: dnssd@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Discussion of extensions to DNS-based service discovery for routed networks." <dnssd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnssd>, <mailto:dnssd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dnssd/>
List-Post: <mailto:dnssd@ietf.org>
List-Help: <mailto:dnssd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnssd>, <mailto:dnssd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 13 Oct 2020 13:40:55 -0000

Hello,



I’ve reviewed recently SRP draft-ietf-dnssd-srp-04 and also CoRE resource directory (draft-ietf-core-resource-directory, latest Github draft) to see if these are applicable service discovery solutions for constrained devices (specifically 6LoWPAN wireless mesh network nodes, that may operate using the Thread protocol or other). For SRP see the results of my initial review below; hope this helps in improving the document further.



Both SRP and RD target similar use cases. It would be interesting to understand if services registered under one format (e.g. DNS-SD SRP) can be queried/discovered using another format (e.g. CoRE RD); but that’s future work for me. (draft-ietf-core-rd-dns-sd already provides a start for this.)



Best regards

Esko



--- Review -04

Overall: the draft nicely builds on existing/other components in IETF and SRP looks like a potentially good solution for IoT/constrained devices.



Section 2

"_dnssd-srp._tcp<zone>"

"_dnssd-srp-tls._tcp<zone>"

-> these should have "_tcp.<zone>" with a dot before <zone>, right?



Section 2 text (up to the 2.1 header) could be more clearly split in the two variants: full-featured host, and constrained host. Initially I was confused here by the mixture of both, thinking that the constrained devices also needed to use DHCPv4 Domain Name option or ND DNS Search List option.

But later it turns out this isn't needed and these MAY use the default domain only. Creating a new Section 2.1 with two subsections would solve this e.g.

2.1 Protocol variants

2.1.1 Full-featured hosts

2.1.2 Constrained hosts  (or: Constrained nodes)

2.4.1 / 2.4.1.1
What seems to be missing in these sections is the service’s host required or recommended behavior, in case the registration fails. For example if the name is already taken by another device, what would it do? E.g. define a new name?
(At this point in the draft the reader doesn’t yet know how the SRP server will compare the to-be-registered name(s) to existing name(s) in the registry. E.g. is it based on checking Service Instance Name only? I would expect that described in 2.4.3 somewhere.)

2.4.3.1
Typo: “Instrructions”

2.5
“The TTL should never be longer than the lease time Section 2.6.1”
-> typo? Change to e.g. “The TTL should never be longer than the lease time (see Section 2.6.1).”

2.6.1
“  A default  limit of two hours for the Lease and 14 days for the SIG(0) KEY are currently thought to be good choices.”
-> this is interesting to compare to the assumptions of CoRE Resource Directory default lease time, which is 25 hours.
That is quite a large difference. Since both specs target constrained nodes, I would expect the values to be closer?
Is the 25 hours too long, or the 2 hours too short?

What I do like a lot in this draft is that the SRP server can shorten or lengthen the lease time, and the client honors this. CoRE RD doesn't have this feature!
This provides an ‘out of the box’ standard method for higher adaptivity to different use cases, if needed.


2.6.2 Sleep Proxy

This triggers some questions:

  *   It is mentioned that the sleep proxy may be on another link. How would a SRP server set up a sleep proxy on another link than the one it is currently attached to? How would it know what link to choose to set it up?
  *   How would a service’s host know that the server is capable to do this? If it doesn't know then it cannot trust the mechanism to work and go to sleep.
  *   Or, is there a way for the SRP server to reject an update with EDNS(0) OWNER option such that the service’s host knows not to use it again?

Overall, is sleep proxy support mandatory for the SRP server? This seems not clear.



“When a DNS server receives a DNS Update with an EDNS(0) OWNER Option, that

   signifies that the SRP server should set up a proxy”

-> is there a difference between DNS server and SRP server? Is it the same entity here?

We also have “SRP function” that a DNS server can implement. Some clarification of terms could help here!



3.1

“For Anycast updates, this validation must be enforced by every router”

 -> to clarify this a bit, e.g. "For updates sent to an anycast destination IP address of an SRP server"

( Someone might be thinking otherwise about updates to anycast addresses?)

"DNS-SD registration protocol clients"
-> is this the same as SRP clients?

3.2 and entire document
The term “SRP client” is used, sometimes for the registering service’s host and sometimes for a client using only the service lookup function.
Is that correct? Should it be explained in a terminology section? And we have also above DNS-SD registration protocol client.
Also “SRP server” vs “SRP Server” are both used.

3.2

This says nothing about the SIG(0) validation required by the SRP server. That seems strange, given the title?

Title could be changed to e.g. “validating SRP server responses”.  And perhaps add some SIG(0) validation considerations by the SRP server, if we have any. (E.g. avoid certain algorithms? Try only one or try multiple? Maybe the key already encodes the used algorithm – I didn’t look into that; in which case there could be invalid algorithms or parameters specified etc.)


3.3.

"SRP servers SHOULD implement the algorithms ... starting with algorithm number 13"

-> is somewhat ambiguous.  Can be interpreted in the extreme case as a server SHOULD implement algorithm 6 , even though RFC 8624 says it MUST NOT do this.

To be clearer it could be rephrased to

"SRP servers SHOULD implement all algorithms specified in [RFC 8624] section 3.1 that are numbered 13 or higher and have a "MUST", "RECOMMENDED", or "MAY" designation in the validation column of the table."
(The expression “starting with … number X“ feels less familiar to me as a non-native speaker. Is it equal to “X and higher numbers” ? Or do I have to start with X.)


5

I don't understand the full details of what is requested here – but looking on high level it says "there must be a delegation".

For whom is this requirement?  Implementers of SRP servers, system admins, or IANA, ICANN , ... ?

It seems 6.1 already has the IANA part of the requirement. Are there explicit requirements on others?

6.2 / 6.3
why no UDP service description?
The constrained devices would use UDP to register and also to query for services possibly, so I would expect an "_dnssd-srp._udp.<domain>." to be defined at least.
Even if on the constrained network there may be a custom way to provide the host/port of the SRP server to nodes.  After all it *might* use DNS-SD format to distribute such information, or not?
Another consideration: if UDP is supported, then UDP+DTLS may be too?  Although that would severely increase the resource usage (power, network bandwidth) of constrained devices perhaps we don’t want to rule that out.


6.4

address "TBD1" is not used in the rest of the document. I think there should be outside section 6 a section that describes the usage of TBD1.

(Can be short)



References

RFC 2136 needs to be a normative reference. Just searching for "2136" in the text reveals many places where it is pointed to RFC 2136 for normative operation.

RFC 2931 (SIG(0)) needs to be a normative reference.  The SRP server performs this validation and it is mandatory to perform it. Also service-publishing clients need to add the signature always.

RFC 7858 is also normative for the same reasons.

[I-D.ietf-dnssd-push] needs to be a normative reference too, as in Section 2 the full-featured devices are required to use it to "discover the zone apex of the closest enclosing DNS zone using SOA queries".

replace [I-D.ietf-dnssd-push]  -> RFC 8765

update [I-D.ietf-dnsop-algorithm-update] to RFC 8624

Appendices
An example ‘service description’ for an IoT device and its encoding (e.g. size of entire UDP registration message) would be of interest here. (Not required of course, but nice to have)
This could facilitate some initial comparison against CoRE RD.

IoTconsultancy.nl  |  Email/Teams: esko.dijk@iotconsultancy.nl<mailto:esko.dijk@iotconsultancy.nl>