[netmod] draft-ietf-netconf-netconf-client-server – TCP keepalives

NICK HANCOCK <nick.hancock@adtran.com> Mon, 11 June 2018 16:33 UTC

Return-Path: <nick.hancock@adtran.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9009B130FD4 for <netmod@ietfa.amsl.com>; Mon, 11 Jun 2018 09:33:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.588
X-Spam-Level:
X-Spam-Status: No, score=-2.588 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-0.7, T_KAM_HTML_FONT_INVALID=0.01] 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 Zazx7YrdxrTA for <netmod@ietfa.amsl.com>; Mon, 11 Jun 2018 09:33:02 -0700 (PDT)
Received: from us-smtp-delivery-128.mimecast.com (us-smtp-delivery-128.mimecast.com [63.128.21.128]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 92299130E82 for <netmod@ietf.org>; Mon, 11 Jun 2018 09:33:01 -0700 (PDT)
Received: from ex-hc2.corp.adtran.com (ex-hc3.adtran.com [76.164.174.83]) (Using TLS) by us-smtp-1.mimecast.com with ESMTP id us-mta-10-3Dx0gFo6O6yPo_4ZQSkOWw-1; Mon, 11 Jun 2018 12:32:57 -0400
Received: from ex-mb1.corp.adtran.com ([fe80::51a3:972d:5f16:9952]) by ex-hc2.corp.adtran.com ([fe80::a019:449b:3f62:28e5%10]) with mapi id 14.03.0382.000; Mon, 11 Jun 2018 11:32:56 -0500
From: NICK HANCOCK <nick.hancock@adtran.com>
To: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: draft-ietf-netconf-netconf-client-server – TCP keepalives
Thread-Index: AdQBbiz3wyrw29ouRVmaGb3eDwAolA==
Date: Mon, 11 Jun 2018 16:32:56 +0000
Message-ID: <BD6D193629F47C479266C0985F16AAC7F0707C76@ex-mb1.corp.adtran.com>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0FEVFJBTiIsImlkIjoiYjJhZjQ3MmItOTI0Mi00OGFiLTg5NTktOTgzOTVmMmY0YTZmIiwicHJvcHMiOlt7Im4iOiJDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiR0IifV19LHsibiI6IlF1ZXN0aW9uMSIsInZhbHMiOltdfSx7Im4iOiJRdWVzdGlvbjIiLCJ2YWxzIjpbXX0seyJuIjoiUXVlc3Rpb24zIiwidmFscyI6W119XX0sIlN1YmplY3RMYWJlbHMiOltdLCJUTUNWZXJzaW9uIjoiMTcuMi4xMS4wIiwiVHJ1c3RlZExhYmVsSGFzaCI6InkzQUtzY0RoUlJtbDlHN2IxM1lQRWY0SngxMDVSQ1k5a3hPNTM2cDI0cXV4Vm5mODhTcXhPT0dLTTROc0dCUTUifQ==
x-originating-ip: [172.20.60.154]
MIME-Version: 1.0
X-MC-Unique: 3Dx0gFo6O6yPo_4ZQSkOWw-1
Content-Type: multipart/alternative; boundary="_000_BD6D193629F47C479266C0985F16AAC7F0707C76exmb1corpadtran_"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/S9nkopWP9cU2qBj2-RWd-V4ssCc>
Subject: [netmod] draft-ietf-netconf-netconf-client-server – TCP keepalives
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.26
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jun 2018 16:33:06 -0000

Hi All,

A couple of companies are working on a solutions to implement devices, such as DPUs, based on the requirements of the Broadband Forum Technical Report TR-301 issue 2 “Architecture and Requirements for Fiber to the Distribution Point”, which requires TLS for the persistent NETCONF connection, for which the configuration of call home is to be by means of the ‘ietf-netconf-server’ module.

TLS heartbeat cannot be supported to keep the call home connection alive, because TLS heartbeat is not or no longer supported by many TLS libraries, such as OpenSSL in the wake of the Heartbleed security bug. Although TCP keep-alives are not secure, we will nevertheless be required to support TCP keepalives to ensure that the connection remains persistent and these keepalives would also need to be configurable. Unfortunately, the keepalive configuration implemented in ‘ietf-netconf-server’, although not bound to the ‘transport’ choice, is bound to the secure layer textually in the description of the data nodes (references to “SSH/TLS client” and “SSH/TLS-level message”), which makes its use for configuring TCP keepalives for specific implementations possible, but obviously problematic. RFC 8071, Section 4.1, S7, also heavily implies that it is intended to be used for the designated transport layer (e.g., SSH, TLS).

Since this issue affects the industry as a whole, we believe it would be better to provide support for the configuration of TCP keepalives within the ‘ietf-netconf-server’ module from the beginning, rather than wait for other SDOs or vendors to augment the module after publication as an RFC, which they will be practicably forced to do.

Would supporting TCP keepalives in the IETF-defined module be something the WG would agree to discuss? A possible solution, shown below, could be to add a new container parallel to the existing ‘keep-alives’ container to explicitly support the configuration for TCP keepalives. In addition, a feature statement (e.g. "keep-alives") could be added to the existing ‘keep-alives’ container, as RFC 8071 S7 says SHOULD (not MUST).

                   container tcp-keep-alives {

                     if-feature tcp-keep-alives;

                     description

                       "Configures the keep-alive policy, to

                        proactively test the aliveness of the TCP

                        peer.  An unresponsive TCP peer will

                        be dropped after approximately max-attempts *

                        max-wait seconds.";

                     reference

                       "RFC 1122<https://tools.ietf.org/html/rfc8071>: Requirements for Internet Hosts --

                        Communication Layers, section 4.2.3.6<http://4.2.3.6>.";

                     leaf max-wait {

                       type uint16 {

                         range "1..32767";

                       }

                       units seconds;

                       default 30;

                       description

                        "Sets the amount of time in seconds after

                         which if no data has been received from

                         the TCP peer, a TCP-level message

                         will be sent to test the aliveness of the

                         TCP peer.";

                     }

                     leaf max-attempts {

                       type uint8 {

                         range "1..127";

                       }

                       default 3;

                       description

                        "Sets the maximum number of sequential keep-

                        alive messages that can fail to obtain a

                        response from the TCP peer before

                        assuming the TCP peer is no longer

                        alive.";

                     }

                     leaf interval-between-attempts {

                       type uint16  {

                         range "1..32767";

                       }

                       units seconds;

                       default 30;

                       description

                        "Sets the amount of time in seconds after

                         which, if no reply to a keep-alive message

                         has been received from the TCP peer, the

                         next keep-alive message will be sent.";

                     }

                   }

                 }


What is the opinion of the list? Would this solution work?

Best regards
Nick & Yves