USB3.0 Ethernet adapter is below GbE on TK1

A USB3.0 GbE adapter AX88179 is connected to TK1’s USBH4 port.However, the bandwidth test shows it is less than 1Gbps. TK1 is configured to maximum performance by setting scaling_governor . The adapter can be almost 1Gbps when connected to X86 Ubuntu.

root@apalis-tk1:~# iperf3 -c 192.168.20.111
Connecting to host 192.168.20.111, port 5201
[  5] local 192.168.20.112 port 59233 connected to 192.168.20.111 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.04   sec  26.2 MBytes   212 Mbits/sec    0    143 KBytes       
[  5]   1.04-2.02   sec  26.2 MBytes   223 Mbits/sec    0    143 KBytes       
[  5]   2.02-3.02   sec  26.2 MBytes   221 Mbits/sec    0    143 KBytes       
[  5]   3.02-4.01   sec  26.2 MBytes   223 Mbits/sec    0    144 KBytes       
[  5]   4.01-5.01   sec  26.2 MBytes   221 Mbits/sec    0    144 KBytes       
[  5]   5.01-6.01   sec  26.2 MBytes   221 Mbits/sec    0    144 KBytes       
[  5]   6.01-7.04   sec  27.5 MBytes   223 Mbits/sec    0    144 KBytes       
[  5]   7.04-8.04   sec  26.2 MBytes   221 Mbits/sec    0    146 KBytes       
[  5]   8.04-9.03   sec  26.2 MBytes   221 Mbits/sec    0    146 KBytes       
[  5]   9.03-10.05  sec  25.0 MBytes   205 Mbits/sec    0    168 KBytes 



root@apalis-tk1:~# lsusb -t
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=tegra-xhci/2p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=ax88179_178a, 5000M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=tegra-xhci/6p, 480M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=tegra-ehci/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M

It is the same using latest AX88179 driver or the default one from kernel.
The read speed of USB3.0 USB stick on USBH4 could be up to 110.65MB/sec. So the USBH4 of TK1 should be enough for GbE bandwidth.

root@apalis-tk1:~# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads: 332 MB in  3.00 seconds = 110.65 MB/sec

Do you know how to get full speed of USB3.0 GbE on USBH4 of TK1?
Thanks!

hi @dominik.tx

I could reproduce this on my side. Could you have a look to this issue?
Thanks.

Hi @benjamin.tx

I tested again with all flavours of Bsp (except Torizon). The result is you get the best Results (285 MBit/s) with MainLine Kernel but these results are far away from maximum Speed (1GBit/s).

The adapter can be almost 1Gbps when connected to X86 Ubuntu.

The USB driver is not that well optimized for TK1, but probably you won’t able to get the Maximum Speed of this Ethernet Adapter on TK1.

What is your application?

Best regards,
Jaski

Hi @jaski.tx , thanks for your test. It is 3D location application and lots of data will be transferred between sensor and controller. If USB3.0 GbE adapter’s driver can not provide enough bandwidth, customer may turn to PCIe solution.

Hi @benjamin.tx: I think that a PCIe Adapter would be a better solution.

Best regards,
Jaski