Lines Matching defs:cwnd
56 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3
57 * so K = cubic_root( (wmax-cwnd)*rtt/c )
64 * cwnd < 1 million packets
75 __u32 cnt; /* increase cwnd by 1 after ACKs */
85 __u32 tcp_cwnd; /* estimated tcp cwnd */
198 * Shift epoch_start to keep cwnd growth to cubic curve.
265 static void bictcp_update(struct bpf_bictcp *ca, __u32 cwnd, __u32 acked)
272 if (ca->last_cwnd == cwnd &&
277 * On all cwnd reduction events, ca->epoch_start is set to 0,
283 ca->last_cwnd = cwnd;
289 ca->tcp_cwnd = cwnd; /* syn with cubic */
291 if (ca->last_max_cwnd <= cwnd) {
293 ca->bic_origin_point = cwnd;
296 * (wmax-cwnd) * (srtt>>3 / HZ) / c * 2^(3*bictcp_HZ)
299 * (ca->last_max_cwnd - cwnd));
315 * if the cwnd < 1 million packets !!!
337 if (bic_target > cwnd) {
338 ca->cnt = cwnd / (bic_target - cwnd);
340 ca->cnt = 100 * cwnd; /* very small increment*/
348 ca->cnt = 20; /* increase cwnd 5% per RTT */
356 /* update tcp cwnd */
357 delta = (cwnd * scale) >> 3;
364 if (ca->tcp_cwnd > cwnd) { /* if bic is slower than tcp */
365 delta = ca->tcp_cwnd - cwnd;
366 max_cnt = cwnd / delta;
372 /* The maximum rate of cwnd increase CUBIC allows is 1 packet per
373 * 2 packets ACKed, meaning cwnd grows at 1.5x per RTT.
519 /* hystart triggers when cwnd is larger than some threshold */