Re: IPv6 Anycast has been killed by LINUX patch in 2016 - who cares?

Tom Herbert <tom@herbertland.com> Sun, 08 August 2021 19:23 UTC

Return-Path: <tom@herbertland.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 AF9CB3A136E for <ipv6@ietfa.amsl.com>; Sun, 8 Aug 2021 12:23:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland-com.20150623.gappssmtp.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 AXst_YCJrpmT for <ipv6@ietfa.amsl.com>; Sun, 8 Aug 2021 12:23:41 -0700 (PDT)
Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 A1BF63A136A for <ipv6@ietf.org>; Sun, 8 Aug 2021 12:23:41 -0700 (PDT)
Received: by mail-ed1-x52e.google.com with SMTP id by4so2501095edb.0 for <ipv6@ietf.org>; Sun, 08 Aug 2021 12:23:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6do7nsRqZXzD/hNEUSetybb1NGQqV+0qMtU/URQRpek=; b=RL7Sgn20frPUKJ0CfSO+iBKEZLRdVrPU75yFLQM70oJHjBNu+0GgisevwlcR0+7yCJ AFjVFq3JcICtR8jhf2AsT7qQkz1h0xsZibBuKbvA5vHfeuzsjPaV7a9VB3n7BFoto8w3 /EkbjPtU2cNX2Z831TqNUtHDVW5NnU4fWeShbHR6bv2t3AIJJT3JX2A9nqXegwPImAeq vHZuFq4AKAoBVqFuyl4M8OiPCPhElpwTrQpzbeZ1U0Lwz28BZihhX+LTS77CQzb6h6gs SbQ38lcZBemb5A5rcHvIM2yHaudoRnN77VB+zjD1vrX0eNxxvZJ9YNih60cJPy90PZAw mwSQ==
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=6do7nsRqZXzD/hNEUSetybb1NGQqV+0qMtU/URQRpek=; b=sVs9ckAEEqQlqdGAdFoNF3CTgS1MTd+nsTWwfw32aTc7aXxidlQsFYi/g5bjE0O9TI 5sD+WqIJuKdJZV8g4maXDYR/hdH892L7RubKRXCBbZqpreFVvw3gH2n83L1IVK0kANv8 NTtapEgWcsi+UP+4P5SSVsMK2nZ8RqDwRJKr+Tmu4fjyF5tLab37339MYUY8tzLD2QX3 R76aLBccW5i4Mb/JOlnSyGRA3Tk0P9fQeTuW914k6BQC48NMxjwd2b8nodl7p35Lmluz nxVYuj29feEPFdUyls/0d/UZwxrctzu5hgHvDCWW2Ug1FYOy0kmwyv/6zGNeUfgGxzFU 6odA==
X-Gm-Message-State: AOAM530IATpXIEcMTcGhwHMpGAUImMcKAq9/34hsmqQD89fG7EfgUSsa CbmxbirYy+CW1oT5bnhE+Vg6qxfQ+ncTTOidafJH1w==
X-Google-Smtp-Source: ABdhPJwC9+meygZuew8MJg210FUV1/FL5YdK5sAFPfKbATJtQYr5uMbD71okG2L7Olk6XiY7qGUGzSR0JgNKD8wqKV8=
X-Received: by 2002:a05:6402:3507:: with SMTP id b7mr25685981edd.293.1628450617923; Sun, 08 Aug 2021 12:23:37 -0700 (PDT)
MIME-Version: 1.0
References: <db8c1a5534e9412ebcfa37682d75f862@huawei.com> <C23D7023-B5B7-47C6-8AC5-65A98822A724@lurchi.franken.de> <CANMZLAZGawUjRhSSE_rA8AyqMx=mx1WFeJ_tZq0KVEXJd2XBfQ@mail.gmail.com> <20210807014730.GA28901@faui48f.informatik.uni-erlangen.de> <CAO42Z2yezZh5-B0PwCuNt2FUMAW-FjMK8QZ8uL4TsPhs26zziw@mail.gmail.com> <20210807151716.GA3098@faui48f.informatik.uni-erlangen.de> <CALZ3u+a_7XQ+R8mV+9KzwRwxa0riP-QD_2R69ycV0NL9jy_S3Q@mail.gmail.com> <20210807175410.GA63079@faui48f.informatik.uni-erlangen.de> <CALx6S36b33LD_hNFvptOJuny4g98=dhq3RtKsGeLx3ks-yYjFg@mail.gmail.com> <6F63D7FE-8768-4BD8-846E-61E50E44228F@lurchi.franken.de> <CALx6S36pbw2angEmDpu5DnX2nix9KgxFs7ExU17x+JXQFs23TA@mail.gmail.com> <CALZ3u+Yt2X3faSVW7K0eaxmaQy6iA6p4=f0c4E_F4CP0tfjHYw@mail.gmail.com> <CALx6S343sL0=5wUTRSXMnhSamjTTZU=DzA9Y+dbJ4NRTu0_83w@mail.gmail.com> <CALZ3u+ad6Cecp4T+wfuKVJ4ZmnQvaCSX2njFPCN8DuctrU6uew@mail.gmail.com> <CALx6S37u=y1wX8+6d8aX-6=N1MFEqO9RwxQN5zhZnS4DLM8DcA@mail.gmail.com> <CALZ3u+bHbsdzQsHOHx-6nEe6yQBbHMDhH9_PWB=WHTchB8tj5w@mail.gmail.com> <CAN-Dau3+e=g-ujo30hKidXfbD0EJZ8-Y8iz7pu+ez3Yakmgzvw@mail.gmail.com>
In-Reply-To: <CAN-Dau3+e=g-ujo30hKidXfbD0EJZ8-Y8iz7pu+ez3Yakmgzvw@mail.gmail.com>
From: Tom Herbert <tom@herbertland.com>
Date: Sun, 08 Aug 2021 12:23:25 -0700
Message-ID: <CALx6S35-owqNLEyHUbQFukkFLz4sJPiRzcyv-k826-U6BOB1hA@mail.gmail.com>
Subject: Re: IPv6 Anycast has been killed by LINUX patch in 2016 - who cares?
To: David Farmer <farmer@umn.edu>
Cc: Töma Gavrichenkov <ximaera@gmail.com>, 6man WG <ipv6@ietf.org>, IETF discussion list <ietf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009dae3405c9113414"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/h-UQ7v_lkSenq0kQql-B7VCqVAY>
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: Sun, 08 Aug 2021 19:23:47 -0000

