Re: qlog, AckFrame, and ack_delay

Marten Seemann <martenseemann@gmail.com> Fri, 10 November 2023 08:47 UTC

Return-Path: <martenseemann@gmail.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66912C17061C for <quic@ietfa.amsl.com>; Fri, 10 Nov 2023 00:47:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.105
X-Spam-Level:
X-Spam-Status: No, score=-7.105 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_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, 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 qRmLfYrmNOpV for <quic@ietfa.amsl.com>; Fri, 10 Nov 2023 00:47:48 -0800 (PST)
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 BB9CBC1519B4 for <quic@ietf.org>; Fri, 10 Nov 2023 00:47:48 -0800 (PST)
Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9d216597f64so305119466b.3 for <quic@ietf.org>; Fri, 10 Nov 2023 00:47:48 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1699606067; x=1700210867; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TqUGfg+K6Tnu2BFcXWR/wxuMGb9vivDFUOmFj6InnOQ=; b=l+SIIzb1ZanQXibKGgvlaVi8m+CV3oYeH2dxdcV4pCNGtN24O/VUkq0zgOfID/n6vS d+FInYfZV97zPWl/GRQpdtmMxCX2nU1ZhF6K42hOsLfQw4QhCoRd2KMvi+o5ABDq6LN+ zMIdqyIfNek7Vrf+ITfpG3fcMGqUZx+NOeNGvXoSzDCSwxyzO/QffceBXljQSzjB3N8B QPmREdqkthP/DN9yKD0hBD3f+z8kfteOD4RhYzfuXzWnpLf3t/X1xiwbGo8oLW1FijwN uhnIX7oxbqwIfJzjrSlcl6taAuTbKvoZhfTEgBbhbi9m496+EI0ywaBecGs24J4Wsk4M zF3w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699606067; x=1700210867; 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=TqUGfg+K6Tnu2BFcXWR/wxuMGb9vivDFUOmFj6InnOQ=; b=i4lSOWk0UuRazkm8gHjho3MCxkGFTfAg65aDpjhGLP7Ce223ARrTvCd2Wten0NiiQ0 /FxmW26gsZ7lmX4c5zsZcGE4PLmbU+r743lo1j6x0Tzf5M+SS6Fy0pmcCCHqNa5VID1W QnYczMaBRTJ84SzyD2z7tLC6KsKl1skWa/AuQLTx6zYckFkjJWXTUTlMEoiw10/VmLmM BHsw4bnDNcoVb4SdakRBytlNpjTOsPRGl4zXOfKFMAnpJ3QzdZIjuBcTPHh1dmCDAj61 2pg/ka8I8LOwGveJV8yytykHpm08Dgrzom+pC59+xDboT70agSA7wAAB8D2tz86ZBfpn hEjw==
X-Gm-Message-State: AOJu0YzCvNKRkTTmfvzujOrv0UIhliHk/8C8ckb1wfIv5LTj6iKDvej8 OPdee9cXd5uRDI6W+R8qw/ahSmVvsYDt2B44620JlaEf1HJmzAqR
X-Google-Smtp-Source: AGHT+IF85m9VIgcMlDh7U1cCdvdq/1rzZoCe7/ETWrnb0fLUbRGhjv8sbk7t4agtPSIk3zyJ6/B6swHTnoF9Gyghd9E=
X-Received: by 2002:a17:907:6d1e:b0:9dd:4811:7111 with SMTP id sa30-20020a1709076d1e00b009dd48117111mr6847675ejc.4.1699606066726; Fri, 10 Nov 2023 00:47:46 -0800 (PST)
MIME-Version: 1.0
References: <CAGgfL4tDDb7jZ-e-_STZ8SFPESyuPtqfFesQZOjzX_5i0XpAdw@mail.gmail.com>
In-Reply-To: <CAGgfL4tDDb7jZ-e-_STZ8SFPESyuPtqfFesQZOjzX_5i0XpAdw@mail.gmail.com>
From: Marten Seemann <martenseemann@gmail.com>
Date: Fri, 10 Nov 2023 09:47:35 +0100
Message-ID: <CAOYVs2p2Z1JMa97uXF0SYYzsw_AOFP0-G9R+PVfeMwRw46Gw-w@mail.gmail.com>
Subject: Re: qlog, AckFrame, and ack_delay
To: Damien Neil <dneil=40google.com@dmarc.ietf.org>
Cc: quic@ietf.org
Content-Type: multipart/alternative; boundary="000000000000dd8b8d0609c85fac"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/u62XMeL4w0mpT_1l49mCMHuTVvc>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 10 Nov 2023 08:47:49 -0000

There's a tradeoff here: Giving writers of qlog files more flexibility
comes at a cost to consumers of qlog files, who now need to support
multiple representations. There's a lot of value in having only a single
way to log something.

I'm not sure the proposal for unscaled_ack_delay strikes the right balance
here. For a consumer of a qlog file, I can't think of a single scenario
where the unscaled_ack_delay would provide any advantage over the actual
value, so introducing this option would purely to make the writer's life
easier. And I'm struggling to see why logging the ack_delay would place a
big burden on the writer, since a QUIC stack will need to decode this field
at some point anyway.

On Thu, 9 Nov 2023 at 22:44, Damien Neil <dneil=40google.com@dmarc.ietf.org>
wrote:

> The qlog AckFrame type includes the ack delay as a float32 number of
> milliseconds:
>
> AckFrame = {
>     frame_type: "ack"
>
>     ; in ms
>     ? ack_delay: float32
>     ; ...
> }
>
>
> https://www.ietf.org/archive/id/draft-ietf-quic-qlog-quic-events-06.html#section-8.12.3
>
> Given a serialized ack frame, determining the delay as a duration requires
> knowing the ack_delay_exponent. In some cases, the logging endpoint may not
> have this available (if receiving an ack before transport parameters have
> been received). Even when available, it may not be easily accessible at the
> point of logging. For example, in my own implementation, I'd like to be
> able to convert a packet payload to a series of qlog event frames without
> needing to reference persistent connection state.
>
> I think there should be an alternative to log the raw value of the ACK
> Delay field:
>
> AckFrame = {
>     frame_type: "ack"
>
>     ; in ms
>     ? ack_delay: float32
>
>     ; integer value of the ACK Delay field, not scaled by the
> ack_delay_exponent
>     ? unscaled_ack_delay: uint64
>
>     ; ...
> }
>
> - Damien
>