Re: [dnssd] SRP: Name Conflicts Handling

Kangping Dong <wgtdkp@google.com> Mon, 18 January 2021 07:06 UTC

Return-Path: <wgtdkp@google.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 EBF443A10DA for <dnssd@ietfa.amsl.com>; Sun, 17 Jan 2021 23:06:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -16.972
X-Spam-Level:
X-Spam-Status: No, score=-16.972 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.373, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.998, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 BHrTZ0XsbIak for <dnssd@ietfa.amsl.com>; Sun, 17 Jan 2021 23:06:11 -0800 (PST)
Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) (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 5D9383A10D8 for <dnssd@ietf.org>; Sun, 17 Jan 2021 23:06:11 -0800 (PST)
Received: by mail-yb1-xb2f.google.com with SMTP id r32so2013717ybd.5 for <dnssd@ietf.org>; Sun, 17 Jan 2021 23:06:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LzOpR3ntFfSIS7gSVdzbZ5+XA12Blb7OdE5PebO+nuY=; b=offnxcWGcAGnIh0BqSKwmg6qpEXoDJvjo59Zktmi6NZu/eMIcyjQTn6hiMzPhK6v7c XbNqwtYFBr2WS/VvUh6wxkkUzhKNl6EHkjVB5aczYGk94mgGVCR4DrVGC3pIejLPGSCr gVtw/SDc9h8g0o1g8auzz7oNpZcUkl1FCuCw3MwTmYF+AJ24FziEMFA6N5kOWzXr8VrJ YBi0yMwwBm4lN9jfLNhG/zfj6TjUFPxTqVu4JeNX9n0i5sbKoRwFqOi+yOg0TMdp1Rj1 cxsu2DX3fZD7P7WVf1rRWdpU7WXptlukEVH64tioqPFOGw2iKsa876AuL0K1xdpX+LsC 4ziA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LzOpR3ntFfSIS7gSVdzbZ5+XA12Blb7OdE5PebO+nuY=; b=ZK5NITQQMPkxEJsGHAE537aKrQH1YuJtG8MUlLVdjU2KqnucJBzroaPwJfIy0rKfQ2 O3/9qVnnsM3aPETrBM6qXgLIpzDVsDoFA2OAwaaprpzF1JAryCL7WKD+m/5LHXrD/Lxz fa0NBh6dWm+zUfcJBZmHnzO5Qjsqory6EL4J+6ZEwHR0PogjYj1OSi85U/G423apcHk8 yRtSUF4lFN9TPXgta1k/gss7Of4DkELnu9NHOjvr0ZKkut6iJflZ/IUpJ1u/vwmFWH6l QgGLIyq+vSZzOqcon8rCi8FziE2hwC4lxFHEnkD0WuilPzZeGJyqgRaDm8r4tz/DoHib NgHA==
X-Gm-Message-State: AOAM530k7fCV49lsG68Esfzs9axAaygSazCrBM8k39l48v0/tygOoVkP dUw/gzpSyTI2pwHLTXxZP1QDv4Xh2SCo+2ocKYljvw==
X-Google-Smtp-Source: ABdhPJyE+E6K8m7IwhMbDIKsdLU3LzaKYQpdIvBbVoTdSVum1awDDl6ASPmQH8XX5WsBfj7+opUiW59ayg5RbPOkxoE=
X-Received: by 2002:a25:dbc4:: with SMTP id g187mr36762706ybf.489.1610953570131; Sun, 17 Jan 2021 23:06:10 -0800 (PST)
MIME-Version: 1.0
References: <CAJ5Rr7Zc-Yma9EVXw1OeEKP+H1ZkPxB48Q5U45zoERX7=gNLJA@mail.gmail.com> <C224E9B3-EA9F-4A49-B73C-96F3D147B1E4@fugue.com>
In-Reply-To: <C224E9B3-EA9F-4A49-B73C-96F3D147B1E4@fugue.com>
From: Kangping Dong <wgtdkp@google.com>
Date: Mon, 18 Jan 2021 15:05:33 +0800
Message-ID: <CAJ5Rr7bXLiZJ=5Q-nYn2hWb2QSGzpJACv8b12BPqyTa1wJQVnA@mail.gmail.com>
To: Ted Lemon <mellon@fugue.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>
Content-Type: multipart/alternative; boundary="0000000000004cac4105b9275bdc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/z2qmkqJSxHJSmgINgypfOR0bgmQ>
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 07:06:13 -0000

Thanks, then I think both zero rdata and original rdata work for me.

BRs,
Kangping

On Mon, Jan 18, 2021 at 12:08 PM Ted Lemon <mellon@fugue.com> wrote:

> 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
>>
>>