Re: [radext] Watchdog behaviour (was: Confirmation of discussions on RADIUS/(D)TLS at IETF117)
Bernard Aboba <bernard.aboba@gmail.com> Wed, 02 August 2023 19:03 UTC
Return-Path: <bernard.aboba@gmail.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 308C3C151984 for <radext@ietfa.amsl.com>; Wed, 2 Aug 2023 12:03:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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=gmail.com
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 nBmRBu7Rm3Ah for <radext@ietfa.amsl.com>; Wed, 2 Aug 2023 12:03:17 -0700 (PDT)
Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) (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 0C9D1C151707 for <radext@ietf.org>; Wed, 2 Aug 2023 12:03:16 -0700 (PDT)
Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-99c1f6f3884so23168466b.0 for <radext@ietf.org>; Wed, 02 Aug 2023 12:03:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691002995; x=1691607795; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mQg7vVGILzFGYl/AkaaBPdnQNS6maVyPQKxvojjk1Bs=; b=WHKGpBFg5Tc1zRq7GmsgFY5Adylc7YMjQdmDEyRmI2Uh7HhIII7JjMMCeeDGz+vIYi nrCSfwbI5Lvzx3ZvfLaqLmSpkD9D//7BZb1rz3lySVpqjQUPVgdyB0XmgfXLuCVsgbm4 6Szf2J+zNlioCSuHePfznnMLgiREL/ZEVEaFRr5ynvY91ljllQaxM7sLSvdbBF1E9i7U 1rysyNPfUUt7CK9D1cJrEse75ck7bYl7czkTRWoMkJh//uZno4CF697QRQlRYPxksNqG F7skYR7XKqNKVqM2TkQqchGMe+O0S/lhyRTeIBLRRg1gRQJilRBiW5D6ggfHofvJWEif ++vQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691002995; x=1691607795; 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=mQg7vVGILzFGYl/AkaaBPdnQNS6maVyPQKxvojjk1Bs=; b=J6A70Q7hR2d0TgENSpypI1hn+MbZ11rTqNR+0PAqRWUD6NSqY+14EABL8MdS+0Jk6X QAG0Fb4+CzO6zgIIZT5XNn4mGAAXXsPyemckF87VcZiqUGZGVLVW5ar/+DN3oEeg7a8/ O+eneRTabULSX8CgQEfND67LRmPLCrgTsPfItI6ATQIa9nWw7tvm1KZBcupliyEh5onT FCaMSqzuo/qB0xHCKCoer21zTGuP7rKxaqjXBCYOP7ArQXGevcnpLoRqigd99a70sxUZ XPNp0O1UfLojGkrKOdbOhxiTtAo2HuWZ9kMURO2SzwOiXrHPv7O52SBcJuugosw5T3ZY OPZw==
X-Gm-Message-State: ABy/qLYNo58n2l/dwUqY2YwW7KUEoQzhQiwCMuNX+R90N8ih6EO21nv0 knusYCnZiO8SkeD6YTS7z0i8fltY+9ZbADblWMu2IFTADQk=
X-Google-Smtp-Source: APBJJlH+pW9+TuM2sL318CzpiaIbapLsZdUcHaw0M/2kaSSHiiifv00d5Yk4O3MWWw1G/cu+RQAL8msy+qdhxbNGgKA=
X-Received: by 2002:a17:906:8a49:b0:99b:f53c:3648 with SMTP id gx9-20020a1709068a4900b0099bf53c3648mr5385329ejc.72.1691002994406; Wed, 02 Aug 2023 12:03:14 -0700 (PDT)
MIME-Version: 1.0
References: <a401c4c2-3ddd-3d93-3fbc-b3fc02a1d26c@dfn.de> <CB09256A-196E-451F-B438-A1D0F392B9A1@deployingradius.com> <ee50a5e6-8bee-09d4-15fa-cfce02a9e4bb@dfn.de> <f8a1e800-e4cc-4ed8-aaa6-d2eca1e20764@app.fastmail.com>
In-Reply-To: <f8a1e800-e4cc-4ed8-aaa6-d2eca1e20764@app.fastmail.com>
From: Bernard Aboba <bernard.aboba@gmail.com>
Date: Wed, 02 Aug 2023 12:03:03 -0700
Message-ID: <CAOW+2dsL+8U5Gjo5ai57LAu897p+QxcEJKqvWHa+hfjCv4=JMA@mail.gmail.com>
To: Alexander Clouter <alex+ietf@coremem.com>
Cc: radext@ietf.org
Content-Type: multipart/alternative; boundary="000000000000cbba700601f55078"
Archived-At: <https://mailarchive.ietf.org/arch/msg/radext/7omqTMwzHG0fPkKGWMl2DUq1Jkk>
Subject: Re: [radext] Watchdog behaviour (was: 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: Wed, 02 Aug 2023 19:03:19 -0000
Alexander said:
"If your description of 'minimal' is true, I suspect its purpose is more a
NAT keep-alive rather than a watchdog."
[BA] It's not just a NAT keep-alive. RFC 2865 describes potential issues
with "keep-alives", so the goal was to keep the level of traffic as low as
possible by only sending "keep-alives" where responses hadn't been received
for a while.
On Wed, Aug 2, 2023 at 11:22 AM Alexander Clouter <alex+ietf@coremem.com>
wrote:
> On Wed, 2 Aug 2023, at 18:29, Jan-Frederik Rieckers wrote:
> >
> > Regarding the watchdog algorithm a question just popped up in my head
> > and from the recording of the session I'm not exactly sure what the best
> > course of action would be or what the opinion of people in the room
> is/was.
> >
> > Radsecproxy offers two different ways of doing status server. Either
> > "on", which sends a packet each $timeinterval (I think it's 30 or 60
> > seconds, would need to confirm) or "minimal" which only sends status
> > server requests if replies to requests are outstanding.
> >
> > From my short skimming of RFC3539, only the latter is in compliance to
> > the spec.
>
> My skim makes me think neither approach is in compliance, but then this is
> a SHOULD not a MUST on the suggested implementation.
>
> If your description of 'minimal' is true, I suspect its purpose is more a
> NAT keep-alive rather than a watchdog.
>
> > Especially for debugging purposes and easy "grep" commands, it is quite
> > helpful that you have a fairly regular status server log entry for each
> > peer, because this way you don't have to analyze a lot of log lines, you
> > just can have a nagios check to see if this specific well-structured
> > line appeared in the logs during the last 2 minutes. If not, then
> > something's wrong.
>
> ...just as easy to catch a non-zero count of
> access-{accept,reject}/accounting-response.
>
> Of course you would *also* need to catch those Status-Server messages so a
> counter-argument would be "but now I have to use 'grep -e foo -e bar -e
> thingy ...' when I have to do Status-Server anyway...".
>
> > In my opinion, the additional traffic of sending a status server request
> > periodically instead of waiting until it is actually needed is
> > negligible and since the ID 0 is reserved for it anyhow, it should not
> > have further effect that an additional few bytes every few seconds.
>
> Two angles I see.
>
> Status-Server may be cheap on the wire, but I would be concerned about
> overlooking how cheap it may be to process. If the destination is a IdP, it
> would be useful if that check told you more whether the database it relies
> on is responsive rather than just if the listening socket is unclogged. So
> as an administrator of an IdP, for both monitoring and "making it
> meaningful", I personally like to make these sorts of requests an expensive
> operation (eg. poking a backend database). So one argument would be, maybe
> we want to keep these to a minimum.
>
> Another angle is the impact this has on RADIUS implementation, I thin it
> would be a positive one (similar to "implement DTLS also"). Any state
> machine here needs to handle "idle" and "down" states so by tying
> Status-Server to only your idle state is not going to be too much of a
> problem. If you do not have a state machine for your communication with
> upstream proxies...well, you got other problems.
>
> The aim of the watchdog is really to kick off failover sooner and
> preferably before you start sending actual traffic at it would would bubble
> up problems to your users...meaning the consequences are you may actually
> have to speak to them...eek! Best avoided!
>
> > The relevant question here is: Do we add some additional text to allow
> > deviating from the watchdog behavior described in RFC3539? Do we
> > explicitly forbid it?
>
> I would not forbid deviation, there are some special snowflake deployments
> out there. I think having SHOULD is strong enough to indicate "if you know
> what you are doing, go wild...".
>
> > Or am I missing something and the habit of sending this periodically is
> > actually more harmful than I can see?
>
> If it is unnecessary the only thing it can do is result in harm. I am not
> convinced it would, but I am concerned that someone may have a costly
> operation backing onto Status-Server omstly as I think it is arguably
> prudent to do so.
>
> Cheers
>
> _______________________________________________
> radext mailing list
> radext@ietf.org
> https://www.ietf.org/mailman/listinfo/radext
>
- [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