Re: HBH Obsolete? (was Review of draft-ietf-6man-hbh-header-handling-01)

神明達哉 <jinmei@wide.ad.jp> Mon, 28 March 2016 20:21 UTC

Return-Path: <jinmei.tatuya@gmail.com>
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 35A3C12DB6C for <ipv6@ietfa.amsl.com>; Mon, 28 Mar 2016 13:21:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.4
X-Spam-Level:
X-Spam-Status: No, score=-2.4 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 73E4S1_fwm-S for <ipv6@ietfa.amsl.com>; Mon, 28 Mar 2016 13:21:27 -0700 (PDT)
Received: from mail-io0-x22e.google.com (mail-io0-x22e.google.com [IPv6:2607:f8b0:4001:c06::22e]) (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 D19B212DB21 for <ipv6@ietf.org>; Mon, 28 Mar 2016 13:21:26 -0700 (PDT)
Received: by mail-io0-x22e.google.com with SMTP id e3so76416248ioa.1 for <ipv6@ietf.org>; Mon, 28 Mar 2016 13:21:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc; bh=LwNvGswyyn/nqVairv9fQNEYGThb5SFOqSsRA3Fa5t0=; b=rojl0lr4IUDS1ci5oa3rpgjktjeoZ7boYnM4rkU/HegGTXVGnOgnGeB1qt0EEisHsx jklyviua25So9P+vGI+Ybsf2LU7WN3A6KKGm/41+2B9ogbdNTljiMQcBZAfmnINPsXCL 9O3A8YfkKltkkP2KGl8F7pLnGDJv75qRjFuWyMTGRaSzkjElBtdfZFb+UAicTFCBY9B2 MbHaaTWHa2IuctEdHSCbckWWTfwI0APuOnaai1cpnNWy0HoSg1rdj1ev2nD7Y8/jHPwC MMybO9zzlf6BadXZMqMpWbz3X3LLWCwfwOME3PqaFuPCrrP/Yw/bwciXE7c1fT/n2zpi RI0w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to:cc; bh=LwNvGswyyn/nqVairv9fQNEYGThb5SFOqSsRA3Fa5t0=; b=Jnwqf5YwIrsMmoYtIhdtbvli1FZj9WhiN75k7v7E5K0VGtOhs/j6iwCkPOa2GvnYOd oJWupfT3ojW+dIHGSPmGjTenF6fR4kdAh+tfJuI1q42nNT2plWDh2Bg/7y8XfiXEwsB2 ipyTsGVYcSIEnif1gqqr1rbV0dhVITwUChDuSYPg2vJpzJgnoxAXqZ4UC04hL3Qe04am XUHcBc8VKIqfnqqlevg7Kb3GnFEarA3ye3BvOrsE7YsE2TxjTJy9fRtm9JELlZjKEYIA R/Ocr5t7CxAwLmi6EDrsaFvGl5RqEbnELdWQavMjTufYnTSnWDHeeu0lpswsx7PtF40g pyDw==
X-Gm-Message-State: AD7BkJKj7vNDDQKTtdlPtBF0nh1LVTPU+L7h/Gd1HhGC3MUoelq5FBvfCnCMuYzMrTz4CKcJwe0xNHHyZdXJAA==
MIME-Version: 1.0
X-Received: by 10.107.41.133 with SMTP id p127mr31058144iop.172.1459196486210; Mon, 28 Mar 2016 13:21:26 -0700 (PDT)
Sender: jinmei.tatuya@gmail.com
Received: by 10.107.143.204 with HTTP; Mon, 28 Mar 2016 13:21:26 -0700 (PDT)
In-Reply-To: <56F538ED.3060205@innovationslab.net>
References: <D319B9EC.72884%tmartin@cisco.com> <56F538ED.3060205@innovationslab.net>
Date: Mon, 28 Mar 2016 13:21:26 -0700
X-Google-Sender-Auth: 6qu0EW4ZZfgtSnhpzK4ae28QN-w
Message-ID: <CAJE_bqcNqsBHfv20cV4LLc=Av7qpU4_=bC187EJhQAOZ2MEa2A@mail.gmail.com>
Subject: Re: HBH Obsolete? (was Review of draft-ietf-6man-hbh-header-handling-01)
From: 神明達哉 <jinmei@wide.ad.jp>
To: Brian Haberman <brian@innovationslab.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/ipv6/KR6NKfJHaXEamsXGujrBUNmoGBs>
Cc: IPv6 IPv6 List <ipv6@ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.17
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: Mon, 28 Mar 2016 20:21:30 -0000

At Fri, 25 Mar 2016 09:11:09 -0400,
Brian Haberman <brian@innovationslab.net> wrote:

> > MLD requires the HBH with the router alert flag set
>
> Actually, it doesn't from what I have seen. The implementations I am
> aware of receive the MLD message because their interface(s) are
> configured to receive all multicast-addressed packets. They process the
> MLD messages because they recognize the ICMPv6 Type value as being an
> MLD message.
>
> Given my history of work in this area, I would be interested in knowing
> of any implementation that actually relies on the Router Alert option to
> process MLD messages.

I guess the main concern is commercial routers, but as far as I can
remember/see the kernel implementation of (some) BSD variants checks
the existence of the router alert option.  This is a code excerpt of
the NetBSD implementation:

    /*
     * Multicast check
     */
    if (IN6_IS_ADDR_MULTICAST(&ip6->ip6_dst)) {
...
        IN6_LOOKUP_MULTI(ip6->ip6_dst, m->m_pkthdr.rcvif, in6m);
        if (in6m)
            ours = 1;
...
    }
...
    if (ip6->ip6_nxt == IPPROTO_HOPOPTS) {
        if (ip6_hopopts_input(&plen, &rtalert, &m, &off)) {
...
        /*
         * accept the packet if a router alert option is included
         * and we act as an IPv6 router.
         */
        if (rtalert != ~0 && ip6_forwarding)
            ours = 1;
...
    }

So unless the node explicitly joins the specific multicast group
(IN6_LOOKUP_MULTI() succeeds) or it finds a router alert option in a
Hop-by-Hop options header, the kernel ignores the packet (as 'ours'
remains to be 0).

>From a quick look, recent FreeBSD implementations have removed the group
check and it seems to always accept any incoming multicast packets at
this layer.  It looks more likely to be an unintentional regression
than a deliberate behavior change, but I'm not sure about that.

--
JINMEI, Tatuya