LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-04-2006, 01:36 AM   #1
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73
Blog Entries: 3

Rep: Reputation: 15
how many TCP connections at a time?


HI friends,

In a TCP stack, at a time how many TCP connections are possible ? Is there any limit?

regards,
hegdeshashi
 
Old 01-04-2006, 03:03 PM   #2
uovgaz
LQ Newbie
 
Registered: Jul 2002
Distribution: Fedora Core 4
Posts: 3

Rep: Reputation: 0
I would say the maximum is 65536 simultaneous connections, given that there are that many ports available for use.
 
Old 01-04-2006, 08:50 PM   #3
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Each TCP socket needs a file descriptor (an integer), and there's a kernel limit on the maximum number of open file descriptors, though I don't know the kernel parameter name, nor it's default value. Additionally, each TCP socket needs a socket structure, which also consumes a small amount of memory. So as a practical matter, if you could theoretically set the max file descriptor parameter to infinity, the maximum number of TCP connections should be limited only by the quantity of available memory.
 
Old 01-04-2006, 09:04 PM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Looks like my kernel allows 101,285 file descriptors.
Code:
[jcliburn@osprey ~]# /sbin/sysctl fs.file-max
fs.file-max = 101285
 
Old 01-04-2006, 10:44 PM   #5
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Do quick Google search for "linux tcp tuning". You should find a few good articles on kernel and TCP tuning.
 
Old 01-06-2006, 12:19 AM   #6
hegdeshashi
Member
 
Registered: Dec 2005
Posts: 73
Blog Entries: 3

Original Poster
Rep: Reputation: 15
I am not able to find how many connections in the TCP stack in"TCP TUNING GUIDE ".

any idea regarding this one?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need a way to limit TCP connections ewerta Linux - Networking 1 07-25-2005 04:54 PM
how to force kill TCP connections minil Programming 3 04-19-2005 07:04 AM
tune TCP stack for HTTP connections naijaguy Linux - General 0 02-01-2005 07:42 PM
half-open tcp connections r_m_carlsson Linux - Networking 1 02-03-2004 06:51 AM
How to limit the number of TCP connections for a certain port? mussons Linux - Security 1 01-28-2004 07:27 AM


All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration