Linksys E2000 Slow LAN throughput with DD-WRT

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
doctordbx
DD-WRT Novice


Joined: 13 Feb 2011
Posts: 4

PostPosted: Sun Feb 13, 2011 15:15    Post subject: Linksys E2000 Slow LAN throughput with DD-WRT Reply with quote
Hi there,

I recently purchased a Linksys E-2000 gigabit N router. Anyway, I ran a speedtest on it before installing DD-WRT and was getting 95~98 Megabit speed from the internet to the LAN (I have 100 mb cable connection), however, once I installed WRT and ran the test again this dropped down to 30.

I reinstalled the Linksys firmware and it shot back up to 95 ~ 98. Same test site, same server.

I am running 14929 firmware for the E-2000.

Any suggestions? Would like to use DD-WRT but the slow WAN/LAN throughput is kind of offputting.
Sponsor
phuzi0n
DD-WRT Guru


Joined: 10 Oct 2006
Posts: 10141

PostPosted: Sun Feb 13, 2011 22:01    Post subject: Reply with quote
You should be getting much more than 30mbps if you're wired not wireless with default settings, but dd-wrt routing throughput is slower than stock firmware due to features. An e2000 should be somewhere around 60-70mbps with default settings and the only way it will achieve ~100mbps with dd-wrt is if your overclock it.
_________________
Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
doctordbx
DD-WRT Novice


Joined: 13 Feb 2011
Posts: 4

PostPosted: Sun Feb 13, 2011 22:05    Post subject: Reply with quote
Thanks for the reply.

Is it possible to turn many of these settings off to increase throughput, or are you always going to take a throughput hit with dd-wrt?
Fluor
DD-WRT Novice


Joined: 18 Feb 2011
Posts: 4

PostPosted: Fri Feb 18, 2011 23:01    Post subject: Reply with quote
Same happens with my WRT320N.
I have 120Mbit cablemodem but i can only pull in ~45Mbit max.

The WRT320N just isn't fast enough for these speeds.
doctordbx
DD-WRT Novice


Joined: 13 Feb 2011
Posts: 4

PostPosted: Sat Feb 19, 2011 0:47    Post subject: Reply with quote
I had to revert to Linksys firmware, I couldn't find a way to get the speed back up to what it should be at all.

The benefits of DD-WRT do not outweigh the speed loss, sorry but halving your network speed is just too much.
CayceBalara
DD-WRT Novice


Joined: 21 Feb 2011
Posts: 2

PostPosted: Mon Feb 21, 2011 19:33    Post subject: E2000 poor performance post-DD-WRT compared to stock Reply with quote
I'm having this issue as well. I was getting high 70 - 90 download speeds before DD-WRT, after installing DD-WRT (using builds 14929-big and 15962-big) I'm only getting mid-to-high 30's. I have gone back-and-forth a couple times to confirm that the observations are repeatable.

Any ideas or suggestions on tweaking any of the settings to improve this? I'm going back to stock if this is the best I can do.

Thanks.
CayceBalara
DD-WRT Novice


Joined: 21 Feb 2011
Posts: 2

PostPosted: Mon Feb 21, 2011 19:55    Post subject: Reply with quote
Just a follow-up/FYI, I installed TomatoUSB and it put me back up to mid-80's. Not sure if that info helps to pinpoint the issue with DD-WRT or not.
mtmaverick
DD-WRT Novice


Joined: 14 May 2012
Posts: 1

PostPosted: Mon May 14, 2012 14:13    Post subject: Reply with quote
I had similar problem with the wired connection. My internet is 120/10mbps and with build 14929 E2000 was able to download about 40mbps. I put back original firmware and speed is back to normal at 120mbps on LAN and about 55 on wireless.
secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Tue Sep 04, 2012 7:47    Post subject: Reply with quote
Cisco/Linksys WRT320N / E2000

I have a connection that is over 50Mb/s down and can hit at least 55Mb/s with DD-WRT installed doing just NAT.

I logged into the console and ran 'top' and I noticed the SIRQ % spikes >90% when attempting to download at the high speeds. With QoS enabled, the top speed at hits about 32Mb/s download.

I'm guessing that SIRQs are System Interrupt Requests (driver/hardware communications). The throughput performance is limited because of the poor efficiency of the network drivers/kernel.

