Could some one please guide what should be the conversion units when calcuating Disk Transfer time and Transmission time? For disk transfer time I have noticed that in many solutions powers of 10 and 2 are interchangeably used based on convinience of calcuation in many test series. Many times packet data/ sector size is measured in powers of 10 instead of 2. And the deviation sometimes falls outside the acceptable range.
Idealy data packets are measured in powers of 2 and Bandwidth is measured in powers of 10. Conversion between sec/msec/us/ns occurs in powers of 10
For example, Packet Size 2KB, Bandwith= 10 MB/sec Transimission time = (2 * (2^10))/ ( 10 * 10^6) = 2.048 * 10^-4 sec
= 2.048 * 10^-4 * 10^3 msec ( converting to msec)
= 0.2048 msec
Similarly, Disk Transfer time for 8KB sector with rate of 4MBps. What should be the Soultion?
Ideally the smallest sector is 512 B and just like data it should be considered in powers of 2.
Time = (8 * 2^10)/ ( 4 * 10^6) sec = 2.048 * 10^-3 sec = 2.048 msec
or
Time = ( 8 * 10^3) / ( 4 * 10^6) = 2 * 10^-3 sec = 2 msec
Need to confirm the following -
Units for Disk tansfer rate? Should M be considered as 10^6 or 2^20 ?
Units for Packet Size? 8KB as 8*10^3 or 8*10^6 ?
Units for Sector Size? 8KB as 8*10^3 or 8*10^6 ?
Units for Bandwidth? 8MB as 8*10^6 or 8*10^20 ?
Below is one of the wiki link where I found more information on this but it is complicated as they have classfied the units based on vendor, disk type( floppy, hard disk etc)
https://en.wikipedia.org/wiki/Binary_prefix
https://en.wikipedia.org/wiki/Data_rate_units