Re: [Wish] How to detect a crashed client?
Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com> Thu, 09 September 2021 20:11 UTC
Return-Path: <sergio.garcia.murillo@gmail.com>
X-Original-To: wish@ietfa.amsl.com
Delivered-To: wish@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id B876F3A14A3
for <wish@ietfa.amsl.com>; Thu, 9 Sep 2021 13:11:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
URIBL_BLOCKED=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 ([4.31.198.44])
by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id 97y52IJYxI-L for <wish@ietfa.amsl.com>;
Thu, 9 Sep 2021 13:11:07 -0700 (PDT)
Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com
[IPv6:2607:f8b0:4864:20::102f])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id E92403A1497
for <wish@ietf.org>; Thu, 9 Sep 2021 13:10:46 -0700 (PDT)
Received: by mail-pj1-x102f.google.com with SMTP id t20so2168860pju.5
for <wish@ietf.org>; Thu, 09 Sep 2021 13:10:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:cc; bh=Cu/+Z6k1BFdWnF6CsqOW7CX97lNTMH+rebWqwNT9iQQ=;
b=Wzo2ahda+euWdo0htqEmtqQBNVoU0Xe3zoLcbtDkDrcGEp/5Dbm+a490s3+p6MqTYU
hawAFDuMmYmC80nDtkiwXxpFG/jEl2aD42BDKgxPIehR310ojPGz201vce/kAYOZbeie
wi2qUox4ObyP6DzjNgi+AEYxE+BrfVNLpx2jUSznCHxyhg3EtlbdndcxJYGiOdcKkmZE
skCVdgJYUoGk1DwUCm5TYe5Ov26s3tYkF6GJcuYU5aRz3DpCshpylvBsTUbuh7ZfZm1F
hjS6fL5Ig9V5zJN15lia668wcbBxgk2wtDy23pGWSijgaOxIPgYhK+QKCRrv7HvXBfb0
aJNA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20210112;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:cc;
bh=Cu/+Z6k1BFdWnF6CsqOW7CX97lNTMH+rebWqwNT9iQQ=;
b=J+UPFJ10+Zksm9sfzaaPzM8vNGH0EiGEwC4zYEa2j3OMMy6pNdZ1gZ1V+nSx9bpyox
4vAHTNS8n0Uea84m32VkZWoknZHvXvhmzgtYk/mu5QjyhCOU/1QKIMXkV6zQjG2MeYGo
VVz4QL0CJVRpoDmFgJmqlmvL0Q8vPCkVnPdT/iYTNJfSBiK9TkFtU6SCGfP21/wziD3/
gDGB7OLfqy01+Ali++QY5Ay6YBOybSYrE4/k/UlcbXJgPSaownHrvcquZnrwRDhzRCfU
VJZIDjxJzOq2l6Unzl6iGbmNrtJETEJQZRBBHLidUSGqV93BM26mHcf+kbUv+eQDecw2
nPRA==
X-Gm-Message-State: AOAM530n+TKOxo8BocuRLbVtflwXJklZugbbfLNVqH4TAwjlMXOuix7y
p1hea7McYwIFTVTk9ztxVisGeqjwiZucgQHsXQ4=
X-Google-Smtp-Source: ABdhPJwMrtu9CirW8MVYejdxsVkySfHQrqq7ATz5ATjmzv87V2WYaY5hfB0O0XCVbU+BoB63s6VLn4ut6ALUY7u70zM=
X-Received: by 2002:a17:902:d2c8:b0:13a:54b2:81c9 with SMTP id
n8-20020a170902d2c800b0013a54b281c9mr4403981plc.21.1631218245623; Thu, 09 Sep
2021 13:10:45 -0700 (PDT)
MIME-Version: 1.0
References: <877dfphj5g.wl-jch@irif.fr>
<CA+ag07Y0A9ZbfH9QPEWUS2LjFA4hF7T1kuYc-fCUMLW+VdCRww@mail.gmail.com>
<875yv9hgrf.wl-jch@irif.fr> <7DEC2328-BB66-449B-A778-BAF8DDB9BFC8@8x8.com>
In-Reply-To: <7DEC2328-BB66-449B-A778-BAF8DDB9BFC8@8x8.com>
From: Sergio Garcia Murillo <sergio.garcia.murillo@gmail.com>
Date: Thu, 9 Sep 2021 22:10:34 +0200
Message-ID: <CA+ag07aZkSHyuGTt-Gkn7AxboAoexSZTUQCi+nBCjyYTyCVmXw@mail.gmail.com>
To: Nils Ohlmeier <nils.ohlmeier@8x8.com>
Cc: Juliusz Chroboczek <jch@irif.fr>, WISH List <wish@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000014e7e905cb959873"
Archived-At: <https://mailarchive.ietf.org/arch/msg/wish/6Ww78TmU6Yx73nEmPcxbeN8E26E>
Subject: Re: [Wish] How to detect a crashed client?
X-BeenThere: wish@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: WebRTC Ingest Signaling over HTTPS <wish.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/wish>,
<mailto:wish-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/wish/>
List-Post: <mailto:wish@ietf.org>
List-Help: <mailto:wish-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/wish>,
<mailto:wish-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Sep 2021 20:11:13 -0000
El jue, 9 sept 2021 a las 19:52, Nils Ohlmeier (<nils.ohlmeier@8x8.com>) escribió: > > On Sep 9, 2021, at 09:10, Juliusz Chroboczek <jch@irif.fr> wrote: > > > >> Which means that the server has to monitor the ICE requests and timeout > >> any client which hasn't issued a new ICE request to renovate the consent > >> in 30s. > > > > So we're assuming that the client has a shorter ICE timeout than the > > server, right? Otherwise the client won't get a chance to send an ICE > > restart. > > [With my individual contributor hat on] > > I think Sergios description above is actually not fully correct. > > With ICE consent the client and the server both run their own independent > ICE consent checks. > So the client sends consent requests and server answers them. And the > server sends consent requests which the client has to answer. > If the client crashes, the servers consent checks will get no responses > and then after 30 seconds can delete the PeerConnection. > That's true in case of full ice servers, but servers may be ice lite which shouldn't send ice requests. > > But yes if the server then would delete the PeerConnection right after > consent timed out I assume it would make it hard to execute an ICE restart > if the client requests that N seconds later. This is different from the > browser case, where the ICE consent timeout only changes the ICE connection > state, but does not directly affect the lifetime of the PeerConnection > itself. > > I would suggest that instead of messing with the timers for ICE consent on > the two different sides of the connection - BTW for browser endpoints the > JS client can’t change the ICE consent timeout value - the spec should > mandate that server endpoints need to keep the PeerConnection around for > another N seconds after ICE consent timed out. > I am not sure if we should mandate it in the spec, setting a timeout grace period once the ice timer has expired could be implementation specific. The client has no way of knowing the exact timeout on the server side, so it would have the same effect to raise the timeout server side, or have a grace period deleting the session server side. Also, in case of ice restart the behaviour would be the same, the whip client would have to try an ice restart, and if the session is not found, do a full restart (based reconnection policies on client side). IMHO, doing an ice restart after 30s or 40s of disconnection does not offer any benefit over full restart, but others may not think alike. Best regards Sergio
- [Wish] How to detect a crashed client? Juliusz Chroboczek
- Re: [Wish] How to detect a crashed client? Sergio Garcia Murillo
- Re: [Wish] How to detect a crashed client? Juliusz Chroboczek
- Re: [Wish] How to detect a crashed client? Nils Ohlmeier
- Re: [Wish] How to detect a crashed client? Sergio Garcia Murillo
- Re: [Wish] How to detect a crashed client? Juliusz Chroboczek
- Re: [Wish] How to detect a crashed client? Sergio Garcia Murillo
- Re: [Wish] How to detect a crashed client? Nils Ohlmeier
- Re: [Wish] How to detect a crashed client? Sergio Garcia Murillo
- Re: [Wish] How to detect a crashed client? Christer Holmberg
- Re: [Wish] How to detect a crashed client? Nils Ohlmeier
- Re: [Wish] How to detect a crashed client? Christer Holmberg
- Re: [Wish] How to detect a crashed client? Juliusz Chroboczek
- Re: [Wish] How to detect a crashed client? Christer Holmberg
- Re: [Wish] How to detect a crashed client? Juliusz Chroboczek
- Re: [Wish] How to detect a crashed client? Christer Holmberg
- Re: [Wish] How to detect a crashed client? Sergio Garcia Murillo
- Re: [Wish] How to detect a crashed client? Christer Holmberg
- Re: [Wish] How to detect a crashed client? Adam Roach