On Sun, Aug 8, 2021, 12:03 PM David Farmer <farmer@umn.edu> wrote:

>
>
> On Sun, Aug 8, 2021 at 02:27 Töma Gavrichenkov <ximaera@gmail.com> wrote:
>
>> Peace,
>>
>> On Sun, Aug 8, 2021, 5:20 AM Tom Herbert <tom@herbertland.com> wrote:
>>
>> Using anycast as a
>>> mitigation to DDoS doesn't seem like a great idea considering the
>>> problems being discussed here.
>>>
>>
>> It's quite the opposite: using anycast to mitigate DDoS is the only
>> proper way to do it, because, basically, DDoS traffic, generated in
>> thousands of locations on the globe, cannot be handled when accumulated in
>> one place.
>>
>> Either you have multiple traffic termination points on the net (a.k.a.
>> anycast), each as close to some traffic generation point as possible, or
>> you'll end up having capacity overload around your last mile.  This is the
>> equation fundamental to the Internet, while the implementation issues
>> discussed here are hardly more than just typical software engineering tasks.
>>
>
> Anycast is only one of several mitigation strategies for DDoS, yes, it is
> a good one for web type services, it might even be the best for that type
> of service, especially against large volumetric attacks. However, there are
> many other types of attacks to protect against and services that need
> protection and anycast is a lousy mitigation strategy for many of them,
> especially for client networks or peer to peer services.
>
> While I agree with you, anycast is an important capability in the Internet
> architecture, nevertheless it has many limitations, and is not the panacea
> you claim it to be, even for DDoS.
>
> Furthermore, I’m not sure what you or the original reporter of this
> problem expect the IETF to do to fix the problem that was reported. I’ll
> remind you of the well worn trope, “the IETF is not the protocol police.”
> Any fix to the problem reported is squarely in hands of Linux developers,
> not the IETF.
>

David,

That's true, however we, Linux developers, certainly value the input and
discussion on IETF lists. IMO, the later patch that started to recompute
the hash on each RTO probably is too aggressive to be the default behavior
on the Internet. I plan to post a patch that makes default less aggressive
by restoring the original default behavior to recompute hash only after
multiple RTOs. The rehash behavior will be configurable by sysctl and also
I'll add a socket option to allow the application to control the behavior
per connection thereby resolving Brian's concern.

Tom


> Thanks.
>
>> --
> ===============================================
> David Farmer               Email:farmer@umn.edu
> Networking & Telecommunication Services
> Office of Information Technology
> University of Minnesota
> 2218 University Ave SE        Phone: 612-626-0815
> Minneapolis, MN 55414-3029   Cell: 612-812-9952
> ===============================================
>