LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-16-2011, 07:58 AM   #1
tdallagnol
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Rep: Reputation: 0
Custom TCP Parameters for multiple interfaces in Linux


My question is about TCP parameters in Linux. By now, I want to change the default values of:
  • Initial Timeout
  • ACK Delay
  • Idle Connection Timeout
I have a Linux Box with kernel 2.6.x and 2 ethernet interfaces. I know TCP is a stack that doesn't have anything to do with ethernet devices. Said that, the question: is there a way to set custom values for each interface? For example, a server listening to connections in eth0 would use one value for Idle Connection Timeout and another server listening to connections in eth1 could use a different value for that parameter.

Any considerations will be appreciated.
Best Regards,
Tiago
 
Old 02-16-2011, 12:30 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
You said it yourself: those values govern stack processing in the kernel, not in ethernet devices. So the answer would be no.
 
Old 02-16-2011, 12:43 PM   #3
tdallagnol
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
You said it yourself: those values govern stack processing in the kernel, not in ethernet devices. So the answer would be no.
Ok, thats fine. But maybe the question should be put in a different point of view. I want the things tied to interfaces, but it is not necessary to be like that.
Regarding to what is implemented in Linux Kernel: For example, is it possible to have distinct values for "TCP Idle Connection Timeout" for different connections? I know that seems strange to change these parameters, and to have different ones for each connection. But this is just what I need.

Thanks,
Tiago
 
Old 02-16-2011, 12:53 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,332
Blog Entries: 55

Rep: Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533Reputation: 3533
I think the answer still to be no. But how about using virtualization? Tie one guest to eth0 and another to eth1?
 
Old 02-16-2011, 01:18 PM   #5
tdallagnol
LQ Newbie
 
Registered: Feb 2011
Posts: 3

Original Poster
Rep: Reputation: 0
Good point. It would be a solution. By virtualization did you mean using Linux-VServer project or something like that? Just for information, I'm running embedded Linux in a Power PC platform, not on a PC or server, so there are some limitations.

I was looking for something about not having to modify the stack, as it wouldn't be a fast and reliable solution.

Best Regards,
Tiago
 
  


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
Configuring Multiple Interfaces with Separate Parameters fossks Linux - Networking 1 07-26-2008 07:18 PM
TCP Parameters in linux hafizali Linux - Networking 1 05-15-2008 08:26 PM
linux multiple interfaces Ammad Linux - Networking 4 01-24-2007 01:34 AM
TCP/IP Parameters in LInux kodumuri_raghu Linux - Networking 3 07-12-2005 02:38 AM


All times are GMT -5. The time now is 06:10 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration