LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-17-2012, 05:20 AM   #1
sowpra
LQ Newbie
 
Registered: Feb 2012
Posts: 23
Blog Entries: 1

Rep: Reputation: Disabled
Question 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!
 
Old 04-17-2012, 05:34 AM   #2
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 193Reputation: 193
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
 
Old 04-17-2012, 04:10 PM   #3
kitgerrits
LQ Newbie
 
Registered: Dec 2008
Posts: 23

Rep: Reputation: 1
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
 
Old 04-18-2012, 01:57 AM   #4
sowpra
LQ Newbie
 
Registered: Feb 2012
Posts: 23

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Question

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!

Last edited by sowpra; 04-18-2012 at 02:01 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to calculate throughput and delay characteristics for HCCA stud17 Linux - Newbie 1 11-09-2011 02:59 PM
Problem with calculate loss packet and Mean delay in a a trace file of wimax maymouna Linux - Newbie 3 07-05-2011 06:06 PM
calculate the average of cells in columns in separate txt files Mike_V Programming 16 05-16-2009 04:37 AM
Calculate average from csv file in shell script khairilthegreat Linux - Newbie 5 11-21-2007 12:57 PM
How to count and make delay and drop packets forgely fakhrul Linux - Networking 2 04-12-2006 03:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration