LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-04-2012, 01:55 PM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
Are this network settings good for a router?


Hello, I've got a small router which I use at home. The router is connected to the internet using a ADSL modem and a second adapter for the internal network, to spread the "internet" around

Here is what I use to tune the network:

Code:
net.ipv4.tcp_congestion_control = cubic
net.ipv4.ip_forward = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_intvl = 30
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_time = 600
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_sack = 1
net.ipv4.tcp_no_metrics_save = 1
net.core.netdev_max_backlog = 3000
net.core.somaxconn = 2048
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 87380 16777216
My question is: Are this settings good, mainly because I'm watching online TV using http://sopcast.com/ and a lot of Youtube.
I'm not a network guy, but for me they seem good, but I could be wrong.

Last edited by robertjinx; 08-04-2012 at 04:10 PM.
 
Old 08-05-2012, 09:51 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by robertjinx View Post
Are this settings good
Especially as engineer you should appreciate Linux comes with full documentation and that about any condition you can think up can be tested. If you based your settings on
0) having read what's available in /usr/src/linux.*/Documentation/network.*/,
1) having noted defaults before making changes,
2) not having based any changes on outdated HOWTO's littering the 'net or any "HOWTO's" that offer sysctl settings but w/o explaining them (that'll be most and esp. web blog posts are particularly useless) and
3) having tested (Iperf?) the difference wrt resource usage (Linux does rmem / wmem autotuning), HTCP (older 2.6 kernels) vs BIC, .*ACK settings, timeouts and time stamps wrt connection build / teardown and speed, etc, etc then you've got objective results. Measuring things well means a label "good" makes sense or not.
 
  


Reply



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
[SOLVED] Is having everything be so easy a good thing? Zssfssz Ubuntu 13 03-16-2012 03:21 PM
Multible network interfaces, router settings? asl1176 Linux - Networking 3 11-22-2010 07:35 AM
how to config. network settings for having a static ip with a router kkeith Linux - Newbie 2 10-19-2005 05:00 AM
Just a good thing to learn... paicolman LinuxQuestions.org Member Success Stories 1 11-02-2004 10:36 AM
Need help with network settings and router evanmac Linux - Networking 3 03-14-2003 12:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:19 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
Open Source Consulting | Domain Registration