Re: [dnssd] SRP: Name Conflicts Handling

Kangping Dong <wgtdkp@google.com> Fri, 22 January 2021 06:02 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 AA9D13A1108 for <dnssd@ietfa.amsl.com>; Thu, 21 Jan 2021 22:02:52 -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 N8is89FmKXLO for <dnssd@ietfa.amsl.com>; Thu, 21 Jan 2021 22:02:44 -0800 (PST)
Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) (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 5DA2B3A1103 for <dnssd@ietf.org>; Thu, 21 Jan 2021 22:02:44 -0800 (PST)
Received: by mail-yb1-xb2e.google.com with SMTP id y4so4457834ybn.3 for <dnssd@ietf.org>; Thu, 21 Jan 2021 22:02:44 -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=O7Z2MwY6DKrWjL6VpnlRAxN3hQ6z+cI6c1ftCgBadn0=; b=RrKV18pdMVRhGVt2C1JG2gv6XenLPXC0yNPgcj2a1SCvLdCh+5eUYOBZ911EFN1ZkK 35OpsXVVCdn+TzsGAHf0drevgGoVIgcXAqYwPToUMAxxGxKRh2/xc2hF3z1RmRE5/Pcx I/3VIS8ocpu+A94GevBkXVHiLQESzJe54zXPH0ZCg5EkB9+MUuX6xxavO+v8irZY8rzY tTtE1o3Txtjay8EGdrRcWKFoGam3MPouolvpqfGbRAx7ZjMdo852yR41tM8b/xX8en+v 30KcTPQSOW3x/Sw8crSbur/9BbOA43CtgYzkvG82U0nO61Tr7WPkOchw9q29SFaNhyuG 8x7w==
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=O7Z2MwY6DKrWjL6VpnlRAxN3hQ6z+cI6c1ftCgBadn0=; b=F2hsmKcL8ycHBPFGr/t2kpYps02KNku0BMZ3VMWyn8mcuz8WVhTFITmj5pA2ynje0E fp68WBwnsEKZ+/9j9Ll8KGT/wZnxz+IUeRT1n/UdhBGdO/ruZM1sRW/IWOj17CJuqUbu 5WmVIiJoHJje/qlE5pum1c6Ky+Ab5H1+X1XUnODly2mEpKujPBB1Ruj9jZS763E606fY PAscFqettaftxq+Ubxb/6OZuMV/zrUqhOdqIfuMMKAI7TkG4l35FyTTYt4xQmynLfm1W 5sLIIJ3j5fmQZEpfAg7eG3XSrnXg2NYJSikH4zM4bwu1hmCIXMQyOXn4vi1+eblQuFrD iPFg==
X-Gm-Message-State: AOAM532N7z8cqd7vMyFSklBokcO1gyZ/fyWlMxoNSRjVderXcmL2vXxP yr6k9aW9gD1ECsGp8NjKYzSr9bZKPf6lAzI3590YdA==
X-Google-Smtp-Source: ABdhPJwDu8XGrZsYkqnjFpPQhL++WPL8XspmCaL5s6O0YiV/l9OOwkySsmHfETWniygMX6rc0Ry1fao4y+Zx4Df92gE=
X-Received: by 2002:a25:4c8a:: with SMTP id z132mr4656634yba.350.1611295363087; Thu, 21 Jan 2021 22:02:43 -0800 (PST)
MIME-Version: 1.0
References: <CAJ5Rr7Zc-Yma9EVXw1OeEKP+H1ZkPxB48Q5U45zoERX7=gNLJA@mail.gmail.com> <C224E9B3-EA9F-4A49-B73C-96F3D147B1E4@fugue.com> <CAJ5Rr7bXLiZJ=5Q-nYn2hWb2QSGzpJACv8b12BPqyTa1wJQVnA@mail.gmail.com> <0A1488E9-BFB8-4E82-815B-EF1F2A40B35E@fugue.com> <CAJ5Rr7ZZ22YCCszxjXCExgDjyBN18YKZzdnCe1bTHUDhmC7qtg@mail.gmail.com> <700C359B-B9D1-4A1E-A7B2-1ACA0AF224C5@fugue.com>
In-Reply-To: <700C359B-B9D1-4A1E-A7B2-1ACA0AF224C5@fugue.com>
From: Kangping Dong <wgtdkp@google.com>
Date: Fri, 22 Jan 2021 14:02:07 +0800
Message-ID: <CAJ5Rr7Zy_7SD4gxuQsD6O_OAqQpZ2r5Q9fsLFE8vL_6XFTjo+Q@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
Cc: DNSSD <dnssd@ietf.org>, Jonathan Hui <jonhui@google.com>, Abtin Keshavarzian <abtink@google.com>, Yakun Xu <xyk@google.com>, Rongli Sun <rongli@google.com>, Simon Lin <simonlin@google.com>
Content-Type: multipart/alternative; boundary="000000000000bf2c5705b976ef8e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/cUJBXN9WXBguPKtTYgPYq4bo4pQ>
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, 22 Jan 2021 06:02:53 -0000

To make sure if I correctly understand how this works, let me explain how a
SRP client will handle name conflicts:
1. If a name has already been registered on the SRP server or a name
conflict error is returned by the Advertising Proxy:
    the SRP server responds with the RR that includes the conflicted name.
If the client sees such records, it knows the conflicts
   on the SRP server and will retry with a new name.
2. If a name conflict is reported to the SRP server after the SRP update
transaction has been committed:
    The next time the SRP client registers, the SRP server responds
with a CNAME record which includes the new name.
    If the client sees such records, it knows the conflict on the multicast
link and will accept the name or retry with another name.

Am I correct about the workflow?


On Fri, Jan 22, 2021 at 12:11 AM Ted Lemon <mellon@fugue.com> wrote:

> On Jan 21, 2021, at 12:27 AM, Kangping Dong <wgtdkp@google.com> wrote:
>
> Option (1) also looks good to me. But what are the RRs that should be
> included in the response? SRV RR for service instance name and AAAA/A RR
> for host name?
>
>
> Yes, I think that makes sense. These unambiguously indicate what type of
> update failed. Which brings up the question of what RRtype to use for
> renaming. CNAME?
>
>