Re: [ipwave] [Int-dir] Intdir early review of draft-ietf-ipwave-ipv6-over-80211ocb-34 - 'conforming IPv6' - fe80::/10 vs fe80::/64

神明達哉 <jinmei@wide.ad.jp> Wed, 10 April 2019 18:19 UTC

Return-Path: <jinmei.tatuya@gmail.com>
X-Original-To: its@ietfa.amsl.com
Delivered-To: its@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id F1C4B12004E; Wed, 10 Apr 2019 11:19:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.67
X-Spam-Level:
X-Spam-Status: No, score=-0.67 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, FROM_EXCESS_BASE64=0.979, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=no 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 vLV19Lx5PPFA; Wed, 10 Apr 2019 11:19:31 -0700 (PDT)
Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) (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 DB4F4120049; Wed, 10 Apr 2019 11:19:30 -0700 (PDT)
Received: by mail-wm1-f68.google.com with SMTP id n25so3629492wmk.4; Wed, 10 Apr 2019 11:19:30 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=EIucgRiLhSo7eLLQ0Q0zX5Ejc6Odz+WgGDY+XFl2dSs=; b=RoKLz6cdCXqDcCe3yWEQqgh6ZoghGBXeFPW9hOrVUpq3XbMFux4UZBaylw6+Gu/VPD jqqkYUceWBfgG24Ixj19o82xMcSqoVwTR7MFI8m6d3LxMgY4Tc6iAjSwZCUhfDLNqbyG q7Jgp/ymc5pDqWpcmgUnUAd2oxgQ9YTLP+9TzvQSvUZ4FvRGradnaggWoky7f1sO/euE DEQouhftVr8i8M9UO6CdEmeOTit8F7GdqUVD+jk40fgD6mmvr2YDxY2ZpdB6uCJE1H6Q QBypZC4Ms5r67sKCHrwMCWQHgWFR+ZVeoz/n3vau4ehtOiFKsyS6MQg0WNP5eNuk0Va+ PS7g==
X-Gm-Message-State: APjAAAVLB+nUqSs8cWzF6lbekOD20OPRWaWvB9fzvC+sfLK0GdPrfp91 DguSDghuKMBAUCszBZwc+7n8/FwHHDqlB4nguJo=
X-Google-Smtp-Source: APXvYqxxDrl39hVZXjuxRP9YI+bf70XqWqe7o4a3lYVCGJH7Ds+a61t3C3VabAiEfkU40xFO15o9ieTv0HARfcJdeb4=
X-Received: by 2002:a1c:c181:: with SMTP id r123mr3692680wmf.13.1554920369116; Wed, 10 Apr 2019 11:19:29 -0700 (PDT)
MIME-Version: 1.0
References: <155169869045.5118.3508360720339540639@ietfa.amsl.com> <94941ef0-d0df-e8fe-091b-2e616f595eba@gmail.com> <c052e7a9-9acd-ecdd-9273-3142644dc5cd@gmail.com> <386b9f4c-f9b5-900c-817a-95df68226ed9@gmail.com> <cc9564f5-b049-fa99-31a4-98a9c9c1261a@gmail.com> <856F277E-8F26-48BC-9C57-70DC61AA4E06@employees.org> <c91328aa-72e4-c0be-ec86-5bfd57f79009@gmail.com> <1BF2A47E-3672-462B-A4EC-77C59D9F0CEA@employees.org> <2ba71d54-8f2f-1681-3b2a-1eda04a0abf9@gmail.com> <B618E1B8-1E01-4966-97B2-AAF5FC6FE38A@employees.org> <bf83d3c2-a161-310f-98f4-158a097314a6@gmail.com> <D1A09E57-11E2-4FBC-8263-D8349FBFB454@employees.org> <MN2PR11MB3565A36F02B010B12E709ABED82E0@MN2PR11MB3565.namprd11.prod.outlook.com> <39c49adc-65b2-bfa8-4f97-b1216d7a71a4@gmail.com>
In-Reply-To: <39c49adc-65b2-bfa8-4f97-b1216d7a71a4@gmail.com>
From: 神明達哉 <jinmei@wide.ad.jp>
Date: Wed, 10 Apr 2019 11:19:17 -0700
Message-ID: <CAJE_bqf0+JjX81TeoqmirgKw4KnHoJdkCmgBx0nfu+-OeWPP3A@mail.gmail.com>
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Cc: "Pascal Thubert (pthubert)" <pthubert@cisco.com>, Ole Troan <otroan@employees.org>, "draft-ietf-ipwave-ipv6-over-80211ocb.all@ietf.org" <draft-ietf-ipwave-ipv6-over-80211ocb.all@ietf.org>, Brian E Carpenter <brian.e.carpenter@gmail.com>, "ietf@ietf.org" <ietf@ietf.org>, "its@ietf.org" <its@ietf.org>, "int-dir@ietf.org" <int-dir@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000415f9f0586311c7c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/its/Q0Ap6rPSe7j3yj1v-aKSsX0GDYE>
Subject: Re: [ipwave] [Int-dir] Intdir early review of draft-ietf-ipwave-ipv6-over-80211ocb-34 - 'conforming IPv6' - fe80::/10 vs fe80::/64
X-BeenThere: its@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: IPWAVE - IP Wireless Access in Vehicular Environments WG at IETF <its.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/its>, <mailto:its-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/its/>
List-Post: <mailto:its@ietf.org>
List-Help: <mailto:its-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/its>, <mailto:its-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Apr 2019 18:19:33 -0000

At Wed, 10 Apr 2019 16:19:40 +0200,
Alexandre Petrescu <alexandre.petrescu@gmail.com> wrote:

> Pascal, fe80::/10 is not wrong, because:
> - using fe80::/10 on OCB works ok.
> - using fe80::/10 on Cisco, linux and openbsd works ok.

Specifically what do you mean by "fe80::/10 works"?  As I noted in a
separate message, unless you use a non-0 value in the intermediate 54
bits, that's effectively the same as fe80::/64.  So I guess "fe80::/10
works" implicitly means you can use a non-0 value in the intermediate
54 bits.  And then I don't see how it (always) works for OpenBSD.  Its
input code drops such packets:

    /* Drop packets if interface ID portion is already filled. */
    if (((IN6_IS_SCOPE_EMBED(&ip6->ip6_src) && ip6->ip6_src.s6_addr16[1]) ||
        (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst) && ip6->ip6_dst.s6_addr16[1])) &&
        (ifp->if_flags & IFF_LOOPBACK) == 0) {
        ip6stat_inc(ip6s_badscope);
        goto bad;
    }
