booting up xavier, I can see the USB-device-ethernet
Xavier side
l4tbr0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.55.1 netmask 255.255.255.0 broadcast 192.168.55.255
inet6 fe80::1 prefixlen 128 scopeid 0x20
inet6 fe80::3cb4:a4ff:fe42:c92a prefixlen 64 scopeid 0x20
ether 52:25:9b:65:b8:81 txqueuelen 1000 (Ethernet)
RX packets 1561229 bytes 2341069941 (2.3 GB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 778082 bytes 40469865 (40.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
On my X86 host side,
sudo ifconfig enp0s20u5 192.168.55.2 netmask 255.255.255.0
enp0s20u5 Link encap:Ethernet HWaddr d6:10:02:48:fe:5f
inet addr:192.168.55.2 Bcast:192.168.55.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:593304 errors:0 dropped:0 overruns:0 frame:0
TX packets:1190175 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30901238 (30.9 MB) TX bytes:1853900111 (1.8 GB)
The on Xavier side, run
nc -v -l 2222 > /dev/null
On host side, run
gtang@ws4:~$ dd if=/dev/zero bs=1024K count=512 | nc -v 192.168.55.3 2222
Connection to 192.168.55.3 2222 port [tcp/*] succeeded!
512+0 records in
512+0 records out
536870912 bytes (537 MB, 512 MiB) copied, 7.98383 s, 67.2 MB/s
I can only got 67.2MB/s speed, that is 10% what I had hoped.
Is this the expected speed of Xavier USB 3.1 device mode can get?
Limitation is on hardware level, or a software/kernel issue?
I checked USB layer, seems it is running at correct mode. It is 5000Mb/s,
so I should get around 5000/8 = 625MB/s, instead of 67.2MB/s.
gtang@ws4:~$ lsusb -t
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
|__ Port 5: Dev 3, If 0, Class=Communications, Driver=rndis_host, 5000M
|__ Port 5: Dev 3, If 1, Class=CDC Data, Driver=rndis_host, 5000M
|__ Port 5: Dev 3, If 2, Class=Communications, Driver=cdc_acm, 5000M
|__ Port 5: Dev 3, If 3, Class=CDC Data, Driver=cdc_acm, 5000M
|__ Port 5: Dev 3, If 4, Class=Mass Storage, Driver=usb-storage, 5000M
|__ Port 5: Dev 3, If 5, Class=Communications, Driver=cdc_ether, 5000M
|__ Port 5: Dev 3, If 6, Class=CDC Data, Driver=cdc_ether, 5000M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/14p, 480M
|__ Port 4: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 4: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 13: Dev 85, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 13: Dev 85, If 1, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 13: Dev 85, If 2, Class=Human Interface Device, Driver=usbhid, 12M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M