[quicwg/base-drafts] The calc with rttvar. (#753)
scw00 <notifications@github.com> Wed, 30 August 2017 13:52 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 8CDE3132D4F for <quic-issues@ietfa.amsl.com>; Wed, 30 Aug 2017 06:52:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.019
X-Spam-Level:
X-Spam-Status: No, score=-2.019 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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 IMBxoq6E1O4w for <quic-issues@ietfa.amsl.com>; Wed, 30 Aug 2017 06:52:20 -0700 (PDT)
Received: from o9.sgmail.github.com (o9.sgmail.github.com [167.89.101.2]) (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 A2D58132E2F for <quic-issues@ietf.org>; Wed, 30 Aug 2017 06:52: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=r80bUAnej89nvdwu6qSedzLsM70=; b=oZt+IpanW7gIRyX7 3sbYDDWktT1AeX5FhkvPMpNJJuQUkZmz3ljuYyPw/GwKlMX6vMxGvIN8fIVj3pdN P4cM9Q5GRxrlwt5nbnSqkiO5s9bpGw1hB3FQkT0N0dTEgtB98IvyOiM5H7U4rrKi cPp2KQbJ3NIRxIEJgtiK1U+eZ8I=
Received: by filter0137p1las1.sendgrid.net with SMTP id filter0137p1las1-19038-59A6C313-1D 2017-08-30 13:52:19.395216579 +0000 UTC
Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id mipx4djBS5mV2Xmhoew3Eg for <quic-issues@ietf.org>; Wed, 30 Aug 2017 13:52:19.367 +0000 (UTC)
Date: Wed, 30 Aug 2017 13:52:19 +0000
From: scw00 <notifications@github.com>
Reply-To: quicwg/base-drafts <reply+0166e4ab256d2f088f03e206afd694de8cb95c73f0cb603892cf0000000115be851392a169ce0f23d63f@reply.github.com>
To: quicwg/base-drafts <base-drafts@noreply.github.com>
Cc: Subscribed <subscribed@noreply.github.com>
Message-ID: <quicwg/base-drafts/issues/753@github.com>
Subject: [quicwg/base-drafts] The calc with rttvar. (#753)
Mime-Version: 1.0
Content-Type: multipart/alternative; boundary="--==_mimepart_59a6c313456c3_2f363fde43dabc34788ec"; 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: l64QuQ2uJCcEyUykJbxN122A6QRmEpucztpreh3Pak2jBobqr4w7tsH6RMnQV4L5PXrqWMmqMOMd7Q rr0E7dsweAXbW6ISc9yMHScxATafSXPPDD+BJcjo0Lh/k9OKFtnH9EEH9Fpkq13BX7ZjMBd7WnCPUj if3z0r2z++NEEbJGHmTx/y7jOemJUgt9u6WRWJL3C7yYDHZogIvjRsBvkg==
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic-issues/mpkcFcMw0toZW_w9K7UyNEqjDBM>
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: Wed, 30 Aug 2017 13:52:23 -0000
Hello
It seems we use RFC6298. But RFC used the absolutely value with rttvar.
```
(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'
```
```
OnAckReceived(ack):
largest_acked_packet = ack.largest_acked
// If the largest acked is newly acked, update the RTT.
if (sent_packets[ack.largest_acked]):
latest_rtt = now - sent_packets[ack.largest_acked].time
if (latest_rtt > ack.ack_delay):
latest_rtt -= ack.delay
UpdateRtt(latest_rtt)
// Find all newly acked packets.
for acked_packet in DetermineNewlyAckedPackets():
OnPacketAcked(acked_packet.packet_number)
DetectLostPackets(ack.largest_acked_packet)
SetLossDetectionAlarm()
UpdateRtt(latest_rtt):
// Based on {{?RFC6298}}.
if (smoothed_rtt == 0):
smoothed_rtt = latest_rtt
rttvar = latest_rtt / 2
else:
rttvar = 3/4 * rttvar + 1/4 * (smoothed_rtt - latest_rtt)
smoothed_rtt = 7/8 * smoothed_rtt + 1/8 * latest_rtt
```
--
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/753