Now the stock firmware is able to reach much higher speeds so why is DD-WRT's implementation of just NAT so inefficient?
secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Tue Sep 04, 2012 8:52    Post subject: WRT320N / E2000 DD-WRT LAN/WAN Throughput Reply with quote
WRT320N / E2000 DD-WRT LAN/WAN Throughput

I also ran iperf from two gigabit systems. I was able to reach over 900Mb/s through a managed gigabit switch.

When testing the connection speed over the NAT, I get the following:

Intel Pro/1000 adapters, TCP/IPv4, No Delay, 64k window, Windows 8 x64.

Code:

Interval       Transfer     Bandwidth

 0.0- 1.0 sec  7.70 MBytes  64.6 Mbits/sec
 1.0- 2.0 sec  9.54 MBytes  80.0 Mbits/sec
 2.0- 3.0 sec  7.00 MBytes  58.7 Mbits/sec
 3.0- 4.0 sec  7.16 MBytes  60.1 Mbits/sec
 4.0- 5.0 sec  10.2 MBytes  85.3 Mbits/sec
 5.0- 6.0 sec  7.21 MBytes  60.4 Mbits/sec
 6.0- 7.0 sec  9.25 MBytes  77.6 Mbits/sec
 7.0- 8.0 sec  8.30 MBytes  69.6 Mbits/sec
 8.0- 9.0 sec  7.17 MBytes  60.1 Mbits/sec
 9.0-10.0 sec  10.4 MBytes  86.9 Mbits/sec
10.0-11.0 sec  10.3 MBytes  86.6 Mbits/sec
11.0-12.0 sec  10.3 MBytes  86.5 Mbits/sec
12.0-13.0 sec  7.18 MBytes  60.2 Mbits/sec
13.0-14.0 sec  10.3 MBytes  86.3 Mbits/sec
14.0-15.0 sec  10.4 MBytes  87.0 Mbits/sec
15.0-16.0 sec  10.3 MBytes  86.4 Mbits/sec
16.0-17.0 sec  7.12 MBytes  59.7 Mbits/sec
17.0-18.0 sec  10.3 MBytes  86.2 Mbits/sec
18.0-19.0 sec  7.23 MBytes  60.6 Mbits/sec
19.0-20.0 sec  10.3 MBytes  86.5 Mbits/sec
20.0-21.0 sec  7.09 MBytes  59.4 Mbits/sec
21.0-22.0 sec  10.3 MBytes  86.2 Mbits/sec
22.0-23.0 sec  10.3 MBytes  86.4 Mbits/sec
23.0-24.0 sec  10.3 MBytes  86.4 Mbits/sec
24.0-25.0 sec  10.3 MBytes  86.7 Mbits/sec
25.0-26.0 sec  7.26 MBytes  60.9 Mbits/sec
26.0-27.0 sec  7.18 MBytes  60.2 Mbits/sec
27.0-28.0 sec  10.3 MBytes  86.4 Mbits/sec
28.0-29.0 sec  7.32 MBytes  61.4 Mbits/sec
29.0-30.0 sec  7.31 MBytes  61.4 Mbits/sec

 0.0-30.0 sec   265 MBytes  74.2 Mbits/sec
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Wed Sep 05, 2012 22:31    Post subject: Reply with quote
You can get a high speed with DD-WRT saving this in your startup script:
Code:
# echo 262144 > /proc/sys/net/core/rmem_max
# echo 262144 > /proc/sys/net/core/wmem_max
# echo "4096 16384 262144" > /proc/sys/net/ipv4/tcp_wmem
# echo "4096 87380 262144" > /proc/sys/net/ipv4/tcp_rmem
echo 1000 > /proc/sys/net/core/netdev_max_backlog

