You are not logged in.

#1 2017-12-24 18:34:35

xcabal
Member
Registered: 2012-07-26
Posts: 48

linux and windows internet speed discrepancy

I had to install windows 10 on my desktop, to do something for work and I needed to download a large amount of data, and I forgot to download said data while I was running archlinux. To my suprise on windows I was downloading at speeds almost 4 times faster than linux.
I thought maybe something is wrong with my arch set up, so I just reinstall from scratch, unfortunetly it didnt help still had the issue
On linux I'm getting about 2MB/s, on windows I was getting about 6-9MB/s, and it is all the same hardware. I am using a alfa AWUS036NH for both.
So after searching for bit, I saw a sugguestion to switch network mangers, i was orginally using connman, I have switched to wpa_cli, and suprisingly I now have a max speed of 3.5 but still not has fast as windows.
I got access to a tp-link tl-wn722n but I'm having the same issue.
I also set up my surface pro 3 with arch linux, it is running on the same network, with connman as the network manager and it is getting around 6.5MB/s on average , so I know it must be something with my desktop.
I am using speedtest.net and I'm using the same server to test everything.

Has anyone encountered a discrepancy like this before?

below are somethings, if anything else is needed please let me know
Thanks

iwconfig

wlp0s20u3  IEEE 802.11  ESSID:"belkin.5d68"  
          Mode:Managed  Frequency:2.417 GHz  Access Point: 94:44:52:B8:BD:38   
          Bit Rate=1 Mb/s   Tx-Power=20 dBm   
          Retry short  long limit:2   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-35 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:5872  Invalid misc:357   Missed beacon:0

iw dev  station dump:

station 94:44:52:b8:bd:38 (on wlp0s20u3)
inactive time:  320 ms
rx bytes:   320295383
rx packets: 681738
tx bytes:   66406605
tx packets: 264993
tx retries: 44035
tx failed:  5641
beacon loss:    48
beacon rx:  182242
rx drop misc:   741
signal:     -37 dBm
signal avg: -37 dBm
beacon signal avg:  218 dBm
tx bitrate: 54.0 MBit/s
rx bitrate: 54.0 MBit/s
expected throughput:    33.507Mbps
authorized: yes
authenticated:  yes
associated: yes
preamble:   long
WMM/WME:    no
MFP:        no
TDLS peer:  no
DTIM period:    3
beacon interval:100
short slot time:yes
connected time: 19294 seconds

lsmod

