Avoid Realtek network adapters for Type 1 Hypervisor platforms

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
32,800
Reaction score
10,270
For my later tests they are all between two computers with direct connection and no switches are involved.

For example, the remaining issue is with the Acer laptop (dual boot) when running Ubuntu 20.04 (it does not seem to work with either vendor driver or the kernel built-in cdc-ncm driver despite using later kernels which officially support the RTL8156B).

My test is between this one and the other Acer laptop running Windows 11.

Ah ha, finally found the issue is not with my new Acer Swift 3 laptop (dual boot) running Ubuntu 20.04, rather it was with the older Acer laptop (which has slower SSD). I found the same issue after rebooting to Windows 11 on the new Acer laptop. So this led me to suspect the issue was with the older Acer Swift 3 laptop (bought in Dec 2017 and known to have a slow SSD).

Then I use my Mac Mini M1 to be the iperf 3 server, now it is fine and the old Windows Acer laptop still have the same issue with slow Rx of around 1.2Gbps.

New Acer laptop running Ubuntu 20.04, iperf3 result with the Mac Mini M1 (192.168.38.48), both using the Ugreen 2.5G adapter.

Code:
mcuee@UbuntuSwift3:~$ iperf3 -c 192.168.38.48
Connecting to host 192.168.38.48, port 5201
[  5] local 192.168.38.88 port 54516 connected to 192.168.38.48 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   284 MBytes  2.38 Gbits/sec    0   1.08 MBytes       
[  5]   1.00-2.00   sec   280 MBytes  2.35 Gbits/sec    0   1.08 MBytes       
[  5]   2.00-3.00   sec   281 MBytes  2.36 Gbits/sec    0   1.19 MBytes       
[  5]   3.00-4.00   sec   280 MBytes  2.35 Gbits/sec    0   1.19 MBytes       
[  5]   4.00-5.00   sec   280 MBytes  2.35 Gbits/sec    0   1.19 MBytes       
[  5]   5.00-6.00   sec   281 MBytes  2.36 Gbits/sec    0   1.19 MBytes       
[  5]   6.00-7.00   sec   280 MBytes  2.35 Gbits/sec    0   1.19 MBytes       
[  5]   7.00-8.00   sec   281 MBytes  2.36 Gbits/sec    0   1.19 MBytes       
[  5]   8.00-9.00   sec   280 MBytes  2.35 Gbits/sec    0   1.19 MBytes       
[  5]   9.00-10.00  sec   281 MBytes  2.36 Gbits/sec    0   1.19 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  2.74 GBytes  2.36 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  2.74 GBytes  2.35 Gbits/sec                  receiver

iperf Done.
mcuee@UbuntuSwift3:~$ iperf3 -c 192.168.38.48 -R
Connecting to host 192.168.38.48, port 5201
Reverse mode, remote host 192.168.38.48 is sending
[  5] local 192.168.38.88 port 54520 connected to 192.168.38.48 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   263 MBytes  2.21 Gbits/sec                 
[  5]   1.00-2.00   sec   270 MBytes  2.27 Gbits/sec                 
[  5]   2.00-3.00   sec   271 MBytes  2.27 Gbits/sec                 
[  5]   3.00-4.00   sec   271 MBytes  2.27 Gbits/sec                 
[  5]   4.00-5.00   sec   272 MBytes  2.28 Gbits/sec                 
[  5]   5.00-6.00   sec   272 MBytes  2.28 Gbits/sec                 
[  5]   6.00-7.00   sec   272 MBytes  2.28 Gbits/sec                 
[  5]   7.00-8.00   sec   274 MBytes  2.29 Gbits/sec                 
[  5]   8.00-9.00   sec   274 MBytes  2.30 Gbits/sec                 
[  5]   9.00-10.00  sec   272 MBytes  2.28 Gbits/sec                 
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  2.65 GBytes  2.28 Gbits/sec                  sender
[  5]   0.00-10.00  sec  2.65 GBytes  2.27 Gbits/sec                  receiver

iperf Done.
 

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
32,800
Reaction score
10,270
Ah ha, finally found the issue is not with my new Acer Swift 3 laptop (dual boot) running Ubuntu 20.04, rather it was with the older Acer laptop (which has slower SSD). I found the same issue after rebooting to Windows 11 on the new Acer laptop. So this led me to suspect the issue was with the older Acer Swift 3 laptop (bought in Dec 2017 and known to have a slow SSD).

Then I use my Mac Mini M1 to be the iperf 3 server, now it is fine and the old Windows Acer laptop still have the same issue with slow Rx of around 1.2Gbps.

New Acer laptop running Ubuntu 20.04, iperf3 result with the Mac Mini M1 (192.168.38.48), both using the Ugreen 2.5G adapter.

