zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.86k stars 6.62k forks source link

IPSP (IPv6 over BLE) example stop working after a short time #46073

Closed jmrua closed 2 years ago

jmrua commented 2 years ago

Describe the bug IPSP example after connection crashes after a few exchanged packets. Similar to #5289

Platform

To Reproduce

  1. Flash the target with the master branch IPSP example
  2. Execute the following commands with root privileges on Linux host:
    modprobe bluetooth_6lowpan
    echo "connect  <nRF MAC> <type>" > /sys/kernel/debug/bluetooth/6lowpan_control
    ip address add 2001:db8::2/64 dev bt0
  3. execute anything to send a few packets to the nRF, for example a ping
    ping -I bt0 2001:db8::1

Impact After 10 packets received, the connection will crash and the nRF board will not be able to reconnect to the host until a reset of the board is performed.

Logs

jmrua commented 2 years ago

After performing some tests, it seems that the problem may be due to the saturation of the L2CAP transmission buffer, modifying CONFIG_BT_L2CAP_TX_BUF_COUNT it seems that, although it still does not work correctly, it can receive and send more packets before blocking.

With CONFIG_BT_L2CAP_TX_BUF_COUNT=128 blocks after over 200 packets.

kruithofa commented 2 years ago

@alwa-nordic please see if you can reproduce this behaviour

github-actions[bot] commented 2 years ago

This issue has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this issue will automatically be closed in 14 days. Note, that you can always re-open a closed issue at any time.