Module                  Size  Used by
uvcvideo              102400  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         28672  1 uvcvideo
snd_usb_audio         221184  1
videobuf2_core         45056  2 uvcvideo,videobuf2_v4l2
videodev              204800  3 uvcvideo,videobuf2_core,videobuf2_v4l2
snd_usbmidi_lib        32768  1 snd_usb_audio
snd_rawmidi            36864  1 snd_usbmidi_lib
media                  45056  2 uvcvideo,videodev
snd_seq_device         16384  1 snd_rawmidi
uinput                 20480  1
ccm                    20480  6
cmac                   16384  1
fuse                  118784  3
rfcomm                 86016  19
bnep                   24576  2
btusb                  53248  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             626688  51 btrtl,btintel,bnep,btbcm,rfcomm,btusb
ecdh_generic           24576  1 bluetooth
arc4                   16384  2
hid_logitech_hidpp     36864  0
joydev                 24576  0
input_leds             16384  0
mousedev               24576  0
nouveau              1900544  10
hid_logitech_dj        24576  0
snd_hda_codec_hdmi     57344  2
intel_rapl             24576  0
snd_hda_codec_realtek   102400  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
x86_pkg_temp_thermal    16384  0
rt2800usb              32768  0
intel_powerclamp       16384  0
rt2x00usb              24576  1 rt2800usb
coretemp               16384  0
kvm_intel             225280  0
rt2800lib             118784  1 rt2800usb
rt2x00lib              61440  3 rt2800lib,rt2800usb,rt2x00usb
kvm                   696320  1 kvm_intel
mac80211              901120  3 rt2800lib,rt2x00lib,rt2x00usb
nls_iso8859_1          16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    77824  1 vfat
irqbypass              16384  1 kvm
iTCO_wdt               16384  0
hid_generic            16384  0
crct10dif_pclmul       16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
crc32_pclmul           16384  0
i915                 1884160  2
ghash_clmulni_intel    16384  0
mxm_wmi                16384  1 nouveau
pcbc                   16384  0
ppdev                  20480  0
ttm                   114688  1 nouveau
cfg80211              733184  2 rt2x00lib,mac80211
evdev                  20480  14
mac_hid                16384  0
usbhid                 57344  0
hid                   126976  4 hid_generic,usbhid,hid_logitech_dj,hid_logitech_hidpp
aesni_intel           188416  6
i2c_algo_bit           16384  2 nouveau,i915
rfkill                 28672  8 bluetooth,cfg80211
drm_kms_helper        192512  2 nouveau,i915
led_class              16384  3 rt2x00lib,input_leds,nouveau
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
glue_helper            16384  1 aesni_intel
cryptd                 28672  3 crypto_simd,ghash_clmulni_intel,aesni_intel
snd_hda_intel          45056  4
intel_cstate           16384  0
intel_rapl_perf        16384  0
snd_hda_codec         151552  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
drm                   434176  15 nouveau,i915,ttm,drm_kms_helper
snd_hda_core           90112  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  2 snd_hda_codec,snd_usb_audio
intel_gtt              24576  1 i915
pcspkr                 16384  0
snd_pcm               114688  5 snd_hda_intel,snd_hda_codec,snd_usb_audio,snd_hda_core,snd_hda_codec_hdmi
agpgart                49152  4 intel_gtt,nouveau,ttm,drm
snd_timer              36864  1 snd_pcm
syscopyarea            16384  1 drm_kms_helper
i2c_i801               28672  0
sysfillrect            16384  1 drm_kms_helper
mei_me                 45056  0
snd                    90112  22 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_usb_audio,snd_timer,snd_rawmidi,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_usbmidi_lib,snd_seq_device,snd_hda_codec_realtek,snd_pcm
sysimgblt              16384  1 drm_kms_helper
mei                   114688  1 mei_me
fb_sys_fops            16384  1 drm_kms_helper
soundcore              16384  1 snd
lpc_ich                28672  0
shpchp                 40960  0
wmi                    28672  2 mxm_wmi,nouveau
fan                    16384  0
thermal                20480  0
ie31200_edac           16384  0
tpm_infineon           20480  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
parport_pc             32768  0
tpm                    65536  3 tpm_infineon,tpm_tis,tpm_tis_core
parport                57344  2 parport_pc,ppdev
battery                20480  0
video                  45056  2 nouveau,i915
button                 16384  2 nouveau,i915
sch_fq_codel           20480  5
vboxnetflt             32768  0
vboxnetadp             28672  0
pci_stub               16384  1
vboxpci                28672  0
vboxdrv               483328  3 vboxnetadp,vboxnetflt,vboxpci
crypto_user            16384  0
ip_tables              28672  0
x_tables               45056  1 ip_tables
ext4                  720896  3
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  122880  1 ext4
fscrypto               32768  1 ext4
sd_mod                 61440  7
ahci                   40960  4
libahci                40960  1 ahci
crc32c_intel           24576  0
xhci_pci               16384  0
libata                274432  2 ahci,libahci
ehci_pci               16384  0
xhci_hcd              241664  1 xhci_pci
ehci_hcd               94208  1 ehci_pci
scsi_mod              204800  2 sd_mod,libata
usbcore               282624  11 uvcvideo,usbhid,rt2800usb,snd_usb_audio,rt2x00usb,ehci_hcd,xhci_pci,snd_usbmidi_lib,btusb,xhci_hcd,ehci_pci
usb_common             16384  1 usbcore
serio                  28672  0

lsusb

Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 003: ID 062a:4101 MosArt Semiconductor Corp. Wireless Keyboard/Mouse
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 004: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 004 Device 003: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 004 Device 002: ID 2109:0812 VIA Labs, Inc. VL812 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 007: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 003 Device 005: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 004: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Bus 003 Device 003: ID 2109:2812 VIA Labs, Inc. VL812 Hub
Bus 003 Device 002: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Offline

#2 2017-12-24 20:38:49

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,347

Re: linux and windows internet speed discrepancy

Can you post the output of iw list  ?
It looks as if you are connecting using non-HT meaning you are capped at 54 Mb/s.  I think your radio is capable of 433 Mb/s in MIMO mode.  Are you connecting to the same router?  Do you own the router? What is the channel bandwidth set to in the router (not just 20MHz, at least 20/40MHz, preferably 20/4080MHz).

Last edited by ewaller (2017-12-24 20:39:11)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2017-12-25 04:52:42

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

iw list                                                         

