bb-qq / r8152

Synology DSM driver for Realtek RTL8152/RTL8153/RTL8156 based adapters
GNU General Public License v2.0
2.06k stars 184 forks source link

DS920+ and Asustor AS-U2.5G2 adapter : works but not at full speed for some client/server... #296

Closed MilesTEG1 closed 3 months ago

MilesTEG1 commented 1 year ago

Description of the problem

I bought an Asustor AS-U2.5G2 adapter (not the same as the first gen AS-U2.5G) to replace a probably defect Cable Matters 2,5G adapter. I plugged it correctly in the USB3-USBC adapter supplied with the AS-U2.5G2 (otherwise the 2,5G adapter is show as 1000M instead of 2500M). I also disable IPv6 on the LAN3 (eth2). image

I launched severals iperf3 tests with this command while the NAS is the server with iperf3 -s :

 # Launched on two differents clients : Asustor AS6704T, Macbook Air M2 with an Asustor `AS-U2.5G` adapter
 iperf3 -c 192.168.2.201 -t 20 && iperf3 -c 192.168.2.201 -t 20 -R

The results are distrubing...

With DS920+ as a server :

  • As a client: my MBA M2 with Asustor AS-U2.5G adapter :
    • MBA M2 --> DS920+ ≈ 1,54 Gbits/sec :warning:
    • DS920+ --> MBA M2 ≈ 2,35 Gbits/sec (with --reverse mode)
  • As a client: Asustor AS6704T on LAN1 (eth0) (or on LAN2 (eth1)) port (2,5G) :
    • AS6704T --> DS920+ ≈ 2,13 Gbits/sec
    • DS920+ --> AS6704T ≈ 820 Mbits/sec :warning: :warning: (with --reverse mode)
  • As a client: iMac M1 with Asustor AS-U2.5G adapter :
    • iMac M1 --> DS920+ ≈ 2,29 Gbits/sec
    • DS920+ --> iMac M1 ≈ 2,35 Gbits/sec (with --reverse mode)

With AS6704T as a server :

  • As a client: my MBA M2 with Asustor AS-U2.5G adapter:
    • MBA M2 --> AS6704T ≈ 1,54 Gbits/sec :warning:
    • AS6704T --> MBA M2 ≈ 2,35 Gbits/sec (with --reverse mode)
  • As a client: Synology DS920+ with AS-U2.5G2 adapter:
    • DS920+ --> AS6704T ≈ 898 Mbits/sec :warning: :warning:
    • AS6704T --> DS920+ ≈ 2,32 Gbits/sec (with --reverse mode)

With MBA M2 (with Asustor AS-U2.5G adapter) as a server :

  • As a client: Asustor AS6704T:
    • AS6704T --> MBA M2 ≈ 2,34 Gbits/sec
    • MBA M2 --> AS6704T ≈ 1,58 Gbits/sec :warning: (with --reverse mode)
  • As a client: Synology DS920+ with AS-U2.5G2 adapter:
    • DS920+ --> MBA M2 ≈ 921 Mbits/sec :warning: :warning:
    • MBA M2 --> DS920+ ≈ 1,94 Gbits/sec :warning: (with --reverse mode)

The results with :warning: emoji are weird because of the other results... I don't understand what's going wrong...

Description of your products

  • Synology DS920+
    • and output of uname -a command :
      Linux Syno-DS920Plus 4.4.180+ #42962 SMP Tue Jan 31 23:18:09 CST 2023 x86_64 GNU/Linux synology_geminilake_920+
    • DSM version : 7.1.1-42962 Update 4
  • the product name of the ethernet dongle : Asustor AS-U2.5G2

Description of your environment

  • connect using a Ethernet switch
    • Ethernet switch: Asustor ASW205T
  • cable category : Cat.6 and Cat.6a
  • The other machines connected to this switch:
    • Macbook Air M2 + Asustor AS-U2.5G (the first edition)
    • Asustor AS6704T (already has two 2,5G ethernet ports)
Here the results for the iperf3 tests between and Synology DS920+ Asustor AS6704T with DS920+ as server

