Re: [v6ops] IPv6 link-local traffic questions

Mark Smith <markzzzsmith@gmail.com> Thu, 12 March 2020 01:19 UTC

Return-Path: <markzzzsmith@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 45A193A0FA9; Wed, 11 Mar 2020 18:19:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.599
X-Spam-Level:
X-Spam-Status: No, score=-0.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.998, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 mer6b-qTe9du; Wed, 11 Mar 2020 18:18:59 -0700 (PDT)
Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 8324C3A0FBA; Wed, 11 Mar 2020 18:18:59 -0700 (PDT)
Received: by mail-ot1-x331.google.com with SMTP id 66so4308834otd.9; Wed, 11 Mar 2020 18:18:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=R77eur8EFUJNuVVPcFlHYbjcYMuIu0X0oS+I/+iuGQ0=; b=XlezY51zTEuORcA6fjaGxW6vdQ/7EoFnsGROvbZ/+lYMDX80232SScHLyu7vGM5Nlu dVnd1MuQKa73pUecKcGWD03xnfFUXeGz8djLC1+TVktoRoeATJkPduOOeo3atQnWWq3H FGqBNVAjMI3+gs0hzv7BQq7gPrv5rNf+tzwPWJxLt34+VFZ/McFaMUr9+yc3M17jLaNN Le8J55uLZJcT87ZtWFSDqJ+NedQu56m/PCGG088yQPi3pqnn9RtJAqH5zg69qpmMnP7t Eu4QmdiWES65M86rcVFmrcZX82D4ifNIbh1Jw0S2c671+OmyGvkv9qU2/kueGLoZCPN6 NV0w==
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=R77eur8EFUJNuVVPcFlHYbjcYMuIu0X0oS+I/+iuGQ0=; b=MM3Ey9bhZJ7eTvfXQTPuPPmsism9++FX0XzfRRvI/yMv2k3dZHxSMsa+K1/0uiQNoV aXHMX4eV7rYKQNv4i+CpXXmBGKjD7VJar6CL6bsBenKm2vErPVnbCkBuj+mIeDXPjbwn gRscyuTcMyDWgbNTF57TM0ft4E/q06kB9VOVrGouTdDX9HrJ82EvsigUphCF20sQqzko kvPrNsC/B7+8nTbE5BOT9e1ONVqBloqbjzwZvaaS9x+1Sxjd0OvxjCJXYgM8AsfO1hsh PMSInK5g6UQ0xNRsNp1AatV0pbl+fX2fOrXwCw/6gKHY+CrYTkPtqRShghiuObRRzlv9 HZzw==
X-Gm-Message-State: ANhLgQ0JtQ+2Gp54Li/mcykIYgSO9Oisk8WrO82VL4lJdNU9FMmIKUQi Jpi+wnpK/AXncTOaRsGnaE3bJnAZNXzBorK8A+dANYBg
X-Google-Smtp-Source: ADFU+vsacyxf7FZOGP3Er/TlU3S/f6ed8ZdMdOn7iUEvpEJYQ8zS0njm0MwlUZeHztHtZkFIdfpZVWBtlO4Muf3QJ7Y=
X-Received: by 2002:a9d:4807:: with SMTP id c7mr4720678otf.74.1583975938492; Wed, 11 Mar 2020 18:18:58 -0700 (PDT)
MIME-Version: 1.0
References: <20200312000016.GO54522@faui48f.informatik.uni-erlangen.de>
In-Reply-To: <20200312000016.GO54522@faui48f.informatik.uni-erlangen.de>
From: Mark Smith <markzzzsmith@gmail.com>
Date: Thu, 12 Mar 2020 12:18:32 +1100
Message-ID: <CAO42Z2zfO9rA8NWfvNgBpWeJgLpuONr39Z2RgForyXCF=PrTrw@mail.gmail.com>
Subject: Re: [v6ops] IPv6 link-local traffic questions
To: Toerless Eckert <tte@cs.fau.de>
Cc: 6MAN <6man@ietf.org>, v6ops list <v6ops@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/WqwFIqdX9SzO0wPQ46jO3VJ4sHc>
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: Thu, 12 Mar 2020 01:19:01 -0000

Hi Toerless,

On Thu, 12 Mar 2020 at 11:01, Toerless Eckert <tte@cs.fau.de> wrote:
>
> Sorry for cross posting, but this is both ops and arch questions.
>
> I was trying to find any generic description that/if link-local IPv6
> traffic MUST/SHOULD use Hop-count 1, but could not find one in
> rfc8200 or rfc4291 and its updates. Instead, text like
> MUST set Hop-limit to 1 is repeated in various RFCs using link-local
> IPv6 traffic.
>

RFC4007  allows packets with link-local destinations to be forwarded
by a router, but only back onto the same link:


"Thus, if a
   router receives a packet with a link-local destination address that
   is not one of the router's own link-local addresses on the arrival
   link, the router is expected to try to forward the packet to the
   destination on that link (subject to successful determination of the
   destination's link-layer address via the Neighbor Discovery protocol
   [9]).  The forwarded packet may be transmitted back through the
   arrival interface, or through any other interface attached to the
   same link."

I think in theory that could also mean forwarded to another router on
the link that then forwards back again onto the link etc., so it is
valid for a packet with a link-local destination address to have an
initial Hop Count value that allows it to be forwarded by multiple
routers, all limited to being forwarded within the same link.

This draft might be useful, as it collects together and summarises
information about using Link-Local Addresses (and is something I've
been meaning to get back to updating, suggestions welcome):

How to use IPv6 Link-Local Addresses in Applications
https://tools.ietf.org/html/draft-smith-ipv6-link-locals-apps-00

Regards,
Mark.

> Am i overlooking something ? Or is this intentional in the IPv6 architecture ?
>
> If intentional, i guess it means: Any RFC introducing some type of link-local
> traffic can specify Hop-limit requirements for its traffic. As in
> "our WG likes 42 as the Hop-limit" (silly to me, but should be fine with
> IPv6 architecture then, right ?).
>
> In one of my draft document reviews using such link-local IPv6 traffic,
> EricV brought up the Q if that traffic shouldn't use RFC5082 instead
> of Hop-Count 1 too. But given how we do not seem to have architectural
> recommendations for TTL=1 (unless, quite likely i overlook something),
> and given how i am not aware of any actual use of GTSM, i am quite
> weary to go down that route. Aka: Would like learn of actual uses of
> GTSM with IPv6.
>
> There is an additional set of consideration re. link-local traffic
> when trying to use it as a HW accelerated tunneling mechanism across links,
> a use we both have in ANIMA, and maybe get the same in BIER (probably
> other WGs too, not sure).
>
> In implementations, i have seen quite a range of issues with
> accelerated forwarding planes across link-local addressed tunnels,
> and when using non-link-local addresses (loopback addresses),
> the HW plane forwarding might have issues doing HW forwarding, because
> usually TTL=1 is only used for control plane traffic. Of course,
> this is not a good architectural argument, but if given architectural
> leeway to even choose 42, maybe GTSM/255 is easier to be supported
> across various HW accelerated forwarding planes than 1.
>
> Opinions and experiences welcome!
>
> Thanks!
>     Toerless
>
> _______________________________________________
> v6ops mailing list
> v6ops@ietf.org
> https://www.ietf.org/mailman/listinfo/v6ops