Insanely slow download speeds

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Author Message
popsicle
DD-WRT Novice


Joined: 09 Jul 2006
Posts: 2

PostPosted: Sun Jul 09, 2006 2:51    Post subject: Insanely slow download speeds Reply with quote
Hi. I know this has been discussed before (in about a million places), but the hundreds of forums I've looked at don't solve my problem. I can get data transfers through my wrt54gl, but only if they are about 20k or smaller. Any large file I try to download gets insanely slow (dropping from 15kB/s down to 0.1kB/s). Note that if I unplug the wrt54gl and replace it with my allied tellesyn 10BaseT hub, my dl speed skyrockets to 240kB/s. I'm running dd-wrt 23sp1 (I flashed micro first, then the generic sp1). I've set my max ports to 4096 and my tcp and udp timeouts to 90 (each). I've tried running (each one of):
echo 4096 > /proc/sys/net/ipv4/ip_conntrack_max
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
echo 512 > /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 2048 > /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 4096 > /proc/sys/net/ipv4/neigh/default/gc_thresh3
echo "600 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
....and then when it didn't work...
echo 2048 > /proc/sys/net/ipv4/ip_conntrack_max
echo 2048 > /proc/sys/net/ipv4/tcp_max_orphans
echo 512 > /proc/sys/kernel/threads-max
echo 0 > /proc/sys/net/ipv4/tcp_orphan_retries
echo 1 > /proc/sys/net/ipv4/tcp_abort_on_overflow
echo "60 180" > /proc/sys/net/ipv4/ip_conntrack_udp_timeouts
echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
echo "300 1800 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
....and then when it didn't work...
echo 2048 > /proc/sys/net/ipv4/ip_conntrack_max
echo 2048 > /proc/sys/net/ipv4/tcp_max_orphans
echo 512 > /proc/sys/kernel/threads-max
echo 4096 > /proc/sys/fs/file-max
echo 0 > /proc/sys/net/ipv4/tcp_orphan_retries
echo 1 > /proc/sys/net/ipv4/tcp_abort_on_overflow
echo "60 180" > /proc/sys/net/ipv4/ip_conntrack_udp_timeouts
echo "300 2400 120 60 120 120 10 60 30 120" > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
echo "50 500 0 0 200 1000 60 20 0" > /proc/sys/vm/bdflush
echo "0 0" > /proc/sys/vm/pagetable_cache
.... and that didn't work either!
(I tried running each from administration/diagnostics, and when they failed, ssh'd into the router and ran each set of commands from the shell). When flashing the router, I did each flash set from the gui, but when things still tanked, I flashed again (starting by re-flashing the linksys WRT54GL_4.30.5_US_code.bin, then the mini and finally the generic 23-sp1 all using tftp. I've flashed over a dozen times and havn't bricked it yet, YAY!, but I still can't download anything large!!!
Oh, and just in case anyone was wondering, I did reset the router defaults (button at the back) after flashing (each time for 30 seconds after it rebooted with the new firmware). My hardware setup is a 3 com dsl modem connected to a linksys befsr11 then connected to my wrt54gl. My befsr11 acting as the dhcp server (I have my wrt54gl acting as a dhcp client, and have the wrt54gl dhcp server disabled). My wrt54gl also is acting as a dhcp forwarder. My befsr11 is plugged into one of the lan ports of my wrt54gl, and the operating mode is for a rip2 router (not a gateway). I've unplugged the befsr11 and tried using the wrt54g as the dhcp server connected directly to my dsl modem (using it as a dhcp server and gateway, and not using dhcp forwarding). It's just as slow. When I unplug my wrt54gl and replace it with my old hub, the speed increase is insane. Why? Is there any stone I havn't turned? Is there any hair I haven't pulled? What do I have to do to visit a photography web site and be able to see a picture more than 50kB, or even have my email client not timeout?
Sponsor
mahenry
DD-WRT User


Joined: 12 Jun 2006
Posts: 120

PostPosted: Sun Jul 09, 2006 4:08    Post subject: Reply with quote
Enable MAC Address Clone? Disable STP? Turn firewall off (just to troubleshoot)?

Just guesses...

_________________
whr-g54s -- DD-WRT v23 SP2 (08/04/06) mini -- gateway
wrt54gs v5 -- DD-WRT v23 SP2 (08/04/06) micro -- AP
popsicle
DD-WRT Novice


Joined: 09 Jul 2006
Posts: 2

PostPosted: Sun Jul 09, 2006 6:55    Post subject: STP, ARGH! Reply with quote
mahenry wrote:
Enable MAC Address Clone? Disable STP? Turn firewall off (just to troubleshoot)?

Just guesses...

Thanks! STP was it! I worked at debugging this beast for more than 30 hours (not all in one sitting) over the past 4 days (I have to go to work, eat and sleep occasionally). I had even already spent at least half an hour modifying the MAC address to my old BEFSR11, and to the PC's MAC address (to no success). I'm still not 100% certain what STP actually stands for, but for me it meant 'showstopper'. Now I can watch google video for hours at a time (not a bad test). Thanks!
mahenry
DD-WRT User


Joined: 12 Jun 2006
Posts: 120

PostPosted: Sun Jul 09, 2006 7:19    Post subject: Reply with quote
Awesome!! STP (Spanning Tree Protocol). Basically, it is intended to guard against multiple paths for packets from existing.
_________________
whr-g54s -- DD-WRT v23 SP2 (08/04/06) mini -- gateway
wrt54gs v5 -- DD-WRT v23 SP2 (08/04/06) micro -- AP
The Highlander
DD-WRT Novice


Joined: 25 Jun 2006
Posts: 33

PostPosted: Sun Jul 09, 2006 8:48    Post subject: Reply with quote
I am using a WRT54GSV4 DD-WRT SP1 STD and
a Belkin F5D7310 DD-WRT SP1 MICRO.
I had the same problem with huge files:
the speed decreases below a few KBit/sec.

In this case the solution was to enable
Wireless / Advanced Settings / Frame Burst
on both access points.

_________________
Regards,
The Highlander
solvalou7
DD-WRT Novice


Joined: 06 Jul 2006
Posts: 25

PostPosted: Mon Jul 10, 2006 1:20    Post subject: Reply with quote
I was having the exact same problem and also disabled STP to fix it. What exactly does STP do ? and should I be worried for disabling it ? Any kind of secury issues may rise because of that ?

thanks
mahenry
DD-WRT User


Joined: 12 Jun 2006
Posts: 120

PostPosted: Mon Jul 10, 2006 3:42    Post subject: Reply with quote
Shouldn't be a security issue:

http://www.dd-wrt.com/wiki/index.php/STP

There is another link to even more information on STP once you get to the page linked to above.

_________________
whr-g54s -- DD-WRT v23 SP2 (08/04/06) mini -- gateway
wrt54gs v5 -- DD-WRT v23 SP2 (08/04/06) micro -- AP
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
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
You can attach files in this forum
You can download files in this forum