(from https://github.com/openbsd/src/blob/master/sys/netinet6/ip6_input.c)

Besides, even if we we didn't know of an implementation that drops
these packets today, it doesn't guarantee future interoperability as
long as RFC4291 Section 2.5.6 so clearly specifies these bits are all
0; it wouldn't be surprising if a new implementation "abuses" this
fact in a way that is not interoperable with implementations that use
a non-0 value in these bits.  We can't simply blame that new
implementation as "broken" since it just follows the format specified
in the RFC, albeit perhaps too strictly.

So, if this ipv6-over-80211ocb spec needs to rely on the use of a
non-0 value in the intermediate 54 bits, it's not enough to say it
"works" for some existing implementations today (which is actually
already false as I explained above for the OpenBSD case).  It should
explicitly make an exception to this part of RFC4291, rather than
obscurely alluding to it with "fe80::/10", and declare that it
formerly updates RFC4291, so that any future implementation can be
surely interoperable with it.

I actually don't know if "this ipv6-over-80211ocb spec needs to rely
on the use of a non-0 value in the intermediate 54 bits", btw.  If
that's not the case, it's much safer and less controversial to just
not mention it (either in the form of "LL prefix length" or more
explicitly).  I guess that's also what others are suggesting (and I
agree with them in that sense).

--
JINMEI, Tatuya