netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] TCP: update ip_local_port_range documentation
@ 2012-04-03  0:48 fernando
  2012-04-03  0:50 ` [PATCH 2/2] TCP: Use 32768-65535 outgoing port range by default fernando
  2012-04-03  4:54 ` [PATCH 1/2] TCP: update ip_local_port_range documentation David Miller
  0 siblings, 2 replies; 11+ messages in thread
From: fernando @ 2012-04-03  0:48 UTC (permalink / raw)
  To: David Miller, Stephen Hemminger; +Cc: netdev@vger.kernel.org

[-- Attachment #1: Type: text/plain, Size: 1 bytes --]



[-- Attachment #2: sysctl-ip_local_port_range-documentation.patch --]
[-- Type: text/plain, Size: 1867 bytes --]

Subject: [PATCH] TCP: update ip_local_port_range documentation

From: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>

The explanation of ip_local_port_range in Documentation/networking/ip-sysctl.txt
contains several factual errors:

- The default value of ip_local_port_range does not depend on the amount of
  memory available in the system.
- tcp_tw_recycle is not enabled by default.
- 1024-4999 is not the default value.

Fix them.

Signed-off-by: Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
---

diff -urNp linux-3.4-rc1-orig/Documentation/networking/ip-sysctl.txt linux-3.4-rc1/Documentation/networking/ip-sysctl.txt
--- linux-3.4-rc1-orig/Documentation/networking/ip-sysctl.txt	2012-03-19 08:15:34.000000000 +0900
+++ linux-3.4-rc1/Documentation/networking/ip-sysctl.txt	2012-04-03 07:42:56.793550547 +0900
@@ -604,15 +604,12 @@ IP Variables:
 ip_local_port_range - 2 INTEGERS
 	Defines the local port range that is used by TCP and UDP to
 	choose the local port. The first number is the first, the
-	second the last local port number. Default value depends on
-	amount of memory available on the system:
-	> 128Mb 32768-61000
-	< 128Mb 1024-4999 or even less.
-	This number defines number of active connections, which this
-	system can issue simultaneously to systems not supporting
-	TCP extensions (timestamps). With tcp_tw_recycle enabled
-	(i.e. by default) range 1024-4999 is enough to issue up to
-	2000 connections per second to systems supporting timestamps.
+	second the last local port number. The default values are 
+	32768 and 61000 respectively.
+
+	These two numbers determine the number of active connections
+	which this system can issue simultaneously to systems not
+	supporting TCP extensions (timestamps).
 
 ip_local_reserved_ports - list of comma separated ranges
 	Specify the ports which are reserved for known third-party

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-04-03 21:40 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03  0:48 [PATCH 1/2] TCP: update ip_local_port_range documentation fernando
2012-04-03  0:50 ` [PATCH 2/2] TCP: Use 32768-65535 outgoing port range by default fernando
2012-04-03  4:50   ` David Miller
2012-04-03  5:18     ` fernando
2012-04-03  6:28       ` David Miller
2012-04-03  4:54 ` [PATCH 1/2] TCP: update ip_local_port_range documentation David Miller
2012-04-03  4:59   ` fernando
2012-04-03 11:08   ` fernando
2012-04-03 11:12     ` [PATCH] " fernando
2012-04-03 18:41       ` [PATCH v3] " fernando
2012-04-03 21:40         ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).