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
native stops receiving packets after a while #298
Comments
Could you try this in one of the branches (native_syscalls / issue_161) again? |
@benpicco bump |
Thanks a lot! And yes, the segfaults are a different issue and I'm trying to fix them as well. It's a little difficult to pinpoint though as makecontext probably is not the cause but the victim of the underlying problem. BTW: |
Well, I'm sending HELLO messages every 2s (actually 1s + random(0…1000) ms so they aren't all sending at the same time) and Topology Control messages every 5s (again 4s + 1s jitter). Only TC messages are forwarded instantly by each node that hasn't already received it. I've tried
but it's still crashing. |
100ms delay should be enough... did you verify the rule actually worked? (For example set the delay to to something noticeable like 2 seconds and watch the tap interfaces with tcpdump...) |
Yes, ping between two neighbors goes from ~388µs to 200388µs. |
Ah right, my fault .. maybe drastically reducing the bandwidth ... ;-) |
Ah thank you. |
I'm not sure I follow, but spreading events (random delay) over a bigger time frame (reduced bandwidth) should reduce the probability of simultaneous events, right? (Unless the medium is saturated.) |
True, but the events are already randomized over a 1s interval, which makes me wonder if the cause of this is really a collision (should be much more unlikely) or something else. |
You should be able to see it with tcpdump.. |
When I run several native processes in desvirt, they all will stop receiving any UDP packets after a while.
I've tried the suggested
ping -I tap0 -f -i 200 10.0.0.1
but still most processes will cease receiving anything after a minute or so, unless they #288 before. (Actually they won't be affected by #288 if they stop receiving packets)The typical output of ps in such situation looks like this:
On a 'healthy' node,
udp_packet_handler
,ip_process
andlowpan_transfer
will bebl rx
instead ofbl reply
.The text was updated successfully, but these errors were encountered: