Solved

Debian tools or ways to measure LAN speeds

Posted on 2013-05-14
3
366 Views
Last Modified: 2013-05-17
Anyone here know any good Debian tools or ways to measure LAN speeds on for instance a Samba share from one PC to another on the same LAN?
0
Comment
Question by:itnifl
3 Comments
 
LVL 21

Accepted Solution

by:
Mazdajai earned 125 total points
ID: 39166851
You can use iperf to measure network throughput, it is available for windows and linux.
0
 
LVL 68

Assisted Solution

by:woolmilkporc
woolmilkporc earned 80 total points
ID: 39167254
If you have an FTP server running on one of the machines and an FTP client on the other one (probably you do) then this command will show the network transfer rate, without reading or writing from/to disk:

put "| dd if=/dev/zero bs=1m count=1000" /dev/null

The example above will transfer 1 GB of binary zeroes and measure/display the transfer speed.

I once made a script around the above command:

#!/bin/bash
# --- Variables --- #
host=${1:-localhost}
mb=${2:-1000}
user=userid
pass=password

# --- Doit --- #
ftp -n $host <<EOF 2>/dev/null | awk -F"[()]" '/bytes/ {printf "FTP transfer speed \('$mb' MB\) to '$host': %g MB/s\n", $2/1024}'
quote user $user
quote pass $pass
verbose
put "| dd if=/dev/zero bs=1m count=$mb" /dev/null
bye
quit
EOF

Open in new window


Change userid and password to your values and specify the target host and the amount of megabytes to transfer on the commandline, like

myscript myhost 1000

(assuming you called the script myscript).

wmp
0
 
LVL 3

Assisted Solution

by:GhostInTheMacheen
GhostInTheMacheen earned 45 total points
ID: 39168100
Depending on how granular a view you want to have the are a number of tools available.

I usually use netstat (on Debian try "sudo netstat -antp") to get a per-port or per process listing and then use either iptraf or iftop to view the realtime network I/O on specific connections.

iftop is probably a little easier to jump into, but iptraf has a more configurable interface.

There's also a great application called nethogs that will give you a very simple (top like) per-process network I/O view with process name.

All three are available in the Debian apt repositories.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now