As I remember that the Ugreen 2.5G adapter used to work with the old Acer laptop (also tested with the Mac Mini M1) when it was running Windows 10, I decided to upgrade the driver to the latest version from the Realtek website. And yes it does sort out the issue.

I am not so sure about the warning message on the Windows client side though. There is no warning message on the Ubuntu 20.04 server side.

iperf3 sever: new Acer laptop running Ubuntu 20.04
iperf3 client: old Acer laptop running Windows 11, with updated vendor driver.

Edit to add: no issues when the new Acer Swift 3 is running Windows 11 as well. No warning message in that case.

Code:
PS C:\work\speedtest\iperf3.7_64_updated_cygwin1dll> .\iperf3.exe -c 192.168.38.168
warning: Ignoring nonsense TCP MSS 0
Connecting to host 192.168.38.168, port 5201
[  5] local 192.168.38.38 port 7583 connected to 192.168.38.168 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   284 MBytes  2.39 Gbits/sec
[  5]   1.00-2.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   2.00-3.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   3.00-4.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   4.00-5.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   5.00-6.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   6.00-7.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   7.00-8.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   8.00-9.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   9.00-10.00  sec   283 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  2.76 GBytes  2.37 Gbits/sec                  sender
[  5]   0.00-10.05  sec  2.76 GBytes  2.36 Gbits/sec                  receiver

iperf Done.
PS C:\work\speedtest\iperf3.7_64_updated_cygwin1dll> .\iperf3.exe -c 192.168.38.168 -R
warning: Ignoring nonsense TCP MSS -2146669056
Connecting to host 192.168.38.168, port 5201
Reverse mode, remote host 192.168.38.168 is sending
[  5] local 192.168.38.38 port 7587 connected to 192.168.38.168 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   283 MBytes  2.38 Gbits/sec
[  5]   1.00-2.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   2.00-3.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   3.00-4.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   4.00-5.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   5.00-6.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   6.00-7.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   7.00-8.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   8.00-9.00   sec   283 MBytes  2.37 Gbits/sec
[  5]   9.00-10.00  sec   283 MBytes  2.37 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec  2.77 GBytes  2.37 Gbits/sec    0             sender
[  5]   0.00-10.00  sec  2.76 GBytes  2.37 Gbits/sec                  receiver

iperf Done.

mcuee@UbuntuSwift3:~$ iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.38.38, port 7582
[  5] local 192.168.38.168 port 5201 connected to 192.168.38.38 port 7583
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   271 MBytes  2.27 Gbits/sec                 
[  5]   1.00-2.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   2.00-3.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   3.00-4.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   4.00-5.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   5.00-6.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   6.00-7.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   7.00-8.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   8.00-9.00   sec   283 MBytes  2.37 Gbits/sec                 
[  5]   9.00-10.00  sec   283 MBytes  2.37 Gbits/sec                 
[  5]  10.00-10.05  sec  13.2 MBytes  2.37 Gbits/sec                 
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.05  sec  2.76 GBytes  2.36 Gbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.38.38, port 7586
[  5] local 192.168.38.168 port 5201 connected to 192.168.38.38 port 7587
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   272 MBytes  2.28 Gbits/sec    0    257 KBytes      
[  5]   1.00-2.00   sec   283 MBytes  2.37 Gbits/sec    0    257 KBytes      
[  5]   2.00-3.00   sec   283 MBytes  2.37 Gbits/sec    0    257 KBytes      
[  5]   3.00-4.00   sec   285 MBytes  2.39 Gbits/sec    0    743 KBytes      
[  5]   4.00-5.00   sec   282 MBytes  2.37 Gbits/sec    0    786 KBytes      
[  5]   5.00-6.00   sec   282 MBytes  2.37 Gbits/sec    0    824 KBytes      
[  5]   6.00-7.00   sec   284 MBytes  2.38 Gbits/sec    0    824 KBytes      
[  5]   7.00-8.00   sec   282 MBytes  2.37 Gbits/sec    0    824 KBytes      
[  5]   8.00-9.00   sec   282 MBytes  2.37 Gbits/sec    0    824 KBytes      
[  5]   9.00-10.00  sec   284 MBytes  2.38 Gbits/sec    0    824 KBytes      
[  5]  10.00-10.04  sec  12.5 MBytes  2.40 Gbits/sec    0    824 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.04  sec  2.77 GBytes  2.37 Gbits/sec    0             sender
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
 
Last edited:

xiaofan

High Supremacy Member
Joined
Sep 16, 2018
Messages
32,800
Reaction score
10,270
After using the vendor driver and not kernel driver, the built-in RTL8168 Gigabit Ethernet adapter works fine, download speed is the same as my line speed and upload is a bit slower but still very good.

