[core] Fwd: statement regarding keepalives

Carsten Bormann <cabo@tzi.org> Fri, 13 July 2018 05:09 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 90502130DE0 for <core@ietfa.amsl.com>; Thu, 12 Jul 2018 22:09:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3] 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 tMvkr6avPhnR for <core@ietfa.amsl.com>; Thu, 12 Jul 2018 22:09:25 -0700 (PDT)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (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 37688124D68 for <core@ietf.org>; Thu, 12 Jul 2018 22:09:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::b]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id w6D59L0n017808 for <core@ietf.org>; Fri, 13 Jul 2018 07:09:21 +0200 (CEST)
Received: from [192.168.217.102] (p5DC7F1FB.dip0.t-ipconnect.de [93.199.241.251]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 41Rgp86JCPzDWtb; Fri, 13 Jul 2018 07:09:20 +0200 (CEST)
From: Carsten Bormann <cabo@tzi.org>
Content-Type: multipart/alternative; boundary="Apple-Mail=_86AAAA30-1CC4-4D96-80DE-C239B44E1571"
X-Mao-Original-Outgoing-Id: 553151358.351882-4d3b504c54ad5ad57733fd0016bebf24
Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\))
Date: Fri, 13 Jul 2018 07:09:20 +0200
Message-Id: <20AFF4F7-88B8-4EBB-9A0B-213B569F69FA@tzi.org>
References: <D3326DE0-3F31-4045-B945-82B3F417BE4B@juniper.net>
To: Core <core@ietf.org>
X-Mailer: Apple Mail (2.3445.8.2)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/gep6tvkNxgX37D2h93yPkbrDqeg>
Subject: [core] Fwd: statement regarding keepalives
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 13 Jul 2018 05:09:29 -0000

There is a discussion  going on in tsvarea on keepalives.
It seems to me that  the facilities in RFC 8323 are already in line with the thinking at least of the initial draft statement (and so is RFC 7252’s original “CoAP ping”).
Those who care about keepalives, ping/pong etc. may want to follow this discussion…

Grüße, Carsten


> Begin forwarded message:
> 
> From: Kent Watsen <kwatsen@juniper.net <mailto:kwatsen@juniper.net>>
> Subject: statement regarding keepalives
> Date: July 13, 2018 at 02:37:59 GMT+2
> To: "tsv-area@ietf.org <mailto:tsv-area@ietf.org>" <tsv-area@ietf.org <mailto:tsv-area@ietf.org>>
> Cc: "tsvwg-ads@tools.ietf.org <mailto:tsvwg-ads@tools.ietf.org>" <tsvwg-ads@tools.ietf.org <mailto:tsvwg-ads@tools.ietf.org>>, "tls-ads@ietf.org <mailto:tls-ads@ietf.org>" <tls-ads@ietf.org <mailto:tls-ads@ietf.org>>, "netconf-chairs@ietf.org <mailto:netconf-chairs@ietf.org>" <netconf-chairs@ietf.org <mailto:netconf-chairs@ietf.org>>
> Archived-At: <https://mailarchive.ietf.org/arch/msg/tsv-area/fmz3WMUmZUiRUMm2AJgsA85QY94 <https://mailarchive.ietf.org/arch/msg/tsv-area/fmz3WMUmZUiRUMm2AJgsA85QY94>>
> 
> 
> Dear TSVAREA,
> 
> The folks working with the BBF asked the NETMOD WG to consider modifying draft-ietf-netconf-netconf-client-server to support TCP keepalives [1].  However, it is unclear what IETF's position is on the use of keepalives, especially with regards to keepalives provided in protocol stacks (e.g., <some-app> over HTTP over TLS over TCP).
> 
> After some discussion with Transport ADs (Spencer and Mijra) and the TLS ADs (Eric and Ben), the following draft statement has been crafted.  Spencer and Mijra have requested TSVAREA critique it before, perhaps, developing a consensus document around it in TSVWG.
> 
> It would be greatly appreciated if folks here could review and provide comments on the draft statement below.  The scope of the statement can be increased or reduced as deemed appropriate. 
> 
> [1] https://mailarchive.ietf.org/arch/msg/netconf/MOzcZKp2rSxPVMTGdmmrVInwx2M <https://mailarchive.ietf.org/arch/msg/netconf/MOzcZKp2rSxPVMTGdmmrVInwx2M> 
> 
> Thanks,
> Kent (and Mahesh) // NETCONF chairs
> 
> 
> ===== STATEMENT =====
> 
> When the initiator of a networking session needs to maintain a persistent connection [1], it is necessary for it to periodically test the aliveness of the remote peer.  In such cases, it is RECOMMENDED that the aliveness check happens at the highest protocol layer possible that is most meaningful to the application, to maximize the depth of the aliveness check.  
> 
> E.g., for an HTTPS connection to a simple webserver, HTTP-level keepalives would test more aliveness than TLS-level keepalives.  However, for a webserver that is accessed via a load-balancer that terminates TLS connections, TLS-level aliveness checks may be the most meaningful check that could be performed.
> 
> In order to ensure aliveness checks can always occur at the highest protocol layer, it is RECOMMENDED that protocol designers always include an aliveness check mechanism in the protocol and, for client/server protocols, that the aliveness check can be initiated from either peer, as sometimes the "server" is the initiator of the underlying networking connection (e.g., RFC 8071).
> 
> Some protocol stacks have a secure transport protocol layer (e.g., TLS, SSH, DTLS) that sits on top of a cleartext protocol layer (e.g., TCP, UDP).  In such cases, it is RECOMMENDED that the aliveness check occurs within protection envelope afforded by the secure transport protocol layer.  In such cases, the aliveness checks SHOULD NOT occur via the cleartext protocol layer, as an adversary can block aliveness check messages in either direction and send fake aliveness check messages in either direction.
> 
> [1] While reasons may vary for why the initiator of a networking session feels compelled to maintain a persistent connection.  If the session is primarily quiet, and the use case can cope with the additional latency of starting a new connection, it is RECOMMENDED to use short-lived connections, instead of maintaining a long-lived persistent connection using aliveness checks.
> 
> 
> 
>