LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-29-2012, 04:02 AM   #1
kevinyeandel
Member
 
Registered: Jun 2008
Posts: 49

Rep: Reputation: 16
network perf testing


Hi

Want to script something today to get network stats between various vm's running linux in different data centres.

scp and ping are two things I intend to use to get some metrics.

Going to trigger something every minute to pull a fairly small file across and get some timings.

Any tips/suggestions from you guys on improving how I should do this?

I cant deploy code to some servers as they are subject to regulation so will be pulling to unregulated servers and I wont have root to any of them.

Thanks in advance.

Kevin
 
Old 06-29-2012, 12:56 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: San Bernardino, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 261

Rep: Reputation: 52
Greetings,

Well, to start with, I can see you using the "bing" utility (no relation to the search engine) to check what the actual bandwidth between boxes is. As an example:
Code:
dev1 ~ # bing 192.168.2.221 192.168.2.250
BING	192.168.2.221 (192.168.2.221) and 192.168.2.250 (192.168.2.250)
	44 and 108 data bytes (1024 bits)
192.168.2.250: minimum delay difference is zero, can't estimate link throughput
192.168.2.250:  6.781Mbps 0.151ms 0.147461us/bit
192.168.2.250:  6.606Mbps 0.155ms 0.151367us/bit
192.168.2.250:  6.400Mbps 0.160ms 0.156250us/bit
192.168.2.250:  6.360Mbps 0.161ms 0.157227us/bit
192.168.2.250:  6.440Mbps 0.159ms 0.155273us/bit
192.168.2.250:  6.400Mbps 0.160ms 0.156250us/bit
192.168.2.250:  6.440Mbps 0.159ms 0.155273us/bit
192.168.2.250:  6.400Mbps 0.160ms 0.156250us/bit
192.168.2.250:  6.360Mbps 0.161ms 0.157227us/bit
192.168.2.250:  6.400Mbps 0.160ms 0.156250us/bit
192.168.2.250:  6.360Mbps 0.161ms 0.157227us/bit
192.168.2.250:  3.048Mbps 0.336ms 0.328125us/bit
192.168.2.250:  3.122Mbps 0.328ms 0.320313us/bit
^C
--- 192.168.2.221 statistics ---
bytes   out    in   dup  loss	rtt (ms): min       avg       max   std dev
   44  5632  5632          0%	        0.013     0.014     0.057     0.001
  108  5632  5632          0%	        0.012     0.014     0.018     0.001

--- 192.168.2.250 statistics ---
bytes   out    in   dup  loss	rtt (ms): min       avg       max   std dev
   44  5632  5632          0%	        0.472     0.669     7.963     0.121
  108  5631  5631          0%	        0.800     0.824     1.651     0.031

--- estimated link characteristics ---
host			          bandwidth       ms
warning: rtt big 192.168.2.221 0.012ms < rtt small 192.168.2.221 0.013ms
192.168.2.250                        3.122Mbps       0.459
dev1 ~ #
Now that was an interactive usage where I had to Ctrl+C out of it, but you should get the idea. There are ways of using bing programmatically, to include using a specific file to transfer to check the network usage. Check the man page for the options. Also, you really only need to do it from the box that has bing installed. The other boxes don't need any additional software installed.

HTH. Let us know.

Last edited by ShadowCat8; 06-29-2012 at 12:58 PM.
 
Old 06-29-2012, 02:47 PM   #3
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
iperf might be useful, also D-ITG generates lots of lovely packet statistics, but you'll probably have to compile it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what does the columns of perf report (command of perf tool in linux) signifies? viv05 Linux - Software 2 06-01-2012 06:25 AM
how can i install this package, perf? yumyumyum Linux - Newbie 2 01-22-2012 08:34 AM
Understanding i-perf network statistics report bzlaskar Linux - Networking 0 02-15-2007 03:18 AM
5.1 perf monitors other than topas dthacker AIX 3 10-21-2004 08:35 AM
How much is perf. effected by Celeron ttwiv Linux - Hardware 6 04-20-2004 04:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:48 PM.

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