You are not logged in.

#1 2019-03-06 09:10:36

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 96

[SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

I noticed last week a slow down in my internet speed. After analyzing, it seems that my Gigabit ethernet card runs at 10 Mb/s on startup ...

'sudo ethtool eth0' gives :

Settings for eth0:
        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:  1000baseT/Full 
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Speed: 10Mb/s
        Duplex: Half
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

After executing the following commands :

chris@Megatron ~ $ sudo ip link set eth0 down       
chris@Megatron ~ $ sudo ip link set eth0 up
chris@Megatron ~ $ sudo ethtool -s eth0 duplex full speed 1000                               

I get full speed again, here is then the output of ethtool :

Settings for eth0:
        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:  1000baseT/Full 
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                             100baseT/Half 100baseT/Full 
                                             1000baseT/Full 
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

I just installed the 5.0 kernel but the only thing that is better now is that the initial speed is at 100 Mb/s but still not 1000 Mb/s

Last edited by Strider (2020-02-23 20:47:48)


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#2 2019-03-06 20:22:44

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

Hey there,

To rule out cabling issue, have you change cables, use a different port on the router? Also, your boot log might useful here, when the issue occurs?

Regards

Offline

#3 2019-03-06 21:17:13

seth
Member
Registered: 2012-09-03
Posts: 15,681

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

There's initially no response from the link partner. Is there w/ 5.0?
Do you actually have to ethtool duplex/speed or is it sufficient to bring the interface down and up again?

Offline

#4 2019-03-07 19:53:58

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 96

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

@bugsmanagment : I did not change cables, but they are brand new and I did not have the issue previously with these cables.
@seth : this is the output of 5.0. But since 5.0 it is sufficient to bring the interface down and up again.


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#5 2019-03-07 20:45:53

seth
Member
Registered: 2012-09-03
Posts: 15,681

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

(You said 5.0 would initially get you 100MB…)

Anyway, check your journal. Whether, which and when which firmware is loaded and compare that to the initial activation of the interface.
I's suggest to disable the automatic network config (dhcpcd.service or whatever you're using) and only establish a connection at runtime by hand (as this smells like a race condition of some sort)

Offline

#6 2019-03-08 04:35:06

bugsmanagement
Member
Registered: 2017-04-21
Posts: 201

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

Hey @seth,

Out of curiosity, you mention early link partner. I couldn't figure out how you determined that when Auto Negation 10Mbps, why do you believe it's a firmware problem, when you don't know what hardware he is using?

regards

Last edited by bugsmanagement (2019-03-08 04:35:27)

Offline

#7 2019-03-08 08:58:34

seth
Member
Registered: 2012-09-03
Posts: 15,681

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

The HW is mentioned in the thread title and the first ethtool output lacks lines w/ "Link partner".
The firmware issue is a mere guess since atm. this seems to be a timing issue (w/ early connections apparently retrieving less and bad data from the carrier - possibly because the HW is not fully initilized)

My next guess would btw. be a hibernating windows installation (which can cause all sorts of havoc on HW init and might require the device to go through two inits) or some power management feature (causing the same double-activation requirement)

Cables are always™ the culprit, except if things constantly work on a second try - the cable didn't fix itself ;-)

Offline

#8 2019-03-08 10:22:58

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 96

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

Seth,
with 5.0 I indeed get 100 Mb/s intially (before it was 10 Mb/s, sorry if that was not clear). After bringing the interface down and up again in 5.0, I get 1000 Mb/s.
I do not use dhcpd but have my IP address configured manually (using network manager).

FWIW, here is the output I have now from ethtool (after the down/up) :

Settings for eth0:
        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: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                             100baseT/Half 100baseT/Full 
                                             1000baseT/Full 
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

#9 2019-03-08 10:25:58

seth
Member
Registered: 2012-09-03
Posts: 15,681

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

Doesn't matter what brings up the interface, just ensure it doesn't happen automatically during the boot so we can see whether it's just "too early" or the interface requires a double kick (for whatever reason to be figured afterwards)

Offline

#10 2019-03-08 13:12:21

NoSavvy
Member
From: Dorchester, Dorset, UK
Registered: 2013-01-23
Posts: 58

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

Try disabling auto negotiation, mine will chose a higher speed if it's off.

Offline

#11 2020-02-23 20:46:50

Strider
Member
From: Belgium
Registered: 2009-08-04
Posts: 96

Re: [SOLVED] Lowest bitrate selected for my NIC by RTL8168d/8111d driver

I finally found a solution for this problem.

See post
https://bbs.archlinux.org/viewtopic.php … 0#p1888990


Win XP -> Ubuntu -> Fedora -> Arch -> Arch -> Arch -> Ar...

Offline

Board footer

Powered by FluxBB