1835947 Members
3656 Online
110088 Solutions
New Discussion

Re: network speed

 
haeman
Frequent Advisor

network speed

I would like to know the stability of network traffic , so I would like to test to transfer a large file regularly , and get the time that used to transfer the file , then I would know the stability when the different of time , please can advise the method or script can do the test ?
11 REPLIES 11
Prashanth Waugh
Esteemed Contributor

Re: network speed

Hi ,

You can check using lanadmin command.Pls check the man pages for different switches

Regards
Prashant
For success, attitude is equally as important as ability
Prashanth Waugh
Esteemed Contributor

Re: network speed

Hi ,
You can use the ntwork monitoring tool like
ndd,nettune,netmatrics

Regards
Prashant
For success, attitude is equally as important as ability
Matti_Kurkela
Honored Contributor

Re: network speed

First, choose a tool that can transfer the file, using whatever file transfer protocol is applicable to the situation. (You did not tell us which protocols are available, so we cannot do this for you.)

Any tool that encrypts the file during the transfer is sensitive to CPU workload in addition to network stability. In this situation, a simple transfer without encryption would be better. Without encryption the CPU workload of the transfer itself is very small.

The speed of unencrypted file transfer is usually limited by several things:
- speed of disk storage at the sending end
- network speed
- speed of disk storage at the receiving end
- if either machine has a very heavy I/O workload, that may affect the results.

Second, do whatever is needed to make that tool do the work without asking any user input.
- if you use rcp, set up the .rhosts file at the remote end
- if you use ftp, write the login/password info into the .netrc file at the local end and write a script that pipes the necessary GET/PUT commands to the ftp command.

Third, run your command/script and examine the output. If the tool you've chosen outputs the transfer time, you'll only need to capture that output. If it doesn't output anything useful, run it using the "time" prefix command, i.e.

time

MK
MK
Prashanth Waugh
Esteemed Contributor

Re: network speed

Hi haeman,

There are data coolection performace tool from HP ie. Measureware,perfview.
can u check is there measureware on ur system. u can check it in
#cat /var/adm/sw/swinstall.log |grep "measureware"
OR
# swlist |grep "measureware"

If its install on your system then i will explain how to draw the graphs from network matrics

Regards
Prashant
For success, attitude is equally as important as ability
Deepak Kr
Respected Contributor

Re: network speed

As matti given a good details here.

I would advice you to go through all details that can affect file transfer performance.

e.g.

Set your lan card to max possible (compatible with network)
example gigabit if using gigabit switches or routers or 100 mbs full duplex..

check lan card speed
#lanadmin -s -x lan

Auto may work also.

Utility you are going to use for file transfer
e.g.

ftp, sftp or scp or rcp or some other commercial tool like NDM

File size will also matter here like sometime file size differs in case.

Time when system is highly utilized or least used by other network related apps and users.



"There is always some scope for improvement"
Laurent Menase
Honored Contributor

Re: network speed

If you really want to measure only network, you can't use directly ftp or scp or rcp on a file, because they are using also the filesystem.

Then you have netperf

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/netperf-1.7.1/




haeman
Frequent Advisor

Re: network speed

I tried to use scp , can advise how can I get the duration that used to transfer the file ?

scp local_file remote_file
haeman
Frequent Advisor

Re: network speed

thx

I mean if I use scp to copy file to remote server , I would like to know how long it take to transfer the file , like below , it use 1 minute and 12 second to transfer the file , can advise how can I get the time ?

$scp local_file remote_file
testfile 100% 1380 17.3MB/s 01:12
TTr
Honored Contributor

Re: network speed

Run the scp via the time command. As in
$time scp local_file remote_file
haeman
Frequent Advisor

Re: network speed

I tried add >test_speed 2>&1 to scp command , but the file test_speed is empty , the file has been transferred , can advise what is wrong ? thx


$time scp local_file remote_file >test_speed 2>&1
TTr
Honored Contributor

Re: network speed

I tried the same command and I do get the 3 lines "real/user/sys" in the log file. I don't know what is happening in your case. Consider using the "-q" option of scp so that it does not clear any output buffers.