Re: [dnssd] SRP: Name Conflicts Handling
Kangping Dong <wgtdkp@google.com> Thu, 21 January 2021 05:28 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 40BD43A0DC2
for <dnssd@ietfa.amsl.com>; Wed, 20 Jan 2021 21:28:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -16.971
X-Spam-Level:
X-Spam-Status: No, score=-16.971 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, RCVD_IN_DNSWL_BLOCKED=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 7B5OF64irD7O for <dnssd@ietfa.amsl.com>;
Wed, 20 Jan 2021 21:28:28 -0800 (PST)
Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com
[IPv6:2607:f8b0:4864:20::b2d])
(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 9190E3A0DD2
for <dnssd@ietf.org>; Wed, 20 Jan 2021 21:28:28 -0800 (PST)
Received: by mail-yb1-xb2d.google.com with SMTP id f6so890619ybq.13
for <dnssd@ietf.org>; Wed, 20 Jan 2021 21:28:28 -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=RG9keq2U3SSDhcGnQzRB3J1rGI5YvDMjK4SCKHRU43I=;
b=Wsn+Cyay+HKiauVeYtCmq8/Z5JRvWPQ17OcvPxR0GckLlZqi9xiWeuzjuhYV0dKftm
XGovx9B7QNwEhYHMjubk7PLWOgQ8FB8vDFuKVSYQ86p/Cr0P6XVz9mU/evaY2BoJyVFX
HVR3+rdm83nrAr5+1RCcCNFViYznvVrmdIni8H7JrmEUhfxKmiF5nr9C9gIAPvkjf8dP
AL8kzsEjYjP15cVH0jZjjA1pL+FfSDcgFuP9poHgA6dYDK/wC7liMUf2z64adWeFAHH9
DOJUK8xkwGQ5BihHQomADh9rI9xHya9e2+LJWuW6pZE2DL7Ya9TYbrDD/UErH8sJdfnK
fQxA==
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=RG9keq2U3SSDhcGnQzRB3J1rGI5YvDMjK4SCKHRU43I=;
b=S7WkCIBNpXa3ECtSO/WmDRq7zqWmBMr7muTS1BeZueRg/tzHuX9MaQmh1Qqnsu7Bhv
7MEt8ROCFyVNiBHBoEK68H+20HNHX8RpEtkkfQdC3QfVWIrsB84ESWfCJMD94oy+jpBG
hTn9+arF4eJNavEQUAAjHYIgvZKqwx+glRU6WcfWUmfkLE90mLluH0+HdyjxdbHefrGi
teYzpFJkvN/dhs8/sC4/ZPbJCNwDG9OHUIOFkF7791ytvVdZIGC7GESsK0z1nHQa9LP9
wA+DtklzQ5SKh1PKg7/voyM66Qo/jTee+ciIKMDSTGNvvh1Fi/Ffn/bsuyaKzaNz/uUl
oayA==
X-Gm-Message-State: AOAM530sGPNpJK2KKxWzaww0tWkhFrWbYMrM5HGVkCuqqh/oRNg13wfj
ln23ZPIPTUUMpzIy598Kyzy7RFhbZyARlARVeY4qTA==
X-Google-Smtp-Source: ABdhPJy20TXvxuy+SrA5zON1hY629aUtRNeJ1sizL8csGRtg/12pkadtN86eiUEq5t+WShV1vKTBB3hhVRv6N+EuokE=
X-Received: by 2002:a25:4c8a:: with SMTP id
z132mr20268933yba.350.1611206907237;
Wed, 20 Jan 2021 21:28:27 -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>
In-Reply-To: <0A1488E9-BFB8-4E82-815B-EF1F2A40B35E@fugue.com>
From: Kangping Dong <wgtdkp@google.com>
Date: Thu, 21 Jan 2021 13:27:51 +0800
Message-ID: <CAJ5Rr7ZZ22YCCszxjXCExgDjyBN18YKZzdnCe1bTHUDhmC7qtg@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="0000000000005e0be405b9625787"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/grfJik5vSoTHpTzzcAYWoOIX-u4>
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: Thu, 21 Jan 2021 05:28:30 -0000
Hi Ted, Sorry for the late reply. Okay. I think it’s better if the response is syntactically valid to a > parser that doesn’t have special knowledge, so we shouldn’t use zero-length > rdata. > Agree. The next time the SRP client registers, we signal to it that it was > renamed, and give it its new name. The SRP client is then free to either > register another name, or accept the new name that it was given. 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? BRs, Kangping On Mon, Jan 18, 2021 at 10:21 PM Ted Lemon <mellon@fugue.com> wrote: > On Jan 18, 2021, at 2:05 AM, Kangping Dong <wgtdkp@google.com> wrote: > > Thanks, then I think both zero rdata and original rdata work for me. > > > Okay. I think it’s better if the response is syntactically valid to a > parser that doesn’t have special knowledge, so we shouldn’t use zero-length > rdata. We could encode some information in the CLASS or TTL of the > response, though. One thing that occurs to me is that there’s a failure > mode that can occur if you are using an advertising proxy (as opposed to an > authoritative server) model: two different clients choose the same name at > roughly the same time, but their advertising proxies aren’t in > communication, so duplicate detection fails to detect the conflict before a > positive reply is sent to both. > > Later on, the conflict is noticed, and one or both of these devices gets > renamed. At this point we don’t have a way to communicate the name change > to the SRP client, because it’s not expecting another reply. For SRP > clients that make TCP connections to the server, we could use some sort of > subscription model to address this, but for constrained clients (e.g. > Thread accessories), that won’t work. There are three ways to address this > problem that have occurred to me: > > > 1. The next time the SRP client registers, we signal to it that it was > renamed, and give it its new name. The SRP client is then free to either > register another name, or accept the new name that it was given. > 2. The next time the client registers, we signal to it that there is a > name conflict, and it renames itself; the temporary new name is removed. > 3. The SRP server just carries on with the new name without notifying > the client. > > > Right now, my advertising proxy implementation does (3). The reason is > that this produces the fewest name changes, and that seemed like a > desirable characteristic. I did this because the only simple alternative > that occurred to me at the time was (2), which would always result in the > client being renamed twice. > > However, since we are now contemplating sending back conflict information, > (1) becomes possible—we can send back the name that was rejected, and the > new name, marking the rejected name with a TTL of zero and the new name > with a TTL that is nonzero. This gives the client the option to choose a > new name if there is a conflict. It doesn’t have to choose a new name—it > can do nothing. So now we have full transparency, and the correct amount of > efficiency. > > What do you think of these approaches? > >
- [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong
- Re: [dnssd] SRP: Name Conflicts Handling Ted Lemon
- Re: [dnssd] SRP: Name Conflicts Handling Kangping Dong