The commented stuff is optional, last line should do it for most users.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Wed Sep 05, 2012 22:34    Post subject: Reply with quote
Thanks - ill give it a try... If this works (as I've seen it posted elsewhere) why is it not set by default? Is there a downside to changing the max backlog setting?
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Wed Sep 05, 2012 22:36    Post subject: Reply with quote
secured2k wrote:
Thanks - ill give it a try... If this works (as I've seen it posted elsewhere) why is it not set by default? Is there a downside to changing the max backlog setting?

I don't know. I have a reasonably fast Kong build and it is set to 30. But Kong builds could brick your router.

_________________
2 times APU2 Opnsense 21.1 with Sensei

2 times RT-AC56U running DD-WRT 45493 (one as Gateway, the other as AP, both bridged with LAN cable)

3 times Asus RT-N16 shelved

E4200 V1 running freshtomato 2020.8 (bridged with LAN cable)

3 times Linksys WRT610N V2 converted to E3000 and 1 original E3000 running freshtomato 2020.8 (bridged with LAN cable)


secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Thu Sep 06, 2012 1:11    Post subject: Reply with quote
I searched Google and found that neetdev_max_backlog is a Linux TCP tuning setting that basically increases the queue size of incoming packets (syn requests) waiting to be processed by the next TCP Receive process.

While increasing this does allow for more packets to be queued before being dropped, there is still a limit to how fast the hardware ca process the packets. Here are my results.

Cisco/Linksys WRT320N / E2000 (DD-WRT V24SP2 svn 19519)
Switch Performance

Broadcom BCM53115 (Linksys/Cisco - Gigabit SmartSwitch)
Cisco 2960S (WS-C2960S-24PD-L, LANBASE IOS 15.0.2-SE)

Dual Port with SLA on the Cisco 2960 with an uplink to the Cisco/Linksys Broadcom Switch. Client on the Cisco/Linksys Broadcom Switch.

Windows 8 x64
Intel Pro Driver: 9.15.17 (e1e6232e.sys - NDIS 6.2)
Intel Server Driver: 12.1.77 (e1q63x64.sys - NDIS 6.3)

Code:
Intel(82573L) Pro/1000 PT (Sending/TCP)
Intel(82576) Gigabit ET Server - Dual Port with Static Link Aggregation (Receiving/TCP)

Interval       Transfer     Bandwidth
 0.0- 1.0 sec   113 MBytes   947 Mbits/sec
 1.0- 2.0 sec   111 MBytes   932 Mbits/sec
 2.0- 3.0 sec   112 MBytes   937 Mbits/sec
 3.0- 4.0 sec   112 MBytes   938 Mbits/sec
 4.0- 5.0 sec   111 MBytes   928 Mbits/sec
 5.0- 6.0 sec   111 MBytes   930 Mbits/sec
 6.0- 7.0 sec   112 MBytes   937 Mbits/sec
 7.0- 8.0 sec   112 MBytes   937 Mbits/sec
 8.0- 9.0 sec   112 MBytes   940 Mbits/sec
 9.0-10.0 sec   113 MBytes   951 Mbits/sec
10.0-11.0 sec   112 MBytes   936 Mbits/sec
11.0-12.0 sec   112 MBytes   936 Mbits/sec
12.0-13.0 sec   112 MBytes   938 Mbits/sec
13.0-14.0 sec   112 MBytes   939 Mbits/sec
14.0-15.0 sec   112 MBytes   941 Mbits/sec
------------------------------------------
 0.0-15.0 sec  1677 MBytes   937 Mbits/sec

Intel(82576) Gigabit ET Server - Dual Port with Static Link Aggregation (Sending/TCP)
Intel(82573L) Pro/1000 PT (Receiving/TCP)

Interval       Transfer     Bandwidth
 0.0- 1.0 sec   113 MBytes   950 Mbits/sec
 1.0- 2.0 sec   113 MBytes   944 Mbits/sec
 2.0- 3.0 sec   112 MBytes   943 Mbits/sec
 3.0- 4.0 sec   112 MBytes   943 Mbits/sec
 4.0- 5.0 sec   113 MBytes   946 Mbits/sec
 5.0- 6.0 sec   113 MBytes   946 Mbits/sec
 6.0- 7.0 sec   113 MBytes   944 Mbits/sec
 7.0- 8.0 sec   112 MBytes   941 Mbits/sec
 8.0- 9.0 sec   112 MBytes   942 Mbits/sec
 9.0-10.0 sec   114 MBytes   960 Mbits/sec
10.0-11.0 sec   113 MBytes   945 Mbits/sec
11.0-12.0 sec   110 MBytes   922 Mbits/sec
12.0-13.0 sec   112 MBytes   939 Mbits/sec
13.0-14.0 sec   112 MBytes   942 Mbits/sec
------------------------------------------
 0.0-15.0 sec  1685 MBytes   943 Mbits/sec


Reboot and test defaults - All features off, no SPI

Routing Throughput

Code:
 Data going from External LAN to Internal LAN
Interval       Transfer     Bandwidth
 0.0- 1.0 sec  7.67 MBytes  64.4 Mbits/sec
 1.0- 2.0 sec  10.6 MBytes  89.1 Mbits/sec
 2.0- 3.0 sec  7.91 MBytes  66.4 Mbits/sec
 3.0- 4.0 sec  10.2 MBytes  85.5 Mbits/sec
 4.0- 5.0 sec  7.41 MBytes  62.2 Mbits/sec
 5.0- 6.0 sec  7.38 MBytes  61.9 Mbits/sec
 6.0- 7.0 sec  10.4 MBytes  87.4 Mbits/sec
 7.0- 8.0 sec  10.5 MBytes  88.2 Mbits/sec
 8.0- 9.0 sec  7.41 MBytes  62.2 Mbits/sec
 9.0-10.0 sec  6.66 MBytes  55.8 Mbits/sec
10.0-11.0 sec  5.05 MBytes  42.4 Mbits/sec
11.0-12.0 sec  10.6 MBytes  89.1 Mbits/sec
12.0-13.0 sec  10.6 MBytes  88.7 Mbits/sec
13.0-14.0 sec  7.48 MBytes  62.8 Mbits/sec
14.0-15.0 sec  10.6 MBytes  89.1 Mbits/sec
------------------------------------------
 0.0-15.0 sec   131 MBytes  73.0 Mbits/sec

Data going from Internal LAN to External LAN
Interval       Transfer     Bandwidth
 0.0- 1.0 sec  9.55 MBytes  80.2 Mbits/sec
 1.0- 2.0 sec  9.18 MBytes  77.0 Mbits/sec
 2.0- 3.0 sec  9.57 MBytes  80.3 Mbits/sec
 3.0- 4.0 sec  9.55 MBytes  80.1 Mbits/sec
 4.0- 5.0 sec  9.41 MBytes  78.9 Mbits/sec
 5.0- 6.0 sec  6.40 MBytes  53.7 Mbits/sec
 6.0- 7.0 sec  4.25 MBytes  35.7 Mbits/sec
 7.0- 8.0 sec  7.97 MBytes  66.9 Mbits/sec
 8.0- 9.0 sec  6.90 MBytes  57.9 Mbits/sec
 9.0-10.0 sec  6.80 MBytes  57.1 Mbits/sec
10.0-11.0 sec  9.38 MBytes  78.6 Mbits/sec
11.0-12.0 sec  9.36 MBytes  78.5 Mbits/sec
12.0-13.0 sec  4.27 MBytes  35.8 Mbits/sec
13.0-14.0 sec  8.95 MBytes  75.0 Mbits/sec
14.0-15.0 sec  6.52 MBytes  54.7 Mbits/sec
------------------------------------------
 0.0-15.0 sec   118 MBytes  66.0 Mbits/sec


After changing netdev_max_backlog to 1000.

Routing Throughput

Code:
Data going from External LAN to Internal LAN

Interval       Transfer     Bandwidth
 0.0- 1.0 sec  11.5 MBytes  96.5 Mbits/sec
 1.0- 2.0 sec  11.3 MBytes  94.5 Mbits/sec
 2.0- 3.0 sec  11.2 MBytes  94.3 Mbits/sec
 3.0- 4.0 sec  11.2 MBytes  94.2 Mbits/sec
 4.0- 5.0 sec  11.3 MBytes  94.7 Mbits/sec
 5.0- 6.0 sec  11.2 MBytes  94.3 Mbits/sec
 6.0- 7.0 sec  11.3 MBytes  94.5 Mbits/sec
 7.0- 8.0 sec  11.3 MBytes  94.5 Mbits/sec
 8.0- 9.0 sec  11.2 MBytes  94.0 Mbits/sec
 9.0-10.0 sec  11.4 MBytes  95.8 Mbits/sec
10.0-11.0 sec  11.2 MBytes  94.2 Mbits/sec
11.0-12.0 sec  11.3 MBytes  94.4 Mbits/sec
12.0-13.0 sec  11.2 MBytes  94.2 Mbits/sec
13.0-14.0 sec  11.3 MBytes  94.8 Mbits/sec
14.0-15.0 sec  11.2 MBytes  94.2 Mbits/sec
------------------------------------------
 0.0-15.0 sec   169 MBytes  94.6 Mbits/sec

Data going from Internal LAN to External LAN.
Interval       Transfer     Bandwidth
 0.0- 1.0 sec  10.1 MBytes  84.7 Mbits/sec
 1.0- 2.0 sec  10.1 MBytes  84.4 Mbits/sec
 2.0- 3.0 sec  9.95 MBytes  83.5 Mbits/sec
 3.0- 4.0 sec  9.29 MBytes  77.9 Mbits/sec
 4.0- 5.0 sec  9.65 MBytes  80.9 Mbits/sec
 5.0- 6.0 sec  9.66 MBytes  81.0 Mbits/sec
 6.0- 7.0 sec  9.65 MBytes  81.0 Mbits/sec
 7.0- 8.0 sec  9.81 MBytes  82.3 Mbits/sec
 8.0- 9.0 sec  10.1 MBytes  84.5 Mbits/sec
 9.0-10.0 sec  10.1 MBytes  84.5 Mbits/sec
10.0-11.0 sec  10.1 MBytes  84.4 Mbits/sec
11.0-12.0 sec  10.2 MBytes  85.9 Mbits/sec
12.0-13.0 sec  10.1 MBytes  84.5 Mbits/sec
13.0-14.0 sec  10.1 MBytes  84.6 Mbits/sec
14.0-15.0 sec  10.1 MBytes  84.5 Mbits/sec
------------------------------------------
 0.0-15.0 sec   149 MBytes  83.2 Mbits/sec


I also tried to set netdev_max_backlog to 2000 or 4096 with no change in performance. Checking top during these tests, I found the CPU load to be maxed out from the SIRQs or Software Interrupt Requests.

I did these tests just to figure out how much routing performance this router could handle with DD-WRT. With QoS/HFSC enabled, the CPU becomes pegged at the max I could get out of it was about 38Mbits/sec.
secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Thu Sep 06, 2012 2:42    Post subject: Reply with quote
Stock E2000 firmware v 1.0.04 build 7, Dec 1, 2010
Almost a 100Mbit/s difference?!


External LAN sending to Internal LAN
Interval Transfer Bandwidth
0.0- 1.0 sec 23.5 MBytes 197 Mbits/sec
1.0- 2.0 sec 23.3 MBytes 196 Mbits/sec
2.0- 3.0 sec 23.3 MBytes 195 Mbits/sec
3.0- 4.0 sec 23.2 MBytes 195 Mbits/sec
4.0- 5.0 sec 23.3 MBytes 195 Mbits/sec
5.0- 6.0 sec 23.3 MBytes 195 Mbits/sec
6.0- 7.0 sec 23.3 MBytes 195 Mbits/sec
7.0- 8.0 sec 23.2 MBytes 195 Mbits/sec
8.0- 9.0 sec 23.4 MBytes 196 Mbits/sec
9.0-10.0 sec 23.8 MBytes 199 Mbits/sec
10.0-11.0 sec 23.3 MBytes 196 Mbits/sec
11.0-12.0 sec 23.3 MBytes 195 Mbits/sec
12.0-13.0 sec 23.4 MBytes 196 Mbits/sec
13.0-14.0 sec 23.4 MBytes 196 Mbits/sec
14.0-15.0 sec 19.1 MBytes 161 Mbits/sec
------------------------------------------
0.0-15.0 sec 346 MBytes 193 Mbits/sec



Internal LAN sending to External LAN

Interval Transfer Bandwidth
0.0- 1.0 sec 21.6 MBytes 181 Mbits/sec
1.0- 2.0 sec 21.4 MBytes 179 Mbits/sec
2.0- 3.0 sec 21.4 MBytes 179 Mbits/sec
3.0- 4.0 sec 21.3 MBytes 179 Mbits/sec
4.0- 5.0 sec 21.2 MBytes 178 Mbits/sec
5.0- 6.0 sec 21.4 MBytes 180 Mbits/sec
6.0- 7.0 sec 20.4 MBytes 171 Mbits/sec
7.0- 8.0 sec 20.4 MBytes 171 Mbits/sec
8.0- 9.0 sec 20.4 MBytes 171 Mbits/sec
9.0-10.0 sec 20.7 MBytes 173 Mbits/sec
10.0-11.0 sec 20.3 MBytes 170 Mbits/sec
11.0-12.0 sec 21.2 MBytes 178 Mbits/sec
12.0-13.0 sec 21.5 MBytes 180 Mbits/sec
13.0-14.0 sec 21.3 MBytes 179 Mbits/sec
14.0-15.0 sec 21.3 MBytes 179 Mbits/sec
------------------------------------------
0.0-15.0 sec 316 MBytes 177 Mbits/sec
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT 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