#### `AS6704T --> DS920+` from LAN1 = eth0 ```log iperf3 -c 192.168.2.201 -t 20 Connecting to host 192.168.2.201, port 5201 [ 5] local 192.168.2.203 port 52880 connected to 192.168.2.201 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 252 MBytes 2.11 Gbits/sec 0 3.01 MBytes [ 5] 1.00-2.00 sec 261 MBytes 2.19 Gbits/sec 0 3.01 MBytes [ 5] 2.00-3.00 sec 252 MBytes 2.12 Gbits/sec 0 3.01 MBytes [ 5] 3.00-4.00 sec 249 MBytes 2.09 Gbits/sec 0 3.01 MBytes [ 5] 4.00-5.00 sec 252 MBytes 2.12 Gbits/sec 0 3.01 MBytes [ 5] 5.00-6.00 sec 264 MBytes 2.21 Gbits/sec 0 3.01 MBytes [ 5] 6.00-7.00 sec 254 MBytes 2.13 Gbits/sec 0 3.01 MBytes [ 5] 7.00-8.00 sec 234 MBytes 1.96 Gbits/sec 288 2.23 MBytes [ 5] 8.00-9.00 sec 254 MBytes 2.13 Gbits/sec 0 2.42 MBytes [ 5] 9.00-10.00 sec 254 MBytes 2.13 Gbits/sec 0 2.58 MBytes [ 5] 10.00-11.00 sec 239 MBytes 2.00 Gbits/sec 0 2.70 MBytes [ 5] 11.00-12.00 sec 232 MBytes 1.95 Gbits/sec 0 2.80 MBytes [ 5] 12.00-13.00 sec 251 MBytes 2.11 Gbits/sec 17 2.05 MBytes [ 5] 13.00-14.00 sec 249 MBytes 2.09 Gbits/sec 0 2.16 MBytes [ 5] 14.00-15.00 sec 255 MBytes 2.14 Gbits/sec 110 1.58 MBytes [ 5] 15.00-16.00 sec 254 MBytes 2.13 Gbits/sec 0 1.67 MBytes [ 5] 16.00-17.00 sec 256 MBytes 2.15 Gbits/sec 0 1.75 MBytes [ 5] 17.00-18.00 sec 244 MBytes 2.04 Gbits/sec 0 1.84 MBytes [ 5] 18.00-19.00 sec 240 MBytes 2.01 Gbits/sec 0 1.92 MBytes [ 5] 19.00-20.00 sec 248 MBytes 2.08 Gbits/sec 0 2.00 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 4.88 GBytes 2.09 Gbits/sec 415 sender [ 5] 0.00-20.00 sec 4.87 GBytes 2.09 Gbits/sec receiver iperf Done. ``` #### `AS6704T --> DS920+` from LAN2 = eth1 ```log iperf3 -c 192.168.2.201 -t 20 Connecting to host 192.168.2.201, port 5201 [ 5] local 192.168.2.203 port 52894 connected to 192.168.2.201 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 270 MBytes 2.27 Gbits/sec 0 2.93 MBytes [ 5] 1.00-2.00 sec 258 MBytes 2.16 Gbits/sec 0 3.07 MBytes [ 5] 2.00-3.00 sec 249 MBytes 2.09 Gbits/sec 0 3.07 MBytes [ 5] 3.00-4.00 sec 244 MBytes 2.04 Gbits/sec 0 3.07 MBytes [ 5] 4.00-5.00 sec 246 MBytes 2.07 Gbits/sec 0 3.07 MBytes [ 5] 5.00-6.00 sec 261 MBytes 2.19 Gbits/sec 0 3.07 MBytes [ 5] 6.00-7.00 sec 268 MBytes 2.24 Gbits/sec 0 3.07 MBytes [ 5] 7.00-8.00 sec 260 MBytes 2.18 Gbits/sec 0 3.07 MBytes [ 5] 8.00-9.00 sec 256 MBytes 2.15 Gbits/sec 0 3.07 MBytes [ 5] 9.00-10.00 sec 248 MBytes 2.08 Gbits/sec 0 3.07 MBytes [ 5] 10.00-11.00 sec 248 MBytes 2.08 Gbits/sec 0 3.07 MBytes [ 5] 11.00-12.00 sec 252 MBytes 2.12 Gbits/sec 0 3.07 MBytes [ 5] 12.00-13.00 sec 251 MBytes 2.11 Gbits/sec 0 3.07 MBytes [ 5] 13.00-14.00 sec 238 MBytes 1.99 Gbits/sec 1 3.07 MBytes [ 5] 14.00-15.00 sec 269 MBytes 2.25 Gbits/sec 130 2.29 MBytes [ 5] 15.00-16.00 sec 259 MBytes 2.17 Gbits/sec 0 2.48 MBytes [ 5] 16.00-17.00 sec 250 MBytes 2.10 Gbits/sec 0 2.63 MBytes [ 5] 17.00-18.00 sec 244 MBytes 2.04 Gbits/sec 0 2.76 MBytes [ 5] 18.00-19.00 sec 246 MBytes 2.07 Gbits/sec 0 2.86 MBytes [ 5] 19.00-20.00 sec 264 MBytes 2.21 Gbits/sec 0 2.93 MBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 4.96 GBytes 2.13 Gbits/sec 131 sender [ 5] 0.00-20.00 sec 4.96 GBytes 2.13 Gbits/sec receiver iperf Done. ``` #### `DS920+ --> AS6704T` from LAN1 = eth0 ```log iperf3 -c 192.168.2.201 -t 20 -R Connecting to host 192.168.2.201, port 5201 Reverse mode, remote host 192.168.2.201 is sending [ 5] local 192.168.2.203 port 52902 connected to 192.168.2.201 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 89.7 MBytes 752 Mbits/sec [ 5] 1.00-2.00 sec 96.2 MBytes 807 Mbits/sec [ 5] 2.00-3.00 sec 92.8 MBytes 778 Mbits/sec [ 5] 3.00-4.00 sec 92.3 MBytes 774 Mbits/sec [ 5] 4.00-5.00 sec 93.1 MBytes 781 Mbits/sec [ 5] 5.00-6.00 sec 96.7 MBytes 811 Mbits/sec [ 5] 6.00-7.00 sec 96.4 MBytes 809 Mbits/sec [ 5] 7.00-8.00 sec 98.5 MBytes 827 Mbits/sec [ 5] 8.00-9.00 sec 97.8 MBytes 821 Mbits/sec [ 5] 9.00-10.00 sec 95.8 MBytes 804 Mbits/sec [ 5] 10.00-11.00 sec 97.4 MBytes 817 Mbits/sec [ 5] 11.00-12.00 sec 96.1 MBytes 806 Mbits/sec [ 5] 12.00-13.00 sec 83.2 MBytes 698 Mbits/sec [ 5] 13.00-14.00 sec 91.5 MBytes 768 Mbits/sec [ 5] 14.00-15.00 sec 78.5 MBytes 659 Mbits/sec [ 5] 15.00-16.00 sec 90.3 MBytes 757 Mbits/sec [ 5] 16.00-17.00 sec 93.7 MBytes 786 Mbits/sec [ 5] 17.00-18.00 sec 96.8 MBytes 812 Mbits/sec [ 5] 18.00-19.00 sec 94.8 MBytes 795 Mbits/sec [ 5] 19.00-20.00 sec 96.2 MBytes 807 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 1.83 GBytes 784 Mbits/sec 846 sender [ 5] 0.00-20.00 sec 1.82 GBytes 783 Mbits/sec receiver iperf Done. ``` #### `DS920+ --> AS6704T` from LAN2 = eth1 ```log iperf3 -c 192.168.2.201 -t 20 -R Connecting to host 192.168.2.201, port 5201 Reverse mode, remote host 192.168.2.201 is sending [ 5] local 192.168.2.203 port 52906 connected to 192.168.2.201 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 99.9 MBytes 838 Mbits/sec [ 5] 1.00-2.00 sec 103 MBytes 861 Mbits/sec [ 5] 2.00-3.00 sec 98.8 MBytes 829 Mbits/sec [ 5] 3.00-4.00 sec 101 MBytes 844 Mbits/sec [ 5] 4.00-5.00 sec 97.2 MBytes 815 Mbits/sec [ 5] 5.00-6.00 sec 98.3 MBytes 825 Mbits/sec [ 5] 6.00-7.00 sec 96.5 MBytes 809 Mbits/sec [ 5] 7.00-8.00 sec 99.9 MBytes 838 Mbits/sec [ 5] 8.00-9.00 sec 94.9 MBytes 796 Mbits/sec [ 5] 9.00-10.00 sec 95.5 MBytes 801 Mbits/sec [ 5] 10.00-11.00 sec 93.4 MBytes 783 Mbits/sec [ 5] 11.00-12.00 sec 94.9 MBytes 796 Mbits/sec [ 5] 12.00-13.00 sec 90.2 MBytes 757 Mbits/sec [ 5] 13.00-14.00 sec 99.4 MBytes 834 Mbits/sec [ 5] 14.00-15.00 sec 100 MBytes 841 Mbits/sec [ 5] 15.00-16.00 sec 98.3 MBytes 824 Mbits/sec [ 5] 16.00-17.00 sec 98.0 MBytes 822 Mbits/sec [ 5] 17.00-18.00 sec 100 MBytes 839 Mbits/sec [ 5] 18.00-19.00 sec 98.8 MBytes 828 Mbits/sec [ 5] 19.00-20.00 sec 97.0 MBytes 814 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 1.91 GBytes 820 Mbits/sec 899 sender [ 5] 0.00-20.00 sec 1.91 GBytes 820 Mbits/sec receiver iperf Done. ```

