Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#362 - WR1043ND v4 Slow WAN -> LAN Whilst Synced @100Mbps #6666

Closed
openwrt-bot opened this issue Dec 28, 2016 · 11 comments
Closed

FS#362 - WR1043ND v4 Slow WAN -> LAN Whilst Synced @100Mbps #6666

openwrt-bot opened this issue Dec 28, 2016 · 11 comments
Labels

Comments

@openwrt-bot
Copy link

Spider-Vice:

Recently, builds for this device have started to be made, but there's a very peculiar issue I've found. Any client that is synced to 100 Mbps (and not 1 Gbps, in my case due to incapacity of the cable used) gets their speed seemingly throttled to 20-30 Mbps. My connection is a 100 Mbps connection, and I get full 95 Mbps (Hardware NAT disabled) on the stock firmware, and I also get this speed on LEDE only if I use a 1 Gbps link.

Speedtest on the stock firmware with the 100 Mbps link: http://www.speedtest.net/result/5904234776.png
Speedtest on the latest LEDE with the 100 Mbps link: http://www.speedtest.net/result/5915271748.png
1 Gbps links get full speed, as expected.

If I perform a transfer from LAN to LAN, I get full speed on the 100 Mbps link. The resulting speed graph is not a hard-cap, but seemingly some kind of throttle/flow control being applied. I cannot change any settings with ethtool as it throws 'not supported' errors.

Only happens WAN > LAN connections.
Nothing of interest in the logs, unless I can somehow get a more verbose log of the connection status.

@openwrt-bot
Copy link
Author

diizzyy:

Speedtest is a very bad way of measuring performance, does iperf show anything strange between your clients?

@openwrt-bot
Copy link
Author

Spider-Vice:

LAN to LAN is normal. Any WAN to LAN activity on a 100 Mbps link is affected. Not just SpeedTest. Any download, any interaction.

@openwrt-bot
Copy link
Author

bjonglez:

Can you perform an "offline" test? Basically, you plug one computer to the WAN port, another computer with a "100 Mbps cable" to a LAN port, and perform bidirectional iperf between the two.

It should rule out any strangeness from your ISP (bursts, etc)

@openwrt-bot
Copy link
Author

Spider-Vice:

I didn't run iperf but I did test the link copying between two computers connected by the LAN (via Windows' file sharing) and I get the correct 100 Mbps speed (as the cable I use for this device can only do 100 Mbps). As I said, I tested this, and it only happens in connections that originate in the WAN:

i.e.
Downloading from the Internet with a 100 Mbps cable: Strange behaviour
Downloading from the Internet with a Gigabit cable: OK, full 95 Mbps Internet speed.
Copying files to the LAN with a 100 Mbps cable: OK
Copying files to the LAN with a Gigabit cable: OK

Stock firmware does all those OK.

Will be back with an iperf output though if really needed.

@openwrt-bot
Copy link
Author

Brother-Lal:

Seems to work for me, with a utp 2 pair cable:

http://paste.debian.net/hidden/c6e7a2ec/

run on: LEDE Reboot 17.01.0 r3205-59508e3
with NAT enabled, local net was 192.168.2

might it be that the cable has some issues beyond the 100mbps link?
Or the other router has some problem with the cable?

@openwrt-bot
Copy link
Author

Spider-Vice:

I didn't iperf, but I attempted a file copy between two local clients and this works normally. My issue is restricted to WAN to/from LAN connections. The issue is not present in the stock firmware, it's not a cable issue.

@openwrt-bot
Copy link
Author

Brother-Lal:

I measured the performance between WAN and LAN, yes.

which lede version did you flash, and do you have any details about your configuration?

@openwrt-bot
Copy link
Author

Spider-Vice:

Were you using a Gigabit cable? Because it works normally with one, it only starts bugging out with a 100 Mbps one.

I still had this issue in the first LEDE Reboot version (I think one of the RC's). I have been tracking the git for quite some time and didn't see anything relevant about this for the router's SoC. I will test the latest version soon.

@openwrt-bot
Copy link
Author

rotanid:

What is a Gigabit Cable and what is not? There is no such thing.
Maybe your cable is broken? What's the cables specification? Cat.5e is the required minimum for 1000Base-T Ethernet.

@openwrt-bot
Copy link
Author

Spider-Vice:

Let me be clearer then:

With a Cat5 cable, I get this issue on LEDE doing LAN to/from WAN.
With a Cat5e cable I do not.
On the stock firmware I have no issues with both reaching my maximum WAN speed.

Edit: Tested on latest LEDE. Issue still present.
Cat5: LAN to LAN OK, 98-99 Mbps. WAN to/from LAN NOT OK. Capped at 20-30 Mbps.
Cat5e: LAN to LAN OK. WAN to/from LAN OK. 95 Mbps which is my Internet speed.
Stock Firmware: Both cable types OK, same max speed.

It feels like whenever a Cat5 cable is connected, the router falls back to Half-Duplex for some reason.

@openwrt-bot
Copy link
Author

Brother-Lal:

Yes, i used a Cat5 2 pair and a Cat5 4 pair cable cable for these tests.
And performance was nominal at the 100/1000Mbps levels where it should be.
So either its a speciality of the cable, or of your router(s)

Did you connect the 2 pair cable at the client<->lan or router<->wan side?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant