Slow speed when connecting to Internet with 5Gbit USB dongle [Solved (nofix)]

Dear all,

My fiber box speed is 2.5gbit download and 700mbit upload.
I am using Debian GNU/Linux on my laptop with an embedded 1Gbit network and 5Gbit USB3 dongle.

I use a CCR2004-1G-12S+2XS router with a CRS312-4C+8XG switch.
All devices are connected to the CRS312 configured as a switch and the CCR2004 as a router.
All running RouterOS 7.1 rc5 (same was happening with previous RC releases).
MTU is 1500 on all devices.

When connecting from a Synology NAS, I can reach fiber speed:
iperf3 -R -p 5205 -c ping.online.net

Connecting to host ping.online.net, port 5205
Reverse mode, remote host ping.online.net is sending


[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 2.54 GBytes 2.18 Gbits/sec 7 sender
[ 5] 0.00-10.00 sec 2.53 GBytes 2.18 Gbits/sec receiver

However, when using my laptop with USB 5Gbit dongle, I can only reach slow speed:

iperf3 -R -p 5205 -c ping.online.net
Connecting to host ping.online.net, port 5205
Reverse mode, remote host ping.online.net is sending
[ 5] 8.00-8.62 sec 11.1 MBytes 150 Mbits/sec

To reach download speed, I need to query 10 threads simultaneously:

iperf3 -R -P 10 -p 5205 -c ping.online.net
Connecting to host ping.online.net, port 5205
Reverse mode, remote host ping.online.net is sending
[SUM] 0.00-10.00 sec 2.39 GBytes 2.05 Gbits/sec 9422 sender
[SUM] 0.00-10.00 sec 2.38 GBytes 2.04 Gbits/sec receiver

However, I can reach 2.19 Gbit on one thread on local network, so the USB3 5gbit dongle is working.

iperf3 -R -c 10.90.40.4
Connecting to host 10.90.40.4, port 5201
Reverse mode, remote host 10.90.40.4 is sending


[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 2.55 GBytes 2.19 Gbits/sec 1984 sender
[ 5] 0.00-10.00 sec 2.54 GBytes 2.19 Gbits/sec receiver

If I connect using the embedded 1Gbit RJ-45 on my laptop, I can reach 1Gbit download.

iperf3 -R -p 5205 -c ping.online.net
Connecting to host ping.online.net, port 5205
Reverse mode, remote host ping.online.net is sending


[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 1.09 GBytes 939 Mbits/sec 1001 sender
[ 5] 0.00-10.00 sec 1.09 GBytes 933 Mbits/sec receiver

Connecting to the Internet using the USB3 5gbit dongle is tremendously slow and I would like to understand why.
At first, I suspected the USB3 dongle, but it is working as expected as I can iperf3 the local NAS.

So how can I debug to see what is going on?

Kind regards,
FF

To be honest, USB networking has never been very fast or reliable. It’s very much up to the quality of the driver and the USB controller.

testing shows that the USB3 dongle is limited to 3.5gbit. It is also quite unstable.
As written before, this kind of hardware is not suited to elaborate an analysis, so I am stopping here.

Did you try and disable “Auto Negotiation” ?

Good point, thanks.
Speed was negotiated automatically at 5Gb.
I will test with 2.5 Gb and report.

Good point, thanks.
Speed was negotiated automatically at 5Gb.
I will test with 2.5 Gb and report.
I think I will disable 5Gb to allow 2.5Gb and 1Gb speeds.

I connected at 2.5Gb speed autonegociation and the results in downloading are still bad:

iperf3 -R -p 5209 -c ping.online.net
Connecting to host ping.online.net, port 5209
Reverse mode, remote host ping.online.net is sending
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 92.0 MBytes 77.2 Mbits/sec 441 sender
[ 5] 0.00-10.00 sec 91.7 MBytes 77.0 Mbits/sec receiver

However, the results in uploading are good (I have 700Mbit upload):

iperf3 -p 9220 -c paris.testdebit.info
Connecting to host paris.testdebit.info, port 9220
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 805 MBytes 676 Mbits/sec 4 sender
[ 5] 0.00-10.02 sec 803 MBytes 673 Mbits/sec receiver

I am giving up with those USB dongles.

Downloading with the Intel gigabit Ethernet RJ-45 is 1Gb/s.

Qnap indicates that to reach 5Gb/s it is recommended to set jumbo frames with MTU 9000.
https://www.qnap.com/en-us/product/qna-uc5g1t

Does it sound reasonable?

here is the kernel information:
odinfo aqc111
filename: /lib/modules/5.10.0-8-rt-amd64/kernel/drivers/net/usb/aqc111.ko
license: GPL
description: Aquantia AQtion USB to 5/2.5GbE Controllers
alias: usb:v1C04p0015ddcdscdpic02isc06ip00in*
alias: usb:v1C04p0015ddcdscdpicFFiscipin*
alias: usb:v20F4pE05Addcdscdpic02isc06ip00in*
alias: usb:v20F4pE05AddcdscdpicFFiscipin*
alias: usb:v0B95p2791ddcdscdpic02isc06ip00in*
alias: usb:v0B95p2791ddcdscdpicFFiscipin*
alias: usb:v0B95p2790ddcdscdpic02isc06ip00in*
alias: usb:v0B95p2790ddcdscdpicFFiscipin*
alias: usb:v2ECApC101ddcdscdpic02isc06ip00in*
alias: usb:v2ECApC101ddcdscdpicFFiscipin*
depends: usbnet,usbcore
retpoline: Y
intree: Y
name: aqc111
vermagic: 5.10.0-8-rt-amd64 SMP preempt_rt mod_unload modversions
sig_id: PKCS#7
signer: Debian Secure Boot CA
sig_key: 4B:6E:F5:AB:CA:66:98:25:17:8E:05:2C:84:66:7C:CB:C0:53:1F:8C
sig_hashalgo: sha256
signature: 5E:BD:CD:64:11:70:24:9A:1C:EF:2C:1A:9E:15:34:A1:CA:B5:CB:FC:
CE:3F:A6:12:8A:13:19:25:F2:E7:E4:02:DB:65:1D:CA:07:1D:1C:50:
A7:E3:C3:26:AC:25:09:BF:C3:AD:A9:50:C5:8E:42:59:7E:D2:1C:D6:
9D:3D:70:E8:A0:04:92:99:1E:77:78:74:46:7A:7E:62:99:B5:26:62:
56:8A:EB:E8:D9:95:28:BE:26:E4:2C:F0:ED:BB:E5:92:2E:E0:0C:CD:
28:52:07:33:43:E2:BB:C8:D0:00:29:E7:8B:5D:85:F2:6F:CA:9D:24:
70:FF:72:B3:D2:56:36:05:C1:75:97:66:44:D8:89:C4:18:31:0F:2A:
57:E7:44:74:23:2C:59:C6:56:F9:4A:8A:B3:10:B3:47:C8:E6:EE:F7:
02:54:69:80:5F:78:68:01:21:47:45:E9:27:01:69:65:1B:C7:A6:D8:
22:43:13:B1:93:84:4A:55:A8:72:9C:59:1C:22:89:DE:0D:ED:E8:CC:
36:F6:7F:C2:A8:64:2A:C7:BB:5B:86:1C:85:EE:F8:3C:1D:B4:35:C5:
42:21:C2:95:B5:35:67:C5:C3:95:24:13:E4:B4:15:8A:0D:8D:00:82:
9E:52:CA:E9:BA:CB:65:9D:B7:FB:6E:BA:59:33:67:BB

Hmmm…
Whats the Model of your USB-Adapter?


At work we use SoNNeT Solo 10 G Thunderbolt 3 adapters
I used them with Mikrotik before , no problems

This is a QNAP QNA-UC5G1T USB 3 dongle:
https://www.qnap.com/fr-fr/product/qna-uc5g1t

Unfortunately, I don’t have a thunderbolt interface.
Maybe when I switch laptop…

I am no LinuxOS expert …

If this would be a Windows-Laptop , i would

  • Uninstall all AQC111U driver from Marvell
  • Install/Update USB-Drivers for Laptop
  • Reboot
  • Install latest AQC111U driver from Marvell
  • Reconnect Adapter
  • Test again

But i don’t know if Linux sufers from the same problems as Windows =)

No this is Debian GNU/Linux.
I never use Windows.

My laptop is a Lenovo x270 with USB 3.1 gen1.
I will get a x280 USB3 gen2 with USB 3.1 gen2 and 40 Gs/s thunderbolt.
This will allow me to use a 10Gb/s thunderbolt to sfp+ with fiber adapter.