RtpTransportControllerSend::PostUpdates

配置码率

GoogCcNetworkController::GetPacingRates

pacing_factor_默认2.5。也就是说pacer发送报文的码率是探测码率的2.5倍。

PacerConfig GoogCcNetworkController::GetPacingRates(Timestamp at_time) const {
  // Pacing rate is based on target rate before congestion window pushback,
  // because we don't want to build queues in the pacer when pushback occurs.
  // 起搏速率基于拥塞窗口推送前的目标速率,
  // 因为我们不想在push发生时在pacer中建立队列。
  DataRate pacing_rate =
      std::max(min_total_allocated_bitrate_, last_loss_based_target_rate_) *
      pacing_factor_;//pacing_factor_默认2.5。也就是说pacer发送报文的码率是探测码率的2.5倍。
  DataRate padding_rate =
      std::min(max_padding_rate_, last_pushback_target_rate_);
  PacerConfig msg;
  msg.at_time = at_time;
  msg.time_window = TimeDelta::Seconds(1);
  msg.data_window = pacing_rate * msg.time_window;
  msg.pad_window = padding_rate * ms
08-10 12:07