• Home
  • Raw
  • Download

Lines Matching refs:cubic_state

112     let cubic = &mut r.cubic_state;  in collapse_cwnd()
131 let cubic = &mut r.cubic_state; in on_packet_sent()
191 if r.cubic_state.w_max == 0.0 { in on_packet_acked()
192 r.cubic_state.w_max = r.congestion_window as f64; in on_packet_acked()
193 r.cubic_state.k = 0.0; in on_packet_acked()
204 r.cubic_state.w_max = r.congestion_window as f64; in on_packet_acked()
205 r.cubic_state.k = 0.0; in on_packet_acked()
213 let w_cubic = r.cubic_state.w_cubic(t + r.min_rtt); in on_packet_acked()
216 let w_est = r.cubic_state.w_est(t, r.min_rtt); in on_packet_acked()
243 r.cubic_state.cwnd_inc += cubic_cwnd - r.congestion_window; in on_packet_acked()
248 if r.cubic_state.cwnd_inc >= recovery::MAX_DATAGRAM_SIZE { in on_packet_acked()
250 r.cubic_state.cwnd_inc -= recovery::MAX_DATAGRAM_SIZE; in on_packet_acked()
266 if r.cubic_state.w_max < r.cubic_state.w_last_max { in congestion_event()
267 r.cubic_state.w_last_max = r.cubic_state.w_max; in congestion_event()
268 r.cubic_state.w_max = in congestion_event()
269 r.cubic_state.w_max as f64 * (1.0 + BETA_CUBIC) / 2.0; in congestion_event()
271 r.cubic_state.w_last_max = r.cubic_state.w_max; in congestion_event()
274 r.cubic_state.w_max = r.congestion_window as f64; in congestion_event()
275 r.ssthresh = (r.cubic_state.w_max * BETA_CUBIC) as usize; in congestion_event()
278 r.cubic_state.k = r.cubic_state.cubic_k(); in congestion_event()
280 r.cubic_state.cwnd_inc = in congestion_event()
281 (r.cubic_state.cwnd_inc as f64 * BETA_CUBIC) as usize; in congestion_event()