Speedtest results from the pve host, a Debian 11 lxc container and a Debian 11 VM, from the vmbr0 bridged to the RTL8168 built-in adapter.

Code:
root@pve:~# ./speedtest

   Speedtest by Ookla

     Server: Singtel - Singapore (id = 25960)
        ISP: Singtel Fiber
    Latency:     1.26 ms   (0.11 ms jitter)
   Download:   939.58 Mbps (data used: 447.9 MB )
     Upload:   834.32 Mbps (data used: 1.0 GB )
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/23574383-21e3-4953-aed4-8da65950e9d9

root@debian11ct:~# speedtest

   Speedtest by Ookla

     Server: Singtel - Singapore (id = 25960)
        ISP: Singtel Fiber
    Latency:     1.49 ms   (0.08 ms jitter)
   Download:   939.81 Mbps (data used: 458.2 MB )                            
     Upload:   831.33 Mbps (data used: 1.0 GB )                            
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/ba3ee441-0cf0-43b4-b039-f0d74c83c691

mcuee@debian:~$ speedtest

   Speedtest by Ookla

     Server: Singtel - Singapore (id = 25960)
        ISP: Singtel Fiber
    Latency:     1.45 ms   (0.05 ms jitter)
   Download:   923.16 Mbps (data used: 462.4 MB )
     Upload:   864.30 Mbps (data used: 1.0 GB )
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/f44d943c-e148-43bd-9a5d-5925b374f8e9

I can not fix this issue for now. So I got another USB 3 Gigabit Adapter (Ugreen ASIX AX88179 based) and it seems to perform better than the RTL8168.

iperf3 server -- Intel J4015 mini PC running Ubuntu 21.10, connected to Asus RT-AX82U router
PVE host -- Intel N4500 mini PC running PVE 7.1, connected to Asus RT-AX82U router

Code:
root@pve:~# ./ookla/speedtest

   Speedtest by Ookla

     Server: Singtel - Singapore (id = 25960)
        ISP: Singtel Fiber
    Latency:     1.27 ms   (0.34 ms jitter)
   Download:   943.35 Mbps (data used: 448.5 MB )
     Upload:   945.39 Mbps (data used: 1.1 GB )
Packet Loss:     0.0%
 Result URL: https://www.speedtest.net/result/c/d4b43ba3-68ed-4da8-8e52-bd52e816cc21
 
 root@pve:~# iperf3 -c 192.168.50.218
Connecting to host 192.168.50.218, port 5201
[  5] local 192.168.50.216 port 35700 connected to 192.168.50.218 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   113 MBytes   945 Mbits/sec    0    272 KBytes
[  5]   1.00-2.00   sec   112 MBytes   942 Mbits/sec    0    283 KBytes
[  5]   2.00-3.00   sec   112 MBytes   939 Mbits/sec    0    296 KBytes
[  5]   3.00-4.00   sec   113 MBytes   945 Mbits/sec    0    311 KBytes
[  5]   4.00-5.00   sec   112 MBytes   936 Mbits/sec    0    311 KBytes
[  5]   5.00-6.00   sec   113 MBytes   945 Mbits/sec    0    358 KBytes
[  5]   6.00-7.00   sec   112 MBytes   937 Mbits/sec    0    379 KBytes
[  5]   7.00-8.00   sec   113 MBytes   945 Mbits/sec    0    379 KBytes
[  5]   8.00-9.00   sec   112 MBytes   942 Mbits/sec    0    379 KBytes
[  5]   9.00-10.00  sec   112 MBytes   938 Mbits/sec    0    379 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec                  receiver

iperf Done.

root@pve:~# iperf3 -c 192.168.50.218 -R
Connecting to host 192.168.50.218, port 5201
Reverse mode, remote host 192.168.50.218 is sending
[  5] local 192.168.50.216 port 35704 connected to 192.168.50.218 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   110 MBytes   927 Mbits/sec
[  5]   1.00-2.00   sec   112 MBytes   937 Mbits/sec
[  5]   2.00-3.00   sec   112 MBytes   939 Mbits/sec
[  5]   3.00-4.00   sec   112 MBytes   940 Mbits/sec
[  5]   4.00-5.00   sec   112 MBytes   940 Mbits/sec
[  5]   5.00-6.00   sec   112 MBytes   940 Mbits/sec
[  5]   6.00-7.00   sec   111 MBytes   928 Mbits/sec
[  5]   7.00-8.00   sec   112 MBytes   940 Mbits/sec
[  5]   8.00-9.00   sec   112 MBytes   941 Mbits/sec
[  5]   9.00-10.00  sec   112 MBytes   938 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.09 GBytes   939 Mbits/sec  529             sender
[  5]   0.00-10.00  sec  1.09 GBytes   937 Mbits/sec                  receiver

iperf Done.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top