[quicwg/base-drafts] Adding more information about the computation of RTO (#1261)
scw00 <notifications@github.com> Tue, 03 April 2018 11:51 UTC
Return-Path: <bounces+848413-a050-quic-issues=ietf.org@sgmail.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 A0FA112E8C4 for <quic-issues@ietfa.amsl.com>; Tue, 3 Apr 2018 04:51:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.01
X-Spam-Level:
X-Spam-Status: No, score=-2.01 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=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 8YWFP-ySVD2Y for <quic-issues@ietfa.amsl.com>; Tue, 3 Apr 2018 04:51:20 -0700 (PDT)
Received: from o4.sgmail.github.com (o4.sgmail.github.com [192.254.112.99]) (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 94A9612E8B1 for <quic-issues@ietf.org>; Tue, 3 Apr 2018 04:51:20 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=github.com; h=from:reply-to:to:cc:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=JkxO6FfdzKZx9D/L8O99JHR2fEc=; b=DiCNLL0/pX4VoOZb XXw9ERgYsrxfuzX38TyClxAoNw2Cu2JSgqu1rUkeD7K5va5oJLfjJeVWxke4VgTx 2hNgkvU1lRgRGdzBBAOThdQ6sr6vKV2LrG3b/6He56LC+6EaUpjXs6mC10cdPESG UNFBQDwOiEFi7i0EahgHFBMO0/0=
Received: by filter0610p1las1.sendgrid.net with SMTP id filter0610p1las1-14441-5AC36AA4-16 2018-04-03 11:51:00.468411161 +0000 UTC
Received: from smtp.github.com (out-3.smtp.github.com [192.30.252.194]) by ismtpd0002p1iad2.sendgrid.net (SG) with ESMTP id N4locx4qRryiRL-kCyw75Q for <quic-issues@ietf.org>; Tue, 03 Apr 2018 11:51:00.389 +0000 (UTC)
Date: Tue, 03 Apr 2018 11:51:00 +0000
From: scw00 <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab3f5bc4f2f8b93b3a1b5aa1806eaddae69e15802792cf0000000116db2ca492a169ce12867eac@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/1261@github.com>
Subject: [quicwg/base-drafts] Adding more information about the computation of RTO (#1261)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_5ac36aa43f6dd_1a682b253e034ed41913ae"; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Precedence: list
X-GitHub-Sender: scw00
X-GitHub-Recipient: quic-issues
X-GitHub-Reason: subscribed
X-Auto-Response-Suppress: All
X-GitHub-Recipient-Address: quic-issues@ietf.org
X-SG-EID: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2iF80cJ/VKSN7KapTwyAOFBr8XwmbkfSA8bb JGNRokIi0xSm+HhU/qAFVBEgi6IJ4m7rYFMBftpZd6khVPy02RzXKKOanZY8xV8WFOtMuNeV9f8Qge OZ83tFVP0njl285ehINcR5rra6Oh4RWcSKqm/dSXFDgm8VmxjumLCbtYQg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/rXBe_-3nNNLmPrcw1nRu1MQaT7I>
X-BeenThere: quic-issues@ietf.org
X-Mailman-Version: 2.1.22
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: Tue, 03 Apr 2018 11:51:24 -0000
Should we follow the RFC 6298
```
2. The Basic Algorithm
To compute the current RTO, a TCP sender maintains two state
variables, SRTT (smoothed round-trip time) and RTTVAR (round-trip
time variation). In addition, we assume a clock granularity of G
seconds.
Paxson, et al. Standards Track [Page 2]
RFC 6298 Computing TCP's Retransmission Timer June 2011
The rules governing the computation of SRTT, RTTVAR, and RTO are as
follows:
(2.1) Until a round-trip time (RTT) measurement has been made for a
segment sent between the sender and receiver, the sender SHOULD
set RTO <- 1 second, though the "backing off" on repeated
retransmission discussed in (5.5) still applies.
Note that the previous version of this document used an initial
RTO of 3 seconds [PA00]. A TCP implementation MAY still use
this value (or any other value > 1 second). This change in the
lower bound on the initial RTO is discussed in further detail
in Appendix A.
(2.2) When the first RTT measurement R is made, the host MUST set
SRTT <- R
RTTVAR <- R/2
RTO <- SRTT + max (G, K*RTTVAR)
where K = 4.
(2.3) When a subsequent RTT measurement R' is made, a host MUST set
RTTVAR <- (1 - beta) * RTTVAR + beta * |SRTT - R'|
SRTT <- (1 - alpha) * SRTT + alpha * R'
The value of SRTT used in the update to RTTVAR is its value
before updating SRTT itself using the second assignment. That
is, updating RTTVAR and SRTT MUST be computed in the above
order.
The above SHOULD be computed using alpha=1/8 and beta=1/4 (as
suggested in [JK88]).
After the computation, a host MUST update
RTO <- SRTT + max (G, K*RTTVAR)
(2.4) Whenever RTO is computed, if it is less than 1 second, then the
RTO SHOULD be rounded up to 1 second.
Traditionally, TCP implementations use coarse grain clocks to
measure the RTT and trigger the RTO, which imposes a large
minimum value on the RTO. Research suggests that a large
minimum RTO is needed to keep TCP conservative and avoid
spurious retransmissions [AP99]. Therefore, this specification
requires a large minimum RTO as a conservative approach, while
at the same time acknowledging that at some future point,
research may show that a smaller minimum RTO is acceptable or
superior.
(2.5) A maximum value MAY be placed on RTO provided it is at least 60
seconds.
```
or just use the code in recovery
```
alarm_duration =
smoothed_rtt + 4 * rttvar + max_ack_delay
alarm_duration = max(alarm_duration, kMinRTOTimeout)
alarm_duration = alarm_duration * (2 ^ rto_count)
if (tlp_count < kMaxTLPs):
// Tail Loss Probe
tlp_alarm_duration = max(1.5 * smoothed_rtt
+ max_ack_delay, kMinTLPTimeout)
alarm_duration = min(tlp_alarm_duration, alarm_duration)
```
--
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/issues/1261