Re: [homenet] Updating DNS [was: How many people have installed the homenet code?]

Markus Stenberg <markus.stenberg@iki.fi> Sun, 24 April 2016 06:18 UTC

Return-Path: <markus.stenberg@iki.fi>
X-Original-To: homenet@ietfa.amsl.com
Delivered-To: homenet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DE0F312D109 for <homenet@ietfa.amsl.com>; Sat, 23 Apr 2016 23:18:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.821
X-Spam-Level:
X-Spam-Status: No, score=-1.821 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_NEUTRAL=0.779] autolearn=ham autolearn_force=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 L-zqZ8b6olH0 for <homenet@ietfa.amsl.com>; Sat, 23 Apr 2016 23:18:46 -0700 (PDT)
Received: from johanna2.inet.fi (mta-out1.inet.fi [62.71.2.230]) by ietfa.amsl.com (Postfix) with ESMTP id 3678912D0E0 for <homenet@ietf.org>; Sat, 23 Apr 2016 23:18:46 -0700 (PDT)
RazorGate-KAS: Status: not_detected
RazorGate-KAS: Rate: 0
RazorGate-KAS: Envelope from:
RazorGate-KAS: Version: 5.5.3
RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29
RazorGate-KAS: Lua profiles 69136 [Nov 12 2014]
RazorGate-KAS: Method: none
Received: from poro.lan (80.220.86.47) by johanna2.inet.fi (9.0.002.03-2-gbe5d057) (authenticated as stenma-47) id 5702409101A83249; Sun, 24 Apr 2016 09:18:43 +0300
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Markus Stenberg <markus.stenberg@iki.fi>
In-Reply-To: <CAPt1N1nq1CTMmQHFQXnaFY73SyRPKpWagiMVfrHODakbeT2Wxw@mail.gmail.com>
Date: Sun, 24 Apr 2016 09:18:42 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <C1CE9391-75EA-47E8-AF26-03A3CD27448B@iki.fi>
References: <6E709688-414A-4AFB-AEAE-56BAE0469583@coote.org> <87oa93vz8e.wl-jch@pps.univ-paris-diderot.fr> <917CFE11-2386-4B0D-8A81-F87764AC09A4@coote.org> <87lh47vtpe.wl-jch@pps.univ-paris-diderot.fr> <02CF43FB-CF81-4C0C-84E1-A8DFB27B3F8C@coote.org> <87lh44fff7.wl-jch@pps.univ-paris-diderot.fr> <48A9C52C-85BC-4123-A3ED-FB269AD03126@iki.fi> <87eg9wfctc.wl-jch@pps.univ-paris-diderot.fr> <CAPt1N1nq1CTMmQHFQXnaFY73SyRPKpWagiMVfrHODakbeT2Wxw@mail.gmail.com>
To: Ted Lemon <mellon@fugue.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <http://mailarchive.ietf.org/arch/msg/homenet/JgZVCxhEpf98CFXgfMtD3xR05XQ>
Cc: homenet@ietf.org, Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
Subject: Re: [homenet] Updating DNS [was: How many people have installed the homenet code?]
X-BeenThere: homenet@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: IETF Homenet WG mailing list <homenet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/homenet>, <mailto:homenet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/homenet/>
List-Post: <mailto:homenet@ietf.org>
List-Help: <mailto:homenet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/homenet>, <mailto:homenet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 24 Apr 2016 06:18:51 -0000

On 24.4.2016, at 6.03, Ted Lemon <mellon@fugue.com> wrote:
> Juliusz, the problem is that existing home network devices that do DNS-based service discovery do not support DNS update.   They could, but they don't, because we didn't define an easy way for them to do it.   Just 2136 isn't enough, because there's no authentication scheme, and name servers typically don't take updates from devices, nor is the default domain on a typical home network actually even under the control of the owner of that network.
> 
> The reason for doing mdns snooping is that we have no choice.   It's not a great solution.   However, I believe it can be done in a way that is clean and works.   It will not be stateless, although whether the state needs to be persistent is an interesting question.  mDNS isn’t actually entirely stateless anyway, FWIW.

mDNS has only locally published state (and non-local state caching which can be ignored if you do not care about query efficiency but you really should), and as hybrid proxies do not publish local state, they can be implemented statelessly. 
 
For home network case, probably just the DNS-SD legacy browse (‘flat names, hide domain’ scheme) with per-link hybrid proxy zones would work fine; as Stuart said, mDNS state caching (if implemented by the hybrid proxies) would make it relatively efficient (in terms of multicast; there would still be N unicasts per lookup where N is the number of links=zones, which would not be cached, but 0 multicasts if the mDNS caches on the hybrid proxies are up to date). As added bonus, no bogus domains would be shown to users, and you would just have two ‘printer’s if you were silly enough not to give them better names and they lived on different links.

> If you think this is a can of worms you’d rather not open, I can understand that, but Stuart and I have had some pretty good conversations about this, and I remain convinced that we can make it work, so I'd encourage you to see what comes out of that process rather than assuming that the situation is hopeless.

I am a Finn, we are pessimistic by default. But I am looking forward to what you come up with ;) 

If we want to get really pessimistic about this whole thing, though, it seems to me that the market is going for ‘cloudy’ solutions to anything, where there is no p2p communication _even on the same network_ but instead some cloud server intermediary, which when unavailable/expired/having a bad hair day, means you are simply not doing what you wanted to do.

Cheers,

-Markus