Re: [quicwg/base-drafts] Add a loss_time per packet number space (#2451)
Marten Seemann <notifications@github.com> Mon, 11 February 2019 15:46 UTC
Return-Path: <noreply@github.com>
X-Original-To: quic-issues@ietfa.amsl.com
Delivered-To: quic-issues@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1E5B9131059 for <quic-issues@ietfa.amsl.com>; Mon, 11 Feb 2019 07:46:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.001
X-Spam-Level:
X-Spam-Status: No, score=-8.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=github.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 ZQ-J6N_AJ_UV for <quic-issues@ietfa.amsl.com>; Mon, 11 Feb 2019 07:46:01 -0800 (PST)
Received: from out-1.smtp.github.com (out-1.smtp.github.com [192.30.252.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68E60131047 for <quic-issues@ietf.org>; Mon, 11 Feb 2019 07:46:01 -0800 (PST)
Date: Mon, 11 Feb 2019 07:46:00 -0800
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1549899960; bh=alicZpbbzoW4l5SL2rgsVg4o6OnT+IBoo5Kbp2oVC9g=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:List-ID: List-Archive:List-Post:List-Unsubscribe:From; b=CfTeD08JccgC0uAu7MqkTqevHBu/9IbyB+i0CoxBKOsg1DY3RA1xiDTMdPufeXThA i6SXWkORVcYTaE9/LJc8bOCDFvb8zsbQdy12M2ppNGBpNTseI34vaFbIFXXBnwOy5y CQQrmaxMHjP863AMVAgWS3TN4P5cZ2Dnvvo5AJYE=
From: Marten Seemann <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab699d654660492bdb8a34343ba0e97ad360dafc1d92cf0000000118795ab892a169ce185e5d21@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/pull/2451/review/202171753@github.com>
In-Reply-To: <quicwg/base-drafts/pull/2451@github.com>
References: <quicwg/base-drafts/pull/2451@github.com>
Subject: Re: [quicwg/base-drafts] Add a loss_time per packet number space (#2451)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5c6198b8a85a5_22d53fcfe18d45b446749"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: marten-seemann
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/AenuSxboZ4-JuzYD34umFs0dkwI>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.29
List-Id: Notification list for GitHub issues related to the QUIC WG <quic-issues.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic-issues/>
List-Post: <mailto:quic-issues@ietf.org>
List-Help: <mailto:quic-issues-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic-issues>, <mailto:quic-issues-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Feb 2019 15:46:03 -0000
marten-seemann commented on this pull request. This is basically exactly what I just worked out on paper an hour ago, before running into https://github.com/quicwg/base-drafts/issues/2435#issuecomment-462371300. I believe you forgot to change `OnLossDetectionTimeout()` to the following: ``` OnLossDetectionTimeout(): min_loss_time = min_non_zero(loss_time[Initial], loss_time[Handshake], loss_time[ApplicationData]) if (min_loss_time != 0): // Time threshold loss Detection DetectLostPackets(packet number space with the min_loss_time) else if (crypto packets are in flight): // Crypto retransmission timeout. RetransmitUnackedCryptoData() crypto_count++ else: // PTO SendOneOrTwoPackets() pto_count++ SetLossDetectionTimer() ``` > @@ -1029,6 +1028,12 @@ SetLossDetectionTimer(): loss_detection_timer.cancel() return + for (loss_time : loss_times) { I don't think this guarantees that you're picking the earliest timer. We need something like ``` min_loss_time = min_non_zero(loss_time[Initial], loss_time[Handshake], loss_time[ApplicationData]) if (min_loss_time != 0): loss_detection_timer.update(min_loss_time) return ``` > @@ -1117,11 +1115,11 @@ DetectLostPackets(pn_space): if (unacked.in_flight): lost_packets.insert(unacked) else if (pn_space == ApplicationData): Just `else`, no `else if`. > @@ -873,10 +873,9 @@ max_ack_delay: received ACK frame may be larger due to late timers, reordering, or lost ACKs. -loss_time: -: The time at which the next packet will be considered lost based on - exceeding the reordering window in time. Only applies to the ApplicationData - packet number space. +loss_times[kPacketNumberSpace]: Nit: `loss_time` would be more consistent, since we also use `largest_acked_packet[kPacketNumberSpace]`, not `largest_acked_packets[kPacketNumberSpace]`. -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/quicwg/base-drafts/pull/2451#pullrequestreview-202171753
- Re: [quicwg/base-drafts] Add a loss_time per pack… Marten Seemann
- [quicwg/base-drafts] Add a loss_time per packet n… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… Marten Seemann
- Re: [quicwg/base-drafts] Add a loss_time per pack… Marten Seemann
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… Marten Seemann
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… ianswett
- Re: [quicwg/base-drafts] Add a loss_time per pack… Jana Iyengar
- Re: [quicwg/base-drafts] Add a loss_time per pack… Jana Iyengar