Jump to content

Problems with Realtek RTL8111/8168/8411 NIC (Download speed limited)


Recommended Posts

Hello! 

 

I have detected that the download speed of my network card has been limited to 20MB/s, when normally it should be 100MB/s.

I detected it when I had Unraid 6.12.5 and decided to upgrade to Unraid 6.12.6, however I detected this in patch note:

 

Release-notes/6.12.6

"Problems due to Realtek network cards
Stock Realtek drivers in the latest Linux kernels are causing network and stability issues. If you are having issues and Tools > System Devices shows that you have a Realtek ethernet controller, grab the part number shown and search Community Apps to see if there is a Realtek driver plugin for that device. For more information, see the support page for Realtek driver plugins."

 

Things I've done to try to fix the problem:

  1. I have updated the version of Unraid from 6.12.5 to 6.12.6
  2. I have changed the network cable with a new one.
  3. I have installed the "RTL8168(B)/RTL8111(B) PCI Drivers" (RTL8168 Drivers) plugin, as recommended in the patch notes.
  4. I have restarted my router, in case it is a related problem. My others computers can download at 100MB/s without problems.

 

  • Unraid Version:
6.12.6 2023-12-01

 

  • NIC:
root@Tower:~# lspci | grep -i Realtek
07:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

 

  • Driver version:
root@Tower:~# ethtool -i eth0
driver: r8168
version: 8.052.01-NAPI
firmware-version:
expansion-rom-version:
bus-info: 0000:07:00.0
supports-statistics: yes
supports-test: no
supports-eeprom-access: no
supports-register-dump: yes
supports-priv-flags: no

 

  • Network interface information:
root@Tower:~# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                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/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Half 1000baseT/Full
        Link partner advertised pause frame use: No
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Auto-negotiation: on
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        MDI-X: Unknown
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes

 

Conclusion and hypothesis:

I think we will all agree that it is a problem with the NIC driver.

As I have checked on the official Realtek website, the latest published version is the one I already have installed:

 

Unix (Linux)

Description: GBE Ethernet LINUX driver r8168 for kernel up to 5.19

Version: 8.052.01

Update Time: 2023/09/28

Realtek PCIe FE / GBE / 2.5G / 5G Ethernet Family Controller Software

 

My hypothesis is that there is a problem with the driver and they have not yet published a fix for it. Does it fit you?

Anyone else in my situation?

 

Thank you and best regards,

ZanoX

Edited by ZanoX
Link to comment
22 minutes ago, JorgeB said:

Don't remember seeing any similar reports, I would recommend running a single stream iperf test in both directions.

 

Hello JorgeB,

Thank you very much for your prompt response.

I attach the results that I have executed from the Unraid console itself:

 

root@Tower:~# iperf3 -c 192.168.1.10
Connecting to host 192.168.1.10, port 5201
[  5] local 192.168.1.10 port 51712 connected to 192.168.1.10 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  5.40 GBytes  46.4 Gbits/sec    0   1023 KBytes
[  5]   1.00-2.00   sec  5.33 GBytes  45.8 Gbits/sec    0    895 KBytes
[  5]   2.00-3.00   sec  5.32 GBytes  45.7 Gbits/sec    0    895 KBytes
[  5]   3.00-4.00   sec  5.33 GBytes  45.8 Gbits/sec    0    895 KBytes
[  5]   4.00-5.00   sec  5.44 GBytes  46.7 Gbits/sec    0    895 KBytes
[  5]   5.00-6.00   sec  5.53 GBytes  47.5 Gbits/sec    0    895 KBytes
[  5]   6.00-7.00   sec  5.67 GBytes  48.7 Gbits/sec    0    895 KBytes
[  5]   7.00-8.00   sec  5.57 GBytes  47.8 Gbits/sec    0    895 KBytes
[  5]   8.00-9.00   sec  5.45 GBytes  46.8 Gbits/sec    0   1023 KBytes
[  5]   9.00-10.00  sec  5.44 GBytes  46.7 Gbits/sec    0   1023 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  54.5 GBytes  46.8 Gbits/sec    0             sender
[  5]   0.00-10.04  sec  54.5 GBytes  46.6 Gbits/sec                  receiver

 

