TCP_CONGESTION documentation
Hello Stephen,
Back in 2.6.13, you added the TCP_CONGESTION sockopt, but provided no man-page patch...
Below is my attempt to document this sockopt. Could you please review. Please don't assume I've well understood the code: I may well have messed up in my reading of it, so review what I've written with care.
Also, a question: was the silent truncation of the returned string on getsockopt() if optlen is too small really intended? Would it not be/have been better to error on this case?
Cheers,
Michael
TCP_CONGESTION (since Linux 2.6.13)
Get or set the congestion-control algorithm for this
socket. The optval argument is a pointer to a
character-string buffer.
For getsockopt() *optlen specifies the amount of space available in the buffer pointed to by optval, which should be at least 16 bytes (defined by the kernel-
internal constant TCP_CA_NAME_MAX). On return, the
buffer pointed to by optval is set to a null-terminated string containing the name of the congestion-control algorithm for this socket, and *optlen is set to the
minimum of its original value and TCP_CA_NAME_MAX. If
the value passed in *optlen is too small, then the string returned in *optval is silently truncated, and no terminating null byte is added. If an empty string is returned, then the socket is using the default conges- tion-control algorithm, determined as described under tcp_congestion_control above.
For setsockopt() optlen specifies the length of the con- gestion-control algorithm name contained in the buffer pointed to by optval; this length need not include any terminating null byte. The algorithm "reno" is always permitted; other algorithms may be available, depending on kernel configuration. Possible errors from setsock- opt() include: algorithm not found/available (ENOENT); setting this algorithm requires the CAP_NET_ADMIN capa-
bility (EPERM); and failure getting kernel module
(EBUSY).
tcp.7.TCP_CONGESTION.patch 2008-11-21 10:53:36.000000000 -0500 renamed from tcp.7 2008-11-21 10:54:08.000000000 -0500 +52 -1
@@ -733,7 +733,58 @@ socket options are valid on TCP sockets. For more information see .BR ip (7). -.\" FIXME Document TCP_CONGESTION (new in 2.6.13) +.TP +.BR TCP_CONGESTION " (since Linux 2.6.13)" +Get or set the congestion-control algorithm for this socket. +The +.I optval +argument is a pointer to a character-string buffer. + +For +.BR getsockopt () +.I *optlen +specifies the amount of space available in the buffer pointed to by +.IR optval , +which should be at least 16 bytes (defined by the kernel-internal constant +.BR TCP_CA_NAME_MAX ). +On return, the buffer pointed to by +.I optval +is set to a null-terminated string containing the name of the +congestion-control algorithm for this socket, and +.I *optlen +is set to the minimum of its original value and +.BR TCP_CA_NAME_MAX . +If the value passed in +.I *optlen +is too small, then the string returned in +.I *optval +is silently truncated, and no terminating null byte is added. +If an empty string is returned, then the socket is using the default +congestion-control algorithm, determined as described under +.I tcp_congestion_control +above. + +For +.BR setsockopt () +.I optlen +specifies the length of the congestion-control algorithm name +contained in the buffer pointed to by +.IR optval ; +this length need not include any terminating null byte. +The algorithm "reno" is always permitted; +other algorithms may be available, depending on kernel configuration. +Possible errors from +.BR setsockopt () +include: +algorithm not found/available +.RB ( ENOENT ); +setting this algorithm requires the +.B CAP_NET_ADMIN +capability +.RB ( EPERM ); +and failure getting kernel module +.RB ( EBUSY ). +.I .TP .B TCP_CORK If set, don't send out partial frames.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
[CC+= Andi, this time with the right address]
Quoted 115 lines · Michael Kerrisk
Hello Stephen,
Back in 2.6.13, you added the
TCP_CONGESTIONsockopt, but provided no man-page patch...Below is my attempt to document this sockopt. Could you please review. Please don't assume I've well understood the code: I may well have messed up in my reading of it, so review what I've written with care.
Also, a question: was the silent truncation of the returned string on
getsockopt()if optlen is too small really intended? Would it not be/have been better to error on this case?Cheers,
Michael
TCP_CONGESTION(since Linux 2.6.13)
Get or set the congestion-control algorithm for this
socket. The optval argument is a pointer to a
character-string buffer.For
getsockopt()*optlen specifies the amount of space available in the buffer pointed to by optval, which should be at least 16 bytes (defined by the kernel-
internal constantTCP_CA_NAME_MAX). On return, the
buffer pointed to by optval is set to a null-terminated string containing the name of the congestion-control algorithm for this socket, and *optlen is set to the
minimum of its original value andTCP_CA_NAME_MAX. If
the value passed in *optlen is too small, then the string returned in *optval is silently truncated, and no terminating null byte is added. If an empty string is returned, then the socket is using the default conges- tion-control algorithm, determined as described undertcp_congestion_controlabove.For
setsockopt()optlen specifies the length of the con- gestion-control algorithm name contained in the buffer pointed to by optval; this length need not include any terminating null byte. The algorithm "reno" is always permitted; other algorithms may be available, depending on kernel configuration. Possible errors from setsock-opt()include: algorithm not found/available (ENOENT); setting this algorithm requires theCAP_NET_ADMINcapa-
bility (EPERM); and failure getting kernel module
(EBUSY).tcp.7.TCP_CONGESTION.patch 2008-11-21 10:53:36.000000000 -0500 renamed from tcp.7 2008-11-21 10:54:08.000000000 -0500 +52
-1@@ -733,7 +733,58 @@ socket options are valid on TCP sockets. For more information see .BR ip (7). -.\" FIXME Document TCP_CONGESTION (new in 2.6.13) +.TP +.BR TCP_CONGESTION " (since Linux 2.6.13)" +Get or set the congestion-control algorithm for this socket. +The +.I optval +argument is a pointer to a character-string buffer. + +For +.BR getsockopt () +.I *optlen +specifies the amount of space available in the buffer pointed to by +.IR optval , +which should be at least 16 bytes (defined by the kernel-internal constant +.BR TCP_CA_NAME_MAX ). +On return, the buffer pointed to by +.I optval +is set to a null-terminated string containing the name of the +congestion-control algorithm for this socket, and +.I *optlen +is set to the minimum of its original value and +.BR TCP_CA_NAME_MAX . +If the value passed in +.I *optlen +is too small, then the string returned in +.I *optval +is silently truncated, and no terminating null byte is added. +If an empty string is returned, then the socket is using the default +congestion-control algorithm, determined as described under +.I tcp_congestion_control +above. + +For +.BR setsockopt () +.I optlen +specifies the length of the congestion-control algorithm name +contained in the buffer pointed to by +.IR optval ; +this length need not include any terminating null byte. +The algorithm "reno" is always permitted; +other algorithms may be available, depending on kernel configuration. +Possible errors from +.BR setsockopt () +include: +algorithm not found/available +.RB ( ENOENT ); +setting this algorithm requires the +.B CAP_NET_ADMIN +capability +.RB ( EPERM ); +and failure getting kernel module +.RB ( EBUSY ). +.I .TP .B TCP_CORK If set, don't send out partial frames.
Signature · 9 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 39 lines · On Fri, 21 Nov 2008 11:06:19 -0500 Michael Kerrisk…
Hello Stephen,
Back in 2.6.13, you added the
TCP_CONGESTIONsockopt, but provided no man-page patch...Below is my attempt to document this sockopt. Could you please review. Please don't assume I've well understood the code: I may well have messed up in my reading of it, so review what I've written with care.
Also, a question: was the silent truncation of the returned string on
getsockopt()if optlen is too small really intended? Would it not be/have been better to error on this case?Cheers,
Michael
TCP_CONGESTION(since Linux 2.6.13)
Get or set the congestion-control algorithm for this
socket. The optval argument is a pointer to a
character-string buffer.For
getsockopt()*optlen specifies the amount of space available in the buffer pointed to by optval, which should be at least 16 bytes (defined by the kernel-
internal constantTCP_CA_NAME_MAX). On return, the
buffer pointed to by optval is set to a null-terminated string containing the name of the congestion-control algorithm for this socket, and *optlen is set to the
minimum of its original value andTCP_CA_NAME_MAX. If
the value passed in *optlen is too small, then the string returned in *optval is silently truncated, and no terminating null byte is added. If an empty string is returned, then the socket is using the default conges- tion-control algorithm, determined as described undertcp_congestion_controlabove.
Quoted 10 lines
For
setsockopt()optlen specifies the length of the con- gestion-control algorithm name contained in the buffer pointed to by optval; this length need not include any terminating null byte. The algorithm "reno" is always permitted; other algorithms may be available, depending on kernel configuration. Possible errors from setsock-opt()include: algorithm not found/available (ENOENT); setting this algorithm requires theCAP_NET_ADMINcapa-
bility (EPERM); and failure getting kernel module
(EBUSY).
The tcp(7) man page is related and seems out of date as well.
At least on this sytem (Ubuntu 8.04).it seems to be stuck back in pre 2.6.12 timewarp (see tcp_bic, tcp_bic_low_window, ...) values that no longer exist. Should be updated as well.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Stephen,
Quoted 8 lines · Stephen Hemminger
Quoted 5 lines · On Fri, 21 Nov 2008 11:06:19 -0500 Michael Kerrisk…
Hello Stephen,
Back in 2.6.13, you added the
TCP_CONGESTIONsockopt, but provided no man-page patch...
Quoted 8 lines
Quoted 8 lines
Below is my attempt to document this sockopt. Could you please review. Please don't assume I've well understood the code: I may well have messed up in my reading of it, so review what I've written with care.
Also, a question: was the silent truncation of the returned string on
getsockopt()if optlen is too small really intended? Would it not be/have been better to error on this case?
You added some other stuff below, but I got no response to the review request and the question above?
Quoted 31 lines
Quoted 20 lines
TCP_CONGESTION(since Linux 2.6.13)
Get or set the congestion-control algorithm for this
socket. The optval argument is a pointer to a
character-string buffer.For
getsockopt()*optlen specifies the amount of space available in the buffer pointed to by optval, which should be at least 16 bytes (defined by the kernel-
internal constantTCP_CA_NAME_MAX). On return, the
buffer pointed to by optval is set to a null-terminated string containing the name of the congestion-control algorithm for this socket, and *optlen is set to the
minimum of its original value andTCP_CA_NAME_MAX. If
the value passed in *optlen is too small, then the string returned in *optval is silently truncated, and no terminating null byte is added. If an empty string is returned, then the socket is using the default conges- tion-control algorithm, determined as described undertcp_congestion_controlabove.Quoted 10 lines
For
setsockopt()optlen specifies the length of the con- gestion-control algorithm name contained in the buffer pointed to by optval; this length need not include any terminating null byte. The algorithm "reno" is always permitted; other algorithms may be available, depending on kernel configuration. Possible errors from setsock-opt()include: algorithm not found/available (ENOENT); setting this algorithm requires theCAP_NET_ADMINcapa-
bility (EPERM); and failure getting kernel module
(EBUSY).
Quoted 1 line
The tcp(7) man page is related
(I'm a little confused by that remark: the patch at the end of my mail was *for* the tcp(7) man page; maybe you missed that.)
Quoted 1 line
and seems out of date as well.
Yes, many things on it are out of date. (I've made occasional requests to linux-net for help on this point, but have had little response.)
Quoted 1 line
At least on this sytem (Ubuntu 8.04).it seems to be stuck back in pre 2.6.12
Yes, 2.6.12 sounds about right.
Quoted 2 lines
timewarp (see
tcp_bic,tcp_bic_low_window, ...) values that no longer exist.
And when they disappear, no one CCs the man-page maintainer :-(.
Anyway, thanks for the heads up
tcp_bic* is now fixed (disappeared in 2.6.13) andtcp_westwood is now fixed (disappeared in 2.6.13) andtcp_vegas_cong_avoid is now fixed (disappeared in 2.6.13)
Quoted 1 line
Should be updated as well.
I'm working on it. Many updates to tcp(7) will be in man-pages-3.14.
Cheers,
Michael
Signature · 5 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
Bother. CC += Andi again.
Quoted 98 lines · Michael Kerrisk
Hi Stephen,
Quoted 8 lines · Stephen Hemminger
Quoted 5 lines · On Fri, 21 Nov 2008 11:06:19 -0500 Michael Kerrisk…
Hello Stephen,
Back in 2.6.13, you added the
TCP_CONGESTIONsockopt, but provided no man-page patch...Quoted 8 lines
Quoted 8 lines
Below is my attempt to document this sockopt. Could you please review. Please don't assume I've well understood the code: I may well have messed up in my reading of it, so review what I've written with care.
Also, a question: was the silent truncation of the returned string on
getsockopt()if optlen is too small really intended? Would it not be/have been better to error on this case?You added some other stuff below, but I got no response to the review request and the question above?
Quoted 31 lines
Quoted 20 lines
TCP_CONGESTION(since Linux 2.6.13)
Get or set the congestion-control algorithm for this
socket. The optval argument is a pointer to a
character-string buffer.For
getsockopt()*optlen specifies the amount of space available in the buffer pointed to by optval, which should be at least 16 bytes (defined by the kernel-
internal constantTCP_CA_NAME_MAX). On return, the
buffer pointed to by optval is set to a null-terminated string containing the name of the congestion-control algorithm for this socket, and *optlen is set to the
minimum of its original value andTCP_CA_NAME_MAX. If
the value passed in *optlen is too small, then the string returned in *optval is silently truncated, and no terminating null byte is added. If an empty string is returned, then the socket is using the default conges- tion-control algorithm, determined as described undertcp_congestion_controlabove.Quoted 10 lines
For
setsockopt()optlen specifies the length of the con- gestion-control algorithm name contained in the buffer pointed to by optval; this length need not include any terminating null byte. The algorithm "reno" is always permitted; other algorithms may be available, depending on kernel configuration. Possible errors from setsock-opt()include: algorithm not found/available (ENOENT); setting this algorithm requires theCAP_NET_ADMINcapa-
bility (EPERM); and failure getting kernel module
(EBUSY).Quoted 1 line
The tcp(7) man page is related
(I'm a little confused by that remark: the patch at the end of my mail was *for* the tcp(7) man page; maybe you missed that.)
Quoted 1 line
and seems out of date as well.
Yes, many things on it are out of date. (I've made occasional requests to linux-net for help on this point, but have had little response.)
Quoted 1 line
At least on this sytem (Ubuntu 8.04).it seems to be stuck back in pre 2.6.12
Yes, 2.6.12 sounds about right.
Quoted 2 lines
timewarp (see
tcp_bic,tcp_bic_low_window, ...) values that no longer exist.And when they disappear, no one CCs the man-page maintainer :-(.
Anyway, thanks for the heads up
tcp_bic* is now fixed (disappeared in 2.6.13) and
tcp_westwoodis now fixed (disappeared in 2.6.13) andtcp_vegas_cong_avoidis now fixed (disappeared in 2.6.13)Quoted 1 line
Should be updated as well.
I'm working on it. Many updates to tcp(7) will be in man-pages-3.14.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
Signature · 5 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html
Quoted 1 line · Michael Kerrisk
[CC+= Andi, this time with the right address]
Just a general comment. The initial DESCRIPTION in tcp should be probably adapted to mentioned that Linux has pluggable congestion avoidance modules now and also that the defaults have changed (from NewReno to CUBIC etc.)
-Andi
Hi Andi,
Quoted 7 lines · Andi Kleen
Quoted 1 line · Michael Kerrisk
[CC+= Andi, this time with the right address]
Just a general comment. The initial DESCRIPTION in tcp should be probably adapted to mentioned that Linux has pluggable congestion avoidance modules now and also that the defaults have changed (from NewReno to CUBIC etc.)
If I try to do this, I'm going to create rubbish, because I know next to nothing about these details...
Could I ask a favor? Below is the DESCRIPTION text. Could you note write some sentences in the rough location where you think they below, and I will turn that into a *roff patch.
Thanks,
Michael
This is an implementation of the TCP protocol defined in RFC 793, RFC 1122 and RFC 2001 with the NewReno and SACK
extensions. It provides a reliable, stream-oriented,
full-duplex connection between two sockets on top of ip(7), for both v4 and v6 versions. TCP guarantees that the data arrives in order and retransmits lost packets. It generates and checks a per-packet checksum to catch transmission errors. TCP does not preserve record bound- aries.
A newly created TCP socket has no remote or local address and is not fully specified. To create an outgoing TCP connection use connect(2) to establish a connection to another TCP socket. To receive new incoming connections, first bind(2) the socket to a local address and port and then call listen(2) to put the socket into the listening state. After that a new socket for each incoming connec- tion can be accepted using accept(2). A socket which has had accept(2) or connect(2) successfully called on it is
fully specified and may transmit data. Data cannot be
transmitted on listening or not yet connected sockets.
Linux supports RFC 1323 TCP high performance extensions. These include Protection Against Wrapped Sequence Numbers (PAWS), Window Scaling and Timestamps. Window scaling allows the use of large (> 64K) TCP windows in order to support links with high latency or bandwidth. To make use of them, the send and receive buffer sizes must be
increased. They can be set globally with the
/proc/sys/net/ipv4/tcp_wmem and
/proc/sys/net/ipv4/tcp_rmem files, or on individual sock- ets by using the SO_SNDBUF and SO_RCVBUF socket options with the setsockopt(2) call.
The maximum sizes for socket buffers declared via the SO_SNDBUF and SO_RCVBUF mechanisms are limited by the
values in the /proc/sys/net/core/rmem_max and
/proc/sys/net/core/wmem_max files. Note that TCP actu- ally allocates twice the size of the buffer requested in the setsockopt(2) call, and so a succeeding getsockopt(2) call will not return the same size of buffer as requested in the setsockopt(2) call. TCP uses the extra space for administrative purposes and internal kernel structures, and the /proc file values reflect the larger sizes com- pared to the actual TCP windows. On individual connec- tions, the socket buffer size must be set prior to the listen(2) or connect(2) calls in order to have it take effect. See socket(7) for more information.
TCP supports urgent data. Urgent data is used to signal the receiver that some important message is part of the data stream and that it should be processed as soon as possible. To send urgent data specify the MSG_OOB option to send(2). When urgent data is received, the kernel sends a SIGURG signal to the process or process group that has been set as the socket "owner" using the SIOCSP- GRP or FIOSETOWN ioctls (or the POSIX.1-2001-specified
fcntl(2) F_SETOWN operation). When the SO_OOBINLINE
socket option is enabled, urgent data is put into the normal data stream (a program can test for its location using the SIOCATMARK ioctl described below), otherwise it can be only received when the MSG_OOB flag is set for recv(2) or recvmsg(2).
Linux 2.4 introduced a number of changes for improved throughput and scaling, as well as enhanced functional-
ity. Some of these features include support for zero-
copy sendfile(2), Explicit Congestion Notification, new
management of TIME_WAIT sockets, keep-alive socket
options and support for Duplicate SACK extensions.
Signature · 9 lines
Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ git://git.kernel.org/pub/scm/docs/man-pages/man-pages.git man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 11 lines · Michael Kerrisk
Hi Andi,
Quoted 7 lines · Andi Kleen
Quoted 1 line · Michael Kerrisk
[CC+= Andi, this time with the right address]
Just a general comment. The initial DESCRIPTION in tcp should be probably adapted to mentioned that Linux has pluggable congestion avoidance modules now and also that the defaults have changed (from NewReno to CUBIC etc.)
Quoted 6 lines
If I try to do this, I'm going to create rubbish, because I know next to nothing about these details...
Could I ask a favor? Below is the DESCRIPTION text. Could you note write some sentences in the rough location where you think they below, and I will turn that into a *roff patch.
It would be better if Stephen or David do that. They kept better track of it than me. In the worst case I could try too.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Does this help get it started in right direction??
--------------------------------------------
This is an implementation of the TCP protocol defined in RFC 793, RFC 1122 and RFC 2001 with the NewReno and SACK
extensions. It provides a reliable, stream-oriented,
full-duplex connection between two sockets on top of ip(7), for both v4 and v6 versions. TCP guarantees that the data arrives in order and retransmits lost packets. It generates and checks a per-packet checksum to catch transmission errors. TCP does not preserve record bound- aries.
A newly created TCP socket has no remote or local address and is not fully specified. To create an outgoing TCP connection use connect(2) to establish a connection to another TCP socket. To receive new incoming connections, first bind(2) the socket to a local address and port and then call listen(2) to put the socket into the listening state. After that a new socket for each incoming connec- tion can be accepted using accept(2). A socket which has had accept(2) or connect(2) successfully called on it is
fully specified and may transmit data. Data cannot be
transmitted on listening or not yet connected sockets.
[move buffering ahead of 1323 stuff - more important]
Socket buffers on linux are automatically tuned by Linux TCP based on available memory and the throughput of the socket. The starting value and upper bound of buffer tuning is determined by tcp_rwin (for receiving) and tcp_wwin (for sending) as described in Sysctls secton. The buffer sizes can be fixed with SO_SNDBUF and SO_RCVBUF mechanisms.
Note that TCP actually allocates twice the size of the buffer requested in
the setsockopt(2) call, and so a succeeding getsockopt(2) call will not return the same size of buffer as requested in the setsockopt(2) call. TCP uses the extra space for administrative purposes and internal kernel structures, and the /proc file values reflect the larger sizes com- pared to the actual TCP windows.
The maximum sizes for socket buffers declared via the SO_SNDBUF and SO_RCVBUF mechanisms are limited by the values in the net.core.rmem_max and net.core.wmem_max sysctl values.
On individual connec-
tions, the socket buffer size must be set prior to the listen(2) or connect(2) calls in order to have it take effect. See socket(7) for more information.
Linux supports RFC 1323 TCP high performance extensions. These include Protection Against Wrapped Sequence Numbers (PAWS), Window Scaling and Timestamps. Window scaling allows the use of large (> 64K) TCP windows in order to support links with high latency or bandwidth.
TCP supports urgent data. Urgent data is used to signal the receiver that some important message is part of the data stream and that it should be processed as soon as possible. To send urgent data specify the MSG_OOB option to send(2). When urgent data is received, the kernel sends a SIGURG signal to the process or process group that has been set as the socket "owner" using the SIOCSP- GRP or FIOSETOWN ioctls (or the POSIX.1-2001-specified
fcntl(2) F_SETOWN operation). When the SO_OOBINLINE
socket option is enabled, urgent data is put into the normal data stream (a program can test for its location using the SIOCATMARK ioctl described below), otherwise it can be only received when the MSG_OOB flag is set for recv(2) or recvmsg(2).
Linux supports multiple different congestion control algorithms. The default choice of congestion control is controlled by net.ipv4.tcp_congestion_control sysctl. This value can
be overridden by TCP_CONGESTION socket option. The actual choices of congestion control available vary according between release as more are added, and depend on the configuration choices
made when the kernel was built. The list of congestion control protocols currently loaded is in net.ipv4.tcp_available_congestion_control.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · Stephen Hemminger
Does this help get it started in right direction??
Yes.
Quoted 5 lines
--------------------------------------------
This is an implementation of the TCP protocol defined in RFC 793, RFC 1122 and RFC 2001 with the NewReno and SACK
extensions. It provides a reliable, stream-oriented,
Perhaps drop NewReno, it's really obsolete because Linux is so far beyond.
Quoted 3 lines
Note that TCP actually allocates twice the size of the buffer requested in
The "twice" is obsolete, it's far more complicated now. So it should be just "more" I think
Quoted 6 lines
socket option is enabled, urgent data is put into the normal data stream (a program can test for its location using the SIOCATMARK ioctl described below), otherwise it can be only received when the
MSG_OOBflag is set for recv(2) or recvmsg(2).
Quoted 6 lines
Linux supports multiple different congestion control algorithms. The default choice of congestion control is controlled by net.ipv4.tcp_congestion_control sysctl. This value can be overridden by
TCP_CONGESTIONsocket option. The actual choices of congestion control available vary according between release as more are added, and depend on the configuration choices
Hmm perhaps mention the current standard default?
Quoted 2 lines
made when the kernel was built. The list of congestion control protocols currently loaded is in net.ipv4.tcp_available_congestion_control.
Best would be probably to have an manpage for each of them, but I'm not going to write them :)
-Andi
Signature · 1 line
[email protected]
Quoted 27 lines · On Sat, 22 Nov 2008 15:56:32 +0100 Andi Kleen…
Quoted 1 line · Stephen Hemminger
Does this help get it started in right direction??
Yes.
Quoted 5 lines
--------------------------------------------
This is an implementation of the TCP protocol defined in RFC 793, RFC 1122 and RFC 2001 with the NewReno and SACK
extensions. It provides a reliable, stream-oriented,Perhaps drop NewReno, it's really obsolete because Linux is so far beyond.
Quoted 3 lines
Note that TCP actually allocates twice the size of the buffer requested in
The "twice" is obsolete, it's far more complicated now. So it should be just "more" I think
Quoted 6 lines
socket option is enabled, urgent data is put into the normal data stream (a program can test for its location using the SIOCATMARK ioctl described below), otherwise it can be only received when the
MSG_OOBflag is set for recv(2) or recvmsg(2).
Quoted 8 lines
Quoted 6 lines
Linux supports multiple different congestion control algorithms. The default choice of congestion control is controlled by net.ipv4.tcp_congestion_control sysctl. This value can be overridden by
TCP_CONGESTIONsocket option. The actual choices of congestion control available vary according between release as more are added, and depend on the configuration choicesHmm perhaps mention the current standard default?
There is no "standard default" it is a kernel config option. And it may change in future, so writing it into the manual page seems being short sighted.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line
There is no "standard default" it is a kernel config option.
There is one default y and very strong suggestions
in Kconfig. I bet 99+% of the users use that, which means CUBIC now since kernel version number XX.YY (I forgot)
Also the "depends on kernel config option" argument seems a poor one. A lot of things can be disabled with uncommon CONFIG options, but the man pages still document the standard defaults used by near all people.
Quoted 2 lines
And it may change in future, so writing it into the manual page seems being short sighted.
That just means that users will never know.
-Andi
Signature · 1 line
[email protected]