Here the results for the iperf3 tests between and Synology DS920+ Asustor AS6704T with AS6704T as server

#### `DS920+ --> AS6704T (LAN1 = eth0)` ```log iperf3 -c 192.168.2.203 -t 20 Connecting to host 192.168.2.203, port 5201 [ 5] local 192.168.2.201 port 41150 connected to 192.168.2.203 port 5201 [ ID] Interval Transfer Bitrate Retr Cwnd [ 5] 0.00-1.00 sec 107 MBytes 901 Mbits/sec 95 107 KBytes [ 5] 1.00-2.00 sec 106 MBytes 888 Mbits/sec 91 150 KBytes [ 5] 2.00-3.00 sec 106 MBytes 893 Mbits/sec 98 110 KBytes [ 5] 3.00-4.00 sec 107 MBytes 895 Mbits/sec 99 147 KBytes [ 5] 4.00-5.00 sec 107 MBytes 897 Mbits/sec 88 141 KBytes [ 5] 5.00-6.00 sec 107 MBytes 897 Mbits/sec 99 99.0 KBytes [ 5] 6.00-7.00 sec 107 MBytes 896 Mbits/sec 82 143 KBytes [ 5] 7.00-8.00 sec 107 MBytes 901 Mbits/sec 90 107 KBytes [ 5] 8.00-9.00 sec 108 MBytes 902 Mbits/sec 83 136 KBytes [ 5] 9.00-10.00 sec 107 MBytes 894 Mbits/sec 104 134 KBytes [ 5] 10.00-11.00 sec 107 MBytes 898 Mbits/sec 87 109 KBytes [ 5] 11.00-12.00 sec 108 MBytes 903 Mbits/sec 78 136 KBytes [ 5] 12.00-13.00 sec 108 MBytes 903 Mbits/sec 103 132 KBytes [ 5] 13.00-14.00 sec 107 MBytes 896 Mbits/sec 97 134 KBytes [ 5] 14.00-15.00 sec 108 MBytes 906 Mbits/sec 82 132 KBytes [ 5] 15.00-16.00 sec 107 MBytes 897 Mbits/sec 102 151 KBytes [ 5] 16.00-17.00 sec 107 MBytes 897 Mbits/sec 90 107 KBytes [ 5] 17.00-18.00 sec 106 MBytes 893 Mbits/sec 83 153 KBytes [ 5] 18.00-19.00 sec 107 MBytes 902 Mbits/sec 85 105 KBytes [ 5] 19.00-20.00 sec 107 MBytes 900 Mbits/sec 93 137 KBytes - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.00 sec 2.09 GBytes 898 Mbits/sec 1829 sender [ 5] 0.00-20.05 sec 2.09 GBytes 896 Mbits/sec receiver iperf Done. ``` #### `AS6704T (LAN1 = eth0) --> DS920+ ` ```log iperf3 -c 192.168.2.203 -t 20 -R Connecting to host 192.168.2.203, port 5201 Reverse mode, remote host 192.168.2.203 is sending [ 5] local 192.168.2.201 port 41738 connected to 192.168.2.203 port 5201 [ ID] Interval Transfer Bitrate [ 5] 0.00-1.00 sec 276 MBytes 2.31 Gbits/sec [ 5] 1.00-2.00 sec 272 MBytes 2.28 Gbits/sec [ 5] 2.00-3.00 sec 277 MBytes 2.32 Gbits/sec [ 5] 3.00-4.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 4.00-5.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 5.00-6.00 sec 278 MBytes 2.34 Gbits/sec [ 5] 6.00-7.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 7.00-8.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 8.00-9.00 sec 277 MBytes 2.32 Gbits/sec [ 5] 9.00-10.00 sec 280 MBytes 2.35 Gbits/sec [ 5] 10.00-11.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 11.00-12.00 sec 278 MBytes 2.33 Gbits/sec [ 5] 12.00-13.00 sec 275 MBytes 2.31 Gbits/sec [ 5] 13.00-14.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 14.00-15.00 sec 280 MBytes 2.35 Gbits/sec [ 5] 15.00-16.00 sec 280 MBytes 2.34 Gbits/sec [ 5] 16.00-17.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 17.00-18.00 sec 281 MBytes 2.35 Gbits/sec [ 5] 18.00-19.00 sec 258 MBytes 2.16 Gbits/sec [ 5] 19.00-20.00 sec 275 MBytes 2.31 Gbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bitrate Retr [ 5] 0.00-20.05 sec 5.42 GBytes 2.32 Gbits/sec 24 sender [ 5] 0.00-20.00 sec 5.42 GBytes 2.33 Gbits/sec receiver iperf Done. ```

