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

"Jakob Heitz (jheitz)" <jheitz@cisco.com> Wed, 16 December 2020 18:51 UTC

Return-Path: <jheitz@cisco.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 2F5473A0B08 for <idr@ietfa.amsl.com>; Wed, 16 Dec 2020 10:51:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -11.901
X-Spam-Level:
X-Spam-Status: No, score=-11.901 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=VYBjLoBb; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=L5Wl5/OI
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 mjQGDtw0f1aZ for <idr@ietfa.amsl.com>; Wed, 16 Dec 2020 10:50:58 -0800 (PST)
Received: from alln-iport-2.cisco.com (alln-iport-2.cisco.com [173.37.142.89]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0FD413A0B05 for <idr@ietf.org>; Wed, 16 Dec 2020 10:50:58 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=13560; q=dns/txt; s=iport; t=1608144658; x=1609354258; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=eeR+84ANhJ/hZny34RdEt07meWCKT251rjstQaCYlyY=; b=VYBjLoBbAOLCsRUZPkdO+a7MIMF/eB8oMnOoCgxyZtZMQD85i3CkckBD /Rkd9moREzR5fuc7eirxiWjrMnRCjlxyL36Ayqfdb9Sr/ZAJ6bQNCFSHe KL8YEA5kovs5UErtywBKXQ21o1ZbCQmipnBUEDhArxDYY06+uXsMo5j0G A=;
X-IPAS-Result: A0BfAAB3U9pfkIkNJK1bBxkBAQEBAQEBAQEBAQEBAQEBAQESAQEBAQEBAQEBAQEBQIFPgVJRfFsvLoQ/g0gDjVsDjwuFAIR/gUKBEQNUCwEBAQ0BARgLCgIEAQGESgIXgVkCJTgTAgMBAQEDAgMBAQEBBQEBAQIBBgQUAQEBAQEBhgsHJgyFcgEBAQMBAQEQEREMAQEsCwEEBwQCAQgOAwQBAQECAh8EAwICAiULFAEICAIEDgUIEweDBAGCVQMOIAEOoiMCgTyIaXaBMoMEAQEFhSkYghADBoEOKoJ1g3qGNhYQG4FBP4ERQ4JWPoFJgRQBAQIXgREBEgEIBBcVgwAzgiyCBQ8tFBsDBEgOGQUNAgQTDA8sFh8HKwcSAQUEIA4cAQc3BI0pgWIYFYMhil2aMAqCdIkjhziLEoMmgyKbdZYHiQuRTBMMhDACBAIEBQIOAQEFgW0haXBwFTtagg8TPRcCDViKL4J/GwwOCRSDOoJZgjuFQwF0NwIGAQkBAQMJfIZ7BySBPF8BAQ
IronPort-PHdr: 9a23:27IoWRxo+4muCLLXCy+N+z0EezQntrPoPwUc9psgjfdUf7+++4j5ZReFt/lsgV/AR4md7bdezuWQuKflCiQM4peE5XYFdpEEFxoIkt4fkAFoBsmZQVb6I/jnY21ffoxCWVZp8mv9PR1TH8DzNFHTr3279zJUHFDlcAUzLePwScbeis2t3LW0/JveKwxDmDu6Z+Z0KxO7yGeZtsQfjYZ4bKgrzR6cqXpTcOMQzmRtdl8=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.78,425,1599523200"; d="scan'208";a="638002383"
Received: from alln-core-4.cisco.com ([173.36.13.137]) by alln-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 16 Dec 2020 18:50:56 +0000
Received: from XCH-ALN-001.cisco.com (xch-aln-001.cisco.com [173.36.7.11]) by alln-core-4.cisco.com (8.15.2/8.15.2) with ESMTPS id 0BGIouVu013800 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Wed, 16 Dec 2020 18:50:56 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-001.cisco.com (173.36.7.11) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Dec 2020 12:50:56 -0600
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 16 Dec 2020 13:50:55 -0500
Received: from NAM10-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Wed, 16 Dec 2020 12:50:54 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D4FO+k9bXSu9y/yU+gnTZwPmLq6tsj32bSE6ws91DFn9DGncvfSdwcAtnkrnhSEqs2cRLNAbzW7FjisVk6WmSwfL+3vF5dsGNAIO1uut8+F6zdYZLF+gGE52Xw32E1ChrZHCxDvR5FZCSSC9efyo3ZzqxrGO5ZJWBmW3pA9NEqzBE6UxYdHUl2m2zFa73IDGGNEQ9I/yqSLqUopyW7hiTro51c+YYoa2sPSzgv02nVTNdPEi2+xVctEPkMgfaweIPIzc38nZUl9CwHGDVzkQJ8oE4hSfyj7mw+RtMIq09DI0WeAbK7yLU7CI4L/a+j3tESvJovlnDLpftsllB6RNbw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eeR+84ANhJ/hZny34RdEt07meWCKT251rjstQaCYlyY=; b=RjavGJ+FLwSg9C4syNc3x5dMjxCG12fD2O834LFdW99rThSCwdmB78KG1zRR+v6nQYkxr6qhcelP8W9xD2mo0BuyeqM6C+3xhbxpP/hB/3bHeYxG3SjtYJrRaoCTInVyRXgj6cVs430A4q1dbLos1bUbXMwIjUas9DTaufa6Hv5hHrceLmdeBIoUN4Z/q0uWpjbLHgZLttB7nZUeGLE6oCaEK7A8PBXZL5r8WRXpim8tqn4Q/egPaVvQBe85jGtQaobs0zx1o4EToQpkYFwlegJCtKSd78sn+dF/0t37kLykQ5DlpCxpW4lKpjMaJOwoCbwVbvYm8KddPAj2CNPQ7Q==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=eeR+84ANhJ/hZny34RdEt07meWCKT251rjstQaCYlyY=; b=L5Wl5/OI+2Zj7t+RXljJpeaEklV5dQMu7lsOSiv6Woujg4bbAPrwo92xss2XS6BgOMDZ1bdtbAIajqyaMYb45hp03E3pC0SUURdX4ctc/ZytgPMQUXmtYVTD/ZDzrgsuepWDyX/JveMbh6vVkN/Y2lso/PrCoczQQxF5Y7enZt8=
Received: from BYAPR11MB3207.namprd11.prod.outlook.com (2603:10b6:a03:7c::14) by BYAPR11MB2773.namprd11.prod.outlook.com (2603:10b6:a02:c6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.19; Wed, 16 Dec 2020 18:50:52 +0000
Received: from BYAPR11MB3207.namprd11.prod.outlook.com ([fe80::2581:444d:50af:1701]) by BYAPR11MB3207.namprd11.prod.outlook.com ([fe80::2581:444d:50af:1701%4]) with mapi id 15.20.3654.025; Wed, 16 Dec 2020 18:50:52 +0000
From: "Jakob Heitz (jheitz)" <jheitz@cisco.com>
To: Claudio Jeker <cjeker@diehard.n-r-g.com>
CC: Job Snijders <job@sobornost.net>, "idr@ietf.org" <idr@ietf.org>
Thread-Topic: [Idr] TCP & BGP: Some don't send terminate BGP when holdtimer expired, because TCP recv window is 0
Thread-Index: AQHWz/PZ/nZ2Wy6ptUq1oN4xA4s39qnzMNSAgABM7oCAAAJ3QIAABHgAgAUVKwCAABAegIAAD7aAgAAXogCAAALoQIAAqagAgABxV5CAABbAgIAAEAkQ
Date: Wed, 16 Dec 2020 18:50:51 +0000
Message-ID: <BYAPR11MB320759EE6ABC8AB863BC1838C0C50@BYAPR11MB3207.namprd11.prod.outlook.com>
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>
In-Reply-To: <20201216174319.GM68083@diehard.n-r-g.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: diehard.n-r-g.com; dkim=none (message not signed) header.d=none;diehard.n-r-g.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [2601:647:5701:46e0:e82d:ab03:2132:19e4]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ff0026fb-8d0e-43b5-e5f9-08d8a1f3831c
x-ms-traffictypediagnostic: BYAPR11MB2773:
x-microsoft-antispam-prvs: <BYAPR11MB27737EB65CCEA969E46FDF2EC0C50@BYAPR11MB2773.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:7691;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mH5tjxrW/KAELpB5eJC9bZ6g95eJX7k8crqY601yRUEXtdjYR1XAT4ya+gWw0kCaXM9ZqE+QC2ukBujL2TpgNPnFTnrK4V1bt0sdSBQPIzMstqm48G/X4s5u7B7gIVvkc/UCOpACudkTUl8vF2XMHy428y6T2SBz43X4M1UW2ZTDaEPKb0HjBL1kcdTdd6iBYDHmxsSLY/3IpbSAUIQ3/3XFoco/xg1wY3NClewFa6GQylgxM9vmvDrVNGXMI1XyVZDjYeZ75XY+JIVBYJrHFY7ttyvgO40LTjHUre334bGHb2Y8Qcb4JJr39OgdRUODyQF8wn8Q3RdFYiJZz3X9MrA3j7yyOf9CToIyuQ/+4fLci+lPQAPiOhQ8DpbJU1f2hOJgWD3TeiPCJxmt/3TpTX3jOxRadhnQDwPHebT7miN79F3aS4kBzQk4fidbY1eBhFuZp++QVUzHN/oEJ8ExxQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3207.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(39860400002)(136003)(366004)(346002)(396003)(376002)(83380400001)(316002)(4326008)(186003)(53546011)(2906002)(66574015)(64756008)(8936002)(66446008)(33656002)(6506007)(54906003)(478600001)(66556008)(6916009)(86362001)(66476007)(8676002)(9686003)(5660300002)(76116006)(66946007)(55016002)(7696005)(52536014)(71200400001)(966005)(6606295002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: hpflu98/OkBCbmuRzGY7Oj0EbJDSY7xdUuGwEIBJK3x024QMzsoeLJE5cKz1Pcphf9k4e03/1e4SU1Ur9fEaxnDxktKWR5DN7/he4WmXsLw8CPC4Q5py4a6VBJLK1ofM621WIoVspHJ5vrewAnIc3rg1G2mlFXJbxjhbR9Kram6emvMLYWbszV2rTRrEZuCoyBk6J4Uq8gSiziL0guTYJ/Bmxz1rs7AVSt8YEdaePp66cSxPLm0y4MbtksLey623qQp5L1naFX/e/yCzzF+kVxOTmVAaPV1r7zepyNYGniBhILrxet/oCOk1kfg5995pPWIEJQ/s1nXepMOFn5M+SE9vLbKims2u1DLi+Qojr07nQ+H5xhFKFgy/hmY/+tI9oZgzGdlB61GpLWE/q+KodKjW4ACWXw+96M0z+k7kZljLCUC88VdaYcFJd6b7WQQbm3m+lCJUS2Le0yWn1L3ZRmg856saZpH3xDgYuv1RQBHctzARKV2JfgubVCPmbQP+UZB9GhRsxW0w0XVGHs2cP5sP9Lmt2SB45nUeu967rlVFuhK6lY6V8uMIMvC7D42wKIDdxhT0jeWgjLlUK0ZbGW8rfAMprari+1n+0ewTaZMBiEEvJve0ZtQcKJO7U8a+0RKBkT/9jc7cmj/h6ylPUkl7MuLZ9ISMWOob1m/GZKbQIbm8uEeT8FwUGbAY98mCZXLJPP3SggA/iGJWfIkJIQ9Hi//cYffE+GYnn+faTElrxwSXm5fOMgaY0sGJrWT60q2r5Bz+TNcaPMfUyDMDX77ppIc8EGfJQQYMyqOSAcAXnpBEW3ZmmFOlUarF0JX6pDThBs0yTqe0ewoXdZfNSnT61sC9Q3sKEXyr/5tqbdxHjQ9wIIzPAcVRwMIObSG+X22Xgq59/XCKmF89g+ss08PE9HB6b7PvBp3/rpHk4M+9UFUMpsmstIoyJ1bphpFm90gwbD3IF0bysHilAN8PqSvBD/dtyFItEQP4OBN0EjMlmLRr2DkAsNwxyh4wI0mHrjm2dZlMKaFuq+TwudCaS+F8yFckktdZoJDtadsTj6M=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3207.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: ff0026fb-8d0e-43b5-e5f9-08d8a1f3831c
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Dec 2020 18:50:52.0649 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: kj/eHXv+OuvLAMDNAomKTi4qSjFMMIZhnJ013niEY0bi6wjIWYGjPDyhDLoiWiuQzadUes7rXKPh0WaMqz/PIw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB2773
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.11, xch-aln-001.cisco.com
X-Outbound-Node: alln-core-4.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/l0l4HAXTvwqFEtCaECx9-wsGs_I>
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 18:51:02 -0000

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.

Regards,
Jakob.

-----Original Message-----
From: Claudio Jeker <cjeker@diehard.n-r-g.com> 
Sent: Wednesday, December 16, 2020 9:43 AM
To: Jakob Heitz (jheitz) <jheitz@cisco.com>
Cc: Job Snijders <job@sobornost.net>; idr@ietf.org
Subject: Re: [Idr] TCP & BGP: Some don't send terminate BGP when holdtimer expired, because TCP recv window is 0

On Wed, Dec 16, 2020 at 04:21:53PM +0000, Jakob Heitz (jheitz) wrote:
> No. It's not closed with a NOTIFICATION. The send queue is frozen. No
> data, not even a NOTIFICATION is going to get to rtr-A. The only thing
> that will get there is a TCP RST and/or a new TCP SYN.

While true the sending system doing the reset will consider it as if it
sent a NOTIFICATION and will therefor not do a GR. Once the new session is
established rtr-A will flush its table because rtr-B will not include the
F flags. Considering that rtr-A is probably not handling any route updates
it is more important that rtr-B routes traffic away from rtr-A and this
happens.
 
> Regards,
> Jakob.
> 
> 
> > On Dec 16, 2020, at 1:36 AM, Claudio Jeker <cjeker@diehard.n-r-g.com> wrote:
> > 
> > On Tue, Dec 15, 2020 at 11:39:52PM +0000, Jakob Heitz (jheitz) wrote:
> >> If you tell the socket to shutdown and then close, it will attempt to
> >> send everything in the queue with the FIN at the end.
> >> Then wait for the FIN ACK and all manner of nonsense to bore rtr-B to tears.
> >> So, to get on with it, send the RST.
> >> 
> >> Next question is what to do if GR is in effect.
> >> rtr-A will dutifully retain all the routes from rtr-B and Job's beloved WITHDRAW
> >> will still not happen.
> >> The new session will come up (maybe), rtr-B will send all its routes again and
> >> (if it doesn't get stuck again) will send its EOR. Only now can Job breathe easy.
> >> 
> >> Might we need a new bit in the GR capability in the OPEN message?
> >> "WITHDRAW ALL MY ROUTES NOW"
> > 
> > GR should not be an issue since the connection is closed with a
> > NOTIFICATION. At least the system detecting the stuck session will flush
> > and WITHDRAW all routes. In the next OPEN message this system will neither
> > set the R flag nor the F flag and so the stuck system will WITHDRAW
> > all routes as well.
> > 
> > The per AF "Forwarding State" bit already acts as a withdraw all my routes
> > now indicator.
> > 
> > Cheers,
> > -- 
> > :wq Claudio
> > 
> >> Regards,
> >> Jakob.
> >> 
> >> From: Idr <idr-bounces@ietf.org> On Behalf Of Robert Raszuk
> >> Sent: Tuesday, December 15, 2020 3:19 PM
> >> To: Job Snijders <job@sobornost.net>
> >> Cc: idr@ietf.org
> >> Subject: Re: [Idr] TCP & BGP: Some don't send terminate BGP when holdtimer expired, because TCP recv window is 0
> >> 
> >> Hi Job,
> >> 
> >> Putting all other concerns aside I have few questions ...
> >> 
> >> 1. Is this BGP which should trigger the session RST or FIN or TCP ?
> >> 
> >> 2. If this is BGP (TCP would not be aware of HOLD_SEND) how exactly do we know that peer's window is 0 for HOLD_SEND TIME ?
> >> 
> >> 3. Which TCP socket option will return BGP an error that for the duration of X sec window for a given peer was 0 ? I presumed even if it jumped for 100 ms above 0 the timer would be reset indicating peer is still alive ?
> >> 
> >> From your bgpd example you are not checking anything other then BGP's ability to write to out queue. So is this the suggestion now forgetting all about TCP layer ? Simply if I can not write anything to a peer for over X sec RST the session ?
> >> 
> >> Hi John,
> >> 
> >> I think the suggestion is to add a second HOLD_SEND TIME different from normal HOLD TIME.
> >> 
> >> Also there could be lost of different type of peers so unless HOLD_SEND would be say 5 x HOLD putting all peers under same time value may be suboptimal.
> >> 
> >> Thx,
> >> R.
> >> 
> >> 
> >> On Tue, Dec 15, 2020 at 10:54 PM Job Snijders <job@sobornost.net<mailto:job@sobornost.net>> wrote:
> >>> On Tue, Dec 15, 2020 at 09:57:47PM +0100, Christoph Loibl wrote:
> >>> Thanks for answering my question in more detail. Maybe I was unclear
> >>> (but reading your email I think we are talking about the same).
> >>>> On 15.12.2020, at 21:00, John Scudder <jgs@juniper.net<mailto:jgs@juniper.net>> wrote:
> >>>> 
> >>>> I think you are talking about this scenario. I’ll copy the example
> >>>> from Rob’s message cited above:
> >>>> 
> >>>>  rtr-A                   rtr-B
> >>>>  (congested c-p)         (uncongested c-p)
> >>>>  send window: >0         send window: 0
> >>>>  recv window: 0          recv window: >0
> >>>> 
> >>>> In this case we expect:
> >>>> a) rtr-B does not send any BGP packet (KEEPALIVE/UPDATE/NOTIFICATION)
> >>>> to rtr-A in normal operating circumstances.
> >>>> b) rtr-A does not expect any KEEPALIVE/UPDATE packets from rtr-B. The
> >>>> session remains established even if no packet is received in the
> >>>> holdtime.
> >>>> c) rtr-A continues to send KEEPALIVE packets to rtr-B.
> >>> 
> >>> The part I have a problem to understand is b). It is clear that rtr-A
> >>> will not receive any packets from rtr-B because rtr-B cannot send them
> >>> (send window: 0). But does "rtr-A does not expect any KEEPALIVE/UPDATE
> >>> packets from rtr-B” mean that rtr-A has essentially suspended its
> >>> hold-timer until it is ready to receive new messages and opens up its
> >>> recv window? If yes, why? I would expect timers to run independently
> >>> of the transport protocol.
> >> 
> >> Yeah, I'd expect that too. We've seen congested BGP implementations
> >> continue to send KEEPALIVEs but not accept (or send!) other BGP
> >> messages. And rtr-B's attempts at KEEPALIVE just be TCP ACked with zero
> >> window.
> >> 
> >> I'd argue in the above scenario rtr-A is simply broken and rtr-B MUST
> >> proceed to close down the session towards rtr-A, rtr-B must cleanup and
> >> generate WITHDRAWs for any routes pointing to rtr-A. By doing the
> >> clean-up rtr-B does both itself and rtr-A a favor. If the issue was
> >> transcient rtr-A and rtr-B will re-establish a few minutes later
> >> (IdleHoldTimer, right?) and things will normalize.
> >> 
> >> Arguably and measurably, rtr-A is operating its Loc-RIB (forwarding)
> >> based on stale routing information (assuming rtr-A is working at all!):
> >> rtr-A has not received any WITHDRAWs, UPDATEs (or somewhat less
> >> importantly KEEPALIVEs) from rtr-B.
> >> 
> >> Rtr-B is fully aware of this stale situation, because rtr-B was not able
> >> to write these BGP messages to the network: the messages are still in
> >> OutQ. Rtr-A didn't accept any KEEPALIVE (or UPDATE/WITHDRAW) from
> >> rtr-B.
> >> 
> >> How to solve this? Claudio Jeker took a look at what it would take in
> >> OpenBGPD and came up with the (tiny!) following patch, should be
> >> readable to most: https://marc.info/?l=openbsd-tech&m=160796802508185&w=2
> >> 
> >> Ben Cox helped me create a 'EBGP peer from hell': a publicly accessible
> >> EBGP multihop instance which can reliably produce the undesirable
> >> TCP/BGP behavior we're discussing here. This 'peer from hell' will do
> >> the OPEN exchange but then manipulates the TCP recvwindow towards zero.
> >> 
> >> All BGP implementations tested so far (5 famous ones) appear vulnerable
> >> because they continue to consider the BGP session healthy & stable
> >> (meanwhile OutQ keeps growing endlessly and zero BGP messages go across
> >> the wire).
> >> 
> >> One network operator (with thousands of EBGP sessions in the DFZ)
> >> reported to me the above stalled-TCP scenario is *not* a common case on
> >> the Internet. On a normal day, a network operator will see no (zero)
> >> sessions stuck this way, which leads me to believe 'recvwind=0' ...
> >> *for the duration of the hold timer* is a very strong indicator for a
> >> really broken situation which should be attempted to automatically
> >> resolve.
> >> 
> >> I believe BGP implementations are not helping any known deployment
> >> scenarios by *not* disconnecting a stuck peer, however on the other we
> >> now know about various operational examples where honoring recvwind=0
> >> for (hours, days) longer than $holdtimer led to global scale problems.
> >> 
> >> As the 'not-at-all progressing OutQ' situation seems somewhat rare in
> >> the wild (yet continues to happen from time to time) I think it is worth
> >> discussing & documenting how implementers can attempt to avoid this
> >> state from happening. It might help make the Internet 1% more robust.
> >> 
> >> BGP implementers (or operators wanting to test their equipment) feel
> >> free to contact me off-list if you'd like to set up an EBGP multihop
> >> session towards the 'peer from hell' testbed. Testing potential
> >> solutions this way is quite easy, the behavior can be triggered within a
> >> few seconds.
> >> 
> >> Kind regards,
> >> 
> >> Job
> >> 
> >> ps. At this moment we have (1) an attempt at problem description, (2) a
> >> demonstration BGP-4 implementation of a 'problem causer', and (3) a
> >> different BGP-4 implementation with a 'solution'. This enables IDR to
> >> test interopability & (potentially revised) protocol compliance,
> >> hopefully moving the problem a bit from theoretical to practical
> >> reality? :)
> > 
> >> _______________________________________________
> >> Idr mailing list
> >> Idr@ietf.org
> >> https://www.ietf.org/mailman/listinfo/idr
> > 

-- 
:wq Claudio