Lines Matching defs:cwnd
126 * Compute the CUBIC K value used in the cwnd calculation, using an
161 * Compute the new cwnd value using an implementation of eqn 1 from the I-D.
169 int64_t cwnd;
174 cwnd = ((int64_t)(ticks_since_cong << CUBIC_SHIFT) - (K * hz)) / hz;
177 cwnd *= (cwnd * cwnd);
181 * The down shift by CUBIC_SHIFT_4 is because cwnd has 4 lots of
182 * CUBIC_SHIFT included in the value. 3 from the cubing of cwnd above,
185 cwnd = ((cwnd * CUBIC_C_FACTOR * smss) >> CUBIC_SHIFT_4) + wmax;
187 return ((unsigned long)cwnd);
191 * Compute an approximation of the NewReno cwnd some number of ticks after a
193 * measured over the previous congestion epoch and wmax is the value of cwnd at
205 * W_tcp(t) deals with cwnd/wmax in pkts, so because our cwnd is in
213 * Compute an approximation of the "TCP friendly" cwnd some number of ticks
214 * after a congestion event that is designed to yield the same average cwnd as
217 * the value of cwnd at the last congestion event.