Relative Content

Tag Archive for cudp

how to locate the reason udp out of order in send device?

I’m using rk3588 device transfer some data to a device whice connected with a phy, and the device receive data out of order, like pack 0 pack 2 pack 1. But i’m sure i send it with 0 1 2 order with 1 thread, so i use tcpdump to locate where the data went wrong, and i found the data in tcpdump already out of order in the device, so the problem isn’t udp it self(i think), buf in the device.
i tried
enlarge the mem like sysctl -w net.core.wmem_default=33554423
sysctl -w net.core.wmem_max=33554423
ethtool -K eth tso off gso off tx off,
it doesn’t work.The dmesg looks everthing good, i want to locate the problem and solve(if there is any way),at least to localte the problem.
According to the research, lots of people suggest to use tcp, and add seq in my data, however it’s not possible to switch protocol in a mature product, and i already add seq. But my leader ask me to find out the reason, not just avoid the problem. I have no idear, help me.

Is it POSSIBLE to send a UDP packet from a windows machine and receive it on a Linux machine using C?

So I’ve been working on networking for my C application and began to wonder if I could make cross platform connections. The reason I’ve been wondering this is because I BELIEVE I’ve seen cross platform connections before. Currently, I don’t want to write out code for windows and linux without knowing if it will work, I also don’t want to write out code for windows and linux and then realize it’s possible, but I have to do it in a different way.