Output of dmesg command

I'll add it when I get back home to test it again.

Output of lsusb command

|__usb1          1d6b:0002:0404 09  2.00  480MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__1-2         0463:ffff:0202 00  1.10   12MBit/s 20mA 1IF  (EATON Eaton 3S Blank)
  |__1-4         f400:f400:0100 00  2.00  480MBit/s 200mA 1IF  (Synology DiskStation 7F00077D94EFD652)
|__usb2          1d6b:0003:0404 09  3.00 5000MBit/s 0mA 1IF  (Linux 4.4.180+ xhci-hcd xHCI Host Controller 0000:00:15.0) hub
  |__2-1         0bda:8156:3100 00  3.20 5000MBit/s 256mA 1IF  (Realtek USB 10/100/1G/2.5G LAN 0013000001)

Output of ifconfig -a command

eth0      Link encap:Ethernet  HWaddr 00:11:32:xx:xx:xx
          inet addr:192.168.2.200  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1076233098 errors:0 dropped:0 overruns:0 frame:0
          TX packets:655539717 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1132580045758 (1.0 TiB)  TX bytes:77135358200 (71.8 GiB)
          Interrupt:97 base 0xc000

eth1      Link encap:Ethernet  HWaddr 00:11:32:xx:xx:xx
          inet addr:169.254.26.251  Bcast:169.254.255.255  Mask:255.255.0.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:6301674 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5607354 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7251967853 (6.7 GiB)  TX bytes:12489679152 (11.6 GiB)
          Interrupt:96 base 0x8000

