Re: [dnssd] SRP: Name Conflicts Handling

Ted Lemon <mellon@fugue.com> Mon, 18 January 2021 04:08 UTC

Return-Path: <mellon@fugue.com>
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 5235A3A0CE0 for <dnssd@ietfa.amsl.com>; Sun, 17 Jan 2021 20:08:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20150623.gappssmtp.com
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 N9M8-fCmlhtY for <dnssd@ietfa.amsl.com>; Sun, 17 Jan 2021 20:08:15 -0800 (PST)
Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 58DEC3A0CDF for <dnssd@ietf.org>; Sun, 17 Jan 2021 20:08:15 -0800 (PST)
Received: by mail-qv1-xf2a.google.com with SMTP id d11so6943227qvo.11 for <dnssd@ietf.org>; Sun, 17 Jan 2021 20:08:14 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=teXAE/8Vp2h69PNTgIlliF+w8yhCE7bgyBbiRO44LRY=; b=NPWeB+2HyuZweG0S5Puntvhz51jltxPSmBVrejRdWqel07Msbzj86PlwM1FMoszPQn pOGyvPAUT1Ipgb40PJteCA/K7TpIcpmCxtnwhSho4Nkbxlv34JSKuovoSLnn/P7PDs0b eZDQE6DX6cSrtYXP/E4erflIYViXsDs6tLO1uKhy1lgxuZWYIh6iR0dkEUWzVmJfedFw ia8OPWspp0c6/MB/kkYB7ccK+TEbb/g3k1tcEeSR7Txk/vayG7X3C6QkMPiVKHjKFHI1 yUGzaFJ369T7HFgNuc6ACnYjxSDqTQgJFp1qOLsJjPsbBUch6BavF1XWeOhABWkLZRc8 wDKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=teXAE/8Vp2h69PNTgIlliF+w8yhCE7bgyBbiRO44LRY=; b=nSzRLqaQIRq7ExDeB5mwAf5M2tRaozZN1oTP+FKy7EDL3ppk3ye18z+UsymunpmASt FgkJgWGmRo52nmVZV7XBDy0IyLHIWU54xRZVu7Fco8rjfjS06Ee5OPh8ke3IZPZu64bi CKzx5npGS3tNYUq2ASQpMXV1o/6StxWIe3Qcv35mlfjT51OXPW+RYZffBI2dy9q5rwga EX/8TUQTU2RBoqHx6QIf/vuduXgdfptSP3QqViyD7TDndjDm+FH2QG1ww8sFwhXILjgU ZmjGiqCB2Dx2IEVIbGN4KWys1tXLObWKp++sxPIPy46XaBaMCgDR25DAHqrpsPRNCTs8 rNQA==
X-Gm-Message-State: AOAM5328lTUFAWdhukjmtt4IoFYT06xjuRVgaGK/kErooJjVf3cvLyOF WXm46IWU8QlUcFAaJ5ni9L1UMQ==
X-Google-Smtp-Source: ABdhPJw3sgeZiPsDo1F9d3qbMuVf35yEzmmk9K/d4c32boh8GDjvrVi4RPbuCNWIYomrlOOLVu46gw==
X-Received: by 2002:a0c:e351:: with SMTP id a17mr22799653qvm.46.1610942894139; Sun, 17 Jan 2021 20:08:14 -0800 (PST)
Received: from [192.168.4.114] (c-24-91-177-160.hsd1.nh.comcast.net. [24.91.177.160]) by smtp.gmail.com with ESMTPSA id 17sm10085748qtu.23.2021.01.17.20.08.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 17 Jan 2021 20:08:13 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail-1520E959-47FA-42AD-A2EB-237B6407B447"
Content-Transfer-Encoding: 7bit
From: Ted Lemon <mellon@fugue.com>
Mime-Version: 1.0 (1.0)
Date: Sun, 17 Jan 2021 23:08:12 -0500
Message-Id: <C224E9B3-EA9F-4A49-B73C-96F3D147B1E4@fugue.com>
References: <CAJ5Rr7Zc-Yma9EVXw1OeEKP+H1ZkPxB48Q5U45zoERX7=gNLJA@mail.gmail.com>
Cc: DNSSD <dnssd@ietf.org>, Jonathan Hui <jonhui@google.com>, Abtin Keshavarzian <abtink@google.com>, ronglisun-team@google.com, Yakun Xu <xyk@google.com>
In-Reply-To: <CAJ5Rr7Zc-Yma9EVXw1OeEKP+H1ZkPxB48Q5U45zoERX7=gNLJA@mail.gmail.com>
To: Kangping Dong <wgtdkp@google.com>
X-Mailer: iPhone Mail (18E118)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/BXCz1fkYIGuz51l6wqinMbdb8-I>
Subject: Re: [dnssd] SRP: Name Conflicts Handling
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: Mon, 18 Jan 2021 04:08:17 -0000

The ptr or srv record, yes. I don’t think any is allowed outside of the question section. 

> On Jan 17, 2021, at 22:46, Kangping Dong <wgtdkp@google.com> wrote:
> 
> 
> Should we use one RR with ANY type (and zero rdata) for one conflicted name? Because the conflict applies to all RRs of this name.
> 
>> Or just pointing to the root?
> Sorry, I am not following. Do you mean including exactly the original RR that has name conflict?
> 
> 
> BRs,
> Kangping
> 
>> On Fri, Jan 15, 2021 at 10:30 PM Ted Lemon <mellon@fugue.com> wrote:
>> How about including an additional section on the response that includes the conflicted names and rrtypes with zero length data? Or just pointing to the root?
>> 
>>>> On Jan 15, 2021, at 01:03, Kangping Dong <wgtdkp@google.com> wrote:
>>>> 
>>> 
>>> Hi DNSSD enthusiasts,
>>> 
>>> For Service Registration Protocol (SRP), when a SRP server receives a registration with names
>>> that have already been taken by another client, it responds with a YXDOMAIN error code to indicate
>>> name conflicts. When the client receives such a response, it typically will re-generate a new host or
>>> service instance name and re-register with the new name.
>>> 
>>> The problem is that a typical SRP update will include one Host Description Instruction and one (or more)
>>> Service Description Instructions (zero Service Description Instruction is allowed but it is more common
>>> that the client registers the host with some service instances). Name conflicts can happen on both Host
>>> Description instruction and Service Description Instruction, but there is no description of how to tell the
>>> client which instruction includes the conflict (or both include conflicts). Currently, the client needs to re-new
>>> both host name and service instance name or re-new a single name and starts a trial-and-error process
>>> until it finally succeeds.
>>> 
>>> One solution is, the server/registry responds with the Instruction(s) which has name conflicts. For the
>>> client, it should check the RRs in the response to get the conflicting name if a YXDOMAIN response
>>> code is received. To Reduce data transported between the server & client, the server may just include
>>> one RR, but not the entire Instruction, that contains the conflicting name.
>>> 
>>> Thoughts?
>>> 
>>> 
>>> BRs,
>>> Kangping
>>>