Linksys E2000 Slow LAN throughput with DD-WRT

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


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Thu Sep 06, 2012 13:28    Post subject: Reply with quote
Have you seen the pics in my signature? That 116 Mbps has been reached with DD-WRT firmware on my E3000, including all the tweaks mentioned above (all those line were uncommented).

Always test downloads with a server close to you, which is dedicated to testing download speed.

It is true that stock firmware has Fast-NAT, while DD-WRT has NAT. Fast-NAT is much faster than NAT, but it is less amenable to be controlled with iptables.

Personally, I find 116 Mbps enough. With the server speedtest.ziggo.nl I could reach 119 Mbps or so, out of 120 Mbps nominally (since then I have downgraded my internet connection in order to pay less).

I also have a Philips HMP5000 which plays HD movies quite well behind my router with DD-WRT firmware. So I don't miss speed, but I enjoy using the advanced options of DD-WRT.

_________________
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)


Sponsor
secured2k
DD-WRT Novice


Joined: 15 Apr 2009
Posts: 12

PostPosted: Thu Sep 06, 2012 19:19    Post subject: Reply with quote
The unit I have has a CPU clocked at about 354mhz while your wrt610/e3000 are clocked at 480mhz. My tests were to and from local LANs where I showed switching performance to be over 900Mbit/s up/down. The limit I was reaching was in dd-wrt Linux kernel where the use of software interrupts were limiting the connection speed. The stock firmware was just more efficient allowing almost 200Mbit/sec.

Right now with Dd-wrt on this router, I'm pushing the limit where if I turn on additional features like QoS the CPU can't keep up and I'm getting no more than 40Mbit/s. If I load the router with a lot of traffic for some time, everything else will lag from ssh to web admin to udhcpd and wireless traffic disconnects. Again I can only assume this is to the overloaded CPU.

I'm already looking at getting a new router... If I can find a good price it might even be a Cisco 800 or 1900 series.

- Posted via iOS -
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Thu Sep 06, 2012 22:12    Post subject: Reply with quote
Your router is about 26% slower than mine (judging by clock speed) and my router is about 36% faster than yours. It is a difference but not a big difference.

Of course if you do lots of LAN transfers, stock firmware is better. But if you want all sorts of advanced options, DD-WRT is better. In the end, it is your own choice which firmware you use, others could only advise you to use this or that, seen the benefits of each. About security: Linksys stock firmware gets older and older, so it does not patch eventual newly discovered vulnerabilities. DD-WRT is work in progress and comes with no guarantee, but my two cents are that a recent DD-WRT build is more secure than an old stock firmware. If you want to be in control of your own security, you could add extra iptables rules to DD-WRT but not to stock firmware.

_________________
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: Fri Sep 07, 2012 3:13    Post subject: Reply with quote
I did this testing simply because I needed to see if this older router was just not able to keep up with 100+Mb/s internet connections. I did the benchmarks and watched the system and found that with DD-WRT it had a limit. There is a site called smallnetbuilder.com that has done many of these performance tests and they confirm it should be able to hit about 145/165Mb/s (stock firmware). The E3000/WRT610Nv2 did about 258Mb/s.

Quote:
Routing performance for the 320N using our standard test method is summarized in Table 1, along with the 610N's test results for comparison. WAN to LAN measured 145.1 Mbps, while LAN to WAN came in at 165.5 Mbps. Since neither is anywhere near Gigabit speed, it's obvious that the processors are the limiting factor for routing speed.

Both the 320N and 610N maxed out the Maximum Simultaneous Connections test at 200 connections.
Source


My own testing shows the router can get up to 190Mb/s (latest e2000 firmware). Installing DD-WRT drops it 100Mb/s. Adding more services or "features" like QoS only drops it more and eventually I was stuck at 38Mb/s for QoS while watching the CPU load maxed out.

Perhaps I could go kernel hacking through the source and optimize my install, but I would rather just buy new and more powerful hardware since it's available to me.

Security is important to me but I may find that the limited feature set from the stock firmware to be more secure by being stable and tested for such a long time. New features and cutting edge generally adds more surface area of attack. Of course this router is vulnerable to the WPS cracking attack regardless of the settings... It looks like I will simply be removing this device from routing and just using it as a wireless access point and switch.

LAN transfers are not an issue as the switch hardware handles it fine regardless of firmware. The performance limitation came from when the data had to pass through the CPU/memory on the router for NAT/routing.

