Re: [dnssd] Adoption call for draft-sctl-advertising-proxy

Simon Lin <simonlin@google.com> Fri, 13 August 2021 03:08 UTC

Return-Path: <simonlin@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 37DC23A19E3 for <dnssd@ietfa.amsl.com>; Thu, 12 Aug 2021 20:08:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -18.099
X-Spam-Level:
X-Spam-Status: No, score=-18.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.499, 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham 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 tdt3qadE_1kz for <dnssd@ietfa.amsl.com>; Thu, 12 Aug 2021 20:08:35 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (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 0041D3A19E2 for <dnssd@ietf.org>; Thu, 12 Aug 2021 20:08:34 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id m17so9900631ljp.7 for <dnssd@ietf.org>; Thu, 12 Aug 2021 20:08:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5EhZgUQ1aQmcVYd2qsS4UPzZXGyj9d2VT4efskWhtJg=; b=uXYsdENa+3LHtVsfV2TtipFFTbj2YJMHuAYnyC5v+ykAP5lf3EyVNRzTMIl+NXPsYI nQNGLaPYnqA757AZ2hmdG/fAWEc8oUjlfTe6Y+wjw6jSfNo2rPcq0DWSRo+C+6jjDk+e MMrNMCwF/tf+ozupRZIZLDfoRZG9BUwWVJaI/ZBNP33z0edHytM8Z4MPrGmq6eFUEi6V EMMhHp62kXHwVCrJafbObon9fbovuOUK+zU/XjdoLLE13WdSLsp443UUFYFNmwEkewkM I5LtNphbpl8QonBap/dgDzJuHpdDcErtHRM4hVKBP/WYtqoIOPRQpPSi3vfNNxTnX3Ox qY/w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5EhZgUQ1aQmcVYd2qsS4UPzZXGyj9d2VT4efskWhtJg=; b=Cg0p5ENi06ykL634SARVYMLCrQEhET5PwLfGUX9iy/aSDDav5it7pTqGylC+MyUrSK Lhpe1FBSiOl7XUUTygq6f0Mo/nT39cVBC7r8MNQPHje2UAP4/4MaGlY9TaK5/YJXqwvn v6G4AkIso8JYLtAm9C5s2UEQ+XO8Ax4vUg3f1LkClOmulW3VXSIPVRZxFdoQI/SKCk9T jyE4qSAJl1cFIMF7nxoJwAYf84Y5tnoOsdwX4nq1ftYbVpDC4XjFPwVuSlllDzVRNLQQ QRB4V1soQF0ghHMjaZp3N409+b3gPkMEXd+cClJm1IKmkEvr95IHLp0kp2XJbRtrjVzr Zj6g==
X-Gm-Message-State: AOAM530KearGSw1p0F/xZr0wHRgYmc0rhgCVaboTFkM6lg1gk55YbaRz HWFJ853JhAQnAvEKctpBN/osaGnUBgJ0YU6TWFsFrYKCN0u5VGos
X-Google-Smtp-Source: ABdhPJxN3GQ6WO+KyiJ4rFqYSiPTOkt5uiE3/r1PUcJuiJTjSNQ9RRRfZO72eJow+qiRqaIfGwz0uBTGlZyYHPlCv2o=
X-Received: by 2002:a2e:9ac7:: with SMTP id p7mr222425ljj.96.1628824111532; Thu, 12 Aug 2021 20:08:31 -0700 (PDT)
MIME-Version: 1.0
From: Simon Lin <simonlin@google.com>
Date: Fri, 13 Aug 2021 11:08:20 +0800
Message-ID: <CADPZrgTu8QeR=yAM+9w0zDJ45Uz7Lgs12-6PKzutTW_p1RkA4Q@mail.gmail.com>
To: dnssd@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/s8vgUWdof6FELzOuyn0N16tt1nk>
Subject: Re: [dnssd] Adoption call for draft-sctl-advertising-proxy
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, 13 Aug 2021 03:08:37 -0000

> Specifically,
> imagine a dual-radio device (WiFi and Thread) which for some reason
> migrates from being an SRP client to an mDNS client or vice versa.

What's the solution to resolve the case where an SRP client migrates
to be an mDNS client. When the mDNS client tries to advertise its DNS
service, it will conflict with the SRP server of the original SRP
client. I don't think SRP replication can solve this problem.

As Jonathan said, always using SRP regardless of whether the device is
connected via Thread or WiFi can solve this problem. Also maybe the
device can unregister itself from SRP when it has migrated to WiFi,
which requires the device to remember the IP address of the SRP
server, or to use draft-tljd-dnssd-zone-discover.

> The way I'm currently proposing to address this is by requiring SRP
> replication when there is more than one SRP server, and by not renaming,
> but rather waiting for the conflict to resolve.

Agree that SRP replication is the most user-friendly way of addressing
this problem.

> An additional mitigation strategy is to not actually detect conflicts. If
> we have two conflicting registrations, and SRP replication doesn't resolve
> them, then they just coexist until one goes away.

Does this strategy violate mDNS protocol? Moreover, if two different
devices register their service on different SRP servers using the same
name, it's not a good idea to not resolve the conflict since the
conflict will last for a long time.

> The only other alternative is to rename. I think this is too heavy of a
> solution, but I'm open to debate.

It increases the complexity on every device that needs to browse for
mDNS services. I would prefer SRP replication to renaming.

--
Simon  Lin