Wiphy phy0
	max # scan SSIDs: 4
	max scan IEs length: 2257 bytes
	max # sched scan SSIDs: 0
	max # match sets: 0
	max # scan plans: 1
	max scan plan interval: -1
	max scan plan iterations: 0
	Retry short long limit: 2
	Coverage class: 0 (up to 0m)
	Device supports RSN-IBSS.
	Supported Ciphers:
		* WEP40 (00-0f-ac:1)
		* WEP104 (00-0f-ac:5)
		* TKIP (00-0f-ac:2)
		* CCMP-128 (00-0f-ac:4)
		* CCMP-256 (00-0f-ac:10)
		* GCMP-128 (00-0f-ac:8)
		* GCMP-256 (00-0f-ac:9)
	Available Antennas: TX 0 RX 0
	Supported interface modes:
		 * IBSS
		 * managed
		 * AP
		 * AP/VLAN
		 * monitor
		 * mesh point
	Band 1:
		Capabilities: 0x17e
			HT20/HT40
			SM Power Save disabled
			RX Greenfield
			RX HT20 SGI
			RX HT40 SGI
			RX STBC 1-stream
			Max AMSDU length: 3839 bytes
			No DSSS/CCK HT40
		Maximum RX AMPDU length 32767 bytes (exponent: 0x002)
		Minimum RX AMPDU time spacing: 2 usec (0x04)
		HT TX/RX MCS rate indexes supported: 0-7, 32
		Bitrates (non-HT):
			* 1.0 Mbps
			* 2.0 Mbps (short preamble supported)
			* 5.5 Mbps (short preamble supported)
			* 11.0 Mbps (short preamble supported)
			* 6.0 Mbps
			* 9.0 Mbps
			* 12.0 Mbps
			* 18.0 Mbps
			* 24.0 Mbps
			* 36.0 Mbps
			* 48.0 Mbps
			* 54.0 Mbps
		Frequencies:
			* 2412 MHz [1] (20.0 dBm)
			* 2417 MHz [2] (20.0 dBm)
			* 2422 MHz [3] (20.0 dBm)
			* 2427 MHz [4] (20.0 dBm)
			* 2432 MHz [5] (20.0 dBm)
			* 2437 MHz [6] (20.0 dBm)
			* 2442 MHz [7] (20.0 dBm)
			* 2447 MHz [8] (20.0 dBm)
			* 2452 MHz [9] (20.0 dBm)
			* 2457 MHz [10] (20.0 dBm)
			* 2462 MHz [11] (20.0 dBm)
			* 2467 MHz [12] (20.0 dBm) (no IR)
			* 2472 MHz [13] (20.0 dBm) (no IR)
			* 2484 MHz [14] (20.0 dBm) (no IR)
	Supported commands:
		 * new_interface
		 * set_interface
		 * new_key
		 * start_ap
		 * new_station
		 * new_mpath
		 * set_mesh_config
		 * set_bss
		 * authenticate
		 * associate
		 * deauthenticate
		 * disassociate
		 * join_ibss
		 * join_mesh
		 * set_tx_bitrate_mask
		 * frame
		 * frame_wait_cancel
		 * set_wiphy_netns
		 * set_channel
		 * set_wds_peer
		 * probe_client
		 * set_noack_map
		 * register_beacons
		 * start_p2p_device
		 * set_mcast_rate
		 * connect
		 * disconnect
		 * set_qos_map
		 * Unknown command (121)
	Supported TX frame types:
		 * IBSS: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * mesh point: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
		 * P2P-device: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
	Supported RX frame types:
		 * IBSS: 0x40 0xb0 0xc0 0xd0
		 * managed: 0x40 0xd0
		 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * mesh point: 0xb0 0xc0 0xd0
		 * P2P-client: 0x40 0xd0
		 * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
		 * P2P-device: 0x40 0xd0
	software interface modes (can always be added):
		 * AP/VLAN
		 * monitor
	valid interface combinations:
		 * #{ AP, mesh point } <= 8,
		   total <= 8, #channels <= 1
	HT Capability overrides:
		 * MCS: ff ff ff ff ff ff ff ff ff ff
		 * maximum A-MSDU length
		 * supported channel width
		 * short GI for 40 MHz
		 * max A-MPDU length exponent
		 * min MPDU start spacing
	Device supports TX status socket option.
	Device supports HT-IBSS.
	Device supports SAE with AUTHENTICATE command
	Device supports low priority scan.
	Device supports scan flush.
	Device supports AP scan.
	Device supports per-vif TX power setting
	Driver supports full state transitions for AP/GO clients
	Driver supports a userspace MPM
	Device supports configuring vdev MAC-addr on create