root@Tower:~# iperf3 -c 192.168.1.10 -R
Connecting to host 192.168.1.10, port 5201
Reverse mode, remote host 192.168.1.10 is sending
[  5] local 192.168.1.10 port 51300 connected to 192.168.1.10 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  5.36 GBytes  46.0 Gbits/sec
[  5]   1.00-2.00   sec  5.57 GBytes  47.8 Gbits/sec
[  5]   2.00-3.00   sec  5.54 GBytes  47.6 Gbits/sec
[  5]   3.00-4.00   sec  5.64 GBytes  48.4 Gbits/sec
[  5]   4.00-5.00   sec  5.56 GBytes  47.7 Gbits/sec
[  5]   5.00-6.00   sec  5.50 GBytes  47.2 Gbits/sec
[  5]   6.00-7.00   sec  5.28 GBytes  45.3 Gbits/sec
[  5]   7.00-8.00   sec  5.56 GBytes  47.7 Gbits/sec
[  5]   8.00-9.00   sec  5.71 GBytes  49.1 Gbits/sec
[  5]   9.00-10.00  sec  5.71 GBytes  49.0 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec  55.4 GBytes  47.4 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  55.4 GBytes  47.6 Gbits/sec                  receiver

 

I hope it helps identify the problem.

Regards

Edited by ZanoX
Link to comment

I attach results of another test carried out from another computer (Windows) towards Unraid:

 

PS C:\iperf3> .\iperf3.exe -c 192.168.1.10
Connecting to host 192.168.1.10, port 5201
[  4] local 192.168.1.13 port 55704 connected to 192.168.1.10 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   112 MBytes   938 Mbits/sec
[  4]   1.00-2.00   sec   113 MBytes   948 Mbits/sec
[  4]   2.00-3.00   sec   113 MBytes   948 Mbits/sec
[  4]   3.00-4.00   sec   112 MBytes   941 Mbits/sec
[  4]   4.00-5.00   sec   113 MBytes   949 Mbits/sec
[  4]   5.00-6.00   sec   113 MBytes   949 Mbits/sec
[  4]   6.00-7.00   sec   113 MBytes   947 Mbits/sec
[  4]   7.00-8.00   sec   113 MBytes   949 Mbits/sec
[  4]   8.00-9.00   sec   113 MBytes   947 Mbits/sec
[  4]   9.00-10.00  sec   113 MBytes   948 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.10 GBytes   946 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.10 GBytes   946 Mbits/sec                  receiver

 

PS C:\iperf3> .\iperf3.exe -c 192.168.1.10 -R
Connecting to host 192.168.1.10, port 5201
Reverse mode, remote host 192.168.1.10 is sending
[  4] local 192.168.1.13 port 55723 connected to 192.168.1.10 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   104 MBytes   876 Mbits/sec
[  4]   1.00-2.00   sec   105 MBytes   881 Mbits/sec
[  4]   2.00-3.00   sec   102 MBytes   854 Mbits/sec
[  4]   3.00-4.00   sec   104 MBytes   876 Mbits/sec
[  4]   4.00-5.00   sec   104 MBytes   871 Mbits/sec
[  4]   5.00-6.00   sec  97.6 MBytes   818 Mbits/sec
[  4]   6.00-7.00   sec   106 MBytes   891 Mbits/sec
[  4]   7.00-8.00   sec   102 MBytes   852 Mbits/sec
[  4]   8.00-9.00   sec   104 MBytes   875 Mbits/sec
[  4]   9.00-10.00  sec   100 MBytes   840 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.01 GBytes   866 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  1.01 GBytes   864 Mbits/sec                  receiver

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...