Router Slowdown

From DD-WRT Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 00:46, 4 October 2006 (edit)
Interex (Talk | contribs)
m
← Previous diff
Revision as of 01:01, 17 October 2006 (edit) (undo)
1161046096 (Talk | contribs)

Next diff →
Line 82: Line 82:
[[Category:English documentation]] [[Category:English documentation]]
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +
 +<div style="display:none">
 +[l_sp_9]
 +[http://top20man.in.ua/tankless.htm Tankless]
 +[http://top20man.in.ua/heater-water.htm Heater Water]
 +[http://top20man.in.ua/heater-tankless-water.htm Heater Tankless Water]
 +[http://top20man.in.ua/heater-hot-water.htm Heater Hot Water]
 +[http://top20man.in.ua/heater-hot-tankless-water.htm Heater Hot Tankless Water]
 +[http://top20man.in.ua/electric-heater-tankless-water.htm Electric Heater Tankless Water]
 +[http://top20man.in.ua/electric-heater-water.htm Electric Heater Water]
 +[http://top20man.in.ua/heater-solar-water.htm Heater Solar Water]
 +[http://top20man.in.ua/gas-heater-water.htm Gas Heater Water]
 +[http://top20man.in.ua/gas-heater-hot-water.htm Gas Heater Hot Water]
 +[http://top20man.in.ua/bosch-heater-tankless-water.htm Bosch Heater Tankless Water]
 +[http://top20man.in.ua/heater-rheem-water.htm Heater Rheem Water]
 +[http://top20man.in.ua/electric-heater-hot-water.htm Electric Heater Hot Water]
 +[http://top20man.in.ua/bed-heater-water.htm Bed Heater Water]
 +[http://top20man.in.ua/heater-rinnai-tankless-water.htm Heater Rinnai Tankless Water]
 +[http://top20man.in.ua/gas-heater-tankless-water.htm Gas Heater Tankless Water]
 +[http://top20man.in.ua/demand-heater-water.htm Demand Heater Water]
 +[http://top20man.in.ua/heater-richmond-water.htm Heater Richmond Water]
 +[http://top20man.in.ua/heater-services-water.htm Heater Services Water]
 +[http://top20man.in.ua/heater-state-water.htm Heater State Water]
 +[http://top20man.in.ua/heater-rinnai-water.htm Heater Rinnai Water]
 +[http://top20man.in.ua/bosch-heater-water.htm Bosch Heater Water]
 +[http://top20man.in.ua/ao-heater-smith-water.htm Ao Heater Smith Water]
 +[http://top20man.in.ua/heater-water-whirlpool.htm Heater Water Whirlpool]
 +[http://top20man.in.ua/bradford-heater-water-white.htm Bradford Heater Water White]
 +[http://top20man.in.ua/heater-repair-water.htm Heater Repair Water]
 +[http://top20man.in.ua/electric-heater-hot-tankless-water.htm Electric Heater Hot Tankless Water]
 +[http://top20man.in.ua/gas-heater-hot-tankless-water.htm Gas Heater Hot Tankless Water]
 +[http://top20man.in.ua/dealer-heater-water.htm Dealer Heater Water]
 +[http://top20man.in.ua/40-electric-gal-heater-water.htm 40 Electric Gal Heater Water]
 +[http://top20man.in.ua/heater-hot-instant-water.htm Heater Hot Instant Water]
 +[http://top20man.in.ua/american-heater-water.htm American Heater Water]
 +[http://top20man.in.ua/heater-o-smith-water.htm Heater O Smith Water]
 +[http://top20man.in.ua/ge-heater-water.htm Ge Heater Water]
 +[http://top20man.in.ua/heater-hot-solar-water.htm Heater Hot Solar Water]
 +[http://top20man.in.ua/demand-heater-hot-water.htm Demand Heater Hot Water]
 +[http://top20man.in.ua/heater-rv-water.htm Heater Rv Water]
 +[http://top20man.in.ua/heater-paloma-tankless-water.htm Heater Paloma Tankless Water]
 +[http://top20man.in.ua/heater-instant-water.htm Heater Instant Water]
 +[http://top20man.in.ua/heater-paloma-water.htm Heater Paloma Water]
 +[http://top20man.in.ua/heater-propane-water.htm Heater Propane Water]
 +[http://top20man.in.ua/atwood-heater-water.htm Atwood Heater Water]
 +[http://top20man.in.ua/heater-noritz-water.htm Heater Noritz Water]
 +[http://top20man.in.ua/heater-hot-rheem-water.htm Heater Hot Rheem Water]
 +[http://top20man.in.ua/commercial-heater-water.htm Commercial Heater Water]
 +[http://top20man.in.ua/heater-rheem-tankless-water.htm Heater Rheem Tankless Water]
 +[http://top20man.in.ua/heater-noritz-tankless-water.htm Heater Noritz Tankless Water]
 +[http://top20man.in.ua/heater-marathon-water.htm Heater Marathon Water]
 +[http://top20man.in.ua/gas-heater-natural-water.htm Gas Heater Natural Water]
 +[http://top20man.in.ua/heater-review-tankless-water.htm Heater Review Tankless Water]
 +[http://top20man.in.ua/heater-polaris-water.htm Heater Polaris Water]
 +[http://top20man.in.ua/heater-installation-water.htm Heater Installation Water]
 +[http://top20man.in.ua/heater-indirect-water.htm Heater Indirect Water]
 +[http://top20man.in.ua/heater-hot-price-water.htm Heater Hot Price Water]
 +[http://top20man.in.ua/heater-reliance-water.htm Heater Reliance Water]
 +[http://top20man.in.ua/heat-heater-pump-water.htm Heat Heater Pump Water]
 +[http://top20man.in.ua/demand-electric-heater-water.htm Demand Electric Heater Water]
 +[http://top20man.in.ua/heater-part-water.htm Heater Part Water]
 +[http://top20man.in.ua/heater-hot-rinnai-water.htm Heater Hot Rinnai Water]
 +[http://top20man.in.ua/a-o-heater-smith-water.htm A O Heater Smith Water]
 +[http://top20man.in.ua/heater-tankless-titan-water.htm Heater Tankless Titan Water]
 +[http://top20man.in.ua/heater-lochinvar-water.htm Heater Lochinvar Water]
 +[http://top20man.in.ua/heater-suburban-water.htm Heater Suburban Water]
 +[http://top20man.in.ua/heater-problem-water.htm Heater Problem Water]
 +[http://top20man.in.ua/heater-hot-rv-water.htm Heater Hot Rv Water]
 +[http://top20man.in.ua/gas-heater-natural-tankless-water.htm Gas Heater Natural Tankless Water]
 +[http://top20man.in.ua/heater-renco-tankless-water.htm Heater Renco Tankless Water]
 +[http://top20man.in.ua/heater-takagi-tankless-water.htm Heater Takagi Tankless Water]
 +[http://top20man.in.ua/heater-hot-repair-water.htm Heater Hot Repair Water]
 +[http://top20man.in.ua/heater-hot-rinnai-tankless-water.htm Heater Hot Rinnai Tankless Water]
 +[http://top20man.in.ua/heater-timer-water.htm Heater Timer Water]
 +[http://top20man.in.ua/heater-hot-water-whirlpool.htm Heater Hot Water Whirlpool]
 +[http://top20man.in.ua/heater-point-use-water.htm Heater Point Use Water]
 +[http://top20man.in.ua/bosch-electric-heater-tankless-water.htm Bosch Electric Heater Tankless Water]
 +[http://top20man.in.ua/heater-titan-water.htm Heater Titan Water]
 +[http://top20man.in.ua/electric-heater-powerstar-tankless-water.htm Electric Heater Powerstar Tankless Water]
 +[http://top20man.in.ua/bradford-heater-hot-water-white.htm Bradford Heater Hot Water White]
 +[http://top20man.in.ua/heater-select-state-water.htm Heater Select State Water]
 +[http://top20man.in.ua/heater-ruud-water.htm Heater Ruud Water]
 +[http://top20man.in.ua/heater-sears-water.htm Heater Sears Water]
 +[http://top20man.in.ua/heater-takagi-water.htm Heater Takagi Water]
 +[http://top20man.in.ua/ariston-heater-water.htm Ariston Heater Water]
 +[http://top20man.in.ua/bosch-heater-hot-tankless-water.htm Bosch Heater Hot Tankless Water]
 +[http://top20man.in.ua/heater-instantaneous-water.htm Heater Instantaneous Water]
 +[http://top20man.in.ua/heater-price-water.htm Heater Price Water]
 +[http://top20man.in.ua/heater-power-vent-water.htm Heater Power Vent Water]
 +[http://top20man.in.ua/heater-install-water.htm Heater Install Water]
 +[http://top20man.in.ua/bosch-gas-heater-tankless-water.htm Bosch Gas Heater Tankless Water]
 +[http://top20man.in.ua/heater-portable-water.htm Heater Portable Water]
 +[http://top20man.in.ua/heater-home-mobile-water.htm Heater Home Mobile Water]
 +[http://top20man.in.ua/build-heater-solar-water.htm Build Heater Solar Water]
 +[http://top20man.in.ua/fired-heater-water-wood.htm Fired Heater Water Wood]
 +[http://top20man.in.ua/drain-heater-water.htm Drain Heater Water]
 +[http://top20man.in.ua/heater-renai-tankless-water.htm Heater Renai Tankless Water]
 +[http://top20man.in.ua/heater-hot-problem-water.htm Heater Hot Problem Water]
 +[http://top20man.in.ua/heater-propane-tankless-water.htm Heater Propane Tankless Water]
 +[http://top20man.in.ua/baseboard-heater-hot-water.htm Baseboard Heater Hot Water]
 +[http://top20man.in.ua/heater-maintenance-water.htm Heater Maintenance Water]
 +[http://top20man.in.ua/heater-review-water.htm Heater Review Water]
 +[http://top20man.in.ua/gas-heater-rheem-water.htm Gas Heater Rheem Water]
 +[http://top20man.in.ua/bosch-heater-hot-water.htm Bosch Heater Hot Water]
 +</div>

Revision as of 01:01, 17 October 2006

A lot of people have issues with their router slowing down/crashing/hanging/not responding over time. Usually these people are running P2P software like Emule, Bittorrent, Shareaza or something else. You might want to play a little bit with the values below, to fit your own needs.

Contents

Symptoms

Even if it happens the router doesn't answer pings anymore and no more HTTP, you still can check what's going on through syslogd.

To view syslog messages, Telnet or SSH into your router, login and run the following command:

cat /var/log/messages

Here is a brief description of what's going on :

  1. First, you'll see 'full, dropping packet.' messages followed by 'messages suppressed.'
  2. Eventually, it will get verbose and you'll see logs similar to the following :
<4>kernel: ip_conntrack: table full, dropping packet.
<4>kernel: NET: 15 messages suppressed.
<4>kernel: ip_conntrack: table full, dropping packet.
<4>kernel: NET: 12 messages suppressed.

Solution 1

  • Go to the Web-Admin and log in
  • Go to 'Administration'
  • Go to 'Management'
  • Enter the following values at 'IP Filter Settings'
    • Maximum Ports: 4096
    • TCP Timeout (s): 90 or 120
    • UDP Timeout (s): 90 or 120

Screenshot

alt IP Filter Settings at DD-WRT v23

AIM, ICQ and other IM programs

If you're using certain IM clients such as ICQ or AIM (or other applications which do not send frequent keep-alive packets), you should set timeout to 300 or 600 to help them stay connected. As this will decrease the router's performance when you're dealing with heavy P2P traffic, you might want to experiment with these values.

Solution 2

DD-WRT has an inbuild proxy feature that allows rewriting of HTML content to filter ActiveX cookies, etc. As this is load-intensive, you may want to disable this feature. This should be done under Security->Firewall.

Unfortunately this function has 3 bugs:

  • Though all 4 checkboxes are unchecked the rewriting proxy is still running (you might have to reboot)
  • It drops connections if under heavy load
  • It probably runs haywire checking traffic on other ports than 80, hence the slowdown with P2P applications (unconfirmed)

The only solution is to totally disable the firewall (which I do not recommend) in Security->Firewall. This fixes all slowdowns.

This behavior has been seen in v22 and v23. Please report this to the maintainer and put it in the bug database.

Solution 3

Apparently there is a bug in the WRT54GS v2.2. The bug involves a fatal memory access error due to a difference in the CPU clock speed and the clock speed on the memory bus. This bug causes connections to be dropped when transferring large files. New versions of the Linksys firmware overclock the CPU to 216 MHz. This can be fixed by logging into the router via SSH or Telnet and executing the following commands:

nvram set clkfreq=216
nvram commit
reboot

Extra Information

The line

echo '600 1800 120 60 120 120 10 60 30 120' > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts

is often recommended in forums, but precious few know what it really does. Here is the explanation.

It is a list for all the possible TCP states and their time outs in seconds. See my table below (they are in the correct order):

State		Timeout value

NONE		10 minutes
ESTABLISHED	30 minutes (default is 5 days)
SYN_SENT	2 minutes
SYN_RECV	60 seconds
FIN_WAIT	2 minutes
TIME_WAIT	2 minutes
CLOSE		10 seconds
CLOSE_WAIT	60 seconds (default is 12 hours)
LAST_ACK	30 seconds
LISTEN		2 minutes

You can check what your router is set to by printing the same device used above. (I recommend checking the values on your router before you change them):

cat /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
300     600     120     60      120     120     10      60      30      120











[l_sp_9] Tankless Heater Water Heater Tankless Water Heater Hot Water Heater Hot Tankless Water Electric Heater Tankless Water Electric Heater Water Heater Solar Water Gas Heater Water Gas Heater Hot Water Bosch Heater Tankless Water Heater Rheem Water Electric Heater Hot Water Bed Heater Water Heater Rinnai Tankless Water Gas Heater Tankless Water Demand Heater Water Heater Richmond Water Heater Services Water Heater State Water Heater Rinnai Water Bosch Heater Water Ao Heater Smith Water Heater Water Whirlpool Bradford Heater Water White Heater Repair Water Electric Heater Hot Tankless Water Gas Heater Hot Tankless Water Dealer Heater Water 40 Electric Gal Heater Water Heater Hot Instant Water American Heater Water Heater O Smith Water Ge Heater Water Heater Hot Solar Water Demand Heater Hot Water Heater Rv Water Heater Paloma Tankless Water Heater Instant Water Heater Paloma Water Heater Propane Water Atwood Heater Water Heater Noritz Water Heater Hot Rheem Water Commercial Heater Water Heater Rheem Tankless Water Heater Noritz Tankless Water Heater Marathon Water Gas Heater Natural Water Heater Review Tankless Water Heater Polaris Water Heater Installation Water Heater Indirect Water Heater Hot Price Water Heater Reliance Water Heat Heater Pump Water Demand Electric Heater Water Heater Part Water Heater Hot Rinnai Water A O Heater Smith Water Heater Tankless Titan Water Heater Lochinvar Water Heater Suburban Water Heater Problem Water Heater Hot Rv Water Gas Heater Natural Tankless Water Heater Renco Tankless Water Heater Takagi Tankless Water Heater Hot Repair Water Heater Hot Rinnai Tankless Water Heater Timer Water Heater Hot Water Whirlpool Heater Point Use Water Bosch Electric Heater Tankless Water Heater Titan Water Electric Heater Powerstar Tankless Water Bradford Heater Hot Water White Heater Select State Water Heater Ruud Water Heater Sears Water Heater Takagi Water Ariston Heater Water Bosch Heater Hot Tankless Water Heater Instantaneous Water Heater Price Water Heater Power Vent Water Heater Install Water Bosch Gas Heater Tankless Water Heater Portable Water Heater Home Mobile Water Build Heater Solar Water Fired Heater Water Wood Drain Heater Water Heater Renai Tankless Water Heater Hot Problem Water Heater Propane Tankless Water Baseboard Heater Hot Water Heater Maintenance Water Heater Review Water Gas Heater Rheem Water Bosch Heater Hot Water