I have an app that sends messages over UDP in some known format. I'd like to know the rate at which these messages are sent. To be clear, I could care less about the datarate - it's a loopback, so it's somewhere near infinity + 1 - what I need to know his how often complete messages go out.
feedback
|
|
You should look at using TCPDUMP and WireShark to capture the data and then analyze it. If all you care about is packet rates then running On Linux:
would give you an idea in 1 second intervals but there are similar flags on most modern OS' | |||||||
feedback
|
|
If by "message" you mean "datagram", then the answer is 100%. UDP datagrams are either sent or not, and they either arrive or do not. You should never The speed of the loopback is not infinite: it is limited by the CPU. If you send data too fast, the outgoing UDP buffer will fill up. Then when you try to A more relevant question is the percentage of datagrams sent which are actually received. At rates well below CPU saturation, this should be 100% on the loopback. But when approaching CPU saturation, or if the receiver is slow in reading the datagrams, it can become arbitrarily low. | |||
feedback
|
