Re: [radext] Confirmation of discussions on RADIUS/(D)TLS at IETF117
Alan DeKok <aland@deployingradius.com> Thu, 03 August 2023 15:47 UTC
Return-Path: <aland@deployingradius.com>
X-Original-To: radext@ietfa.amsl.com
Delivered-To: radext@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DC86DC14CF1C for <radext@ietfa.amsl.com>; Thu, 3 Aug 2023 08:47:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
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 5-0wMHcU61MO for <radext@ietfa.amsl.com>; Thu, 3 Aug 2023 08:47:00 -0700 (PDT)
Received: from mail.networkradius.com (mail.networkradius.com [62.210.147.122]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2017AC14CF0C for <radext@ietf.org>; Thu, 3 Aug 2023 08:46:59 -0700 (PDT)
Received: from smtpclient.apple (135-23-95-173.cpe.pppoe.ca [135.23.95.173]) by mail.networkradius.com (Postfix) with ESMTPSA id 61431382; Thu, 3 Aug 2023 15:46:55 +0000 (UTC)
Authentication-Results: NetworkRADIUS; dmarc=none (p=none dis=none) header.from=deployingradius.com
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
From: Alan DeKok <aland@deployingradius.com>
In-Reply-To: <5ac0c777-cd8d-34fb-1f3c-7490a22a8705@iea-software.com>
Date: Thu, 03 Aug 2023 11:46:53 -0400
Cc: Jan-Frederik Rieckers <rieckers@dfn.de>, radext@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <5D3CA382-FED1-4ABF-9673-C01B84897B47@deployingradius.com>
References: <a401c4c2-3ddd-3d93-3fbc-b3fc02a1d26c@dfn.de> <427477d3-0554-a71b-e8b6-a1119c173b42@iea-software.com> <6B99FF55-27EE-469E-ACFC-412DB0CD1B98@deployingradius.com> <5ac0c777-cd8d-34fb-1f3c-7490a22a8705@iea-software.com>
To: Peter Deacon <peterd@iea-software.com>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/radext/P8H3dMBlaIcD9wHG0r7s-EjpSY4>
Subject: Re: [radext] Confirmation of discussions on RADIUS/(D)TLS at IETF117
X-BeenThere: radext@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: RADIUS EXTensions working group discussion list <radext.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/radext>, <mailto:radext-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/radext/>
List-Post: <mailto:radext@ietf.org>
List-Help: <mailto:radext-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/radext>, <mailto:radext-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Aug 2023 15:47:02 -0000
On Aug 2, 2023, at 9:56 PM, Peter Deacon <peterd@iea-software.com> wrote:
> The mechanism may mislead clients and is not necessary for effective recovery.
I disagree. There are situations where the application has little choice but to use an application-layer watchdog.
I do think that Michael's suggestion is a good one, though. This is more likely dead peer detection, and not "keep alive".
> While Status-Server is useful I don't think it should be required.
I don't know of alternative methods which the application can use to detect dead peers.
If the server isn't replying to packets, then the client has only a limited number of choices:
a) keep using the server
b) stop using the server
We don't want to encourage clients to close connections on the first hint of issues. That can cause connectivity issues, unnecessary connection flapping, etc.
Instead, the connections should be placed into a "pending" state, and Status-Server sent as per RFC 3539. If that test fails, it's closed. Otherwise the connection remains in a working state.
Perhaps it's best to enumerate these states, and to describe what to do with them. From the point of view of the client, we have:
1) connecting - TLS connection is in process. The application should do TLS reads / writes, but the connection is not available for RADIUS packets
2) connected - the connection is alive and working. There are two sub-states, though:
2a) active - RADIUS packets are being actively sent and replied to
if there are no replies, we transition to "pending"
2b) inactive - no RADIUS packets are being sent. The RFC 3539 watchdog should be used.
if the watchdog fails, we transition to "closed"
if we start sending normal packets, we transition to "connected - active", and we stop sending watchdogs.
3) pending - we have sent normal packets without a response. The watchdog is triggered
The connection is marked as not available for sending normal RADIUS packets.
The watchdog is started, and we run the same checks as for (2b).
4) closed - the connection is dead. all packets using it are moved to other connections, and retransmitted
Some questions:
Q: for (3), do we immediately move normal packets to other connections which are in a connected+active state?
Q: if not, then for (3) do we transition the connection to connected+active if the server sends replies to outstanding normal packets, or do we wait for the watchdog process to report success?
Alan DeKok.
- [radext] Confirmation of discussions on RADIUS/(D… Jan-Frederik Rieckers
- Re: [radext] Confirmation of discussions on RADIU… Alan DeKok
- Re: [radext] Confirmation of discussions on RADIU… Bernard Aboba
- Re: [radext] Watchdog behaviour (was: Confirmatio… Jan-Frederik Rieckers
- Re: [radext] Watchdog behaviour (was: Confirmatio… Alexander Clouter
- Re: [radext] Watchdog behaviour (was: Confirmatio… Bernard Aboba
- Re: [radext] Watchdog behaviour (was: Confirmatio… Mark Grayson (mgrayson)
- Re: [radext] Watchdog behaviour (was: Confirmatio… Heikki Vatiainen
- Re: [radext] Watchdog behaviour (was: Confirmatio… Alexander Clouter
- Re: [radext] Watchdog behaviour (was: Confirmatio… Jan-Frederik Rieckers
- Re: [radext] Watchdog behaviour (was: Confirmatio… Heikki Vatiainen
- Re: [radext] Watchdog behaviour (was: Confirmatio… Margaret Cullen
- Re: [radext] Watchdog behaviour (was: Confirmatio… Alan DeKok
- Re: [radext] Watchdog behaviour (was: Confirmatio… Margaret Cullen
- Re: [radext] Confirmation of discussions on RADIU… Alexander Clouter
- Re: [radext] Confirmation of discussions on RADIU… Margaret Cullen
- Re: [radext] Confirmation of discussions on RADIU… Alexander Clouter
- Re: [radext] Confirmation of discussions on RADIU… Michael Richardson
- Re: [radext] Confirmation of discussions on RADIU… Heikki Vatiainen
- Re: [radext] Confirmation of discussions on RADIU… Peter Deacon
- Re: [radext] Confirmation of discussions on RADIU… Alan DeKok
- Re: [radext] Confirmation of discussions on RADIU… Peter Deacon
- Re: [radext] Confirmation of discussions on RADIU… Alan DeKok
- Re: [radext] Confirmation of discussions on RADIU… josh.howlett
- Re: [radext] Confirmation of discussions on RADIU… Jan-Frederik Rieckers
- Re: [radext] Confirmation of discussions on RADIU… Margaret Cullen
- Re: [radext] Confirmation of discussions on RADIU… Alan DeKok
- Re: [radext] Confirmation of discussions on RADIU… Michael Richardson
- Re: [radext] Confirmation of discussions on RADIU… Heikki Vatiainen
- Re: [radext] Confirmation of discussions on RADIU… Alexander Clouter