You are not logged in.

#1 2019-01-20 14:13:12

svalee
Member
Registered: 2019-01-20
Posts: 45
Website

[SOLVED] Internet connection is slower on Arch

My download speed on the Arch is much slower than on Debian. Most of the online tests show that on Arch I have download speed around 30 Mbps while on Debian it's around 90 Mbps. Upload speed, however, is fine and on both Debian and Arch somewhere around 90 Mbps.
I'm using Network Manager.

lspci -v
https://pastebin.com/1gLM5D7C

03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
        Subsystem: Gigabyte Technology Co., Ltd Onboard Ethernet
        Flags: bus master, fast devsel, latency 0, IRQ 18
        I/O ports at de00 [size=256]
        Memory at fbdff000 (64-bit, prefetchable) [size=4K]
        Memory at fbdf8000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 12-34-56-78-12-34-56-78
        Kernel driver in use: r8169
        Kernel modules: r8169

dmesg | grep r8169

[    2.848126] libphy: r8169: probed
[    2.848749] r8169 0000:03:00.0 eth0: RTL8168e/8111e, 1c:6f:65:88:2e:fb, XID 2c200000, IRQ 30
[    2.848751] r8169 0000:03:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    2.861029] r8169 0000:03:00.0 enp3s0: renamed from eth0
[    3.874962] RTL8211DN Gigabit Ethernet r8169-300:00: attached PHY driver [RTL8211DN Gigabit Ethernet] (mii_bus:phy_addr=r8169-300:00, irq=IGNORE)
[    5.610072] r8169 0000:03:00.0 enp3s0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 5615.616481] r8169 0000:03:00.0: invalid short VPD tag 00 at offset 1

full dmesg output

https://pastebin.com/8NXeEAha

/etc/resolv.conf

nameserver 8.8.8.8
nameserver 8.8.4.4

Initially, it was configured by the network manager, I changed it to look like this, but this didn't help.

/etc/hosts

127.0.0.1   localhost
::1         localhost
127.0.1.1   halee.localdomain halee

Motherboard: GA-PH67A-UD3

Last edited by svalee (2019-01-20 19:02:32)

Offline

#2 2019-01-20 14:15:21

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,687

Offline

#3 2019-01-20 14:20:48

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: [SOLVED] Internet connection is slower on Arch

Please use [ code ] tags (not quote tags) when posting output.

Offline

#4 2019-01-20 15:16:04

svalee
Member
Registered: 2019-01-20
Posts: 45
Website

Re: [SOLVED] Internet connection is slower on Arch

I would love if that helped me, but it didn't

Offline

#5 2019-01-20 15:23:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,687

Re: [SOLVED] Internet connection is slower on Arch

ethtool enp3s0

?

Also please scratch "most of the online tests", esp. browser based ones. Try https://linhost.info/2013/10/download-test-files/

Offline

#6 2019-01-20 16:22:57

svalee
Member
Registered: 2019-01-20
Posts: 45
Website

Re: [SOLVED] Internet connection is slower on Arch

Settings for enp3s0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Supported pause frame use: Symmetric Receive-only
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full 
                                100baseT/Half 100baseT/Full 
                                1000baseT/Half 1000baseT/Full 
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: No
        Advertised FEC modes: Not reported
        Speed: 100Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: off
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

Also please scratch "most of the online tests", esp. browser based ones. Try https://linhost.info/2013/10/download-test-files/

I've tried on both chromium and firefox.

wget -O /dev/null http://cachefly.cachefly.net/100mb.test

--2019-01-20 18:20:00--  http://cachefly.cachefly.net/100mb.test
Resolving cachefly.cachefly.net (cachefly.cachefly.net)... 205.234.175.175
Connecting to cachefly.cachefly.net (cachefly.cachefly.net)|205.234.175.175|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104857600 (100M) [application/octet-stream]
Saving to: ‘/dev/null’

/dev/null                                          100%[================================================================================================================>] 100.00M   742KB/s    in 2m 8s   

2019-01-20 18:22:08 (803 KB/s) - ‘/dev/null’ saved [104857600/104857600]

Offline

#7 2019-01-20 17:18:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,687

Re: [SOLVED] Internet connection is slower on Arch

Advertised auto-negotiation: No
Speed: 100Mb/s
Duplex: Half
ethtool -s enp3s0 autoneg on

You may have to explicitly reconnect.
If autonegotiation fails due to the other side, try setting duplex and speed directly ("ethtool -h", see "-s" options)

Offline

#8 2019-01-20 19:01:32

svalee
Member
Registered: 2019-01-20
Posts: 45
Website

Re: [SOLVED] Internet connection is slower on Arch

You may have to explicitly reconnect.

Thank you very much! That helped!

So, the solution was

sysctl net.ipv4.tcp_ecn=0

And then explicitly reconnect?

Offline

#9 2019-01-20 19:34:18

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,687

Re: [SOLVED] Internet connection is slower on Arch

Hum?
ethtool says the autonegotiation between your NIC and the router didn't happen and you're left w/ a half-duplex 100MBit connection (what explains your results)
I'm not sure whether that was caused by the Explicit Congestion Notification, but if deactivating that alone caused proper autonegotiation and connection (after the reconnect) you can (and should) set that with an entry in /etc/sysctl.d/ (the sysctl change won't survive a reboot)

Offline

#10 2019-01-20 19:59:26

loqs
Member
Registered: 2014-03-06
Posts: 19,106

Re: [SOLVED] Internet connection is slower on Arch

Systemd stopped setting net.ipv4.tcp_ecn = 1 with v240 which was overriding the kernel default of net.ipv4.tcp_ecn = 2 which generally did not cause issues.

Offline

#11 2019-01-20 20:04:32

svalee
Member
Registered: 2019-01-20
Posts: 45
Website

Re: [SOLVED] Internet connection is slower on Arch

Hmm, now that I reconnected

Advertised auto-negotiation: Yes
Speed: 100Mb/s
Duplex: Full

That makes me think that this problem might've appeared after I connected to openvpn server.
Could it be related?

Offline

#12 2019-01-20 20:33:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,687

Re: [SOLVED] Internet connection is slower on Arch

It's certainly not impossible - try to reproduce it ;-)

Offline

Board footer

Powered by FluxBB