WNDR4500 v1 Slow Ethernet Speed

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


Joined: 25 Mar 2020
Posts: 11

PostPosted: Wed Jan 18, 2023 23:22    Post subject: WNDR4500 v1 Slow Ethernet Speed Reply with quote
According to the specs for this router, it has 5 x Gigabit ethernet ports.
https://www.netguardstore.com/WNDR4500-100NAS.asp#:~:text=Fast%20download%20speeds%20up%20to,coverage%20with%20Gigabit%20wired%20connections.

"Five (5) 10/100/1000 (1 WAN and 4 LAN) Gigabit Ethernet ports with auto-sensing technology"

I've tried r48296, r51362 and a few others with pretty consistent results. So far, all I get when doing iperf3 between my PC and this router via the LAN ports is ranging approximately 100Mb/s. This is pretty consistent. Based on the dd-wrt Setup >> Switch Config page on the router, the port is connected at 1000Mb/s.

I have another gigabit switch (which is in the middle), shoes both my pc and the router connected to it at 1000Mbps.

Running iperf3 from my PC to another host (also connected to that switch) gives me around 995Mb/s speeds.

When this PC is connected directly to the router (bypassing my gigabit switch) also gives me ~ 100Mb/s speeds.

I certainly don't expect gigabit speeds on this router, but the consistency of 100Mb/s out of seems to suggest that it's somehow being restricted.

The CPU utilization (using top) on the router is at ~ 50-60% when iperf3 is sending/receiving data.

I've done searching, to no avail; there's been talk about CPU utilization, replacing cables and whatnot, but that doesn't seem applicable in this case. The factor in this case seems to be the router and dd-wrt.

Anyone know what could be limiting the speeds on this router?

I’m going to go back to stock software to try, but I suspect the speeds won’t be restricted as they were not before dd-wrt.
Sponsor
oviana
DD-WRT Novice


Joined: 25 Mar 2020
Posts: 11

PostPosted: Thu Jan 19, 2023 3:52    Post subject: Solved?!? Reply with quote
Ok ... interesting observation. Surprised

When I have two hosts connected to the router's switch (the LAN ports), one running iperf3 (server), and the other iperf3 (client), I can get speeds of around 944Mb/s with dd-wrt running.

However, when iperf3 (server) is running on the router itself, then the speed is limited to 100Mb/s.

.. and yet, when the PC is running iperf3 (server), and the iperf3 client is the router itself, the speed is limited to 66Mb/s.

Anyone know if this is expected / seen across other routers too? I'm quite surprised tbh.
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5690

PostPosted: Thu Jan 19, 2023 3:56    Post subject: Reply with quote
Expected as you've discovered, iperf3 will load down the router so only correct way to test is with two computers.
oviana
DD-WRT Novice


Joined: 25 Mar 2020
Posts: 11

PostPosted: Thu Jan 19, 2023 5:38    Post subject: Thanks! Reply with quote
Thanks so much for confirming!

I thought that’d be the case, given the direction difference in throughput.
I just didn’t know enough about its inner workings. I imagine that the bulk of data switching isn’t really handled by the CPU on the LAN switch, which is why it’s not impacted when iperf is routed between the two external hosts connected on the ports. I’ve also read that with this switch, NAT severely impacts throughput due to cpu utilization, so I’m guessing there’s a lot more processing going on during the routing between WAN and LAN packet transfers.

In fact, this page is something I found that probably applies, and talks about packet forwarding vs. cpu utilization:
https://www.thunder-link.com/blog/what-is-switch-cpu-and-the-cpu-usage/
oviana
DD-WRT Novice


Joined: 25 Mar 2020
Posts: 11

PostPosted: Fri Jan 20, 2023 15:51    Post subject: More Info Reply with quote
While the router's main CPU is the BCM4706 (running at 600Mhz), according to this wiki:
http://en.techinfodepot.shoutwiki.com/wiki/Netgear_WNDR4500v1

This Router has a separate (from the main CPU) switching chip: BCM53115
https://pdf1.alldatasheet.com/datasheet-pdf/view/1074558/BOARDCOM/BCM53115.html

This point on its specs is kind of telling:
"Allows data packet inspection to be offloaded from a product’s Central Processing Unit (CPU), thereby freeing up CPU bandwidth to provide superior performance."

So it seems to me that the intuition was at least remotely accurate.

Much of the packet switching is done outside of the CPU. Also, the main CPU is only running at 600MHz. There's zero chance you'd get gigabit speeds coming out of there, when you consider it has to generate the data to begin with.

To be honest, I'm surprised I got what I got out of it. Smile

Anyways, no point in beating a dead horse. Thanks again for all of your help!
js290
DD-WRT Novice


Joined: 21 Sep 2014
Posts: 22

PostPosted: Mon Jan 23, 2023 4:53    Post subject: Reply with quote
When I tested various routers a couple of years back, none of the custom ROMs operates the WAN interface at full duplex, only half. Stock ROM always worked at full duplex. I tested using iperf2's bidirectional option.

If you're connecting to a full duplex fiber connection, you're better off with stock ROM if you're expecting full duplex performance. If you're on cable modem or custom ROM features are more important, then half duplex it is.
Display posts from previous:    Page 1 of 1
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