New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unstable ping RTT with ethernet ipv4 networking #7678
Comments
I could not reproduce this. Both IPv4 and IPv6 ping work consistently in my frdm-k64f.
|
Jukaar, did you connect the k64f board directly to Linux using cross cable? In my setup, board is on local lan and could receive many ARP broadcasts. But it always show spike in RTT after a couple of minutes. |
The problem is easily reproducible at my end when the ethernet hub between frdm-k64f and ping linux machine is also connected to local LAN. Once ping RTT goes up, then even when I disconnected the hub from local LAN, it does not recover. [b16394@lti openssl_ktls]$ ping 192.0.2.1 Once, I also got below error prints. shell> [dev/eth_mcux] [ERR] eth_rx: Failed to get fragment buf |
No, I have a switch between frdm and linux host. |
Do you really mean a hub (these are quite rare nowadays) or a switch, I was only testing with a switch. |
It is a switch. |
Increasing the network buffer count for frdm-k64f so that the device will not run out of memory so easily. Fixes zephyrproject-rtos#7678 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This could be related to possible network traffic in your system. Anyway, one option is to increase the number of buffers as you seem to run out of them. Please try #7775 if it helps the situation. |
Jukkar, I can understand that sometimes buffer may get exhausted. But once RTT has increased, it never recovers back to normal (even if I isolate the switch from local lan). |
This is #3132, right on. |
And this is #7571, based on its title. |
Increasing the network buffer count for frdm-k64f so that the device will not run out of memory so easily. Fixes #7678 Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
The ping response time suddenly degrades with ipv4/ethernet on nxp-frdm-k64f board.
To reproduce the issue, run samples/net/echo_client with CONF_FILE=prj_frdm_k64f.conf.
Run 'ping 192.0.2.1' from the machine configured with PEER_IPV4_ADDR=192.0.2.2.
For first 60-70 ping requests, the response time is about .2ms.
Then suddenly, ping response time degrades to more than 200ms and at times goes as high as 1s.
(The problem does not reproduce on qemu.)
The text was updated successfully, but these errors were encountered: