Re: A common problem with SLAAC in "renumbering" scenarios

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 20 February 2019 15:35 UTC

Return-Path: <mcr+ietf@sandelman.ca>
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 8D293130DEF for <ipv6@ietfa.amsl.com>; Wed, 20 Feb 2019 07:35:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level:
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-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 Y8jek-KW9TfO for <ipv6@ietfa.amsl.com>; Wed, 20 Feb 2019 07:35:20 -0800 (PST)
Received: from tuna.sandelman.ca (tuna.sandelman.ca [IPv6:2607:f0b0:f:3:216:3eff:fe7c:d1f3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 35CC61200D8 for <ipv6@ietf.org>; Wed, 20 Feb 2019 07:35:20 -0800 (PST)
Received: from sandelman.ca (unknown [IPv6:2607:f0b0:f:2:56b2:3ff:fe0b:d84]) by tuna.sandelman.ca (Postfix) with ESMTP id 80BA638263; Wed, 20 Feb 2019 10:35:10 -0500 (EST)
Received: by sandelman.ca (Postfix, from userid 179) id BD062236B; Wed, 20 Feb 2019 10:35:17 -0500 (EST)
Received: from sandelman.ca (localhost [127.0.0.1]) by sandelman.ca (Postfix) with ESMTP id BB9822348; Wed, 20 Feb 2019 10:35:17 -0500 (EST)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Mikael Abrahamsson <swmike@swm.pp.se>
cc: Lorenzo Colitti <lorenzo@google.com>, 6man WG <ipv6@ietf.org>
Subject: Re: A common problem with SLAAC in "renumbering" scenarios
In-Reply-To: <alpine.DEB.2.20.1902200952530.24327@uplift.swm.pp.se>
References: <60fabe4b-fd76-4b35-08d3-09adce43dd71@si6networks.com> <4c5fab33-2bff-e5b5-fc1d-8f60a01a146d@go6.si> <b4525832-9151-20bf-7136-31d87ba6c88d@huitema.net> <463f15cf-2754-e2e8-609d-dc0f33448c6c@go6.si> <ff649810-7242-7bc2-d36f-3f998f7bdd71@asgard.org> <9CDF41CA-83B4-4FC4-B995-EF79727C5458@steffann.nl> <CAO42Z2wA+vLmU7+sU6xLK7TO6pWfNQA5shs9zp=PqANCihLmBQ@mail.gmail.com> <BAB3061A-1808-4C0E-AA1B-2D7DD5BA63FC@employees.org> <bbd8b761-403a-5b3f-3f04-dc3bfdea116e@foobar.org> <6F3036C6-50A1-43C6-B554-31293B69E59D@employees.org> <433607c1-dbc6-a42e-cb17-dc209e33bdaa@si6networks.com> <12EA4FAE-BE3D-4CFE-9837-DF052F79A998@employees.org> <5bc3eaf0-3ef0-d954-b228-00a7faac7f4c@si6networks.com> <CAO42Z2wa9gWoB_bWrYt79urHF8ihmMAbjDSZCBoZa8dn8SCNFw@mail.gmail.com> <alpine.DEB.2.20.1902200735480.24327@uplift.swm.pp.se> <CAO42Z2xwyes97LAy1duXpJMeknJhmkA6yV-tWCPLmw6QvOuKbQ@mail.gmail.com> <CAKD1Yr0t8MEg-SRukTKM9VjLSaJB4tc-uhxJkX2U-3gQX2PvWQ@mail.gmail.com> <alpine.DEB.2.20.1902200952530.24327@ uplift.swm.pp.se>
X-Mailer: MH-E 8.6; nmh 1.7+dev; GNU Emacs 24.5.1
X-Face: $\n1pF)h^`}$H>Hk{L"x@)JS7<%Az}5RyS@k9X%29-lHB$Ti.V>2bi.~ehC0; <'$9xN5Ub# z!G,p`nR&p7Fz@^UXIn156S8.~^@MJ*mMsD7=QFeq%AL4m<nPbLgmtKK-5dC@#:k
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha256"; protocol="application/pgp-signature"
Date: Wed, 20 Feb 2019 10:35:17 -0500
Message-ID: <27936.1550676917@localhost>
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/e1BF568jVIX3ZE8byCLZT7Hk2AY>
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: Wed, 20 Feb 2019 15:35:23 -0000

Mikael Abrahamsson <swmike@swm.pp.se> wrote:
    >> That doesn't really make sense on a mobile platform. When you switch from
    >> wifi to cell data, you probably don't want to keep that connection alive
    >> until that specific wifi network comes back. Instead you want to give the
    >> app an error as soon as possible so it can retry the failed connection on
    >> the new network. On Android, TCP connections are closed the instant their
    >> IP address goes away. I don't know what iOS does.

    > I contacted linux-netdev about this, and I got no sympathy to close down the
    > sessions if the addresses were gone. "Oh, the addresses might come
    > back". Even when I said I'd like to be able to have this as a setting to
    > close down the sessions, that I knew it won't come back I kept getting ""how
    > do you know?"

Hmm. You know because you are writing the "DHCP" daemon :-)
This reminds me of the /dev/pty allocation problem, or the good-ole
/dev/tty00 background process.... some googling found:
        https://jdebp.eu/FGA/bernstein-on-ttys/cttys.html

There is a system call, which I can't remember, which kills all other access
to a tty... clearly we want to do exactly that when we realize that a device
has changed provisioning domains.

Well.. maybe each time we are in a new provisioning domain, we want to spawn
a "macvlan" device with the new randomized layer-2 address, and use that.
Just let the old one hang around until everything times out... or maybe, we
they say, "it could come back"

    > How do you close them in Android? Did you write your own userspace code to
    > find sockets bound to addresses that were no longer available and close them
    > down?

No, I don't think that this happens.




--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-