Re: [Idr] WG Adoption call for draft-spaghetti-idr-bgp-sendholdtimer-09 (2/28/2023 to 3/14/2023)

Robert Raszuk <robert@raszuk.net> Wed, 08 March 2023 10:48 UTC

Return-Path: <robert@raszuk.net>
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 6BFB5C14CE53 for <idr@ietfa.amsl.com>; Wed, 8 Mar 2023 02:48:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=raszuk.net
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LSwewMMBp2kK for <idr@ietfa.amsl.com>; Wed, 8 Mar 2023 02:48:24 -0800 (PST)
Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E1C0C14CE52 for <idr@ietf.org>; Wed, 8 Mar 2023 02:48:24 -0800 (PST)
Received: by mail-wr1-x431.google.com with SMTP id q16so14919703wrw.2 for <idr@ietf.org>; Wed, 08 Mar 2023 02:48:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raszuk.net; s=google; t=1678272503; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ZSPLiN/Quy6ipXdrgG/dwBT4kX/8LElCWobdtVjaKSc=; b=bXvRp4ndZzdXOpwHLXV3NxKfu49CuY6mr7njjM8H/ULQ8htwfI5P5mEPjBl4tBAC0m ciAiy6JP+avOslWDbBq4Xh9MViZE4qNJkL/mmd1oJOWNBlSji9EcwZ4+AEkPNgef+CYN jbOaVCLzhV5EltgB8k1qaOAhAhBNIJ2/TJjVH5k+yJOG5uT4avq3o2d8pk03bFX1ZqcJ JGD1MsJh+O4lV0cQ/RywnKjpsw0jE42TZQQ0KM6hXpNL/ksXs98PK59mR3vUvx0oF4Rz 0BEPatAhHiARqqfXo/h63RPTO5jOUNs5hefxoOSuO3t33/7JnyZr6YenajVRTYE+i8Ee sYNw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678272503; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ZSPLiN/Quy6ipXdrgG/dwBT4kX/8LElCWobdtVjaKSc=; b=DWFG9I+v6QYBiECSPP5NCtEasLcMjZNDkSukgGX/FX0rHxa/4vwm2nUYoZqo2yaML0 YrvlRfJlN976/BSSul/7yija7mMsNlsBnfi5ctGYsFobmYamImqI0fEpMp9suEcuyXE4 gPSCyLsN82Q5yB36uO8t74K3xaXIs4TAnnyh2Un/+suJLVVJ1tCSwX1oXIxw1PTuEa3j RqGi4rmU9fUDqwnOf8KNCB6AcvaZNVsY4/SO/eTqOwl+rGyipZvmQfC8BEhml595+aw1 nWVDnrbMEYWGLq9vMBd2doayl9TeiJBMl+f7iMSDVdqo6nZPrJrIpel5v0QRDi4lv/JI sEbw==
X-Gm-Message-State: AO0yUKVUQpS+E9W1wGYy+DrOe2A5sP8T3nHiiCS9nBWghECKfHH0Ikna 5WshUmHuALxl8vYYztXVCDpkFIyl90WNPfxLw7/h5Q==
X-Google-Smtp-Source: AK7set8i64le3FqHnGQf/pP5ficEDPf4fdYtF9IOznxh5gKWkrSnLiaHUauvRJAy4CA6TUpw7xlZ8h3ZONgzxibMvVY=
X-Received: by 2002:a5d:4987:0:b0:2ca:554c:17b5 with SMTP id r7-20020a5d4987000000b002ca554c17b5mr3797056wrq.1.1678272502717; Wed, 08 Mar 2023 02:48:22 -0800 (PST)
MIME-Version: 1.0
References: <BYAPR08MB4872FD426205CAC6F82D22BEB3AD9@BYAPR08MB4872.namprd08.prod.outlook.com> <CAOj+MMHF9G5-CmGPJpWja=1kgBrV=EYtzyhQr9La1722=D+ugA@mail.gmail.com> <m2edq1ac7s.wl-randy@psg.com> <ZAZSyywxxg0HkaDw@snel> <CAOj+MMGiB8iiqKbj40kZsSFAQXCQ+baGQWuA7oQ1D0qF5aygeQ@mail.gmail.com> <alpine.DEB.2.20.2303070725390.2636@uplift.swm.pp.se> <CAOj+MMGUfxd1LLta9=_HU+uMKcbVVE6ijkG84-ST0LDo3m2MYQ@mail.gmail.com> <alpine.DEB.2.20.2303070953000.2636@uplift.swm.pp.se> <CAOj+MMF8gELjxXB=kmn3eTu8X96vP7ueOTSA6Q+V_086wfO=NQ@mail.gmail.com> <alpine.DEB.2.20.2303071107360.2636@uplift.swm.pp.se> <3caaea46-cc66-f084-ec9b-98783d6daa49@foobar.org> <CAOj+MME=-drWX_1=9T8jqBGvEfwB59PmjLoh65i8wvdppKFKYg@mail.gmail.com> <alpine.DEB.2.20.2303071224040.2636@uplift.swm.pp.se> <CAOj+MMFc29DOAL6QK3u9gzPBQPv3wRdhTRHRPD_1ABebtuX0=w@mail.gmail.com> <alpine.DEB.2.20.2303071246590.2636@uplift.swm.pp.se> <DB2B7372-D021-4E86-AF83-C6A55EF72D75@pfrc.org> <alpine.DEB.2.20.2303081108250.2636@uplift.swm.pp.se>
In-Reply-To: <alpine.DEB.2.20.2303081108250.2636@uplift.swm.pp.se>
From: Robert Raszuk <robert@raszuk.net>
Date: Wed, 08 Mar 2023 11:48:11 +0100
Message-ID: <CAOj+MMG6dOy1dfokMKNzc7VHVGdFDHCmg1c8P3EzmGUPYxe5qg@mail.gmail.com>
To: Mikael Abrahamsson <swmike@swm.pp.se>
Cc: Jeffrey Haas <jhaas@pfrc.org>, idr@ietf.org
Content-Type: multipart/alternative; boundary="0000000000005c6f6105f661448d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/GQDsfyf9ESfD7NIZcsaX6w9fe5g>
Subject: Re: [Idr] WG Adoption call for draft-spaghetti-idr-bgp-sendholdtimer-09 (2/28/2023 to 3/14/2023)
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.39
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, 08 Mar 2023 10:48:28 -0000