eth2      Link encap:Ethernet  HWaddr 00:E0:4C:xx:xx:xx
          inet addr:192.168.2.201  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:22947233 errors:0 dropped:0 overruns:0 frame:0
          TX packets:122585745 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3623196154 (3.3 GiB)  TX bytes:178057328592 (165.8 GiB)
MilesTEG1 commented 1 year ago

Update previous message with last tests results : the server on my MBA M2. It appears, that it's a bit low in performance. I tested the same adapter with my wife's iMac M1, and there it's better.

bb-qq commented 1 year ago

From the iperf3 output, it appears that there are a lot of TCP retransmissions and congestion control is reducing throughput. (see the Retr column)

The combination of MBA M2 and AS6704T also seems to be causing the slowdown, so you may want to suspect the Ethernet cable or switch.

You may also find the Troubleshooting page useful.

MilesTEG1 commented 1 year ago

From the iperf3 output, it appears that there are a lot of TCP retransmissions and congestion control is reducing throughput. (see the Retr column)

That's what I thought, but I wasn't sure the meanings of the Retr column...

The combination of MBA M2 and AS6704T also seems to be causing the slowdown, so you may want to suspect the Ethernet cable or switch.

You may also find the Troubleshooting page useful.

I already look into the troubleshooting page :) You say that the problem should be the ethernet cable ? It's a 6a cat, 5m length. I can try another one. The switch seems to be OK, I already try another port. And as the problem doesn't occur between the iMac and the Asustor, I suspect the problem is located on the DS920+. My MBA seems to have only uploads problems. From the iMac, it seems there is no problem.

So, for now, I just had to deal with this problem. Next month, I'll buy another adapter for the iMac, so I could test this new one on the Synology.

PS : I didn't change the MTU values, because I can't set a value greater than 1500 on my mac: image I keep the LAN1 (eth0) plugged in another switch (a gigabit one) for all my critical services (reverse proxy, servers, etc...) I set a static route for the Asustor NAS IP : image

I also tried to remove temporally the 1GB link and the tests have the same results.

bb-qq commented 1 year ago

To isolate the cause, it may help to connect the PC and NAS directly with a shorter cable instead of through a switch.

If the problem is on the NAS side, it may be that burst transfers are causing a temporary memory shortage. In this case, you may get some error output to dmesg.

MilesTEG1 commented 1 year ago

To isolate the cause, it may help to connect the PC and NAS directly with a shorter cable instead of through a switch.

If the problem is on the NAS side, it may be that burst transfers are causing a temporary memory shortage. In this case, you may get some error output to dmesg.

I tried another cable, and ran an iperf3 from the mac :

Connecting to host 192.168.2.201, port 5201
[  5] local 192.168.2.30 port 57222 connected to 192.168.2.201 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   162 MBytes  1.36 Gbits/sec
[  5]   1.00-2.01   sec   212 MBytes  1.77 Gbits/sec
[  5]   2.01-3.00   sec   254 MBytes  2.14 Gbits/sec
[  5]   3.00-4.00   sec   267 MBytes  2.24 Gbits/sec
[  5]   4.00-5.00   sec   265 MBytes  2.22 Gbits/sec
[  5]   5.00-6.00   sec   266 MBytes  2.23 Gbits/sec
[  5]   6.00-7.00   sec   276 MBytes  2.32 Gbits/sec
[  5]   7.00-8.00   sec   250 MBytes  2.10 Gbits/sec
[  5]   8.00-9.00   sec   250 MBytes  2.10 Gbits/sec
[  5]   9.00-10.00  sec   216 MBytes  1.81 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec  2.36 GBytes  2.03 Gbits/sec                  sender
[  5]   0.00-10.00  sec  2.36 GBytes  2.03 Gbits/sec                  receiver

