LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Custom TCP Parameters for multiple interfaces in Linux (https://www.linuxquestions.org/questions/linux-newbie-8/custom-tcp-parameters-for-multiple-interfaces-in-linux-863035/)

tdallagnol 02-16-2011 06:58 AM

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

unSpawn 02-16-2011 11:30 AM

You said it yourself: those values govern stack processing in the kernel, not in ethernet devices. So the answer would be no.

tdallagnol 02-16-2011 11:43 AM

Quote:

Originally Posted by unSpawn (Post 4260467)
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

unSpawn 02-16-2011 11:53 AM

I think the answer still to be no. But how about using virtualization? Tie one guest to eth0 and another to eth1?

tdallagnol 02-16-2011 12:18 PM

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


All times are GMT -5. The time now is 05:53 AM.