Mikael,

> If application2 stops reading from its socket,

Realistically  - how often will any application continue to write to a
socket and at the same time stop reading from it ?

The more I think about your assumptions the more it seems like soft crafted
to do exactly that for a test.

Best,
Robert


On Wed, Mar 8, 2023 at 11:14 AM Mikael Abrahamsson <swmike@swm.pp.se> wrote:

> On Tue, 7 Mar 2023, Jeffrey Haas wrote:
>
> > Most typically it will be an application issue.  In some cases, it may
> be a TCP issue or other issue that results in dropped TCP ack packets.
> >
> > The sender can't know.  It just knows that it can no longer send.
>
> Sure. But if it's a connectivity problem and the session can't transmit
> keepalives and the receiving application is functioning normally then
> it'll notice the lack of bgp keepalives and drop the session because of
> that.
>
> > To use a previously supplied example, if the BGP session is stable and
> > is only sending 19 byte keepalives every N seconds with a 32k window
> > that started out empty, and the window isn't moving due to acks not
> > being received, it will take a VERY long time before the sender blocks.
>
> That's correct, but in that case we don't have much real data we wanted to
> send anyway, so it means the other side is still kind of "in sync" with
> us.
>
> > However, if the ack is sent out in a tcp packet, but isn't acknowledged
> > within the desired window, the session can be bounced without waiting on
> > the block.
>
> I see the user-timeout being brought up again. Is my understanding of how
> RCP works, flawed?
>
> application1->socket1->tcpstack1->network->tcpstack2->socket2->application2
>
> If application2 stops reading from its socket, then tcpstack2 buffer will
> fill up, it'll then reduce the window to 0, filling up tcpstack1 buffer
> until it finallly decides to not accept any more data via socket1. What
> we're after is application1 deciding that since it can't send data to
> socket1 for a prolonged amount of time, it should decide session is wedged
> and close it.
>
> My understanding is that tcpstack1<->tcpstack2 will gladly acknowledge
> packets/tcp-keepalives forever in this wedged state, so how does
> user-timeout help? From my understanding tcpstack1 only knows the packet
> has been received by tcpstack2, it has no idea if it's reached
> application2 or not and user-timeout doesn't help that?
>
> --
> Mikael Abrahamsson    email: swmike@swm.pp.se
>