iperf Done.
Connecting to host 192.168.2.201, port 5201
Reverse mode, remote host 192.168.2.201 is sending
[  5] local 192.168.2.30 port 57244 connected to 192.168.2.201 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  96.8 MBytes   812 Mbits/sec
[  5]   1.00-2.00   sec  99.1 MBytes   832 Mbits/sec
[  5]   2.00-3.00   sec  98.7 MBytes   828 Mbits/sec
[  5]   3.00-4.00   sec   100 MBytes   839 Mbits/sec
[  5]   4.00-5.00   sec  95.1 MBytes   798 Mbits/sec
[  5]   5.00-6.00   sec   100 MBytes   839 Mbits/sec
[  5]   6.00-7.00   sec   101 MBytes   848 Mbits/sec
[  5]   7.00-8.00   sec  99.9 MBytes   838 Mbits/sec
[  5]   8.00-9.00   sec  98.6 MBytes   827 Mbits/sec
[  5]   9.00-10.00  sec   101 MBytes   844 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   991 MBytes   831 Mbits/sec  372             sender
[  5]   0.00-10.00  sec   990 MBytes   830 Mbits/sec                  receiver

iperf Done.

I extract this dmesg logs starting this morning when I installed the latest preview build of your driver: dmesg return this:

[Sun Mar 19 10:55:04 2023] Module [r8152] is removed.
[Sun Mar 19 10:55:04 2023] usbcore: deregistering interface driver r8152
[Sun Mar 19 10:55:10 2023] audit_printk_skb: 12 callbacks suppressed
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.776:11575): table=filter family=2 entries=98
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.799:11576): table=filter family=2 entries=98
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.881:11577): table=filter family=2 entries=98
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.898:11578): table=filter family=10 entries=59
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.914:11579): table=filter family=10 entries=59
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.930:11580): table=filter family=10 entries=59
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.948:11581): table=filter family=2 entries=102
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.964:11582): table=filter family=10 entries=63
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219860.980:11583): table=filter family=2 entries=88
[Sun Mar 19 10:55:10 2023] audit: type=1325 audit(1679219861.001:11584): table=filter family=10 entries=43
[Sun Mar 19 10:55:15 2023] usb 2-1: reset SuperSpeed USB device number 11 using xhci_hcd
[Sun Mar 19 10:55:15 2023] r8152 2-1:1.0 eth2: v2.16.3 (2022/07/06)
[Sun Mar 19 10:55:15 2023] r8152 2-1:1.0 eth2: This product is covered by one or more of the following patents:
                                US6,570,884, US6,115,776, and US6,327,625.

[Sun Mar 19 10:55:15 2023] r8152 2-1:1.0 eth2: chip rev 14
[Sun Mar 19 10:55:15 2023] r8152 2-1:1.0 eth2: rx_buf_sz will be overridden to 16384
[Sun Mar 19 10:55:15 2023] usbcore: registered new interface driver r8152
[Sun Mar 19 10:55:15 2023] IPv6: ADDRCONF(NETDEV_UP): eth2: link is not ready
[Sun Mar 19 10:55:18 2023] IPv6: ADDRCONF(NETDEV_CHANGE): eth2: link becomes ready
[Sun Mar 19 10:55:18 2023] r8152 2-1:1.0 eth2: carrier on
[Sun Mar 19 10:55:24 2023] audit_printk_skb: 252 callbacks suppressed
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.343:11669): table=filter family=2 entries=92
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.367:11670): table=filter family=2 entries=92
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.384:11671): table=filter family=2 entries=92
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.399:11672): table=filter family=10 entries=55
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.415:11673): table=filter family=10 entries=55
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.432:11674): table=filter family=10 entries=55
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.448:11675): table=filter family=2 entries=96
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.465:11676): table=filter family=10 entries=59
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.481:11677): table=filter family=2 entries=82
[Sun Mar 19 10:55:24 2023] audit: type=1325 audit(1679219874.508:11678): table=filter family=10 entries=39

As far as I understand this, there is no entries from my iperf3 test.

I tried another iperf3 from my mac to the Synology but to the eth0 port (1GB):

