chromium/net/third_party/quiche/src/quiche/quic/core/congestion_control/hybrid_slow_start.cc

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "quiche/quic/core/congestion_control/hybrid_slow_start.h"

#include <algorithm>

#include "quiche/quic/platform/api/quic_logging.h"

namespace quic {

// Note(pwestin): the magic clamping numbers come from the original code in
// tcp_cubic.c.
const int64_t kHybridStartLowWindow =;
// Number of delay samples for detecting the increase of delay.
const uint32_t kHybridStartMinSamples =;
// Exit slow start if the min rtt has increased by more than 1/8th.
const int kHybridStartDelayFactorExp =;  // 2^3 = 8
// The original paper specifies 2 and 8ms, but those have changed over time.
const int64_t kHybridStartDelayMinThresholdUs =;
const int64_t kHybridStartDelayMaxThresholdUs =;

HybridSlowStart::HybridSlowStart()
    :{}

void HybridSlowStart::OnPacketAcked(QuicPacketNumber acked_packet_number) {}

void HybridSlowStart::OnPacketSent(QuicPacketNumber packet_number) {}

void HybridSlowStart::Restart() {}

void HybridSlowStart::StartReceiveRound(QuicPacketNumber last_sent) {}

bool HybridSlowStart::IsEndOfRound(QuicPacketNumber ack) const {}

bool HybridSlowStart::ShouldExitSlowStart(QuicTime::Delta latest_rtt,
                                          QuicTime::Delta min_rtt,
                                          QuicPacketCount congestion_window) {}

}  // namespace quic