With this CL, the decision if an RTP packet should be sent as ect(1) is made in RtpControllerSend depending on if RFC 8888 has been negotiated and if CCFB is received with ECN enabled. Since webrtc does not yet adapt to ECN feedback, packets are sent as ECT(1) until the first feedback is received. Change-Id: Iddf63849328afbe54a7c8f921f2e8db134aeff6a Bug: webrtc:42225697 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/367388 Commit-Queue: Per Kjellander <perkj@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43609}
99 lines
3.0 KiB
Plaintext
99 lines
3.0 KiB
Plaintext
# Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
import("../../../webrtc.gni")
|
|
|
|
rtc_library("control_handler") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"control_handler.cc",
|
|
"control_handler.h",
|
|
]
|
|
|
|
deps = [
|
|
"../../../api:sequence_checker",
|
|
"../../../api/transport:network_control",
|
|
"../../../api/units:data_rate",
|
|
"../../../api/units:data_size",
|
|
"../../../api/units:time_delta",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:logging",
|
|
"../../../rtc_base:safe_conversions",
|
|
"../../../rtc_base:safe_minmax",
|
|
"../../../rtc_base/system:no_unique_address",
|
|
"../../pacing",
|
|
]
|
|
}
|
|
rtc_library("transport_feedback") {
|
|
visibility = [ "*" ]
|
|
sources = [
|
|
"transport_feedback_adapter.cc",
|
|
"transport_feedback_adapter.h",
|
|
"transport_feedback_demuxer.cc",
|
|
"transport_feedback_demuxer.h",
|
|
]
|
|
|
|
deps = [
|
|
"../..:module_api_public",
|
|
"../../../api:sequence_checker",
|
|
"../../../api/transport:ecn_marking",
|
|
"../../../api/transport:network_control",
|
|
"../../../api/units:data_size",
|
|
"../../../api/units:time_delta",
|
|
"../../../api/units:timestamp",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:logging",
|
|
"../../../rtc_base:macromagic",
|
|
"../../../rtc_base:network_route",
|
|
"../../../rtc_base:rtc_numerics",
|
|
"../../../rtc_base/network:sent_packet",
|
|
"../../../rtc_base/synchronization:mutex",
|
|
"../../../rtc_base/system:no_unique_address",
|
|
"../../../system_wrappers",
|
|
"../../../system_wrappers:field_trial",
|
|
"../../rtp_rtcp:ntp_time_util",
|
|
"../../rtp_rtcp:rtp_rtcp_format",
|
|
"//third_party/abseil-cpp/absl/algorithm:container",
|
|
]
|
|
}
|
|
|
|
if (rtc_include_tests) {
|
|
rtc_library("congestion_controller_unittests") {
|
|
testonly = true
|
|
|
|
sources = [
|
|
"transport_feedback_adapter_unittest.cc",
|
|
"transport_feedback_demuxer_unittest.cc",
|
|
]
|
|
deps = [
|
|
":transport_feedback",
|
|
"../:congestion_controller",
|
|
"../../../api:array_view",
|
|
"../../../api/transport:ecn_marking",
|
|
"../../../api/transport:network_control",
|
|
"../../../api/units:data_size",
|
|
"../../../api/units:time_delta",
|
|
"../../../api/units:timestamp",
|
|
"../../../logging:mocks",
|
|
"../../../rtc_base:buffer",
|
|
"../../../rtc_base:checks",
|
|
"../../../rtc_base:logging",
|
|
"../../../rtc_base:safe_conversions",
|
|
"../../../rtc_base/network:sent_packet",
|
|
"../../../system_wrappers",
|
|
"../../../test:field_trial",
|
|
"../../../test:test_support",
|
|
"../../pacing",
|
|
"../../remote_bitrate_estimator",
|
|
"../../rtp_rtcp:ntp_time_util",
|
|
"../../rtp_rtcp:rtp_rtcp_format",
|
|
"//testing/gmock",
|
|
]
|
|
}
|
|
}
|