09-05-2021 03:28 PM
I am using N321 USRP for project. The host runs Ubuntu 18.04 and UHD 4.1.0. There are two 10G SFP cables and one 1G RJ45 cables. In host, when running ifconfig command, there is no any error or packet drop on eth0 (1G RJ45), enp1s0f0 and enp1s0f1 (10G SFP) interfaces. But when I use SSH to log into N321, I find packet dropped in USRP.
I have configured MTU=1500 for 1G interface and MTU=9000 for SFPs in host and N321.
Below is the ifconfig result in N321:
root@ni-n3xx-320CAAB:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:80:2F:32:36:BA
inet addr:192.168.10.165 Bcast:192.168.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:618374 errors:0 dropped:11485 overruns:0 frame:0
TX packets:193714 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:39776733 (37.9 MiB) TX bytes:14546432 (13.8 MiB)
Interrupt:27 Base address:0xb000
int0 Link encap:Ethernet HWaddr AE:CD:BA:E1:CF:96
inet addr:169.254.0.1 Bcast:169.254.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:456 errors:0 dropped:0 overruns:0 frame:0
TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37392 (36.5 KiB) TX bytes:2770 (2.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:89 errors:0 dropped:0 overruns:0 frame:0
TX packets:89 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7480 (7.3 KiB) TX bytes:7480 (7.3 KiB)
sfp0 Link encap:Ethernet HWaddr 00:80:2F:32:36:BB
inet addr:192.168.12.2 Bcast:192.168.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:6239 errors:0 dropped:804 overruns:0 frame:0
TX packets:5669 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:18466697 (17.6 MiB) TX bytes:18417536 (17.5 MiB)
sfp1 Link encap:Ethernet HWaddr 00:80:2F:32:36:BC
inet addr:192.168.13.2 Bcast:192.168.13.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
RX packets:24868 errors:0 dropped:796 overruns:0 frame:0
TX packets:24613 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:20486915 (19.5 MiB) TX bytes:19611643 (18.7 MiB)
Below is ifconfig result in host:
user@USRP-SERVER:~$ ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.10.143 netmask 255.255.0.0 broadcast 192.168.255.255
inet6 fe80::b27b:25ff:fe1d:9e4e prefixlen 64 scopeid 0x20<link>
ether b0:7b:25:1d:9e:4e txqueuelen 1000 (Ethernet)
RX packets 5604 bytes 416435 (416.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 404 bytes 68556 (68.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16 memory 0xd2100000-d2120000
enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 192.168.12.1 netmask 255.255.255.0 broadcast 192.168.12.255
inet6 fe80::faf2:1eff:fe42:dddc prefixlen 64 scopeid 0x20<link>
ether f8:f2:1e:42:dd:dc txqueuelen 1000 (Ethernet)
RX packets 294 bytes 35184 (35.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 395 bytes 37148 (37.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp1s0f1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 9000
inet 192.168.13.1 netmask 255.255.255.0 broadcast 192.168.13.255
inet6 fe80::faf2:1eff:fe42:dddd prefixlen 64 scopeid 0x20<link>
ether f8:f2:1e:42:dd:dd txqueuelen 1000 (Ethernet)
RX packets 9 bytes 2228 (2.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 72 bytes 7983 (7.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 21071 bytes 1497110 (1.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 21071 bytes 1497110 (1.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Could anyone shed light on the possible reason for packet drop in USRP? How to fix it?
Thanks and kind regards,
Hongwei