Re: Running code (Was: I-D Action: draft-ietf-6man-ipv6only-flag-03.txt)

Simon Hobson <linux@thehobsons.co.uk> Sat, 27 October 2018 11:44 UTC

Return-Path: <linux@thehobsons.co.uk>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F2F8B130EDB for <ipv6@ietfa.amsl.com>; Sat, 27 Oct 2018 04:44:33 -0700 (PDT)
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, URIBL_BLOCKED=0.001] 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 mKtrvNRDAiwB for <ipv6@ietfa.amsl.com>; Sat, 27 Oct 2018 04:44:31 -0700 (PDT)
Received: from patsy.thehobsons.co.uk (patsy.thehobsons.co.uk [80.229.10.150]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DC42B130ED4 for <ipv6@ietf.org>; Sat, 27 Oct 2018 04:44:30 -0700 (PDT)
X-Quarantine-ID: <zw7GLwYNOgIS>
X-Virus-Scanned: Debian amavisd-new at patsy.thehobsons.co.uk
X-Amavis-Alert: BAD HEADER SECTION, Header line longer than 998 characters: References: <CA[...]
Received: from simons-macbookpro.thehobsons.co.uk (Simons-MacBookPro.thehobsons.co.uk [192.168.137.111]) by patsy.thehobsons.co.uk (Postfix) with ESMTPSA id 248D91BC37 for <ipv6@ietf.org>; Sat, 27 Oct 2018 11:44:23 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Subject: Re: Running code (Was: I-D Action: draft-ietf-6man-ipv6only-flag-03.txt)
From: Simon Hobson <linux@thehobsons.co.uk>
In-Reply-To: <0be69133e9a34199b5796410684ab226@boeing.com>
Date: Sat, 27 Oct 2018 12:44:20 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <B9BFDF77-7D97-43B5-A21B-E79422BF22DB@thehobsons.co.uk>
References: <CAFU7BASO_ByzbanhLKnWV280O_fASd-8W+ujpj3sN6d2-whw2w@mail.gmail.com> <CACWOCC-u7aAPwAOcixYvt2On=-o_8X25GhqdXTfA+tWRC1o2XA@mail.gmail.com> <3beca72e-19c5-10af-02e5-c21a90d77100@gmail.com> <20181019.223739.271916573.sthaug@nethelp.no> <4f58643c-272e-507e-3282-c87befd42395@gmail.com> <0927741c-4e8e-fcf7-ddd6-3ba500ba4c3d@si6networks.com> <7B48A11D-31DE-443C-B73A-14642EA0A397@jisc.ac.uk> <7526af75-4359-6fc6-e39b-eb94024a04de@si6networks.com> <E1BB1232-C1A2-496A-8157-0682D91EED42@steffann.nl> <5E75F3CA-F1D2-4F4F-9CF7-EEEE59634C1E@gmail.com> <C46C990E-0A4F-4731-8CB1-FD204858935E@consulintel.es> <9B53019C-3506-4C9E-AFCF-D6125FA1A65B@gmail.com> <1157b739-3a66-8d45-e3e1-e5f904dfb9bc@asgard.org> <a00607f9-7ced-f889-b5cb-c2fe16367d73@si6networks.com> <66759b73-0a22-e1a9-49db-21154e8e1267@gmail.com> <37ba23b3-df19-9c2a-bdbe-ba7a99d72d05@si6networks.com> <0d6008a4-337b-2ccb-2d9f-837f786eca65@gmail.com> <bfa4397a-aa7a-1184-4147-4cbfbfd13603@si6networks.com> <8C587906-F0EE-4A61-9046-2BF AC52588C0@isc.org> <E8DE18B5-94FC-411C-A310-E49A382E0079@thehobsons.co.uk> <e0fa8fad1b4249c9af79788323b0a922@boeing.com> <3A03A073-72E2-43A8-90A4-5C29DF445361@thehobsons.co.uk> <27fdbd71125842d888c5136684bf6e7b@boeing.com> <9A4368D6-E4B1-474C-9838-B584AF6D70C8@thehobsons.co.uk> <a3a2d823c38f44d48b301e2ca657e352@boeing.com> <6EE067A5-3536-4EDD-80D9-D98783DE57CE@thehobsons.co.uk> <0be69133e9a34199b5796410684ab226@boeing.com>
To: 6man WG <ipv6@ietf.org>
X-Mailer: Apple Mail (2.2104)
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/eG00OWskr3nrDqsiE0TCMbMtANY>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 27 Oct 2018 11:44:34 -0000

Manfredi (US), Albert E <albert.e.manfredi@boeing.com> wrote:

>> You've missed the fact that most nodes these days will autoconfigure a link-local IPv4 address. So "no address = no protocol" doesn't work. "no address (other than link-local) = no protocol" doesn't work either as it would break any network using link-local addressing - they do exist.
> 
> No problem, right? With the IPv6-ony flag set, what would a host do? If it does autoconfigure an IPv4 address, maybe to talk to some old printer

OK, explain how the device is to know whether or not it should be turning on IPv4 to see if there's an IPv4 printer it needs to talk to ?
If it does turn on IPv4, then you've missed the opportunity to save battery power generating IPv4 packets.
If it doesn't turn on IPv4 then it won't know if the printer is there to be found.

And since the printer may not be switched on when it first does the checks, then it would need to keep IPv4 on "just in case".

> There is nothing here that the flag changes.

Yes there is.
If the host sees that all RAs carry this flag set, then they can know that the admin is declaring that there aren't any IPv4 only devices that the device need be bothered with. It can leave IPv4 turned off, and not worry about not finding something it might need to.

IFF there is an old IPv4 only printer that the user needs to access, then the admin would not set this flag. The point you continue to miss is that the humans responsible will know what is and isn't there, and what can and can't be ignored. So if (for example) all printers (and other devices) are now IPv6 enabled OR ARE BEING DEPRECATED, then it's OK to set this flag.
There is NO WAY WHATSOEVER for ${random_device} to know this. It cannot differentiate between IPv4 traffic that's there because there are IPv4 only devices it may need to communicate with, and IPv4 traffic that's there because some devices haven't turned it off and you have no need to talk to them via IPv4.

I could even imagine networks where DHCPv4 is still provided, there is still IPv4 being actively used by legacy devices, but this flag is set because any device "new enough" to understand this flag and act on it doesn't need to still use IPv4.

If you think a device can figure out all this by itself, then again I suggest you write down explicit rules.


> And besides, who knows what hosts will do when they receive that IPv6-onky flag. We are simply speculating. Whether the better heuristics, or this new flag, makes little difference.

Well the advice in the RFC is to stop using IPv4. If they don't then it won't break anything else on the network, it'll just prevent them taking advantage of the battery/CPU/memory usage savings available.

> And our new heuristics can do exactly the same thing, without a flag. To conserve power, try first IPv6, and use only IPv6 if it works. If not, give IPv4 a short try.

So IPv6 works - as it should on any IPv6 only **OR** dual-protocol network. So why do you think that gives you any clue about whether IPv4 is still in use ?

> A host might still want to go to that old printer which only uses IPv4

In which case, the admin won't set the flag - if they do then that's a misconfiguration just the same as setting wrong information in DHCP would be. Really this is just basic network admin stuff - like "don't turn off your IPv4 routing if there are still IPv4 only devices needing it" !

> Reliably and automatically is to allow the device to use IPv6 and IPv4, i.e. the default. It will do just what the flag intends.
> 
> I just don’t see why the insistence on this flag, if I can do just as well without, and furthermore, without having to trust a net admin to set this flag.

You still don't get it do you. Continuing to use IPv4 when it's no longer supported on the network has a cost - it takes power, CPU cycles, memory, and network bandwidth. For battery powered devices, any saving is desirable; for wireless networks, bandwidth saving is desirable. So by having devices use this information, they can have better battery life, and all users of the wireless network can have better performance.

> The simple fact is, no one is begging for this flag

Well they have been begging for this flag - enough to keep this discussion going through quite a few revisions of the text etc.

> An equipment vendor serious about saving power has other options he can pursue on his own.

No they aren't - you have yet to come up with plausible rules for a host to do this on it's own. And remember, these rules need to work both for the IPv6 only networks **AND** not break any other networks the device may connect to.

> A network operator serious about preventing IPv4 chatter is perfectly capable of L2 filtering, wherever that's available,

L2 filtering does not completely remove the chatter - devices will still be sending ARP packets, they can still generate link-local addresses, they can still send (eg) mDNS packets. OK, filtering them will reduce (possibly eliminate depending on where it's done) the re-broadcast of them on the wireless network - but it won't prevent them being generated and taking up some bandwidth.

> Either way, the only hosts which will NOT holler, when you shit off IPv4, are the updated ones. Updated to read this flag, or updated with the better heuristics, makes no big difference.

Again, you've missed the point - it's not about hosts hollerin, it's about allowing hosts to operate more efficiently. It's already been talked about - "what about the legacy devices ?". Well these will be no worse off when you remove IPv4 services from the network, but they could actually be better off with the chatter removed from the devices that honour this flag.