dccp: Congestion Window > Sequence Window
cover dccp: Congestion Window > Sequence Window
All,
I have put together a set of patches to fix the bug I reported earlier where CCID 2 will allow the congestion window to grow larger than the sequence window.
The first patch inserts a check on the sequence window and ack ratio (and hence remote sequence window) to avoid increasing the congestion window larger than the sequence window. It also adds code to increase the sequence window and ack ratio as necessary.
The second patch fixes an issue in the feature negotiation code where Confirm options are retransmitted forever.
The third patch fixes an issue in the feature negotiation code where DCCP would reset the connection on a Confirm for a value of an NN option other than the most recent. The RFCs imply that such an option should just be ignored. Further, this causes a connection reset if the value of an NN option changes twice in under two RTTs.
The fourth, and final patch, enables the Ack Ratio option so that we can use it. The option had been disabled because the congestion control on the acks in CCID 2 is broken. However, the patch also disables sending Ack Ratio options because of congestion control on the acks to prevent that from causing problems.
While I didn't notice any problems when I ran DCCP with the Ack Congestion Control Enabled, I have not tested that part of the code throughly, so I chose to leave it disabled in this patch set.
Samuel Jero
Internetworking Research Group
Ohio University
| I have put together a set of patches to fix the bug I reported earlier | where CCID 2 will allow the congestion window to grow larger than the | sequence window.
Apologies for the late reply. I will go through these in detail, but it may take a few more days.
| The second patch fixes an issue in the feature negotiation code where | Confirm options are retransmitted forever. | | The third patch fixes an issue in the feature negotiation code where | DCCP would reset the connection on a Confirm for a value of an NN option | other than the most recent. The RFCs imply that such an option should | just be ignored. Further, this causes a connection reset if the value of | an NN option changes twice in under two RTTs. |
Thank you for sharing theise. I would like to work on putting them into the test tree by the begin of next week, am backlogged until the end of this one.
The only patch that has an issue is #2: this reintroduces a problem which occurred earlier when performing feature negotiation during the initial handshake. Since your patch set targets feature negotiation in established state, there should be a way to enable both - i.e. keep the old behaviour for the initial, and use the new one for the established state.
Other issues that would be good to resolve before uploading the patches:
* some have minor codingstyle issues, I am ok to fix stuff up to some degree; but please consider scripts/checkpatch.pl
* could you add comments (short descriptions) about conditions you observed, or add pointers to documentation webpages in the commit message? It helps in future discussions to come back on track faster.
Quoted 5 lines
The only patch that has an issue is #2: this reintroduces a problem which occurred earlier when performing feature negotiation during the initial handshake. Since your patch set targets feature negotiation in established state, there should be a way to enable both - i.e. keep the old behaviour for the initial, and use the new one for the established state.
I'm working on slightly modifying the patch to fix this issue. Will repost shortly.
Quoted 3 lines
Other issues that would be good to resolve before uploading the patches:
* some have minor codingstyle issues, I am ok to fix stuff up to some degree; but please considerscripts/checkpatch.pl
I actually did run that script over these patches, and the script reported no problems. I've re-read the codingstyle document and don't see anything clearly wrong. What am I doing that's not standard coding style?
Quoted 3 lines
* could you add comments (short descriptions) about conditions you observed, or add pointers to documentation webpages in the commit message? It helps in future discussions to come back on track faster.
I'll do that. Right now, I'm making the changes you suggested to the patches. I hope to repost them shortly.
Samuel Jero
Internetworking Research Group
Ohio University