question

DawidOosthuizen avatar image
2 Votes"
DawidOosthuizen asked ·

Slow wired upload speed vs Linux on same hardware

Intel® Ethernet Controller X550-AT2, 10G network interface on ASRock Rack ROMED8-2T with AMD EPYC 7232P processor.
Windows 10 Pro for Workstations, 2004.
Latest Windows updates and Intel drivers installed as of 09/09/2020.

This machine is a dual boot, the above Windows version, and Ubuntu 20.04.
When doing a speed test, I get good performance from Ubuntu, but very poor uploads from Windows. This is on the same machine, the exact same hardware.

The WAN link is 1000Mbps down, 50Mbps up.

This is the Windows speedtest result:
23320-windows-10-speedtest.png

This is the Ubuntu speedtest result:
23325-ubuntu-2004-speedtest.png

I have tried to tweak the adapter's advanced driver settings in Windows, such as disabling LSO, etc. No luck, performance remains poor.

I've also noticed it on another PC running Windows 10 Pro, and a laptop running Windows 10 Pro for Workstations, both give the same poor upload performance. Whereas my other Ubuntu 20.04 Server machine, and also my phone connected via Wi-Fi, is getting good upload speeds.

I have even taken the Windows laptop and plugged it straight into my incoming WAN connection (bypassing router), and it still gets poor upload speeds.

Incidentally, when the speed test is running, I can see that the upload looks bursty on Windows, like it is only getting chunks of data here and there, while in Linux and on Android it looks the same as the download, the graph is drawn at a consistent high rate and with consistent high values.

windows-10-networkwindows-10-hardware-performance
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello,
Firewall / Antivirus in use on Windows machines?
Try running and maintaining a Clean Boot on Windows machines:
https://support.microsoft.com/en-us/help/929135/how-to-perform-a-clean-boot-in-windows

0 Votes 0 ·

Thanks for the suggestions, unfortunately no luck:
- I'm using Microsoft's Windows Defender, not a third party product. And disabling Defender (virus protection and firewall) had no effect.
- Also did a clean boot (only MS services enabled), no effect.

I've added some more info in my original post, FWIW.



0 Votes 0 ·

