Re: [dnssd] draft-aggarwal-dnssd-optimize-query-00

"Aggarwal, Ashutosh" <aaggarwa@qce.qualcomm.com> Thu, 24 July 2014 18:59 UTC

Return-Path: <aaggarwa@qce.qualcomm.com>
X-Original-To: dnssd@ietfa.amsl.com
Delivered-To: dnssd@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B7FA81A0146 for <dnssd@ietfa.amsl.com>; Thu, 24 Jul 2014 11:59:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001] autolearn=ham
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 BxnWmeJLtVWX for <dnssd@ietfa.amsl.com>; Thu, 24 Jul 2014 11:59:19 -0700 (PDT)
Received: from sabertooth02.qualcomm.com (sabertooth02.qualcomm.com [65.197.215.38]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 923C31A002A for <dnssd@ietf.org>; Thu, 24 Jul 2014 11:59:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qce.qualcomm.com; i=@qce.qualcomm.com; q=dns/txt; s=qcdkim; t=1406228359; x=1437764359; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=NUd6+lg9pyUq6dr4TjqXmWAW7MSxLFcQKnMKU7NJeiw=; b=bc0SVOwHt82o3bTdvaII8sxwkkmu8SCnHlBOnABMYVbMZ7OwjeW8yZwv KD4MXxZyuA0TMKmvfBMR6zBMdP/kb4hT89NFVEfJNkx7is7gEOwQz8vjB MD6vDdV4NMc3+Z01ONK7jRXne6dcvL/U6Cgw2AZ7zjD15qk7YxMVUj99S 8=;
X-IronPort-AV: E=McAfee;i="5600,1067,7509"; a="71717997"
Received: from ironmsg03-r.qualcomm.com ([172.30.46.17]) by sabertooth02.qualcomm.com with ESMTP; 24 Jul 2014 11:58:57 -0700
X-IronPort-AV: E=Sophos;i="5.01,725,1400050800"; d="scan'208";a="719020047"
Received: from nasanexhc04.na.qualcomm.com ([172.30.48.17]) by Ironmsg03-R.qualcomm.com with ESMTP/TLS/RC4-SHA; 24 Jul 2014 11:58:57 -0700
Received: from NASANEXD02B.na.qualcomm.com ([169.254.2.117]) by nasanexhc04.na.qualcomm.com ([172.30.48.17]) with mapi id 14.03.0181.006; Thu, 24 Jul 2014 11:58:57 -0700
From: "Aggarwal, Ashutosh" <aaggarwa@qce.qualcomm.com>
To: Tom Pusateri <pusateri@bangj.com>, "dnssd@ietf.org" <dnssd@ietf.org>
Thread-Topic: [dnssd] draft-aggarwal-dnssd-optimize-query-00
Thread-Index: AQHPp2p5gpdN6b7aTkawAnlhIRp6sJuvjI7Q
Date: Thu, 24 Jul 2014 18:58:56 +0000
Message-ID: <4ADFCA4A44B18946883BA96F64773E0150E2CF31@NASANEXD02B.na.qualcomm.com>
References: <D974B48F-6906-4FA4-B410-BB1BF364E964@bangj.com>
In-Reply-To: <D974B48F-6906-4FA4-B410-BB1BF364E964@bangj.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [172.30.39.5]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: http://mailarchive.ietf.org/arch/msg/dnssd/9oQ30Rw5Szgs_ZE-0ZN_GeyrM4g
Cc: "Dave Thaler (dthaler@microsoft.com)" <dthaler@microsoft.com>
Subject: Re: [dnssd] draft-aggarwal-dnssd-optimize-query-00
X-BeenThere: dnssd@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discussion of extensions to Bonjour \(mDNS and DNS-SD\) for routed networks." <dnssd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnssd>, <mailto:dnssd-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 24 Jul 2014 18:59:26 -0000

Thanks for your comments. Please see below:

-----Original Message-----
From: dnssd [mailto:dnssd-bounces@ietf.org] On Behalf Of Tom Pusateri
Sent: Thursday, July 24, 2014 11:10 AM
To: dnssd@ietf.org
Subject: [dnssd] draft-aggarwal-dnssd-optimize-query-00

Ashutosh,
	Interesting draft. I have a few comments.

1. In section 3, you describe the TXT record filters in the additional section. But you don't exactly specify what is in the query section. Does this apply only for queries to instances of TXT records or does this also apply to PTR queries for instances of services or for PTR queries for just the service itself or all three?

[Aggarwal, Ashutosh] 
This contribution was written to optimize the DNS-SD query scenario when the client application issues the PTR query with the service name. The contribution proposes to add DNS TXT records for such queries. 

2. There would seem to be a tradeoff in requesting too much or too little. If you apply TXT filters and then don't get any responses, you will have to query again with a broader filter. The optimal case will depend on the service you're looking for. In some cases you would have been better off without the filter. In other cases, knowing there is no match is useful too. Each application will have to make that tradeoff when it queries.
[Aggarwal, Ashutosh] 
You are absolutely correct regarding trade-offs. The pre-condition is that the client application knows what constraints or filters it is looking to apply and it should specify them in the initial query. It would be better than querying for the service name and then establishing a connection with each service instance for subsequent negotiation. If the client application doesn't need to apply any filter, it can send the query with the service name only. The decision regarding which keys/filters to apply is application specific as you mention. Just like DNS-SD has the provision for the responder to add key/value pairs in the DNS response message, the contribution proposes to enable the use of DNS TXT records in the PTR queries for the service name.

3. With your implied logical operations of TXT attribute filters, things could get confusing when there are multiple records queried at once. You should expand on section 3 to explain this after clarifying from question #1 which record types are in the query section. It's perfectly legal to query the PTR record for _printer._tcp.local and the TXT and SRV records for HP OfficeJet._printer._tcp.local in the same query. Will the TXT record in the additional records section have to be for an instance like HP OfficeJet._printer._tcp.local or does it apply to the PTR query for _printer._tcp.local? If the TXT record can be for a service and not a specific instance, this changes who responds.
When there are multiple TXT records in the additional section, it gets more confusing on how to apply the logical operations.

[Aggarwal, Ashutosh] 
[Aggarwal, Ashutosh] 
I added multiple TXT records details if we want to allow for complex filter criteria. I can add some examples to clarify for sure. We can discuss if we can summarize the desired filter criteria using a single TXT record. The filtering scheme was proposed for PTR query with the service name.

Hope this answers your comments,
Ashutosh


Thanks,
Tom
_______________________________________________
dnssd mailing list
dnssd@ietf.org
https://www.ietf.org/mailman/listinfo/dnssd