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

Abtin Keshavarzian <abtink@google.com> Fri, 18 December 2020 00:40 UTC

Return-Path: <abtink@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 595093A0A20 for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 16:40:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 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, 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=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 909UmVq96Hzi for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 16:40:53 -0800 (PST)
Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 C9E6A3A0A1D for <dnssd@ietf.org>; Thu, 17 Dec 2020 16:40:53 -0800 (PST)
Received: by mail-qk1-x72c.google.com with SMTP id 19so599608qkm.8 for <dnssd@ietf.org>; Thu, 17 Dec 2020 16:40:53 -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=hsHEw27hcTBUVTiAeo4NeHFRVdX2szhe7d3HFpyj3D8=; b=KRJ4OgTVAxIBhjrYtexYqb7AmAFKL4AgKrINcyV0UVHSpjoP+Lsi4Ioh4IH2Azqy2r btSIoGBkrPqxXyWbnYWD2OKKACHwgUIDsUnMxeS6Nr7WwqHgZHjJ4iI9b/2gLVQW3Uw5 VkC6nfdUNMSjxMajyt4IxxATqaerlkYzWO3b+Ud24p9kUSv6IGkNhj9sVvQB/jK3j34u GQ4ISD/Sg0q0rVDU9QigLRdEnp+4Bg2Or0cVwo10rFperPRAhLNQozdWmKzKCKZ5e0El lzmSGwFWXEfjKh+roRYueUb6LYQGlojSHV0GkN741V4OhddYV9uQiTgJjPVcYg1+5gUW IxFg==
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=hsHEw27hcTBUVTiAeo4NeHFRVdX2szhe7d3HFpyj3D8=; b=VB6wIa/AnLxr4UB37ePYwUMo9wtTK2DuFNuXuDnSpML7v4zE0UFoL9Vnnyo1nmVW9f Kil/LqMdPCvkrzqgcHTegp+h7DR7vkaL2olwToc7ldAlsmFWOBszNv7Ndrwa4O3abAli 0+DObtS+4i22L90GT/1VqKDYhutlnyKMjvNCJQ5i0b08hxgy4SM7ooLWOoarTHbsKZEe x2Qi3RoNjZb6aut4Cv9hOqqwFb6/T8JaGB7OoVJ5WQII9fK20ciKNDF4fhQJw/f7xJly ppIoMGCQXqq/P23bzo10v35mzz3DG+Afr0EtKgrFZeNQFqohPhhJZ/dT460pYgxAFdhV HIXA==
X-Gm-Message-State: AOAM5310vv3x+NpiO4KWOjn0E1mZxw1U1wGYof4umaFXLMg3S9p0zlJu PdW8GeJpfJj9H8D8tFJ1W5j9KHsHtqQcgqtdJ+XgBBOe9TblPA==
X-Google-Smtp-Source: ABdhPJyIfVU33aOqqfQqWMpdDdXtBYkiSBslEu/KIq6i2UT4F1s8auByvJvzkF6cpyS9/BxEyZPrBug29C60Q2D7xic=
X-Received: by 2002:a37:8307:: with SMTP id f7mr2226193qkd.70.1608252052463; Thu, 17 Dec 2020 16:40:52 -0800 (PST)
MIME-Version: 1.0
References: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com> <031C980F-D8B6-4051-8DC0-D8417FDBBD0F@fugue.com>
In-Reply-To: <031C980F-D8B6-4051-8DC0-D8417FDBBD0F@fugue.com>
From: Abtin Keshavarzian <abtink@google.com>
Date: Thu, 17 Dec 2020 16:40:41 -0800
Message-ID: <CACce4dQZ708aaMdvmwhEurHDSdFAvLbzwpDWz=viig_2cX75Dw@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
Cc: dnssd@ietf.org, Jonathan Hui <jonhui@google.com>, Kangping Dong <wgtdkp@google.com>, Rongli Sun <rongli@google.com>
Content-Type: multipart/alternative; boundary="0000000000004c6b4b05b6b25c6d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/BIf5zMBHceUgXlqQ5gfNr5Cx_tU>
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: Fri, 18 Dec 2020 00:40:55 -0000

Thanks Ted,

Yes, that makes sense and sounds simpler. :)
I think it also allows multiple adds and removes, all, to happen from the
same SRP update message.

Let me try to describe some details:

- In "Service Description Instruction", we allow a "Delete all RRSet from a
name", with possibly no follow-up adds.
- When a service is being deleted, we can consider allowing KEY RR "Add to
an RRSet" for instance name to be optionally included, to have the server
keep the instance name reserved (if desired).  Does it make sense?
- In "Service Discovery Instruction" I think we need to allow delete as
well (I guess "Delete an RR from an RR set" for PTR RR)?
- We continue to require SRP Update msg to always include exactly one "Host
Description".

Does this all sound good/reasonable? Anything I may have missed?

Sorry I think I misunderstood the earlier discussion. Somehow I associated
the remove to require registering with zero lease time.

Thanks,
Abtin.

On Thu, Dec 17, 2020 at 3:35 PM Ted Lemon <mellon@fugue.com> wrote:

> Thanks, Abtin!
>
> To be quite frank, using a zero lease time was a quick hack, which only
> does well if the only use case is that the whole device is going offline
> and hence wants to take all its services offline. This is a fairly common
> use case in mDNS, but I hadn’t really thought about the fact that your use
> case also makes a lot of sense, and isn’t properly addressed by my quick
> hack.
>
> For the use case you are proposing, I think the approach we agreed on in
> the off-list conversation you are referring to indeed makes more sense. One
> slight clarification, from your second point in your summary: the lease
> time would be the normal lease time.
>
> What would be different would be that a delete would appear in the message
> with no following add. This is sufficient to delete the old service. It
> would be permitted under the conditions you describe. The new service that
> was added, and the host record being renewed, would have the new lease
> time; the old service would be immediately removed.
>
> Does that make sense??
>
> On Dec 17, 2020, at 5:55 PM, Abtin Keshavarzian <abtink@google.com> wrote:
>
> Hi all,
>
> Would like to summarize some questions/discussions we had on an email
> exchange (with Ted, Kangping, Jonathan, and Rongli) related to SRP and the
> process for removing individual service(s).
>
> First a quick (personal) note, I have been reading the RSP spec recently.
> I think it is a very well-written and easy-to-read/follow. So I want to
> give thanks and kudos to guys who were involved (Ted, Stuart, others).
>
> -------
>
> There may be use-cases where we want to remove a previously
> added/registered service. The question is how to realize this.
>
> I think this can be done by sending two SRP Update message:
> - First one removing all services/host-info (with lease time zero)
> - Followed by another SR Update re-adding services (excluding the ones
> removed) and host-info
>
> However, it'd be good if this can be done more efficiently with a single
> SRP update message.
>
> - Currently SRP considers the message to be valid if it includes zero or
> more Service Discovery and Descriptions, and exactly one Host Description.
> - The idea is to extend spec to allow Update msg to include Service
> Discovery/Description (without Host Description) with lease time zero to
> use for removing services.
> - The update message needs to include the key RR and be signed.
> - The server would accept the removal of service only if the key matches
> the previously registered key associated with the host and the service, and
> if the signature is valid.
>
> Thoughts?
>
> Abtin.
>
>
>