Re: [PATCH 1/4] dccp: Prevent Congestion Window > Sequence Window

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



| Also add code to adjust the sequence window to be about 5 times the
| number of packets in the network (RFC 4340 7.5.2) and to adjust the Ack
| Ratio so that the remote sequence window will hold about 5 times the
| number of packets in the network.

<...>
| +	if (r_seq_used*5 >= dp->dccps_r_seq_win)
| +		ccid2_change_l_ack_ratio(sk, dp->dccps_l_ack_ratio*2);
| +	else if (r_seq_used*5 < (dp->dccps_r_seq_win/2))
| +		ccid2_change_l_ack_ratio(sk, dp->dccps_l_ack_ratio/2);
| +
| +	if (hc->tx_cwnd*5 >= dp->dccps_l_seq_win)
| +			ccid2_change_l_seq_window(sk, dp->dccps_l_seq_win*2);
| +	else if (hc->tx_cwnd*5 < (dp->dccps_l_seq_win/2))
| +			ccid2_change_l_seq_window(sk, dp->dccps_l_seq_win/2);
| +

It would be good to make the `5' a #define constant and to integrate the 
commit message as comment above the code.

--
To unsubscribe from this list: send the line "unsubscribe dccp" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [IETF DCCP]     [Linux Networking]     [Git]     [Security]     [Linux Assembly]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux