Results 1 to 2 of 2
  1. #1
    Pranil is offline Member
    Join Date
    Feb 2014
    Rep Power

    Question How to Calculate Data Transfer Speed

    Two machines are connected in a LAN & Sharing Files in between them.
    Everything is Working Fine but now i want to calculate the Copying Speed/data transfer Speed between them Please help

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: How to Calculate Data Transfer Speed

    • Establish a connection to the server.
    • Take a snapshot of the time (recommend using System.nanoTime())
    • Start the transfer. When the transfer is done (thru some means detected by the API),take another snapshot of the time.
    • Then close the connection.

    Data transfer speed is (bytes transmitted)/(elapsed time).

    Note: This gives average time for the transfer which includes any anomalies or impediments offered by
    the source and destination (such as busy end systems). To evaluate transfer rate of the network it is
    best to do it as close to the participating interfaces as possible (which is not usually readily available).
    Individual packets or groups of packets may be faster or slower depending on network dynamics.

    There also may be better ways supported directly by the API you are using.

    Last edited by jim829; 02-25-2014 at 08:13 PM.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Ftp Transfer speed
    By kuriozal in forum Networking
    Replies: 0
    Last Post: 08-22-2012, 11:10 PM
  2. pls..transfer data in socket
    By langkhach_codon in forum Networking
    Replies: 7
    Last Post: 03-28-2010, 06:21 AM
  3. Matlab data type implementation & speed
    By uzil24 in forum Advanced Java
    Replies: 3
    Last Post: 10-24-2009, 03:00 AM
  4. Replies: 4
    Last Post: 10-23-2008, 12:11 AM
  5. Fast Data Transfer 0.6.4
    By levent in forum Java Software
    Replies: 0
    Last Post: 05-21-2007, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts