Re: [dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)

Kangping Dong <wgtdkp@google.com> Sat, 19 December 2020 15:34 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 AF1E33A09E8 for <dnssd@ietfa.amsl.com>; Sat, 19 Dec 2020 07:34:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.256
X-Spam-Level:
X-Spam-Status: No, score=-17.256 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, 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.342, 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 Zk0vbRZNmw84 for <dnssd@ietfa.amsl.com>; Sat, 19 Dec 2020 07:34:45 -0800 (PST)
Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com [IPv6:2607:f8b0:4864:20::b2b]) (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 E842A3A09C0 for <dnssd@ietf.org>; Sat, 19 Dec 2020 07:34:44 -0800 (PST)
Received: by mail-yb1-xb2b.google.com with SMTP id v67so4837457ybi.1 for <dnssd@ietf.org>; Sat, 19 Dec 2020 07:34: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=WYbGAVKv2uWcLhzoLA3McadtJjvyJChT808MRBYElzM=; b=r0mOAx9g474biW2qZzNCPzzpYm0kChhDhtZDgu5ngddB97Z8ze4LCllIV9QkjmBEEK UNYdgbFzv4nS4eNXvau4NHYMoGlo+F8wWWx5HOz/Km4BRlIMgWXu01jTuFpT7ovYr/TU tUPKgK4qCU2RsZ0St8chJCGCjB/KodA06V06NXblWaXsSgP8x7gbqLzpDnl/6llvHP7a OM1meLFNb4HPCULUffk9ZRHjn3hEK0WyvEQdrxfhx2b0vdBnPRd4IzgdQY3asV/eoPAb Ptyeg0FGpECFHMZmPlp4FYZee2oGq9kUa48CCNqzEUqcV89aLRYvO7ayJypeIaGWty9u GODA==
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=WYbGAVKv2uWcLhzoLA3McadtJjvyJChT808MRBYElzM=; b=lcjo4RErFe/N5GnsjdIWaJGpy2sXu8dABhmuqe3MVL4Q+d3R+2JTF8/GaaHgiyWZbQ Q8Fzf093fMP4KgjZHRikfDDgTXqjTJkdBaX5c/6oG/WPF0/mO4Pya9unaBxVp9pevuSF Uyx9tAU4ou1g0P9YoSX8HeXudDx7TrwUe7+e/zI29q0MazPXnTy/xKcu4qhhLfSa+2O5 AygrP+f6SAG+W6lggD+FyF4kLVwevDC7xgi5+fcMV3wGYZbiJ30crnlLM8eHQrkvG6bs 4maD3KMMdORLH4FsQTqGbjgUjzgnyF5elmimk18X+98yJ0zqQoJq2A2f+nmFrgtwOLKX Fr+A==
X-Gm-Message-State: AOAM530CXDOV0JRb6p6YJpzT6S0uO7hbfKP7KOjFOXwo/9yVdBdrB7lo 6jSOG/x1LuBPI1LE8jU6qhaDnrMbRJyCEAXSXMqg6g==
X-Google-Smtp-Source: ABdhPJzmas+LBvSd8a8JwJBBXJa/XbdHy0ko7+yt2vF5U5P4LpITG/y6ijZTri5yoB0fH+LO230ggrBHwJDcNC3f95A=
X-Received: by 2002:a25:d753:: with SMTP id o80mr11750732ybg.169.1608392083660; Sat, 19 Dec 2020 07:34:43 -0800 (PST)
MIME-Version: 1.0
References: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com> <031C980F-D8B6-4051-8DC0-D8417FDBBD0F@fugue.com> <CACce4dQZ708aaMdvmwhEurHDSdFAvLbzwpDWz=viig_2cX75Dw@mail.gmail.com> <680A60B6-BD88-475E-91ED-48F23036A7C8@fugue.com> <CAJ5Rr7bDSMv1uPDPXppG9e4OUEU7oriK9tVKD20=P3Kgb2q=0g@mail.gmail.com> <741BC8D6-CFEF-453B-8F89-A6B102A37DAA@fugue.com> <CAJ5Rr7Yw33y2k=wo-ZXzFNP77=bucRcr2LxJxf+98e5oqK+fsw@mail.gmail.com> <6B728DF0-5EE8-4EE6-9E95-98EF4D03D865@fugue.com> <CACce4dToa2+FiYgzp5AvZjO7-UfHy5VSSZ4ED+PkHMVPBZTQAA@mail.gmail.com> <87BDE0DB-9FB0-4BB2-872D-6D045897FCBD@fugue.com> <CAJ5Rr7ZmVWRp8H1Kg2QVXFJKnrUK09J2iPHsVTDvSxFioAznUQ@mail.gmail.com>
In-Reply-To: <CAJ5Rr7ZmVWRp8H1Kg2QVXFJKnrUK09J2iPHsVTDvSxFioAznUQ@mail.gmail.com>
From: Kangping Dong <wgtdkp@google.com>
Date: Sat, 19 Dec 2020 23:34:07 +0800
Message-ID: <CAJ5Rr7btf6iRnWWqVRhUAOHLotF3ntamNZt9MnACbPEOtXSGhQ@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
Cc: Abtin Keshavarzian <abtink@google.com>, DNSSD <dnssd@ietf.org>, Jonathan Hui <jonhui@google.com>, Rongli Sun <rongli@google.com>
Content-Type: multipart/alternative; boundary="000000000000cebfe805b6d2f6fc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/1GTZ6BJt7GD6Wp2GnEF4Dn9Tvms>
Subject: Re: [dnssd] SRP Update - removing individual services (draft-ietf-dnssd-srp-06)
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: Sat, 19 Dec 2020 15:34:47 -0000

Sorry, another question :)

In section 2.3.1. Validation of Adds
<https://www.ietf.org/archive/id/draft-ietf-dnssd-srp-07.html#name-validation-of-adds>,
we have:

 SRP Updates consist of a set of *instructions* that together add or remove
> one or more services.

Each instruction consists either of a single add, a single delete, or a
> delete optionally followed by an add.

When an instruction contains a delete and an add, the delete MUST precede
> the add.


What is the use case of the "single add"? To my understanding,  the "delete
+ add" pattern is
for resetting the service to our current SRP update. So the "single add"
pattern is for updating
the existing service, for example, adding one more AAAA RR, right?

I think, for most SRP clients, it will be more convenient for them to track
all IP Addresses and
always update with the whole IP addresses list rather than depending on
this "update" model
and register the addresses separately. The server, I think can also be
simplified. Thoughts?

Another issue with this sentence is that, the Service & Host Description
Invalidation requires:

> exactly one "Delete all RRsets from a name" RR,

Seems disallowing the "single add" pattern?

BRs,
Kangping

On Sat, Dec 19, 2020 at 11:11 PM Kangping Dong <wgtdkp@google.com> wrote:

> Hi Ted,
>
> Thanks for creating the 07 draft so quickly! The change overall looks good
> to me and I agree we should check the KEY RR rather than the SRV RR.
>
> I have some questions when reading the related sections:
>
> 1. in 2.2.5.5.2. Removing some published services
> <https://www.ietf.org/archive/id/draft-ietf-dnssd-srp-07.html#section-2.2.5.5.2>,
> we have:
>
>> The second alternative is to send a normal SRP update, but as in the
>> first alternative,
>
> including a Service Discovery Instruction and a Service Description that
>> *delete* the service being removed.
>
> Should the "*delete*" be "*replace*"?
>
> 2. What's the use case of supporting multiple TXT RRs?
> in section *2.3.1.2. Service Description Instruction
> <https://www.ietf.org/archive/id/draft-ietf-dnssd-srp-07.html#name-service-description-instruc>*,
> we have:
>
>> zero or more "Add to an RRset" TXT RRs,
>>
>
> Are there real use cases that we need more than one TXT RRs? What is the
> expected behavior
> for the advertising proxy to publish this service with multiple TXT RRs?
> (I think DNS-SD requires
> a single TXT RR, is it correct?) Should multiple TXT RRs be concatenated
> to form a new TXT RR?
> If there is no such use case, should we require a single TXT RR? It will
> be easier to implement on both
> client and server side and consistent with DNS-SD. thoughts?
>
>
> BRs,
> Kangping
>
> On Sat, Dec 19, 2020 at 8:17 PM Ted Lemon <mellon@fugue.com> wrote:
>
>> Actually, on second thought, maybe the right thing to do is check for the
>> KEY RR and not the SRV RR. If the key matches, the delete is okay. If there
>> are no records on the name, the delete is okay.
>>
>> On Dec 19, 2020, at 12:25 AM, Abtin Keshavarzian <abtink@google.com>
>> wrote:
>>
>> Does it sound ok?
>>
>>
>>