192.168.2.200 est une adresse IP valide. Le test iperf3 va pouvoir s'exéctuer.
Connecting to host 192.168.2.200, port 5201
[  5] local 192.168.2.30 port 60190 connected to 192.168.2.200 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  73.8 MBytes   619 Mbits/sec
[  5]   1.00-2.00   sec  98.6 MBytes   828 Mbits/sec
[  5]   2.00-3.00   sec   101 MBytes   850 Mbits/sec
[  5]   3.00-4.00   sec   100 MBytes   839 Mbits/sec
[  5]   4.00-5.00   sec  92.5 MBytes   775 Mbits/sec
[  5]   5.00-6.00   sec  88.4 MBytes   741 Mbits/sec
[  5]   6.00-7.00   sec  98.9 MBytes   830 Mbits/sec
[  5]   7.00-8.00   sec   102 MBytes   853 Mbits/sec
[  5]   8.00-9.00   sec   101 MBytes   846 Mbits/sec
[  5]   9.00-10.00  sec   101 MBytes   846 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   957 MBytes   803 Mbits/sec                  sender
[  5]   0.00-10.00  sec   957 MBytes   802 Mbits/sec                  receiver

iperf Done.
Connecting to host 192.168.2.200, port 5201
Reverse mode, remote host 192.168.2.200 is sending
[  5] local 192.168.2.30 port 60215 connected to 192.168.2.200 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  96.2 MBytes   807 Mbits/sec
[  5]   1.00-2.00   sec   103 MBytes   861 Mbits/sec
[  5]   2.00-3.00   sec  99.9 MBytes   838 Mbits/sec
[  5]   3.00-4.00   sec  98.0 MBytes   822 Mbits/sec
[  5]   4.00-5.00   sec   103 MBytes   862 Mbits/sec
[  5]   5.00-6.00   sec   100 MBytes   841 Mbits/sec
[  5]   6.00-7.00   sec   102 MBytes   859 Mbits/sec
[  5]   7.00-8.00   sec   103 MBytes   862 Mbits/sec
[  5]   8.00-9.00   sec   102 MBytes   858 Mbits/sec
[  5]   9.00-10.00  sec   101 MBytes   850 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1010 MBytes   847 Mbits/sec  435             sender
[  5]   0.00-10.00  sec  1008 MBytes   846 Mbits/sec                  receiver

iperf Done.

Even on the built-in ethernet port (and connected to another switch), there are some Retries! (this test was conduct while the mac were connected to the 2,5G switch, and the NAS to the 1G switch, the 2 switches are linked of course). I tried both connected to the 1G switch, résultats are the same : much Retries.

If I do the same tests with the Asustor as server, I have much much less Retries, 0-20.

MilesTEG1 commented 1 year ago

Hello, Here some news !

Fist of all, I bought another adaptor, the Club3D one, a CAC-1420 USB 3.2 Gen1 Type-A to RJ46 2.5Gbps. But sadly, I had the same results... upload from my 920+ was pooly bad... like my previous tests.

After cleaning the NAS from the driver and driver's preferences (see #299 ), I installed it again, from scratch. And, after some reboots, I didn't see any new interface eth2... only my built-in eth0 and eth1... I try to uninstall from DSM, reboot, and reinstall it again... with no positive result. 😞 Still no eth2 interface, even if the driver were well loaded and functional...

So I hit lsusb command to see if there is my adapter... No one were listed... Crap... Before the first cleansing of the driver and preference's files, it was on the list... and worked (ok not very well...), but according to the FAQ, maybe a USB Hub with power should resolve stability and low upload throughput... So I bought a powered usb3 hub, and plug my adaptor on it, and it worked... but after uninstalling/reinstalling the driver, it works no more...

