Re: [dhcwg] [v6ops] [EXTERNAL] Re: Question to DHCPv6 Relay Implementors regarding draft-ietf-dhc-dhcpv6-pd-relay-requirements

Jen Linkova <furry13@gmail.com> Thu, 15 October 2020 01:47 UTC

Return-Path: <furry13@gmail.com>
X-Original-To: dhcwg@ietfa.amsl.com
Delivered-To: dhcwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 484AC3A11CD; Wed, 14 Oct 2020 18:47:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.848
X-Spam-Level:
X-Spam-Status: No, score=-1.848 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable 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 oTkzMTItogrc; Wed, 14 Oct 2020 18:47:28 -0700 (PDT)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (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 8F80E3A11CE; Wed, 14 Oct 2020 18:47:28 -0700 (PDT)
Received: by mail-qk1-x72a.google.com with SMTP id x20so1189370qkn.1; Wed, 14 Oct 2020 18:47:28 -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:content-transfer-encoding; bh=urTcejesMy1A1sx/u0QSzYHa0JHrpPEKYYIlT2SAQXs=; b=hlP3WuX6tYD9sv++Z07KLZNDsVv9cVb/WQ2J1cnffkr2Q1pGMABkjNWGeEUkPSONah On5tnX4pVHdp1h6LYzLTiLx0pVv15W3L1awlWNUgiK1fOONhjwltg3wncQQwksR56/c1 RjW0Ejap2gFrzYeSqp5Jz9o9FaLNRCVhc6ve4oKh7RNYQ8fOlZEYMPMf/T52ME3012C0 ssaxlNBHkPQr3AIvD9VDj5jYw+CcUuc9qJmt0A/J4k8A/svdWDgGrPXb5wkepyxJqwRH EMvgpM2XSYAVIlHGiM3OCSClOrZYE02318Ds0S8Qj2Ga6lmuNZSR/xT+Zhh6IElFiEp5 47tw==
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:content-transfer-encoding; bh=urTcejesMy1A1sx/u0QSzYHa0JHrpPEKYYIlT2SAQXs=; b=TNlJnlugmaiY2gQIg0X7W+vOfxleUJdxLJyXqlqX+DxlmFRqISeBPSZ3h5GoYPk0JA QMTkbrvrPBg5i+zAwyBruhPWgGbBg47kcLlKZBjCzDzomH05PiHybptLm58lD4rWFC3o 50LDpI6MaNn8E/r9hh2CZlRyYnoFspdjXxRhX70c1jfI5UDnGAwkx7HKQXVvPIYq263i tV7yYL96hzSLqJY3zBToh32/1LRpRNTFvHUaJx1zOa0ruPyUaziAPUCwirfisegcGWzt czSiFKEndaigmP/yZSOzgtn+rV/eHg18GJ4GkdY/ZFzdcD1wiua6NfWMNtPVbNnU71hZ 6cIA==
X-Gm-Message-State: AOAM533ZZoisxRgzKLwK25VTvAe+UqOdoPQP1MKUmR2aq1RkkdAyLOL+ 5/QZDTcLVtOfJ8FeSoQMogsfplsu5goiD4b5L78=
X-Google-Smtp-Source: ABdhPJxyNAL5hp+lqKrp8sftIXvsQ64rERBz4yVtgXn4boz+JrrXhfUMOZbl51WR7K+ArVJ+TW653mYlsJZ7AOVLm6o=
X-Received: by 2002:a37:a74e:: with SMTP id q75mr1930480qke.277.1602726447425; Wed, 14 Oct 2020 18:47:27 -0700 (PDT)
MIME-Version: 1.0
References: <5F6947F2-F7DF-4907-8DD5-28C2B20A91DE@gmx.com> <CAFU7BAT87uhUKZM-G9MjCgtmGbdCwXorP3SfMJm7_Ax7pvwDjg@mail.gmail.com> <f2a9e0188cd84f52adce279cfb04cbcc@boeing.com> <D259F559-8528-428A-A9DF-0D9FB07E6BE4@gmx.com> <BN7PR11MB2547029C572CB32F3C593AD7CF0B0@BN7PR11MB2547.namprd11.prod.outlook.com> <ff36a6d9f0834b5bbf331c6c40df16b8@boeing.com> <A0B74F43-07A4-47C2-B773-3F2071CFCED3@cisco.com> <CAFU7BARUKw_c2c9+3k9kJ0UqrATTruGKPGkVb5NPTo=vspb0NA@mail.gmail.com> <19432.1602258078@localhost> <644565BC-5818-4244-A34A-1B39C3FC9175@gmx.com>
In-Reply-To: <644565BC-5818-4244-A34A-1B39C3FC9175@gmx.com>
From: Jen Linkova <furry13@gmail.com>
Date: Thu, 15 Oct 2020 12:47:16 +1100
Message-ID: <CAFU7BAS4dRh6CavK8dc5v7GcU3ECTQKnXKOz6_9XsrZWNUyo7g@mail.gmail.com>
To: ianfarrer@gmx.com
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, "Bernie Volz (volz)" <volz=40cisco.com@dmarc.ietf.org>, dhcwg <dhcwg@ietf.org>, 6man <ipv6@ietf.org>, v6ops list <v6ops@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/dhcwg/D4POfcgY86NjjF5kSaG8-9ICX88>
Subject: Re: [dhcwg] [v6ops] [EXTERNAL] Re: Question to DHCPv6 Relay Implementors regarding draft-ietf-dhc-dhcpv6-pd-relay-requirements
X-BeenThere: dhcwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <dhcwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dhcwg/>
List-Post: <mailto:dhcwg@ietf.org>
List-Help: <mailto:dhcwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dhcwg>, <mailto:dhcwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 15 Oct 2020 01:47:30 -0000

On Wed, Oct 14, 2020 at 12:16 AM <ianfarrer@gmx.com> wrote:
> Thanks for all of the discussion on this. We’ve reworked the requirement as follows:
>
> R-4
> To prevent routing loops, the relay SHOULD implement a configurable policy to
> drop client traffic as follows:

I agree with Bernie's comment that 'client traffic' is a bit unclear.
Is it traffic from the client? Or to the client?
Maybe 'traffic with the destination address in a prefix delegated to a client'?

>For point-to-point links, when the packet's
> ingress and egress interfaces match. For multi-access links, when the packet's
> ingress and egress interface match, and the source MAC and next-hop MAC addresses
> match. An ICMPv6 Type 1, Code 6 (Destination Unreachable, reject route to
> destination) error message MAY be sent back to the client.  The ICMP policy
> SHOULD be configurable.
>
> Thanks,
> Ian
>
> > On 9. Oct 2020, at 17:41, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
> >
> >
> > Jen Linkova <furry13@gmail.com> wrote:
> >> I think there is confusion re: the scenario we are talking about. I've
> >> attached the diagram for the case which concerns me.
> >> So:
> >> - The Relay R has an interface eth0 connected to a switch S.
> >> - Devices A and B are connected to the same switch and using R as a
> >> default gateway.
> >> - The prefix 2001:db8::/56 was delegated to a client A via the relay R.
> >
> > a friendly amendment to your example to aid in human comprehension:
> >     } - The prefix 2001:db8:0000:0123:/64 was delegated to a client A via the relay R.
> >     }  - R installs a route for 2001:db8:0000:0123:/64 towards A via eth0.
> >
> >> - The device B (which has an address NOT from the delegated prefix,
> >> but from another /64 assigned to that common link, let's sat
> >> 2001:db8:cafe::/64) sends a packet to an address from the delegated
> >
> > now, my brain can more clearly see that 2001:db8:cafe::/64 is not
> > within 2001:db8:0000:0123:/64, while I had to use a few extra brain cells to
> > see that it wasn't in that ::/56 :-)
> >
> >> What I'd expect to happen (with DHCP-PD or without - e.g. if R has a
> >> static route towards A, not a dynamic route produced by PD):
> >> - the packet is sent to A. Well, if A does not have a route to
> >> 2001:db8::42 then indeed a routing loop might happen. But if A does
> >> have a route, the packet will be delivered.
> >
> >> What seems to be required by R4:
> >> - R detects that the packet is received via eth0 and needs to be sent
> >> back to eth0. R4 seems to require such packets to be dropped.
> >> So if B would never be able to communicate to any address in the
> >> delegated prefix, right?
> >
> >> Am I missing anything?
> >
> > I think that you got it right.
> >
> >>> Perhaps the missing piece of the rule is don’t send it back to where it came from, based on link layer addresses (or link if point-to-point).
> >
> >> Yes. If R4 was saying 'drop the packet if it comes from the same
> >> link-layer address you are going to send it back' - it would make
> >> total sense. But I don't think routers do *that*.
> >
> > Yes, if we made the check on L2 address, then it would work.
> > And I agree that routers are exactly doing that.
> >
> > I think that it also works if B is a router with additional interfaces
> > downstream, unless there are multiple paths.
> >
> > --
> > Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
> >           Sandelman Software Works Inc, Ottawa and Worldwide
> >
> > --------------------------------------------------------------------
> > IETF IPv6 working group mailing list
> > ipv6@ietf.org
> > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> > --------------------------------------------------------------------
>


-- 
SY, Jen Linkova aka Furry