From owner-cvs-src-old@FreeBSD.ORG Fri Nov 12 06:43:44 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 939DC106564A for ; Fri, 12 Nov 2010 06:43:44 +0000 (UTC) (envelope-from lstewart@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 7BFF48FC15 for ; Fri, 12 Nov 2010 06:43:44 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id oAC6hilM091819 for ; Fri, 12 Nov 2010 06:43:44 GMT (envelope-from lstewart@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id oAC6hixf091818 for cvs-src-old@freebsd.org; Fri, 12 Nov 2010 06:43:44 GMT (envelope-from lstewart@repoman.freebsd.org) Message-Id: <201011120643.oAC6hixf091818@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to lstewart@repoman.freebsd.org using -f From: Lawrence Stewart Date: Fri, 12 Nov 2010 06:41:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src UPDATING src/sys/conf files src/sys/netinet cc.h tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c tcp_usrreq.c tcp_var.h src/sys/netinet/cc cc.c cc_module.h cc_newreno.c src/sys/sys param.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 06:43:44 -0000 lstewart 2010-11-12 06:41:55 UTC FreeBSD src repository Modified files: . UPDATING sys/conf files sys/netinet tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c tcp_usrreq.c tcp_var.h sys/sys param.h Added files: sys/netinet cc.h sys/netinet/cc cc.c cc_module.h cc_newreno.c Log: SVN rev 215166 on 2010-11-12 06:41:55Z by lstewart This commit marks the first formal contribution of the "Five New TCP Congestion Control Algorithms for FreeBSD" FreeBSD Foundation funded project. More details about the project are available at: http://caia.swin.edu.au/freebsd/5cc/ - Add a KPI and supporting infrastructure to allow modular congestion control algorithms to be used in the net stack. Algorithms can maintain per-connection state if required, and connections maintain their own algorithm pointer, which allows different connections to concurrently use different algorithms. The TCP_CONGESTION socket option can be used with getsockopt()/setsockopt() to programmatically query or change the congestion control algorithm respectively from within an application at runtime. - Integrate the framework with the TCP stack in as least intrusive a manner as possible. Care was also taken to develop the framework in a way that should allow integration with other congestion aware transport protocols (e.g. SCTP) in the future. The hope is that we will one day be able to share a single set of congestion control algorithm modules between all congestion aware transport protocols. - Introduce a new congestion recovery (TF_CONGRECOVERY) state into the TCP stack and use it to decouple the meaning of recovery from a congestion event and recovery from packet loss (TF_FASTRECOVERY) a la RFC2581. ECN and delay based congestion control protocols don't generally need to recover from packet loss and need a different way to note a congestion recovery episode within the stack. - Remove the net.inet.tcp.newreno sysctl, which simplifies some portions of code and ensures the stack always uses the appropriate mechanisms for recovering from packet loss during a congestion recovery episode. - Extract the NewReno congestion control algorithm from the TCP stack and massage it into module form. NewReno is always built into the kernel and will remain the default algorithm for the forseeable future. Implementations of additional different algorithms will become available in the near future. - Bump __FreeBSD_version to 900025 and note in UPDATING that rebuilding code that relies on the size of "struct tcpcb" is required. Many thanks go to the Cisco University Research Program Fund at Community Foundation Silicon Valley and the FreeBSD Foundation. Their support of our work at the Centre for Advanced Internet Architectures, Swinburne University of Technology is greatly appreciated. In collaboration with: David Hayes and Grenville Armitage Sponsored by: Cisco URP, FreeBSD Foundation Reviewed by: rpaulo Tested by: David Hayes (and many others over the years) MFC after: 3 months Revision Changes Path 1.670 +7 -0 src/UPDATING 1.1543 +2 -0 src/sys/conf/files 1.1 +161 -0 src/sys/netinet/cc.h (new) 1.1 +340 -0 src/sys/netinet/cc/cc.c (new) 1.1 +70 -0 src/sys/netinet/cc/cc_module.h (new) 1.1 +231 -0 src/sys/netinet/cc/cc_newreno.c (new) 1.420 +254 -232 src/sys/netinet/tcp_input.c 1.173 +16 -8 src/sys/netinet/tcp_output.c 1.55 +1 -1 src/sys/netinet/tcp_sack.c 1.366 +31 -2 src/sys/netinet/tcp_subr.c 1.116 +11 -38 src/sys/netinet/tcp_timer.c 1.197 +61 -1 src/sys/netinet/tcp_usrreq.c 1.191 +24 -6 src/sys/netinet/tcp_var.h 1.465 +1 -1 src/sys/sys/param.h