Click to See Complete Forum and Search --> : Rate Measurement


rsst
May 6th, 2009, 12:31 PM
Hello every1

I'm sending UDP Packets from 1 java program to another. I want to measure the rate at which these packets are being sent. I mean number of packets sent per second. What can be the logic for that???? Can somebody help by giving the code???

skval
May 6th, 2009, 03:47 PM
Hello, i'm not a java programmer, so i'm not sure how it's going in this language, so i'll take a shot.
I assume that the java language handle by itself in the process of creating the actual udp packets, and you(the programmer) just send the data.
So what you can do is to monitor the connection using a packet sniffer, you can either make one or use existing one.
there are many packet sniffers in the market, quick search in google will reveal dozens of them.