Networking handbook · Chapter 22

Network units, bandwidth and transfer time

A 100 Mbit/s link and a file marked 100 MiB carry different kinds of numbers. Converting both to compatible units gives a transfer estimate you can compare with an application log.

In this guide14 sections

Introduction

A 100 Mbit/s link and a file marked 100 MiB carry different kinds of numbers. Converting both to compatible units gives a transfer estimate you can compare with an application log.

Formula and calculation

Ideal data transfer duration
time = data size in bits / sustained rate in bits per second

The calculation converts the selected size and throughput to compatible bit units, then reports seconds, minutes, and hours. It assumes the entered effective rate stays constant; protocol setup, retransmission, and overhead can add time.

data size · bits after unit conversion
amount transferred
rate · bits/second
assumed sustained throughput

Distinguish an amount from a rate

A bit is one binary digit. A byte contains eight bits. File tools commonly report bytes, while interface rates commonly use bits per second. A size has no time dimension until you divide it by a rate.

Decimal prefixes advance in thousands. A megabyte is 1,000,000 bytes. Binary prefixes advance in powers of 1024. A mebibyte is 1,048,576 bytes. Carry the unit alongside the number through each step.

Which bandwidth are you estimating?

A link rate is a capacity at a stated layer. Throughput counts data transferred over an interval at the layer you measure. Application goodput counts the useful delivered bytes. Headers, contention and retransmissions consume part of the available capacity.

For a download estimate, use a sustained application rate in the download direction when available. A brief burst near the beginning of a transfer can give an optimistic projection.

Time in flight and data in flight

Ideal transfer time in seconds equals data bits divided by bit/s. A related calculation answers how much data a continuously busy path could hold in flight. Multiply its bit rate by its round-trip time in seconds. A 100 Mbit/s path with a 40 ms RTT has a bandwidth-delay product of 4,000,000 bits, or 500,000 bytes.

Diagram

  1. File size in MiB
  2. Bytes × 8
  3. Bits ÷ sustained bit/s
  4. Transfer seconds
Convert the numerator before dividing. The units cancel to seconds.

Worked examples

Budget time for a 250 MiB update

  1. Convert 250 MiB to 262,144,000 bytes, then multiply by eight to get 2,097,152,000 bits.
  2. At a constant 100,000,000 bit/s the ideal duration is 20.97152 seconds, about 20.97 seconds.
  3. If the measured application rate is 80 Mbit/s, the same calculation gives 26.2144 seconds. A separate connection setup or disk delay can add time to the user's wait.

Network Unit Converter: Express a 64 MiB object in decimal units

  1. Multiply 64 by 1,048,576 to obtain 67,108,864 bytes.
  2. Divide by 1,000,000 for 67.108864 MB. The number rises because a megabyte is smaller than a mebibyte.
  3. Multiply the exact byte count by eight for 536,870,912 bits. Use that count with a link rate in bits per second.

Reference table

Network units, bandwidth and transfer time reference
QuantityExact valueUse
1 MB1,000,000 BDecimal file size
1 MiB1,048,576 BBinary file size
1 Mbit/s1,000,000 bit/sDecimal transfer rate
1 MB/s8 Mbit/sByte rate expressed as a bit rate

Configuration example

  • Write a rate limit with its units in the change record, for example 80 Mbit/s downstream.
  • Record whether a dashboard counts interface bytes or application bytes, plus the sampling interval. Keep that definition alongside any target.

Common mistakes

  • Dividing file bytes by bits per second without the factor of eight.
  • Subtracting protocol overhead a second time when the chosen rate already measures delivered file bytes.

Frequently asked questions

What does a 12 MB/s file copy use in bit/s?

With decimal MB/s it delivers 96 Mbit/s of file data. The link may carry additional bytes for headers and retransmissions.

Does twice the link rate halve every task's completion time?

Only the rate-limited part scales that way. Setup, server processing and waiting for requests and replies may contribute much of a small task's duration.

Why is a megabyte not the same as a megabit?

A byte is eight bits. Decimal prefixes define 1 MB as 1,000,000 bytes and 1 Mb as 1,000,000 bits, so confusing the symbols changes a transfer estimate by a factor of eight.

What is the difference between MB and MiB?

MB uses a decimal factor of 1,000,000 bytes; MiB uses a binary factor of 1,048,576 bytes. State the unit system when reporting sizes.

Will an advertised bit rate equal download throughput?

Usually not. Protocol headers, acknowledgments, retransmissions, shared capacity, server limits, and storage can reduce application payload throughput.

Why does a transfer-time estimate need a rate and a size?

Time is data quantity divided by transfer rate after both are expressed in compatible units. The result assumes the entered average rate is sustained for the transfer.

Is 1 GB always the same number of bytes as 1 GiB?

No. A decimal gigabyte is 1,000,000,000 bytes, while a binary gibibyte is 1,073,741,824 bytes. Read the prefix used by the application or storage device.

Why do download tools show a lower rate than an access link's advertised rate?

The advertised rate is often a link capacity in bits per second. Application data is affected by protocol overhead, contention, server limits, congestion, and unit conversions.

What is goodput?

Goodput is useful application payload delivered per unit time, excluding retransmitted or protocol-overhead data. It can be lower than throughput measured at a lower layer.

Does multiplying bytes by eight give an exact download time?

It gives the bit quantity for the payload. Divide by a sustained payload rate in bits per second for an ideal estimate; real transfers also experience overhead, rate variation, and setup delays.

Why do network rates use bits per second while files use bytes?

Network link rates conventionally describe bits transmitted per second, while file sizes commonly count bytes. Multiply bytes by eight before comparing them with a bit rate.

What is the difference between a decimal and binary prefix?

Decimal prefixes use powers of 1,000, while binary prefixes use powers of 1,024. For example, MB and MiB do not represent the same byte count.

Can a transfer calculator predict an exact completion time?

No. It estimates payload divided by an assumed sustained rate. Rate changes, protocol overhead, congestion, server speed, storage, and setup all affect real elapsed time.

What is link utilization?

It is the fraction of a link's capacity occupied over an interval. High utilization can increase queueing delay and loss, depending on buffering and traffic patterns.

Why should a data unit label include the prefix and case?

Symbols such as Mb, MB, MiB, and Mbit/s distinguish bits, bytes, and decimal or binary scales. Case and prefix alter the quantity substantially.

Further learning and references