I unplug the adaptor from the USB-HUB, and plug it into the front USB-A connector, restart the driver with my script (see #295 ) and Oh-my ! ETH2 was back !! Yes. So, I did some iperf3 tests between my 920+ and my Asustor and see what I get:

192.168.2.201 est une adresse IP valide. Le test iperf3 va pouvoir s'exéctuer.
Connecting to host 192.168.2.201, port 5201
[  5] local 192.168.2.203 port 53348 connected to 192.168.2.201 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   283 MBytes  2.37 Gbits/sec    0    622 KBytes
[  5]   1.00-2.00   sec   280 MBytes  2.35 Gbits/sec    0    687 KBytes
[  5]   2.00-3.00   sec   279 MBytes  2.34 Gbits/sec    0    913 KBytes
[  5]   3.00-4.00   sec   275 MBytes  2.31 Gbits/sec    0   1.12 MBytes
[  5]   4.00-5.00   sec   280 MBytes  2.35 Gbits/sec    0   1.12 MBytes
[  5]   5.00-6.00   sec   280 MBytes  2.35 Gbits/sec    0   1.12 MBytes
[  5]   6.00-7.00   sec   281 MBytes  2.36 Gbits/sec    0   1.12 MBytes
[  5]   7.00-8.00   sec   280 MBytes  2.35 Gbits/sec    0   1.23 MBytes
[  5]   8.00-9.00   sec   279 MBytes  2.34 Gbits/sec    0   1.36 MBytes
[  5]   9.00-10.00  sec   281 MBytes  2.36 Gbits/sec    0   1.36 MBytes
[  5]  10.00-11.00  sec   275 MBytes  2.31 Gbits/sec    0   1.86 MBytes
[  5]  11.00-12.00  sec   281 MBytes  2.36 Gbits/sec    0   1.86 MBytes
[  5]  12.00-13.00  sec   279 MBytes  2.34 Gbits/sec    0   1.95 MBytes
[  5]  13.00-14.00  sec   280 MBytes  2.35 Gbits/sec    0   2.04 MBytes
[  5]  14.00-15.00  sec   281 MBytes  2.36 Gbits/sec    0   2.04 MBytes
[  5]  15.00-16.00  sec   280 MBytes  2.35 Gbits/sec    0   2.04 MBytes
[  5]  16.00-17.00  sec   280 MBytes  2.35 Gbits/sec    0   2.04 MBytes
[  5]  17.00-18.00  sec   281 MBytes  2.36 Gbits/sec    0   2.04 MBytes
[  5]  18.00-19.00  sec   279 MBytes  2.34 Gbits/sec    0   2.04 MBytes
[  5]  19.00-20.00  sec   280 MBytes  2.35 Gbits/sec    0   2.04 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-20.00  sec  5.46 GBytes  2.35 Gbits/sec    0             sender
[  5]   0.00-20.00  sec  5.46 GBytes  2.35 Gbits/sec                  receiver

iperf Done.
Connecting to host 192.168.2.201, port 5201
Reverse mode, remote host 192.168.2.201 is sending
[  5] local 192.168.2.203 port 53352 connected to 192.168.2.201 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec   277 MBytes  2.33 Gbits/sec
[  5]   1.00-2.00   sec   276 MBytes  2.32 Gbits/sec
[  5]   2.00-3.00   sec   281 MBytes  2.35 Gbits/sec
[  5]   3.00-4.00   sec   281 MBytes  2.35 Gbits/sec
[  5]   4.00-5.00   sec   279 MBytes  2.34 Gbits/sec
[  5]   5.00-6.00   sec   279 MBytes  2.34 Gbits/sec
[  5]   6.00-7.00   sec   280 MBytes  2.35 Gbits/sec
[  5]   7.00-8.00   sec   281 MBytes  2.35 Gbits/sec
[  5]   8.00-9.00   sec   279 MBytes  2.34 Gbits/sec
[  5]   9.00-10.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  10.00-11.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  11.00-12.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  12.00-13.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  13.00-14.00  sec   280 MBytes  2.35 Gbits/sec
[  5]  14.00-15.00  sec   280 MBytes  2.35 Gbits/sec
[  5]  15.00-16.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  16.00-17.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  17.00-18.00  sec   280 MBytes  2.35 Gbits/sec
[  5]  18.00-19.00  sec   281 MBytes  2.35 Gbits/sec
[  5]  19.00-20.00  sec   281 MBytes  2.35 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-20.00  sec  5.47 GBytes  2.35 Gbits/sec    0             sender
[  5]   0.00-20.00  sec  5.47 GBytes  2.35 Gbits/sec                  receiver

iperf Done.

A nearly perfect score 😄 for both ways : up and down ! ! With no retry !

After this success, I try to activate again my static routes I had set before to ensure all traffic go through eth2 interface : image But this caused all bad retry to occurs again with the poor upload throughput... As soon as I deactivated those statics routes rules, my upload throughput was back to full 2,5G speed.

So, for now I let thoses static routes behind, and seek a way to ensure all traffic goes though eth2 interface, while maintaining my eth0 interface up and running.

I just have to decide what to do with the usb hub : give it back to amazon, or keep it in case of I need to plug another usb thing in the 920+, because the other port is used by my UPS.

So for now, all is working fine !

bb-qq commented 1 year ago

I am glad to hear that it worked successfully.

Is the problem now that throughput is affected when static routes are configured? I am not sure about the configuration of your network, but what happens when you separate the segments?

MilesTEG1 commented 1 year ago

Is the problem now that throughput is affected when static routes are configured? I am not sure about the configuration of your network, but what happens when you separate the segments?

I'm not sure I correctly understood your questions here...

If static routes are set, the throughput is affected: low throughput. What do you mean with "separate the segments"?

bb-qq commented 1 year ago

I wrote the previous comment in the hope that by creating an independent subnet for the desired route, it would be possible to communicate over the desired route without explicitly assigning a static route.

Sorry if I'm missing the point.

bb-qq commented 3 months ago

I would like to close this issue as I have not heard back from you in a long time. If you have any questions, feel free to re-open.