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

Jeffrey Haas <jhaas@pfrc.org> Sun, 20 December 2020 00:16 UTC

Return-Path: <jhaas@pfrc.org>
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 30C623A0C62 for <idr@ietfa.amsl.com>; Sat, 19 Dec 2020 16:16:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 WJmxNnDABnmc for <idr@ietfa.amsl.com>; Sat, 19 Dec 2020 16:16:49 -0800 (PST)
Received: from slice.pfrc.org (slice.pfrc.org [67.207.130.108]) by ietfa.amsl.com (Postfix) with ESMTP id 7E3243A0C5F for <idr@ietf.org>; Sat, 19 Dec 2020 16:16:49 -0800 (PST)
Received: from dresden.attlocal.net (99-59-193-67.lightspeed.livnmi.sbcglobal.net [99.59.193.67]) by slice.pfrc.org (Postfix) with ESMTPSA id 0A5781E355; Sat, 19 Dec 2020 19:34:19 -0500 (EST)
Content-Type: multipart/alternative; boundary="Apple-Mail=_BCFD94A9-D422-4CA3-BA35-00AE6EAAEC01"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\))
From: Jeffrey Haas <jhaas@pfrc.org>
In-Reply-To: <CAOj+MMHfn0cPhxNmXNprGdMRVkpSv0cJJrL=fq7rHb89owj6zA@mail.gmail.com>
Date: Sat, 19 Dec 2020 19:16:50 -0500
Cc: Gyan Mishra <hayabusagsm@gmail.com>, John Scudder <jgs=40juniper.net@dmarc.ietf.org>, "idr@ietf. org" <idr@ietf.org>, Enke Chen <enchen@paloaltonetworks.com>
Message-Id: <43F20D70-BAE0-49C3-8C5A-B71912E93F4D@pfrc.org>
References: <CANJ8pZ-WMDotkQvhN-NuP7ivZkPRR-9S2KJSar=6463U0VKkow@mail.gmail.com> <EFC56A31-1276-4DAB-9526-9C2F24814D2C@pfrc.org> <CANJ8pZ_LnDna_jtipcLJq9rrS3MM32rLdxRW8ntC2aEi9VvzMg@mail.gmail.com> <722A787A-5B83-4802-A9F4-AB2957BB3305@juniper.net> <CA+eZshBse4g6jUBMxs4bJiE+uvWScwv7ggLNOMJbUiL1YsaisQ@mail.gmail.com> <CABNhwV1ikHAknsfNDw6GJ8BngHDNjNdCxmgipJvJ7G3rxmnZVA@mail.gmail.com> <CAOj+MMHM0bHHL9UfVZC2QWy6=W5F7QtEq9v-rndcUG0u7CLi1Q@mail.gmail.com> <CABNhwV3CaWn5gsFGr4HNi_qoE4V1N1CA44KN+fFFvVCYr1YMgw@mail.gmail.com> <CAOj+MMHfn0cPhxNmXNprGdMRVkpSv0cJJrL=fq7rHb89owj6zA@mail.gmail.com>
To: Robert Raszuk <robert@raszuk.net>
X-Mailer: Apple Mail (2.3608.120.23.2.4)
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/ArFfAH_fCEzI1ccEVV53_2NxHMU>
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: Sun, 20 Dec 2020 00:16:51 -0000


> On Dec 19, 2020, at 6:45 PM, Robert Raszuk <robert@raszuk.net> wrote:
> 
> The other day I asked how often BGP is retrying to write to socket in most widely deployed implementations - but did not get any answer :( 
> 

I will publicly state that in each implementation I've worked on over twenty years that handling EAGAIN, EWOULDBLOCK and similar along with dealing with long-lived zero windowing regularly happens.

The majority of the time this is due to simple load issues on the receiver.  It occasionally is related to local resources being scarce (e.g. mbufs).

Once you start getting packet loss on the TCP session, you get these things much more often.

-- Jeff