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

Ted Lemon <mellon@fugue.com> Thu, 17 December 2020 23:35 UTC

Return-Path: <mellon@fugue.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 0E8313A0972 for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 15:35:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=fugue-com.20150623.gappssmtp.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 s2so4EuM8A-y for <dnssd@ietfa.amsl.com>; Thu, 17 Dec 2020 15:35:56 -0800 (PST)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 E41CC3A09C9 for <dnssd@ietf.org>; Thu, 17 Dec 2020 15:35:55 -0800 (PST)
Received: by mail-qk1-x72a.google.com with SMTP id 186so498475qkj.3 for <dnssd@ietf.org>; Thu, 17 Dec 2020 15:35:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fugue-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=4B9qo6in9HVvya5loDyDYTFfoEO3RrqXo0oH75TpwsI=; b=xsh/WMcjsVxmR3zbeW+YgOHHjr2t9rfreAlJDsKOdUxZBKrkSC7lES4AVSDRI9+NRJ 22fuT08aQ/Yl36wIpO1BVnPz04CG5E2ownn3ZokTGGMf7dOWS8xN6nI4bgawqrVFI+BX 5WoWI8Fhd+bw0FP4kIZsjXkNgRwclOeuuM5rxiqmjfzBKP0FuQJ0zvbTuFO154sf73Vr w+HCd1oo+9DEm1G8rtEdXTxqsDnMehhzZe9VifF9Dbuucjamex+CQzbIOryYOpp4fBJ2 oL9qnKuSY/eaMcfH4uLjG1x5LNIehW8+oqaKrC+FDVc1rMJzKIwUXb65l11BmQceYXfo VZ3A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=4B9qo6in9HVvya5loDyDYTFfoEO3RrqXo0oH75TpwsI=; b=AtFMOVNyugS4j0hekJM4DsackTmHEUZRxJD993zFyQiMuNyIcwnFCXRctKKwxjpiMU K50xY0SBhfiuWcDpCg4raysA/usgsX/KsYuN781JBhgvGAeqXzFT0l90Br+i5z+auafg mGokjd9x2yFfDGALgeZbzdSEFZSAre5joqSbRm/z7o6DBRJq+RdGjAtbwNQfL/16sxMN 2lg7y+xUfKGW5bexuevC+drLzCSEIIFiDYhdbAQZl3onYDjo0zMjYKIA8xCAmlbjS2mk FeJ1q6lLRLTh8J7DlI6GKOEzk6jgd0qykTTFnq9/sjYczpxRnO1kkFEHIHPm71wvhrdC wPiA==
X-Gm-Message-State: AOAM533xQQiF1T0kpivNA3AqOQ1JqS4bYVIIN7md3jvE7F8oH3SwqYko MrEMCtKxh+W8lRmeaEkikfGtPA==
X-Google-Smtp-Source: ABdhPJzKFfx4KqaZWRmIU5w5T5oSBwnUfdNlw7kirWAahUjtPW/yt3yTZLf3XMj+Al01pKymuaqFug==
X-Received: by 2002:a37:aa15:: with SMTP id t21mr1985405qke.86.1608248154773; Thu, 17 Dec 2020 15:35:54 -0800 (PST)
Received: from [192.168.4.70] (c-24-91-177-160.hsd1.ma.comcast.net. [24.91.177.160]) by smtp.gmail.com with ESMTPSA id u7sm4674439qke.116.2020.12.17.15.35.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Dec 2020 15:35:54 -0800 (PST)
From: Ted Lemon <mellon@fugue.com>
Message-Id: <031C980F-D8B6-4051-8DC0-D8417FDBBD0F@fugue.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_52DF5875-6973-46CA-A5AE-510F32C57C91"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Date: Thu, 17 Dec 2020 18:35:51 -0500
In-Reply-To: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com>
Cc: dnssd@ietf.org, Jonathan Hui <jonhui@google.com>, Kangping Dong <wgtdkp@google.com>, Rongli Sun <rongli@google.com>
To: Abtin Keshavarzian <abtink@google.com>
References: <CACce4dTbWCVwBityepJpb5FF4Rv43+DUev_0Ka+rVT9exZrJzA@mail.gmail.com>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/dnssd/T4AFkf1G0OjsyPZgWEcNBMj5SBs>
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: Thu, 17 Dec 2020 23:36:04 -0000

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.