Instead, my new core router will be a Cisco 1921 or 1941 ISR G2 which has a ton more options (although much more complex to configure) and is certified to provided 299,000 packets per second (pps). That's a worst case of 153MBYTES/s with only 64kb packets! If somehow I could load this new router with nothing but 1500 byte packets, it could handle 3.588GBYTES/Sec! There will be more than enough power and overhead to add routing, security/firewalling, VPN/IPSEC/SSL, VoiP, IP base HD Video, VLANs, and tightly controlled QoS policies.
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Fri Sep 07, 2012 11:21    Post subject: Reply with quote
You compare a thousand dollars router with a 50 dollars 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: Fri Sep 07, 2012 15:37    Post subject: Reply with quote
When the e2000 was new it was about $130 and now probably $30. I'm not trying to say the consumer hardware is comparable. I was simply stating what I would be moving to in order to solve the problem. The higher end wireless routers out there are now going for about $200. The 1921 Cisco I'm able to get used and functional for under $400! What a deal (I'm betting it doesn't have the sec license though). I lose wireless but I already said I would leave dd-wrt to do the wireless access point job. For the full retail price of the Cisco hardware I surely hope it could handle the bandwidth. I recall being surprised when they advertised it was able to only do 45MB/s throughput... But then it was explained that was with all options on using the smallest packets in the worst case scenario. I'm counting on this router hardware to last at least 5+ years without being the bottleneck.
helvsmit
DD-WRT Novice


Joined: 08 Oct 2012
Posts: 12

PostPosted: Mon Oct 08, 2012 12:53    Post subject: Reply with quote
slobodan wrote:
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.


Great job slobodan, this is working great ! Thanks!
kingofcomedy
DD-WRT User


Joined: 02 Jul 2006
Posts: 59

PostPosted: Wed Jan 01, 2014 20:13    Post subject: Reply with quote
slobodan wrote:
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.

The last line pushed the max. speed to ~ 75 mbit/s, while the stock firmware reaches ~ 105-110 mbit/s.

Edit: using a WRT320N with DD-WRT Build 21061.

_________________
Heute: TP-LINK TR-W2543ND DD-WRT v3.0-r31277 std (02/07/17) // 2 x TP-Link TL-WA701ND // QNAP TS-259 Pro+ // 2 x Raspberry Pi 2b + Raspbian + Rasplex // 1 x Raspberry Pi 2b + Raspbian (DHCP, DNS, etc.) // 1 x Raspberry Pi 3b + Raspbian + Nextcloud

Früher: WRT54G v2.2 DD-WRT v2.4 9517 VINT // WRT160N v1 DD-WRT v2.4 9526 & WRT320N v1 DD-WRT 2.4 std-nokaid-small 17084 // WAP54G v3.1 DD-WRT v2.3 SP2 // Zotac Z-Box SD-ID10 + Debian Squeeze // Asrock ION 330HT // NSLU2 Unslung v6.8/6.10
sbilge
DD-WRT Novice


Joined: 19 Mar 2010
Posts: 11

PostPosted: Tue Apr 21, 2015 11:23    Post subject: Reply with quote
kingofcomedy wrote:
slobodan wrote:
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.

The last line pushed the max. speed to ~ 75 mbit/s, while the stock firmware reaches ~ 105-110 mbit/s.

Edit: using a WRT320N with DD-WRT Build 21061.


Same state here with E2000 (320N). (Installed DD-WRT v24-sp2 (12/22/14) mega - build 25697)

Have a any new solution for that?
I have 100/100 inernet but I can giving 60/50 with DD-WRT.

Sincerely,
slobodan
DD-WRT Guru


Joined: 03 Nov 2011
Posts: 1555
Location: Zwolle

PostPosted: Tue Apr 21, 2015 17:38    Post subject: Reply with quote
Murrkf wrote:
Dd-wrt is a Cadillac, not a porche.

_________________
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)


mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Wed Apr 22, 2015 15:05    Post subject: Reply with quote
sbilge wrote:
Same state here with E2000 (320N). (Installed DD-WRT v24-sp2 (12/22/14) mega - build 25697)

Have a any new solution for that?
I have 100/100 inernet but I can giving 60/50 with DD-WRT.

Sincerely,


*************************************
**** Overclock At Your Own Risk **********
**** Know How to De-Brick Before OCing ***
*************************************

You can try overclocking your E2000 (320N). I have about three or four E2000s and I can overlock all of them to 500Mhz. These E2000s have slow RAM then the E3000s so don't run the RAM over 200Mhz.

You can telnet into your router and use these commands to overclock to 400Mhz (+13% OC).

nvram set clkfreq=400,200,100
nvram commit
reboot

To run it to 500Mhz (+41% CPU OC)...

nvram set clkfreq=500,200,100
nvram commit
reboot

To Go Back to Default, 354Mhz...

nvram set clkfreq=354,177,88
nvram commit
reboot

*************************************
**** Overclock At Your Own Risk **********
**** Know How to De-Brick Before OCing ***
*************************************

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
sbilge
DD-WRT Novice


Joined: 19 Mar 2010
Posts: 11

PostPosted: Fri Apr 24, 2015 8:44    Post subject: Reply with quote
mac913 wrote:
sbilge wrote:
Same state here with E2000 (320N). (Installed DD-WRT v24-sp2 (12/22/14) mega - build 25697)

