Re: [Idr] TCP & BGP: Some don't send terminate BGP when holdtimer expired, because TCP recv window is 0

Brian Dickson <brian.peter.dickson@gmail.com> Wed, 16 December 2020 19:17 UTC

Return-Path: <brian.peter.dickson@gmail.com>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8543A3A0B2D for <idr@ietfa.amsl.com>; Wed, 16 Dec 2020 11:17:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-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=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 5EWcmDj5vqVQ for <idr@ietfa.amsl.com>; Wed, 16 Dec 2020 11:17:50 -0800 (PST)
Received: from mail-vk1-xa32.google.com (mail-vk1-xa32.google.com [IPv6:2607:f8b0:4864:20::a32]) (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 EC0333A0C4F for <idr@ietf.org>; Wed, 16 Dec 2020 11:17:49 -0800 (PST)
Received: by mail-vk1-xa32.google.com with SMTP id d68so5960834vka.2 for <idr@ietf.org>; Wed, 16 Dec 2020 11:17:49 -0800 (PST)
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=Sn1D6hRnRA3DCcH8uBqF8egngBZS4X7t1Xw9244p1Do=; b=frqryb3hfkTAygKYJZyzRNc9MXgAKn63A50JuP73sRgkS7vYqg28F7f+FcaLLI8jR5 Dj+VFF3s2878Gjss2myblH0jfwhsHrygU8hvEgiiZDj1f9NUc4gS5+WlTrm9hLGpW5xF k+yDsIDta37pZ4z+LVXk6BV7A5sqePV9j4En9FFFdOxDzKuY9B25fEt+PhRu92uP9Eay F4AoGEIMzof0kZz1CTG5rdv1hzbaYpXjgFfZ2mepca3aZIhOc25oRdl1Hd7vk7SzeUog BQqUWL8LQ9layHTCYXaCTTBcHs3bJyZ5JpTVNAooRjuV9rzAreG3D2H66G5hieIIA1JG TRkw==
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=Sn1D6hRnRA3DCcH8uBqF8egngBZS4X7t1Xw9244p1Do=; b=ODZCoJTKSnIK1WZVns1is/KeEDt57Dn1X+mUO9ZBemvUAz5/h2lBn2hlzBJmquVE7Z QNQq80f1A5HFxYLmJgoLUFLPJ8TNSMafBVUjyicy1oCgxQ3IHQtOuo828I3KcxzzGfvg sf2ZUJYJDz1ueE9auzPlBW+5a05WZ4OhacH7D6HEgqWxfXbSVmXxJcLLq2/GJg06T+X0 H4H8YI/5hsLhKbwIafKVenxvpieiS+UbIrNVjCXKfVkr4S97JkCx4CEbs3ZMJTdEXato UfJeVWzvJPv/OaoaU47vZScCe+szJyDLKxrI0Dvyqrru7SE2sGNK6nkPlf3hBEDOt2Pz A7lA==
X-Gm-Message-State: AOAM532LO3ZAXGt/9kV9zeHIDH7KkmkB2XXol5ii6Il82nhaH08hf6Uh c2aIOIhvKjPF0cBEsVJmXniCWKvuZQ7arVUxlGle8Wa0GrU=
X-Google-Smtp-Source: ABdhPJwvyQd3Yxrma5KhoqASaT0MW7AuhpMGH/Yb7qfaOlmxDxTJg9CqdRB69XSQZDJy46/Z2qkadjPy3qivii/EUgQ=
X-Received: by 2002:a1f:1105:: with SMTP id 5mr18879066vkr.17.1608146268753; Wed, 16 Dec 2020 11:17:48 -0800 (PST)
MIME-Version: 1.0
References: <6F7C5906-51A8-43C2-8AEC-3DB74CB9941F@tix.at> <1B4E7C9D-BBFE-4865-87F9-133ACE55D122@cisco.com> <22C381D0-2174-4828-A724-FD97B2FE0BCB@tix.at> <9D6268BD-C555-4B9A-A883-9B55EEB5D5DA@juniper.net> <91D9B9F7-0DBE-45E6-84D5-2E3D9F8C44A1@tix.at> <X9kweQ5EtTL7tOAM@bench.sobornost.net> <CAOj+MMFySPXpE8QxcO+7szKzQ78faQASYKnBUYg_h_aLd=P4Lg@mail.gmail.com> <BYAPR11MB3207412804697588E4AA3F03C0C60@BYAPR11MB3207.namprd11.prod.outlook.com> <20201216093614.GI68083@diehard.n-r-g.com> <4E9BEA12-998A-4AD1-B342-4F26AA6EBA69@cisco.com> <20201216174319.GM68083@diehard.n-r-g.com> <BYAPR11MB320759EE6ABC8AB863BC1838C0C50@BYAPR11MB3207.namprd11.prod.outlook.com>
In-Reply-To: <BYAPR11MB320759EE6ABC8AB863BC1838C0C50@BYAPR11MB3207.namprd11.prod.outlook.com>
From: Brian Dickson <brian.peter.dickson@gmail.com>
Date: Wed, 16 Dec 2020 11:17:37 -0800
Message-ID: <CAH1iCipjgS4-NPTjNhc7Cj73bitWgTcw=ufax7iOCCnT+xGiZQ@mail.gmail.com>
To: "Jakob Heitz (jheitz)" <jheitz=40cisco.com@dmarc.ietf.org>
Cc: Claudio Jeker <cjeker@diehard.n-r-g.com>, "idr@ietf.org" <idr@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000018934405b699bb01"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/mCj2XsuL3-KAahvBfTrlIpKWHXA>
Subject: Re: [Idr] TCP & BGP: Some don't send terminate BGP when holdtimer expired, because TCP recv window is 0
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 16 Dec 2020 19:17:52 -0000

On Wed, Dec 16, 2020 at 10:51 AM Jakob Heitz (jheitz) <jheitz=
40cisco.com@dmarc.ietf.org> wrote:

> The restarting speaker in this case did not actually restart.
> It just restarted this one session. There is no reason for it
> to delete any forwarding state. There is no evidence of any
> problem with its received routes, only with the routes it sent
> to the stuck peer. It may still set the (F) bit to force the
> stuck peer to WITHDRAW.
>

The transitive nature of bgp pretty much requires the safest choice should
be taken.

Which is to say, there is EVERY reason to delete forwarding state.
If a peer's router is so messed up that it is not accepting any TCP
packets, the only safe assumption is that the problem is AS-wide for that
peer.
In which case, the only data point available (the TCP session) indicates
the problem is very likely affecting other routing announcements towards
that ASN.
And the only SAFE behavior is to tear down the session completely,
including removing received routes from the IN-RIB, update the RIB and FIB,
and go on with life.

The incident that I believe lead to this proposal was super nasty, and only
a fix like this could handle that.
There is no reason to believe this can't/won't happen again in future.
As Jared notes, there are likely other implementations that would fare as
poorly if they encountered the triggering situation.

While this is my opinion on the best way to handle it, the underlying facts
aren't arguable.
An AS-wide situation (stuck receivers with no TCP progress) would never
result in the AS sending withdrawals.
The current handling of that is demonstrably broken.
The assumption that the BGP state machine can be fully relied upon is no
longer sound.

It probably never was a completely safe assumption.
IFF the state machine is working correctly, this corner case would never
occur.
It has occured and can occur, ergo it needs to be handled outside of the
state machine proper.

Brian