Re: [DNSOP] comments on draft-ietf-dnsop-edns-client-subnet-00

神明達哉 <jinmei@wide.ad.jp> Wed, 25 February 2015 17:24 UTC

Return-Path: <jinmei.tatuya@gmail.com>
X-Original-To: dnsop@ietfa.amsl.com
Delivered-To: dnsop@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C57401A0193 for <dnsop@ietfa.amsl.com>; Wed, 25 Feb 2015 09:24:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.978
X-Spam-Level:
X-Spam-Status: No, score=-0.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=no
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 5zRTmfQKfxQE for <dnsop@ietfa.amsl.com>; Wed, 25 Feb 2015 09:24:03 -0800 (PST)
Received: from mail-ie0-x230.google.com (mail-ie0-x230.google.com [IPv6:2607:f8b0:4001:c03::230]) (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 9D2B91A0130 for <dnsop@ietf.org>; Wed, 25 Feb 2015 09:24:03 -0800 (PST)
Received: by iecvy18 with SMTP id vy18so6786844iec.6 for <dnsop@ietf.org>; Wed, 25 Feb 2015 09:24:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=dJyR/nJSYv/2xWGQUgOHJXjtZ4t1F4oJrHWWsRss3wA=; b=t9sbLdigxhMY2QM3p3WMnpy+WTI5lkAv4zqN6zt9ojYDMzh9OEWeEt9QEdkzCuD5Mq etJXf1UG0bZa8h9xubuij4fFblHS6tYE1VMODH6JU+Rysi4YC7Zu70+ueCPOKlDy7i60 8oWii+xAeyfNETujxxFksrzApldUxXnIs2hauSS1Cs/uQhOgQZ4SkcnOx/7aQ/SnKDj4 DH2A9Kekz0ovkyBQzXX5rjiOJ2MB1cPVoKpEwtenWaqrqNjqwcPJVezuaSr2cndgqCrF nHU9gSn9WO0mD2R+mV5ljRhCNDZovdLqwqjX+W68pIwfc37cc7U54ZmgUfeCOSbqVuD/ cdrQ==
MIME-Version: 1.0
X-Received: by 10.50.142.38 with SMTP id rt6mr28349347igb.17.1424885042880; Wed, 25 Feb 2015 09:24:02 -0800 (PST)
Sender: jinmei.tatuya@gmail.com
Received: by 10.107.11.154 with HTTP; Wed, 25 Feb 2015 09:24:02 -0800 (PST)
In-Reply-To: <CAHw9_iJauJzaU0gbEBUnxgggh3e0jjNo-x1XMGC6vz=NoqueuA@mail.gmail.com>
References: <CAJE_bqeY3g7s4HN=5XpoT5Z=4FqgRRTrmOXDSA_0sidWOZ5jiQ@mail.gmail.com> <CAHw9_iJauJzaU0gbEBUnxgggh3e0jjNo-x1XMGC6vz=NoqueuA@mail.gmail.com>
Date: Wed, 25 Feb 2015 09:24:02 -0800
X-Google-Sender-Auth: 1tSKjtoScb-h7rbb1Dm9srBvI1Q
Message-ID: <CAJE_bqfQCPBTu80Qx6hLyU35xxPeXpnyAC0AcLMT=ogs7BAVUg@mail.gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
To: Warren Kumari <warren@kumari.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/dnsop/ZKFkb9qkjR27GiFtkRQpujuqCCw>
Cc: draft-ietf-dnsop-edns-client-subnet@tools.ietf.org, dnsop <dnsop@ietf.org>
Subject: Re: [DNSOP] comments on draft-ietf-dnsop-edns-client-subnet-00
X-BeenThere: dnsop@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: IETF DNSOP WG mailing list <dnsop.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dnsop>, <mailto:dnsop-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dnsop/>
List-Post: <mailto:dnsop@ietf.org>
List-Help: <mailto:dnsop-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dnsop>, <mailto:dnsop-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Feb 2015 17:24:05 -0000

At Mon, 23 Feb 2015 15:23:23 -0500,
Warren Kumari <warren@kumari.net> wrote:

> > - Section 6.1
> >
> >    A Stub Resolver MAY generate DNS queries with an edns-client-subnet
> >    option with SOURCE NETMASK set to 0 (i.e. 0.0.0.0/0) to indicate that
> >
> >   I'd suggest: s/i.e./e.g./ since this may also be an IPv6 address (in
> >   which case FAMILY is set to 2)
>
> DONE.
> Good point, thank you.
>
> I updated this to be explicit ("(i.e. 0.0.0.0/0 for IPv4 or ::/0 for
> IPv6) "). This seemed cleaner than the example form.

I'm fine with this, but I remember we discussed whether hiding the
actual type (e.g. by always using an IPv6/IPv4 prefix) might be better
in terms of privacy.

> > - Section 6.3
> >
> >    fields, as detailed below.  Note that the additional and authority
> >    sections from a DNS response message are specifically excluded here.
> >    Any information cached from these sections MUST NOT be tied to a
> >    network.
> >
> >   What if the "optimized" reply is a negative one for some specific
> >   client addresses (while it's positive for some other addresses)?
[...]
> I think that we should just be excluding NXD - this fits in with my
> view of how ECS should work (and what NXD "means"). Noting that this
> explicitly.

I'm okay with this.

> > - Section 6.3
> >
> >    If the address of the client is within any of the networks in the
> >    cache, then the cached response MUST be returned as usual.  If the
> >    address of the client matches multiple networks in the cache, the
> >    entry with the longest SCOPE NETMASK value MUST be returned, as with
> >    most route-matching algorithms.
> >
> >   If I understand this (and Section 6.3 in general), the following
> >   "suboptimal" scenario could happen:
> >   - The Authoritative Server is configured with two prefixes for
> >     optimized responses: 2001:db8::/32 and 2001:db8:2::/48
> >   - The Recursive Server sends a query with SOURCE of 2001:db8:1::/48
> >   - The Authoritative Server finds the best matching prefix for the
> >     SOURCE is 2001:db8::/32 and returns a response corresponding to
> >     it, setting SCOPE NETMASK to 32
> >   - The Recursive Server receives the response and caches it
> >   - The Recursive Server receives a query from 2001:db8:2::1, and
> >     finds it has a matching cache (with prefix being 2001:db8::/32)
> >     and uses the cached response to answer the query, even if it could
> >     get the specifically optimized response for 2001:db8:2::/48 from
> >     the Authoritative Server.
> >
> >   Is my understanding correct?  If so, is this a problem to resolve or
> >   something we need to accept?
>
> Yup, very good point.
>
> A "good" implementation of the server could note that 2001:db8:2::/48
> is a subnet of 2001:db8::/32 and warn the user that the /32 may elide
> the /48. It could even break the /32 into shorter prexies (all with
> the same answer as the /32, apart from the more specific /48). I do
> not think that it is our place to specify which the implementation
> chooses, but I've noted that implementations MUST document what they
> do.

Hmm, according to the previous discussion in January, I was told that
it was my misunderstanding:
http://www.ietf.org/mail-archive/web/dnsop/current/msg13095.html
and this is my response to that:
http://www.ietf.org/mail-archive/web/dnsop/current/msg13099.html
http://www.ietf.org/mail-archive/web/dnsop/current/msg13101.html

In short, if the original intent was that explained in msg13095.html
I see it doesn't have the suboptimal case I described, but then I
believe the documentation should be much more clearer about the
intent.  I also had a concern about on complexity and cost.

--
JINMEI, Tatuya