Did you find a solution? I habe exactly the same problem :(

0 Votes 0 ·
SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered ·

Hi,

Thanks for posting here.

In general, there are several reasons may cause upload speed slow.

I would suggest you try the following method to see if the upload speed can be returned to normal.

Option 1

Open Control Panel > Network and Sharing Center > Change adapter settings > Right click the adapter that you need check > click Properties > click Configure > in Advanced tab, locate to Speed & Duplex > select the value 10 Mbps Half Duplex > click OK to see if the issue can be resolved.

23629-image-1.jpg
23646-image-2.jpg
23698-image2.jpg

Option 2

Press Windows+R to open Run, insert gpedit.msc, click OK to open Local Group Policy Editor > Computer Configuration > Administrative Templates > Network > QoS Packet Scheduler > right click Limit reservable bandwidth > click Edit > select Enable and set Bandwidth limit to 0 > click Apply and OK

23616-image3.jpg
23699-image4.jpg

Option 3

Click Start, insert cmd to open a CMD window with administrator privilege and please insert the following command and press enter

netsh interface tcp set global autotuning=disabled

Then in the same CMD window, insert command regedit to open Registry Editor

Locate to HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\AFD\Parameters

Right click to create a new DWORD Value, Value name: DefaultSendWindow, Value data: 1640960, Decimal.

Click OK and Reboot the machine to see if the issue can be resolved.

23589-image6.jpg
23743-image7.jpg

Option 4

Repeat the first two steps of Option 3 to open the Registry Editor

Locate to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings

Right click to create a new DWORD Value, Value name: SocketSendBufferLengt, Value data: 4000, Hexadecimal.

Click OK and Reboot the machine to see if the issue can be resolved.

23735-image8.jpg


Best Regards,
Sunny Qi

=======================================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image-1.jpg (51.9 KiB)
image-2.jpg (49.4 KiB)
image2.jpg (45.7 KiB)
image3.jpg (118.6 KiB)
image4.jpg (92.4 KiB)
image6.jpg (10.9 KiB)
image7.jpg (63.2 KiB)
image8.jpg (94.1 KiB)
· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Option 3 made a difference, now it is around 30mbps (up from around 10). Still not near the linux performance of around 47mbps.

0 Votes 0 ·
AviCarmi-0516 avatar image
0 Votes"
AviCarmi-0516 answered ·

I have the same issue.

under windows 10 (latest updates), max upload is about 6-7mbps

an android emulator under windows gives me about 30mbps up

the same machine booted into Linux is about 50-60mbps up

iPhone also clocks in at about 50-60mbps up and similarly iMac

fastest upload speed recorded (not sure which machine), was about 100mbps up, so the link is capable of much higher speeds...

and all are about 80-100mbps download

my internet connection is not limited or throttled at a certain rate, it is an 8-mile microwave link, and varies a bit, yet never got any lost packets.

I tried everything in this (and other guides, which give similar instructions) and no change for windows, yet the android emulator upload is now only 20mbps...


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

francescoperfetto-9416 avatar image
0 Votes"
francescoperfetto-9416 answered ·

Hi,
if you have already tried all the suggestions that have been proposed here to no avail, you can try this path:
Settings> Update & Security> Advanced Options> Delivery Optimization> Advanced Options> Download / Upload Settings, move the slider of the different items to higher percentages or according to your needs.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SunnyQi-MSFT avatar image
0 Votes"
SunnyQi-MSFT answered ·

Hi,

Thanks for your feedback.

If the issue still existed after updating settings per above suggestions, collecting network traffics should be necessary for further investigating. However, analysis of network traffic is beyond our forum support level. So I would suggest you contact Microsoft Customer Support and Services where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this issue.

You may find phone number for your region accordingly from the link below:
https://support.microsoft.com/en-us/help/4051701/global-customer-service-phone-numbers

Best Regards,
Sunny

============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

BelaGoblos-3318 avatar image
0 Votes"
BelaGoblos-3318 answered ·

This is weird. I have just the exact problem. I have a 1000/400 fiber to my house and within the country I get the full upload speed, however internationally I only get around 50-80Mbps on ANY Windows 10 or Windows Server machine. On MacOS or Linux I get the full 400Mbps. This pretty crazy. I dont think latency is any issue as its pure fiber. We are looking in to this as well.

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Ben-5092 avatar image
0 Votes"
Ben-5092 answered ·

I am having the same problem as well. I have tried customer support but I was unable to get through to someone who had enough network knowledge to help. In the end the agent said I should get the hardware checked!

I have tested it a number of different ways. I have an onboard Intel i211 nic, but I've also tested with a TP-Link USB 3.0 ethernet adapter and also going via my android phone. In all cases the download speed is equivalent to what I can get in Ubuntu on the same machine, but the upload speed is about 25% of available. I've even tested the speed via the phone and the PC whilst the PC is accessing the internet via the phone. The PC again has approximately 25% of the upload speed of the phone.

I've tried updating drivers, adjusting all the suggested settings on the adapter, changing the reservation in the registry, using netsh to disable autotuning and even completely wiping the PC and reinstalling Win 10 Pro from scratch. Same results. What is really odd is that the performance on the LAN is superb. I get easily over 100MBps to my file server. This issue only hits internet uploads.

It's not my network, I can get full upload speed on exactly the same PC if I boot into Linux. My best guess is that there is some behaviour within the Windows TCP/IP stack or maybe higher that is causing this problem. I'm fairly sure it's higher than the driver level. All I can hope for is that maybe someone in Microsoft who understands networking sees this and investigates...

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AviCarmi-0516 avatar image
0 Votes"
AviCarmi-0516 answered ·

few more things to add:

my wife's laptop can reach full speeds down and up. my laptop under windows 10 only upload is limited/restricted/throttled. the same laptop under Linux Mint full speed uploads, same laptop, with an android emulator under windows 10, and uploads are also full speed. in all cases, downloads are full speed.

therefore I can only assume it is a software/operating system/driver issue (all drivers are updated using the intel website on an ongoing basis)

I've tried all the suggested settings, registry, etc, no change

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mensa84-6815 avatar image
0 Votes"
mensa84-6815 answered ·

I have absolutely the same problems!

I am getting on all Win 10 clients only 4 Mbit upload, but all Linux and Apple devices get 45 Mbit.

Did you find any solution how to fix that?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mensa84-6815 avatar image
0 Votes"
mensa84-6815 answered ·

Here is the long version of my problem description and what all I have tried. That must be a Win 10 problem:


Hello,

for about one week I have a very mysterious problem on my Windows 10 PC.

The PC is connected by Gigabit LAN to a Switch and reaches full Gigabit speeds for up- and download inside my LAN (for example when copying to or from my NAS).
The upload speed at speedtest.net in the new Edge Browser (Version 86.0.622.63) reached around 1 week ago everytime the full 40 Mbit, but now only 4 Mbit.

I did not change anything and still reach full 1 Gbit speed inside my LAN.
The internet connection has constant 40 Mbit upload and varies only minimally. All other clients (MacBook Air, iPhones, Apple TV) are still reaching the full 40 Mbit, no matter if they are connected by LAN or WIFI.

I think that the problem came because of a Windows 10 update or driver problem and will affect more users.

The strange thing are the constant different speeds on the same PC in different browsers / apps:
- Edge: 4 Mbit Upload
- Firefox: 20 Mbit Upload
- Speedtes.net App / CLI for Windows: 20 Mbit

The results are the same if I connect the PC directly to the router or to the switch.

If I boot the PC under Linux, I get the full 40 Mbit in every browser, even the new Edge for Linux.

I tried all that things already and nothing helped:
- New Beta- and Dev-Versions of Edge
- Resetted Windows network and firewall settings
- Replaced network cable and used another port on the switch
- Resetted the router to factory defaults
- Installed completely fresh Windows 10 and formatted the SSD completely. I tried version 1909 and 20H2.
- New network cards: TP-Link TG-3368, Intel Gigabit CT Desktop Adapter, USB 3.0 to Gigabit-Ethernet-Adapter. The first one was an Intel I219-V OnBoard on the Asus Z170 Pro Gaming mainboard.

Everywhere the same problem. Upload stucks at 4 Mbit in Edge. Even after re-installing a fresh Windows.
I also installed Windows 10 with Bootcamp on the MacBook Air and have the same problems at an also completely fresh installation.

I don't understand it anymore.
I think that Microsoft produced a bad bug here anywhere, cause the same Hardware is working under Linux with full 40 Mbit upload and also all other non-Windows-clients do reach the full 40 Mbit everytime.

I thought that maybe some Windows settings were screwed up, but the same problem appeared on completely fresh Windows installations.

Do you have any idea how to solve that, or do you see similar problems?

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

mensa84-6815 avatar image
0 Votes"
mensa84-6815 answered ·

Any news on this? @DawidOosthuizen

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.