Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153550942
D22438.id65297.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
725 B
Referenced Files
None
Subscribers
None
D22438.id65297.diff
View Options
Index: sys/netinet/cc/cc_newreno.c
===================================================================
--- sys/netinet/cc/cc_newreno.c
+++ sys/netinet/cc/cc_newreno.c
@@ -213,9 +213,16 @@
* wirespeed, overloading router and switch buffers along the way.
*
* See RFC5681 Section 4.1. "Restarting Idle Connections".
+ *
+ * In addition, per RFC2861 Section 2, the ssthresh is set to the
+ * maximum of the former ssthresh or 3/4 of the old cwnd, to
+ * not exit slow-start prematurely.
*/
rw = tcp_compute_initwnd(tcp_maxseg(ccv->ccvc.tcp));
+ CCV(ccv, snd_ssthresh) = max(CCV(ccv, snd_ssthresh),
+ CCV(ccv, snd_cwnd)-(CCV(ccv, snd_cwnd)>>2));
+
CCV(ccv, snd_cwnd) = min(rw, CCV(ccv, snd_cwnd));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 8:22 PM (8 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31998266
Default Alt Text
D22438.id65297.diff (725 B)
Attached To
Mode
D22438: Improve NewReno after_idle ssthresh per RFC2861 Sec.2
Attached
Detach File
Event Timeline
Log In to Comment