Re: [dnssd] SRP: Name Conflicts Handling

Ted Lemon <mellon@fugue.com> Fri, 15 January 2021 14:30 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 9FBAC3A09AC for <dnssd@ietfa.amsl.com>; Fri, 15 Jan 2021 06:30:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 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, 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=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 2jSelFwn3210 for <dnssd@ietfa.amsl.com>; Fri, 15 Jan 2021 06:30:05 -0800 (PST)
Received: from mail-qt1-x82c.google.com (mail-qt1-x82c.google.com [IPv6:2607:f8b0:4864:20::82c]) (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 6D7323A096C for <dnssd@ietf.org>; Fri, 15 Jan 2021 06:30:05 -0800 (PST)
Received: by mail-qt1-x82c.google.com with SMTP id c14so6105104qtn.0 for <dnssd@ietf.org>; Fri, 15 Jan 2021 06:30:05 -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=PQj3th/kB1G55svuEKZ130DRxjeA22Vvhfud6ys99IM=; b=1MuE60DRAEZjo8ypEqrD7SHT7y4VwslI/nUGcAT1xXHNK9HYV8930qtzlGtkVHlPpV JvIWPlJ0WRJHnFS1rhuNAmThxjR+gnqXCCEuDIjL7EG/FK7/zknF5r/iaS8k0IN7YNGt Vd+QDsc71+z9v/MoH0Pz8H0FJ/4meSIyNZdld3I5xHvBDe01WA5DaU6DnWfND3rCNHzC 1h5l8oC7xsdPo6FEa1V9pnymGoo02UN92+diSqqmVgORmNUJ/E450JWdImeuZlklLwb4 bCcdfkwFJzPvEtQdR8jDCqrK1BffDrORY4Lf9sSm9hussN7Z8B3ipmIDcXwsgccrYaaF fBuQ==
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=PQj3th/kB1G55svuEKZ130DRxjeA22Vvhfud6ys99IM=; b=Em0Mm8bRnXYAXfdVcM4okxDb8NW0nOi+ymzsnUB7CCDX11mN7GZqrAIlNgAItlzwIE mExiWSFWiPy12KBrszjMv/0cwZycLtJFgzNR/61jJyail5pgrDmPkKJPVE3rPc7N8R9X mJz6dW/bFAJgHCVKvco5KTjLON7dyexrqWNCiIgzRiaqWCizaDt6OYPB03TNfiUxgSYv V2ZP4m0dHUfpYPz+pbzsuefbTeKPczY+qyJQVAzG+M9xE2OxYopKQKGwW3H3iVJN6596 p6hDVo1RrK6iR4oNnDmclh2f3koqUwedNKSPrs9K3HghsTzgVfqZL6dwzYVeZaM3olH/ OZFw==
X-Gm-Message-State: AOAM530yzHbtcDuOWKGGiRboBPJaeH1bhYfmbas14yADDd4n+J9dI8hq RgzWG4wBIaHpcPvFzM7YdmVh+A==
X-Google-Smtp-Source: ABdhPJzBYXLrqJP2kXyvkDq8ppatn2QFxf/c0e9Q6SelrSRFwldAqSuOiMdi9iPOsr23Id4RaIz4Dw==
X-Received: by 2002:ac8:454e:: with SMTP id z14mr11672011qtn.120.1610721004436; Fri, 15 Jan 2021 06:30:04 -0800 (PST)
Received: from [192.168.4.114] (c-24-91-177-160.hsd1.ma.comcast.net. [24.91.177.160]) by smtp.gmail.com with ESMTPSA id h25sm5114667qkh.122.2021.01.15.06.30.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Jan 2021 06:30:03 -0800 (PST)
Content-Type: multipart/alternative; boundary="Apple-Mail-257EFF3B-7760-4809-9484-CFC232E1D94F"
Content-Transfer-Encoding: 7bit
From: Ted Lemon <mellon@fugue.com>
Mime-Version: 1.0 (1.0)
Date: Fri, 15 Jan 2021 09:30:02 -0500
Message-Id: <30F1E517-3A0E-4BCF-B2F9-DE3346570B9B@fugue.com>
References: <CAJ5Rr7bH1k3mymO=a=YvsoEtXijJKN96k-78J9wGr_sfvbmmfw@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: <CAJ5Rr7bH1k3mymO=a=YvsoEtXijJKN96k-78J9wGr_sfvbmmfw@mail.gmail.com>
To: Kangping Dong <wgtdkp@google.com>
X-Mailer: iPhone Mail (18E118)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/r_QCMdK8AljDs9ci-KW3_4ztNao>
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: Fri, 15 Jan 2021 14:30:08 -0000

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
>