LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   My Linux Router Seems To Be Working Slowly (https://www.linuxquestions.org/questions/linux-networking-3/my-linux-router-seems-to-be-working-slowly-739652/)

Kashyyk 07-13-2009 12:05 AM

My Linux Router Seems To Be Working Slowly
 
First of all, I will explain my network set up: I have two computers, one videophone and a PS3 that is connected to my 1 gbps D-Link switch. Also, Eth1 interface on my Linux router is connected to the same switch. Eth0 on the same router is connected to my private's apartment network.

I'll use ASCII illustration below to help you understand my network topology a little better.

Computer #1, Computer #2, PS3, Videophone --> Switch --> Eth0(Router)Eth1 --> Another gateway inside my private apartment network.

I use Iptables on my router to serve as a routing service and firewall on for my hosts in my own network. I had no problem with it for a while. This changes when I noticed that both of my systems takes so long time to load web sites and establish connections in my games. I temporarily solved the problem by rebooting my router. However, it would come back few hours later. I rebooted my router to make problem disappear again for only few hours.

I am trying to find anything what is wrong with my router. I tried to look at how much my router's memory and CPU is utilized using top command. Also, I ran the ping test only to find latency level to be normal. I ran tcpdump to see what the network traffic is like, when it goes through my router but I couldn't find any strange. I tried to find anything that may raise red flags in /var/logs but I found none. I am a little lost on what else to investigate and fix the problem.

I hope you can give me a good direction on what to do next to fix the problem so my hosts inside my network can run more smoothly when it is connected to Internet.

routers 07-15-2009 02:11 AM

maybe your linux router dont have enought RAM

are you running torrent ?

archtoad6 08-06-2009 09:02 AM

Welcome to LQ.

Quote:

Originally Posted by Kashyyk (Post 3605678)
First of all, I will explain my network set up:
. . .
I'll use ASCII illustration below . . .

Something like this?:
Code:

                      +------------+
                      |  External  |
                      |  Gateway  |
                      +------------+
                              |
                      +------------+
                      |  (eth1)  |
                      |  Router  |
                      |  (eth0)  |
                      +------------+
                              |
    +---------------------------------------------------+
    |                      Switch                      |
    +---------------------------------------------------+
      |                |              |            |
      |                |              |            |
+-------------+  +-------------+  +---------+  +------------+
|            |  |            |  |        |  |            |
| Computer #1 |  | Computer #2 |  |  PS3  |  | Videophone |
|            |  |            |  |        |  |            |
+-------------+  +-------------+  +---------+  +------------+



Quote:

Originally Posted by Kashyyk (Post 3605678)
I use Iptables on my router to serve as a routing service and firewall on for my hosts in my own network.

Who wrote the iptables on your router? I.E., what router s/w, or OS, or distro is it running? (Mine is SmoothWall Express 3.)

Please do NOT post the iptables script until we ask you to; & then put it in a pastebin or your LQ blog, but don't break the train of readability of the thread by putting it here.


Quote:

Originally Posted by Kashyyk (Post 3605678)
I had no problem with it for a while.

How long after it was put in service did start to give you trouble?

Was there any change to it just before this trouble began?


Quote:

Originally Posted by Kashyyk (Post 3605678)
This changes when I noticed that both of my systems takes so long time to load web sites and establish connections in my games. I temporarily solved the problem by rebooting my router. However, it would come back few hours later. I rebooted my router to make problem disappear again for only few hours.

So, the unsatisfactory solution is to reboot it every "few hours". If all else fails, maybe (& this is a real kluge) a cron job to periodically reboot would do the trick. :-p :(


Quote:

Originally Posted by Kashyyk (Post 3605678)
I am trying to find anything what is wrong with my router. I tried to look at how much my router's memory and CPU is utilized using top command.

I assume you saw nothing unusual.

How fast is the CPU & how much RAM do you have?

FWIW, My SmoothWall Express 3 box has 128k at 200MHz.


Quote:

Originally Posted by Kashyyk (Post 3605678)
Also, I ran the ping test only to find latency level to be normal. I ran tcpdump to see what the network traffic is like, when it goes through my router but I couldn't find any strange. I tried to find anything that may raise red flags in /var/logs but I found none. I am a little lost on what else to investigate and fix the problem.

I hope the answers to the above will help us help you.


Quote:

Originally Posted by Kashyyk (Post 3605678)
I hope you can give me a good direction on what to do next to fix the problem so my hosts inside my network can run more smoothly when it is connected to Internet.

So do I.




All times are GMT -5. The time now is 07:11 PM.