T
T
Talik2016-01-26 17:41:41
Java
Talik, 2016-01-26 17:41:41

How to measure the speed of copying a file over a network between Unix machines programmatically in Java?

There are about 50 Unix servers. It is
necessary to check the speed of copying a file over the network from one of the machines to all the others.
Tell me how to do it? (libraries, algorithm).

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-01-26
@petermzg

You write Server and client application.
You install the server application on all tested machines.
You connect from the client and send a couple of bytes of the file volume, and then the file.
The client receives the size and notes the start time. Receives the entire volume of data, calculates the time difference between start and end. Calculates speed. Sends back a value.
You can also send a client time stamp at the beginning and end of the stream to see the difference in the time between the duration of the upload and the duration of the receipt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question