Skip to content

[NCP] Pinging non-RLOC IPs of OTBR (using NCP) fails #2918

@hemanth-silabs

Description

@hemanth-silabs

I have a OTBR on Raspi which is connected to a NCP. When I try to ping this OTBR from a FTD in the network, the ping fails.

> ping fe80:0:0:0:546c:e537:d819:10bd
ping fe80:0:0:0:546c:e537:d819:10bd
1 packets transmitted, 0 packets received. Packet loss = 100.0%.
Done
> ping fdef:a0ff:9149:1:69b7:afde:8967:9dbf
ping fdef:a0ff:9149:1:69b7:afde:8967:9dbf
1 packets transmitted, 0 packets received. Packet loss = 100.0%.
Done

This works fine when pinging a RLOC IP.

Looking at the logs, the ping fails because of a read/write error on the mTunFd.

2025-07-02T13:38:17.292247-04:00 raspi-169-224 otbr-agent[27642]: [INFO]-NETIF---: Packet from NCP (56 bytes)
2025-07-02T13:38:17.292932-04:00 raspi-169-224 otbr-agent[27642]: [WARN]-NETIF---: Failed to receive, error:Input/output error
2025-07-02T13:38:17.293282-04:00 raspi-169-224 otbr-agent[27642]: [INFO]-NcpSpin-: NcpSpinel: HandleValueIs: OK
2025-07-02T13:38:17.293589-04:00 raspi-169-224 otbr-agent[27642]: [INFO]-NcpSpin-: HandleNotification: OK

To Reproduce Information to reproduce the behavior, including:

  1. Git commit id: 622f5ec
  2. IEEE 802.15.4 hardware platform: EFR32MG21
  3. This is the build command used to build OTBR:
sudo INFRA_IF_NAME=eth0 NAT64=0 DNS64=0 WEB_GUI=0 REST_API=0 FIREWALL=0 OTBR_OPTIONS="-DCMAKE_BUILD_TYPE=Debug -DOT_THREAD_VERSION=1.4 -DOTBR_COVERAGE=ON -DOTBR_DBUS=ON -DOTBR_FEATURE_FLAGS=ON -DOTBR_TELEMETRY_DATA_API=ON -DOTBR_UNSECURE_JOIN=ON -DOTBR_TREL=ON -DOTBR_SRP_ADVERTISING_PROXY=ON -DBUILD_TESTING=OFF" ./script/setup
  1. Network topology
    There are only two devices in the network, OTBR and a router/child.

Expected behavior Pings should work for any OTBR IPs

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions