[feat] add robust throughput estimator

This commit is contained in:
dijunkun
2025-02-10 14:23:07 +08:00
parent 61ac3a9971
commit 1f3c93c77a
5 changed files with 329 additions and 1 deletions

View File

@@ -133,9 +133,17 @@ NetworkControlUpdate CongestionControl::OnTransportPacketsFeedback(
}
previously_in_alr_ = alr_start_time.has_value();
int count = 0;
for (auto r : report.SortedByReceiveTime()) {
count++;
LOG_WARN("{} packet.sent_packet.size: {}", count,
ToString(r.sent_packet.size));
}
acknowledged_bitrate_estimator_->IncomingPacketFeedbackVector(
report.SortedByReceiveTime());
auto acknowledged_bitrate = acknowledged_bitrate_estimator_->bitrate();
LOG_WARN("acknowledged_bitrate:{}", acknowledged_bitrate->kbps());
// TODO: fix acknowledged_bitrate
// acknowledged_bitrate = DataRate::KilobitsPerSec(1000);
bandwidth_estimation_->SetAcknowledgedRate(acknowledged_bitrate,