LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 02-29-2008, 04:17 AM   #1
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Rep: Reputation: 15
Question linux home router reboot itself when NAT'ing for large number of connections


When trying to connect to large number of bittorrent peers for my laptop on the LAN, the router instantly reboots itself. when limiting the number of connections to 50, it doesn't reboot.

My specs are: Debian stable on an old Pentium-2 200MHz PC, 192mb RAM, one 100mbit ethernet pci card (connected to the broadband modem) and one 10mbit ethernet isa card (connected to a hub). the isa card is configured to assign ip address to all clients connected to hub using dhcp server.

I've tested the RAM using memtest, tried different ethernet card (both pci and isa), tried even to connect them to different slots on the motherboard. It just keep rebooting itself.

The logs not showing anything, and `top` shows normal load on the server.

Can someone please give me some directions?
 
Old 02-29-2008, 05:29 AM   #2
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Well, what's the memory usage when you allow as many connections as possible?

Keep in mind, routing doesn't require massive amount of processor power per se, but memory. I'd give that a check and see how far it spikes.
 
Old 02-29-2008, 06:32 AM   #3
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
both the memory consumption and cpu usage are normal: when trying to increase the amount of open ed connections, the output of `watch -n 0.5 free -m` and `top` are constant over time

total memory usage is only 20MB.
 
Old 02-29-2008, 06:44 AM   #4
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Is this when people are actually trying to connect, or just when you increase the amount of maximum connections? Sorry, i should have specified before.

You could always create a cron job that writes the free memory and processor usage to a file every minute or so, and see how much it spike when it dies.
 
Old 02-29-2008, 08:26 AM   #5
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
didn't work. the memory and cpu usage stays stable while increasing the number of connections. when i get to about 200 connections, is reboots itself
 
Old 02-29-2008, 08:49 AM   #6
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Wait; it reboots itself while idle and there's no connections being made?
 
Old 02-29-2008, 08:59 AM   #7
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
no. when bittorrent is configured to allow <50 connections, while browsing or downloading from ftp at max speed, it runs fine. it only crushes when i increase the number of maximum allowed connections.

(thanks for trying to help)
 
Old 03-01-2008, 08:08 AM   #8
asimov
Member
 
Registered: Oct 2004
Location: Israel
Distribution: Debian
Posts: 37

Original Poster
Rep: Reputation: 15
disabling ipv6 solve the problem. I suspect the kernel tcp queue got filled when ipv4 and ipv6 were enabled simultaneously (cat /proc/net/tcp).

I hope people will find this post helpfull
 
Old 03-01-2008, 09:22 AM   #9
ARC1450
Member
 
Registered: Jun 2005
Location: Odenton, MD
Distribution: Gentoo
Posts: 290

Rep: Reputation: 30
Thanks for posting up how you fixed it. That will be most hopeful to others.

Sorry I couldn't have been more of a help.
 
  


Reply

Tags
debian, nat, network, router



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
Is there a way to reboot a router when connections isnt working? leosgb Linux - General 14 10-31-2007 10:01 AM
2 networks and 2 internet connections on linux router seer_tenedos Linux - Networking 6 03-27-2005 07:24 AM
Linux Router /w 2 DSL Connections adamantium Linux - Networking 1 01-14-2004 01:20 PM
Linux Mandrake 8.1 as Server now refusing connections to and from router lordsteven Linux - Networking 1 12-12-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:24 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