LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to calculate the average delay of the packets? (https://www.linuxquestions.org/questions/linux-software-2/how-to-calculate-the-average-delay-of-the-packets-940207/)

sowpra 04-17-2012 05:20 AM

How to calculate the average delay of the packets?
 
hi..!
can anyone please help us or give us an idea about how to solve this problem???

we want to know the average delay of the packets that are sent into the traffic...!

and also how to find out how many number of bits are sent in 1 minute????

thanks!

fukawi1 04-17-2012 05:34 AM

Quote:

we want to know the average delay of the packets that are sent into the traffic
What do you mean by delay? If you mean a ICMP echo request/reply pair, then using the ping command is the traditional method. [/quote]
Code:

gateway ~ # ping google.com
PING google.com (74.125.237.134) 56(84) bytes of data.
64 bytes from syd01s13-in-f6.1e100.net (74.125.237.134): icmp_seq=1 ttl=58 time=40.1 ms
64 bytes from syd01s13-in-f6.1e100.net (74.125.237.134): icmp_seq=2 ttl=58 time=38.4 ms


Quote:

and also how to find out how many number of bits are sent in 1 minute????
I recommend tools such as vnstat, ntop, and iftop. Also see, http://www.ubuntugeek.com/bandwidth-...for-linux.html

kitgerrits 04-17-2012 04:10 PM

Exactly what is your problem?
Lag, jitter and packet loss are different problems with different solutions.

You can measure lag with "ping" and find latencies along the entire path with "traceroute" and "mtr"
There are also sites like http://www.whichvoip.com/voip/speed_test/ppspeed.html and http://www.pingtest.net/ that will report your line quality

sowpra 04-18-2012 01:57 AM

Actually our project is traffic generator via wired networks...!

we are in a module which is traffic generating parameters...where we send packets with different ip,mac addresses and port numbers...!

now we want to know how many bits can be sent in 1 minute including the delay...so that we can enhance the speed of sending the packets by making use even of that delay time....
so that more number of packets can be sent with enhanced speed...!

also there is something like...if the packet size is less...we should be able to send more number of packets than the usual sending...we are completely new:(

and also i want to know how to add a timer in our program so that we can count how many packets are sent for 1 minute..that is when the timer reaches 60seconds!


All times are GMT -5. The time now is 01:24 PM.