manitou
Senior Member+
I realized after it was uneditable that the UDP send speed is a value > 100Mbps. I’m sure there’s a good reason for that…
since UDP is unreliable (packets can be damaged ,lost, duplicated, arrive out of order) and the OS may buffer output, it is best to measure UDP performance at the receiver.
attached are some C test programs from the 1980's -- you'll get lots of warnings from gcc. Despite the warnings, programs still build on linux. udpsrc is a rate-controlled UDP sender. ttcp is vintage 1984
I fixed my udp.parsePakcet() problem by adding a 1 second timeout and delaying less than 10 seconds in my udp_ntp() test. Often the first UDP packet is not sent as the lwIP stack awaits ARP resolution (observe with wireshark).
With udp_ntp() test you can measure crystal drift of your T4.1 (rollover at 4295 seconds)
Code:
ntp 3841126089.265207 rtt 466 us -5.61 ppm over 440 s
ntp 3841126099.265624 rtt 345 us -5.62 ppm over 450 s
ntp 3841126109.266149 rtt 462 us -5.61 ppm over 460 s
...
Attachments
Last edited: