[v6ops] Microsoft Win10 source address selection woes

Mikael Abrahamsson <swmike@swm.pp.se> Thu, 07 September 2017 10:53 UTC

Return-Path: <swmike@swm.pp.se>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 22A9A132EE4 for <v6ops@ietfa.amsl.com>; Thu, 7 Sep 2017 03:53:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=swm.pp.se
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 7ujAIbDQTkaB for <v6ops@ietfa.amsl.com>; Thu, 7 Sep 2017 03:53:43 -0700 (PDT)
Received: from uplift.swm.pp.se (ipv6.swm.pp.se [IPv6:2a00:801::f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C275126D0C for <v6ops@ietf.org>; Thu, 7 Sep 2017 03:53:43 -0700 (PDT)
Received: by uplift.swm.pp.se (Postfix, from userid 501) id F203FB1; Thu, 7 Sep 2017 12:53:40 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=swm.pp.se; s=mail; t=1504781620; bh=EpVjrpaobY/XcPEwd0T+5OCK4cO1eWcAefmPHGtFNTQ=; h=Date:From:To:Subject:From; b=bE8vjtE3MGucLhxJk7gF9ft8g9FcUGSaSDYRp0xcLl6it/1O97uJEIjtDtGjsSSeY TVE6LiqMLEE6Q9CqtwDYsy+Z3Vd7fnTV/CNzIatrWojj3oFAowD3Ih9iZa24V2IrUT d6dKvUVJAitqEV2Ie6cKDT2CHMI/oAki3AL3J0/c=
Received: from localhost (localhost [127.0.0.1]) by uplift.swm.pp.se (Postfix) with ESMTP id DAE22AF for <v6ops@ietf.org>; Thu, 7 Sep 2017 12:53:40 +0200 (CEST)
Date: Thu, 07 Sep 2017 12:53:40 +0200
From: Mikael Abrahamsson <swmike@swm.pp.se>
To: v6ops@ietf.org
Message-ID: <alpine.DEB.2.20.1709071245380.29378@uplift.swm.pp.se>
User-Agent: Alpine 2.20 (DEB 67 2015-01-07)
Organization: People's Front Against WWW
MIME-Version: 1.0
Content-Type: text/plain; format="flowed"; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/MWXkHn14SPMrcg9riqIL7rZbTyo>
Subject: [v6ops] Microsoft Win10 source address selection woes
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 07 Sep 2017 10:53:45 -0000

I am finding interesting behavior with my fully updated Win10. It seems to 
prefer "public" address over temporary, which doesn't seem to follow 
RFC6724. These addresses are all in the same /64, I am running with A=1.

(obfuscated some fields)

>netsh int ipv6 sho addr

Interface 6: Ethernet

Addr Type  DAD State   Valid Life Pref. Life Address
---------  ----------- ---------- ---------- ------------------------
Temporary  Deprecated    5d2h5m1s         0s PREFIX:8403:XYZ:f15e:d720
Temporary  Preferred    6d2h3m27s    2h1m57s PREFIX:a910:XYZ:ef8e:3484
Public     Preferred  29d23h57m11s 6d23h57m11s PREFIX:c16d:XYZ:XYZ:a45c
Other      Preferred     infinite   infinite fe80::c16d:fb79:XYZ:XYZ%6

Now, when I use web browsers (firefox/chrome/edge) they all use the public 
address for outgoing connections. This is not what I expected (and not 
what I see on my MacOS machine).

RFC6724 rule 7 seems it should indicate that temporary address should be 
chosen. However, RFC3484 says public addresses should be chosen over 
temporary ones, unless specific API calls are made.

Does this mean Windows 10 doesn't implement RFC6724 but instead implements 
3484?

-- 
Mikael Abrahamsson    email: swmike@swm.pp.se