Have a any new solution for that?
I have 100/100 inernet but I can giving 60/50 with DD-WRT.

Sincerely,


*************************************
**** Overclock At Your Own Risk **********
**** Know How to De-Brick Before OCing ***
*************************************

You can try overclocking your E2000 (320N). I have about three or four E2000s and I can overlock all of them to 500Mhz. These E2000s have slow RAM then the E3000s so don't run the RAM over 200Mhz.

You can telnet into your router and use these commands to overclock to 400Mhz (+13% OC).

nvram set clkfreq=400,200,100
nvram commit
reboot

To run it to 500Mhz (+41% CPU OC)...

nvram set clkfreq=500,200,100
nvram commit
reboot

To Go Back to Default, 354Mhz...

nvram set clkfreq=354,177,88
nvram commit
reboot

*************************************
**** Overclock At Your Own Risk **********
**** Know How to De-Brick Before OCing ***
*************************************


Hello,

Thanks for respond.
I tried 500 mhz. CPU clock changed with 500 mhz. (I checked web info)
But speedtest result 62/48 now.

Sincerely,
mac913
DD-WRT Guru


Joined: 02 May 2008
Posts: 1848
Location: Canada

PostPosted: Fri Apr 24, 2015 23:00    Post subject: Reply with quote
sbilge wrote:
Hello,

Thanks for respond.
I tried 500 mhz. CPU clock changed with 500 mhz. (I checked web info)
But speedtest result 62/48 now.

Sincerely,


What is the CPU usage during your test?

To see the cpu usage, telnet to router and run TOP, ctrl-c will stop it.

_________________
Home Network on Telus 1Gb PureFibre - 10GbE Copper Backbone
2x R7800 - Gateway & WiFi & 3xWireGuard - DDWRT r53562 Std k4.9

Off Site 1

R7000 - Gateway & WiFi & WireGuard - DDWRT r54517 Std
E3000 - Station Bridge - DDWRT r49626 Mega K4.4

Off Site 2

R7000 - Gateway & WiFi - DDWRT r54517 Std
E2000 - Wired ISP IPTV PVR Blocker - DDWRT r35531


YAMon 3.4.6 | DNSCrypt-Proxy V2
TheNox
DD-WRT Novice


Joined: 21 Jan 2010
Posts: 3

PostPosted: Wed Jun 03, 2015 2:55    Post subject: Reply with quote
Thought I'd chime in here and say thanks for the startup command from the earlier post. Been searching for a solution for this problem on my linksys wrt 610n v2 running v24-sp2 (03/25/13) big 21061 for a while. I have a 300/20 internet connection and was stuck at 60/20 on a basic dd-wrt install

The aforementioned code:

Quote:
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 4096 > /proc/sys/net/core/netdev_max_backlog


got me up to 120/20, doubling my download throughput. During speedtests to my server the router only seems to get up to about 70%. Assuming there are actually resources left to be used, could there be a way to try and squeeze some more out of this?
jjwatmyself
DD-WRT User


Joined: 19 Mar 2016
Posts: 55

PostPosted: Sat Mar 19, 2016 16:11    Post subject: Reply with quote
I have been doing much reading this morning as was having problems with a Dell Venue 8 Pro, slow downloads and fast uploads on an E2000 running:

DD-WRT v24-sp2 (03/25/13) mini
(SVN revision 21061)

Downloads were running at sub 1Mbps, while uploads did not seem to be impacted for an Internet speed test.

Interestingly I did not see this issue on other devices.

Anyway, back to the research I did. There are discussions around issues with 2.4Ghz N and routers with Broadcom chips running ddwrt.

This lead me to setting the E2000 to G only and now the results are 20Mbps down / 7 up (Internet speed test) on the problem client. The difference is monumental.

I had back reved to this version of ddwrt after having issues on a current 2015 version and an IP camera client not reconnecting after ddwrt rebooted. Not sure if a different ddwrt version addresses all of the issues I have expereicend on the E2000. So in summary, I am very happy with this version of ddwrt on the E2000.

Also the Dell Venue 8 Pro tablets have some issues with very high latency over wifi, unrelated to ddwrt. That is resolved by disabling D0 Packet Coalescing. Dell will probably not change this default setting to disabled, but the combination of these two issues would make wifi unusable.

EDIT 12/9/2017 Solved Dell Venue 8 Pro 5830 Wi-Fi issues. 1) Use 5GHz as eliminates interference from 2.4GHZ Bluetooth 2) Use these drivers found at http://en.community.dell.com/support-forums/mobile-devices/f/4586/t/19603660?pi41117=1. Resulting performance is epic with near wired speed downloads when close to Access Point.


Last edited by jjwatmyself on Sat Dec 09, 2017 17:14; edited 1 time in total
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 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