Re: statement regarding keepalives
Joe Touch <touch@strayalpha.com> Fri, 17 August 2018 20:31 UTC
Return-Path: <touch@strayalpha.com>
X-Original-To: tsv-area@ietfa.amsl.com
Delivered-To: tsv-area@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E3807130DC1; Fri, 17 Aug 2018 13:31:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.989
X-Spam-Level:
X-Spam-Status: No, score=-1.989 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=strayalpha.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 UY8CO6B_RjxJ; Fri, 17 Aug 2018 13:31:19 -0700 (PDT)
Received: from server217-3.web-hosting.com (server217-3.web-hosting.com [198.54.115.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 76FF2130DC3; Fri, 17 Aug 2018 13:31:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=strayalpha.com; s=default; h=Message-ID:References:In-Reply-To:Subject:Cc: To:From:Date:Content-Type:MIME-Version:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MYkt66g12ly7da2tU1x4+8GIQ7JiODBY3ESHZx/7af0=; b=D9V70ez+N4xr/lnIf1TgvHNiz PlmGA2R60iaJkoHybvBc8XTDQ1TJc2y/ipNYU0TBziAkWeQXW+0Z+u7Sr6BcOIS/1QuIuiIy+TZml 8ceAhxa8pkhglaF06I5qyqj7Pl2kBIqOND4FKmkDBcr7eExwxQd6is3BdHDNWm4xeGdecpO7rkfVI l3g8Y1au6aL4KpUq7h29KU6cHDO6j5f3AUp2ArCrashTCsvPPm9syLK5tD9OC6cJn35YNbjEu1mkR U+mitssLnIbG+jq3/fX6Qk0bDejPpeR+jxdQQOxc36LEAvyzQoDyhpVTzkW9rDqD+TVUOKbDLo//D a7mzroywg==;
Received: from [::1] (port=38216 helo=server217.web-hosting.com) by server217.web-hosting.com with esmtpa (Exim 4.91) (envelope-from <touch@strayalpha.com>) id 1fqlOu-004GSu-Qa; Fri, 17 Aug 2018 16:31:17 -0400
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="=_ddc4ff3c6dbafa59df3fbccbe761dee5"
Date: Fri, 17 Aug 2018 13:31:16 -0700
From: Joe Touch <touch@strayalpha.com>
To: Tom Herbert <tom@herbertland.com>
Cc: Benjamin Kaduk <kaduk@mit.edu>, netconf-chairs@ietf.org, tls-ads@ietf.org, "tsv-area@ietf.org >> tsv-area@ietf.org" <tsv-area@ietf.org>, tsvwg-ads@tools.ietf.org
Subject: Re: statement regarding keepalives
In-Reply-To: <CALx6S355YtSkquMmtQ-su=mBqPYdH=17XsChUJLXEURxeY-jEA@mail.gmail.com>
References: <D3326DE0-3F31-4045-B945-82B3F417BE4B@juniper.net> <alpine.DEB.2.20.1807201340240.14354@uplift.swm.pp.se> <B50DC954-CBB6-41C5-BE3A-F1DECD6046A5@juniper.net> <717202c9c6c6b3d083bfa4c8a9925e45@strayalpha.com> <6377766E-9A03-41BA-A4D4-8796F46278BD@juniper.net> <20180816221059.GG40887@kduck.kaduk.org> <B3FA514D-4082-4C36-B487-B9B6AB46BF9D@strayalpha.com> <20180816225715.GH40887@kduck.kaduk.org> <A0293639-EC0A-4559-9447-E58CDB8970FC@strayalpha.com> <CALx6S34o1DJ6Nmin23GSNF_o-ddVEHX0_5qMohnxJxmh-BqH9w@mail.gmail.com> <c9c28764899d10647b7d79e5ab1361fb@strayalpha.com> <CALx6S355YtSkquMmtQ-su=mBqPYdH=17XsChUJLXEURxeY-jEA@mail.gmail.com>
Message-ID: <af592212b44a55e83749d0701ba60fa4@strayalpha.com>
X-Sender: touch@strayalpha.com
User-Agent: Roundcube Webmail/1.3.3
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - server217.web-hosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - strayalpha.com
X-Get-Message-Sender-Via: server217.web-hosting.com: authenticated_id: touch@strayalpha.com
X-Authenticated-Sender: server217.web-hosting.com: touch@strayalpha.com
X-Source:
X-Source-Args:
X-Source-Dir:
X-From-Rewrite: unmodified, already matched
Archived-At: <https://mailarchive.ietf.org/arch/msg/tsv-area/QhT0dpe9MDpNJjTDJrqgX_foFpg>
X-BeenThere: tsv-area@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: IETF Transport and Services Area Mailing List <tsv-area.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tsv-area>, <mailto:tsv-area-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tsv-area/>
List-Post: <mailto:tsv-area@ietf.org>
List-Help: <mailto:tsv-area-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsv-area>, <mailto:tsv-area-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 17 Aug 2018 20:31:22 -0000
On 2018-08-17 11:43, Tom Herbert wrote:The purpose of an application keep alive is not to do favors for TCP, > it's to verify the end to end liveness between application end points. > This is at a much higher layer, verifying liveness of the TCP > connection is a side effect. Sure - that's fine and not what I'm concerned about. I don't want the text to say that higher level protocols or apps should try to do favors to keepalive lower level protocols - because it doesn't necessarily work. >> However, if that 1GB goes out in 10 seconds, then TCP would have sent its >> own keepalives just fine. It didn't need the app's help. >> >> So the app didn't help at all; at best, it does nothing and at worst it >> hurts. > > Consider that someone sets an application keepalive to 35 second > interval and the TCP keepalive timer is 30 seconds. When the > connection goes idle TCP keepalive will fire at thirty seconds, and > five seconds later the application keepalive fires. So every > thirty-five seconds two keepalives are done at two layers. This is not > good as it wastes network resources and power. Agreed. > In this case, the > application keepalive is sufficient In this *implementation* it *might* be sufficient, in others, it might not. There's simply no way for the layers to know. > and the TCP keepalive shouldn't be > used. If you KNOW that the app keepalive will cause the TCP transmission, sure - but how do you KNOW that? You don't and can't. Even if you write to the TCP socket, all you know when the socket returns is that the data was copied to the kernel. You don't know for sure that you've triggered a TCP packet. Besides, your "keepalives" might end up causing TCP to send packets it never needed to send in the first place - even IF you think you're doing it a favor. > This is an example of the problems in running two control loops > at different layers with overlapping functionality, The problem is trying to infer overlap in functionality. If you realize that these are independent control loops *and leave them alone* you're fine. It's only in trying to optimize them as overlapping that a problem is created. > if the > ramifications of doing aren't understood it can lead to undesirable > interactions and behavior. Agreed - so don't. Admit that there are inefficiencies *regardless of how hard you try to do otherwise* and leave them alone, IMO. If the app needs an app-level keepalive, do it. If the app wants TCP to be kept alive, let IT do it and leave it alone. Don't try to couple the two because you can't, and whatever you think you might gain you could easily lose. Leaving the two alone and separate is sufficient and robust. Joe
- statement regarding keepalives Kent Watsen
- Re: statement regarding keepalives Wesley Eddy
- RE: statement regarding keepalives Black, David
- Re: statement regarding keepalives Spencer Dawkins at IETF
- Re: statement regarding keepalives Mikael Abrahamsson
- Re: statement regarding keepalives Spencer Dawkins at IETF
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Kent Watsen
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Kent Watsen
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Kent Watsen
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Kent Watsen
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Eggert, Lars
- Re: statement regarding keepalives Eggert, Lars
- Re: statement regarding keepalives Mikael Abrahamsson
- Re: statement regarding keepalives Olle E. Johansson
- Re: statement regarding keepalives Gorry Fairhurst
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Mikael Abrahamsson
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Benjamin Kaduk
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Benjamin Kaduk
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch
- Re: statement regarding keepalives Tom Herbert
- Re: statement regarding keepalives Joe Touch