network speed between servers

Posted on 2009-02-24
Last Modified: 2013-12-23
Recently we have been seeing some slow response to requests and found that the network connectivity speed was one issue to address. Is there a way we can monitor the network speed between the servers.

We do not want to install any third party softwares. Any shell scripts / OS tools is what we are looking for.
Question by:kiranswaminathan
    LVL 40

    Expert Comment

    you can check the switch port setting and the servers nics' settings. You may monitor switch ports stats for those servers and this depends on you switch capabilities
    LVL 68

    Assisted Solution

    a simple way to test FTP speed by means of FTP without actually storing data on the target host is this -
    - start an FTP session to your host and issue
    put "| dd if=/dev/zero bs=1m count=1000" /dev/null
    this will transfer 100 MB to your host, and FTP will report the network speed.
    Besides that there is iperf, a very small and simple, yet useful tool to measure network speed -
    LVL 40

    Expert Comment

    if you do scp between two servers then you can see the rate at which files are transferred. This gives you some idea about the speed between them. FTP also shows stats when using hash command
    LVL 39

    Expert Comment

    Netio from
    does exactly this.

    If will show you the transfer rate under several conditions (small/large packet, tcp/udp etc.).

    Runs on Unix/Windows/VMS/DOS
    Either TCP/IP, UDP/IP or NETBIOS
    LVL 39

    Expert Comment

    (I hit enter a tad to quick)..

    NETIO can be considered 3rd party,  but it will show things like misconfigurations in adapters that would otherwise be hard to track (like misnegotiated auto configured interfaces or hard-set half/full duplex mismatches etc.)

    Source code of the tool is available on the named site.
    LVL 32

    Expert Comment

    by:Kamran Arshad

    You can use any of the below applications to check throughput;

    Iperf      Open-Source
    ttcp      Open-Source
    Netperf      Open-Source
    NetQoS      Propriety
    Qcheck      Propriety
    simplenetsoftware      Propriety
    Bandwidth Meter      Propriety

    Personal recommendation is using either Iperf or QCheck.
    LVL 68

    Accepted Solution


    in case you really don't want to install any third-party software,
    here is a small script using the FTP command I suggested im my first post.
    It doesn't need a local file, nor will it write a remote file.
    You can give the target hostname as 1st parameter (default: localhost)
    and the number of megabytes to transfer as the 2nd one (default: 100).
    If the 3rd parameter is any nonblank character except "R",
    the logfile /tmp/ftpspeed.[pid] will NOT be removed.
    A drawback of the script is that it needs a clear text password.
    I experimented a bit with formatting the speed value FTP reports,
    but of course you can do with it what you like.
    btw. you don't need 'hash' to have FTP report the transfer speed, 'verbose' is sufficient.


    # --- Variables --- #
    # --- Doit --- #
    ftp -n $host <<EOF >/tmp/ftpspeed.$$ 2>/dev/null 
    quote user $user
    quote pass $pass
    put "| dd if=/dev/zero bs=1m count=$mb" /dev/null
    # --- Make a nice MB value. Not very elegant, could be improved a lot. --- # 
    a=$(awk -F"(" '/bytes/ {print $2}' /tmp/ftpspeed.$$ | cut -d")" -f1)
    le=$(echo $a | cut -d"+" -f2 | cut -d" " -f1)
    val=$(echo $a | cut -d"e" -f1 |tr -d ".")000000
    MB=$(echo $val | awk "{print substr(\$1,1,$le+1)/1024}")
    # --- Output --- #
    echo $(date) - FTP transfer speed \($mb MB\) to $host is $MB Megabytes/sec
    # --- Cleanup --- #
    [ ${3:-R} == R ] && rm /tmp/ftpspeed.$$

    Open in new window


    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Article by: IanTh
    Hi Guys After a whole weekend getting wake on lan over the internet working, I thought I would share the experience. Your firewall has to have a port forward for port 9 udp to your local broadcast x.x.x.255 but if that doesnt work, do it to a …
    If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    733 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

    21 Experts available now in Live!

    Get 1:1 Help Now