yes all devices are the same router,i dont own it but i have access to it and can make changes to the settings, it is 20/40MHz, it does not have an option for 20/40/80, it is a belkin F7D8302 if that helps.

Offline

#4 2017-12-25 08:01:11

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,347

Re: linux and windows internet speed discrepancy

No 5 GHz capability?  Not good.  Did Windows connect on the 5GHz band?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2017-12-25 14:00:27

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

no 5GHz on either of them

Offline

#6 2017-12-25 16:24:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,347

Re: linux and windows internet speed discrepancy

Okay, so both windows and Linux are non-HT.  Now that I read it, I see you expressed speeds in MB/s, nit Mb/s.  6-9MB/s is in the neighborhood of 54Mb/s.   So, the question is why is Linux only communicating at around 20 Mb/s?

Let me ponder this.  Going to be a bit busy today wink


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#7 2017-12-25 16:43:28

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

no problem, thanks for the help, and enjoy the holiday

Offline

#8 2017-12-25 18:29:41

seth
Member
Registered: 2012-09-03
Posts: 61,240

Re: linux and windows internet speed discrepancy

First and foremost get the browser out of the equation and check the speed using eg. thttps://linhost.info/2013/10/download-test-files/

Offline

#9 2017-12-25 18:41:47

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

seth wrote:

First and foremost get the browser out of the equation and check the speed using eg. thttps://linhost.info/2013/10/download-test-files/


I tried most of them that servers in the US, gave me worse speeds and only one hit 3.5MB/s so it is not the browser.
More so I used chromium, chrome and firefox to test the speeds. So it is not the browser

Offline

#10 2017-12-25 20:36:25

seth
Member
Registered: 2012-09-03
Posts: 61,240

Re: linux and windows internet speed discrepancy

What if you rfkill the bluetooth device?

Offline

#11 2017-12-25 23:11:53

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

no change, I also tried unplugging it completely, no change either

Offline

#12 2017-12-27 22:14:44

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

So I may have solved this. ewaller said something about non-HT, and while I was digging through dmesg and I saw that it stated not using HT because wmm/qos is not supported by the router. Checking the belkin router, there was an option for wmm/qos, turning it on made the speeds comparable to windows.
If anyone has idea why that is or how to fix it without turning that option on, I am open to try it

Last edited by xcabal (2017-12-27 22:15:17)

Offline

#13 2017-12-27 22:32:08

seth
Member
Registered: 2012-09-03
Posts: 61,240

Offline

#14 2017-12-28 00:59:54

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: linux and windows internet speed discrepancy

Good that you've found a solution, as odd as it sounds like to me, but I need to comment on this part of your OP

xcabal wrote:

I thought maybe something is wrong with my arch set up, so I just reinstall from scratch, unfortunetly it didnt help still had the issue

As a former windows user I understand th e tendency to 'reinstall from scratch' to fix problems, but that's really not how Linux in general works, and you shouldn't have to do that. Broadly speaking, broken behaviour can result from a bug (reinstall will not fix that) and/or configuration issues. The latter are mostly just the changes you've made in /etc and ~/.config (or similar), so a faster way to troubleshoot (once you've done the 'check logs and google' step) is to reverse changes made to those, maybe create a new user to test whether it's your user-level config.

Some people keep a full changelog of every config edit they've made, and there are tools to help with that as well, but that's likely to extreme for most tinkerers.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#15 2017-12-28 01:30:12

xcabal
Member
Registered: 2012-07-26
Posts: 48

Re: linux and windows internet speed discrepancy

ngoonee wrote:

Good that you've found a solution, as odd as it sounds like to me, but I need to comment on this part of your OP


As a former windows user I understand th e tendency to 'reinstall from scratch' to fix problems, but that's really not how Linux in general works, and you shouldn't have to do that. Broadly speaking, broken behaviour can result from a bug (reinstall will not fix that) and/or configuration issues.

You are right about that, I tried doing that in the beginning, but could solve it, and this was not the only issue.
I have had my current install for about 2.5 years and over the time I have made changes to the system, this problem was the straw that broke the camels back for me, all the other issues I had are gone. I started a doc to record which files, and what I changed in them.

Offline

Board footer

Powered by FluxBB