LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-16-2007, 01:52 AM   #1
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Rep: Reputation: 32
Measuring network throughput


hi,
i want to measure the UP and DOWN throughput between two machines including all overheads(due to protocol like TCP/UDP). I am using fedora core 6. I have already tried ethereal to measure the UP and DOWN byte counts, which is without adding overhead due to protocols like TCP.
So please tell me how i can find out my throughput.

With thanks in advance.
 
Old 08-16-2007, 02:16 AM   #2
tajamari
Member
 
Registered: Jul 2007
Distribution: Red Hat CentOS Ubuntu FreeBSD OpenSuSe
Posts: 252

Rep: Reputation: 32
Quote:
Originally Posted by barunparichha View Post
hi,
i want to measure the UP and DOWN throughput between two machines including all overheads(due to protocol like TCP/UDP). I am using fedora core 6. I have already tried ethereal to measure the UP and DOWN byte counts, which is without adding overhead due to protocols like TCP.
So please tell me how i can find out my throughput.

With thanks in advance.
Try using iperf. http://dast.nlanr.net/Projects/Iperf/


Iperf command to use.

as server
command : iperf -s -u -i1
where:
-s - is for server
-u - udp traffic
-i - interval

as client
command : iperf -c your.ip.address -b2M -t360
where:
-c - client
-b2M - 2MB bandwidth
-t - time in seconds

You can look at the help file for your other options. Hope this helps.
 
Old 08-16-2007, 11:35 PM   #3
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Original Poster
Rep: Reputation: 32
hi tajamari,
thanks for ur quick reply.
But my requirement is that i have tcp connection between two machines and i want to transfer some file inbetween and then to findout the total packet in bytes going from and into the machine both directions separately.
So i think lperf will not help me.

Please suggest me if there is some alternate way to do so.
With thanks fro ur reponse again.
 
Old 08-17-2007, 04:49 PM   #4
framp
Member
 
Registered: Apr 2003
Location: Next to Stuttgart, Germany
Distribution: Debian, Mint, Raspbian
Posts: 131
Blog Entries: 5

Rep: Reputation: 27
Why don't you just use the difference of the result of ifconfig (TX bytes) before and after xmit of the data given there is no other traffic on the interface?
 
Old 08-21-2007, 11:18 AM   #5
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Original Poster
Rep: Reputation: 32
yea
measurment by "ifconfig" is one of the simplest and easiest way.
Thanks for your suggestion and help.
 
  


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
Measuring USB device throughput barunparichha Linux - Software 1 07-21-2007 02:04 AM
Measuring Network Traffic shipon_97 Linux - Networking 0 04-12-2006 11:13 AM
measuring network activities raees Linux - Networking 1 04-24-2005 01:26 PM
measuring network activities raees Linux - Software 2 04-24-2005 12:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:30 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