Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Home made router acting up.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
teapot
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2006
Posts: 85
Location: Stockholm , Sweden

PostPosted: Wed Jan 25, 2012 2:24 pm    Post subject: Home made router acting up. Reply with quote

Hello!

Just to be cool I wanted to build my own router to get rid of my linksys crap from 2005.
I followed the Gentoo Router Guide to turn an old socket A motherboard into a functional router.

It is working for extended periods of time, often 5-6 hours or more before it starts to cause problems.
On my clients I start to notice sluggish internet performance and horrible ping times of 3000+ ms.

I can however log onto the router as root over the LAN to do some diagnostics. CPU and RAM usage is normal and the swap is barely unused.
Restarting the router solves the issue.
One time it was enough just to restart eth2 (WAN).


The router is an old Athlon 1600+ running under clocked at 1050 MHz with 256 mb RAM and a 20 GB HDD.
Swap is set to 256 MB.
I have 2 TP-Link TG-3269 ethernet cards ( realtech-8169 chip)
Kernel version is 3.1.6.

Also , cpu temperature is normal.

Can someone give me some pointers to what might be wrong ?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7711
Location: Saint Amant, Acadiana

PostPosted: Wed Jan 25, 2012 2:45 pm    Post subject: Reply with quote

I bought one of these and installed it on the LAN side, all problems just disappeared.
http://www.newegg.com/Product/Product.aspx?Item=N82E16833106121
I host Gentoo Portage for all Gentoo boxes in it and share it over NFS, that certainly generates some traffic.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
teapot
Tux's lil' helper
Tux's lil' helper


Joined: 09 Nov 2006
Posts: 85
Location: Stockholm , Sweden

PostPosted: Wed Jan 25, 2012 2:56 pm    Post subject: Reply with quote

Jaglover wrote:
I bought one of these and installed it on the LAN side, all problems just disappeared.
http://www.newegg.com/Product/Product.aspx?Item=N82E16833106121
I host Gentoo Portage for all Gentoo boxes in it and share it over NFS, that certainly generates some traffic.


Well, I was thinking more in the line of getting the stuff I already have to work.

I just experienced the problem like 5 minutes ago.

Interestingly , the ping times on the internal to the routers eth1 interface is good
The problem is the WAN port where I get ping times of more than 3 seconds even from a remote shell on the actual router.

I set eth2 up without any particular configuration so that it connects via DHCP to my ISP.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7711
Location: Saint Amant, Acadiana

PostPosted: Wed Jan 25, 2012 3:33 pm    Post subject: Reply with quote

I'd try swapping ports to see if problem follows that particular NIC.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Wed Jan 25, 2012 3:40 pm    Post subject: Reply with quote

is there anything in /var/log/messages about that interface,
e.g. interrupt problems?

I was getting some symptoms like yours and found the
dreaded "nobody cared" error

As the error message suggested, putting "irqpoll" into
my grub boot line seems to have fixed the problem ...
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
wcg
Guru
Guru


Joined: 06 Jan 2009
Posts: 588

PostPosted: Thu Jan 26, 2012 6:32 pm    Post subject: Reply with quote

If your kernel has netfilter connection tracking enabled,
you can end up with some long hash chains (linked lists) to
search from tcp sessions being abandoned by remote apps
without closing the tcp session.

Try this:
Code:

echo 600 > /proc/sys/net/ipv4/netfilter/ip_conntrack_tcp_timeout_established


(Default value in 2.6.x seems to be 432000. This is a value in seconds.
If this helps, you can add this to /etc/sysctl.conf.)

[edit:] Value in minutes? Principle is the same, though, too long a time
for kernel to keep tracking sessions that the other end has long
abandoned vs a time so short that sessions still in use get arbitrarily
terminated. 10 hours seems easily long enough for most uses, hence "600".
[/edit]

For a more general approach to conntrack tuning that operates at
a higher level in the /proc/ heirarchy (and on different data structures,
presumably), see:
http://antmeetspenguin.blogspot.com/2011/01/high-performance-linux-router.html
_________________
TIA
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum