When we measure file transfer speeds over a network, we often use bits rather than bytes. Common units include kilobits per second (Kb/s), megabits per second (Mb/s), and gigabits per second (Gb/s).
These use the decimal system, so 1 kilobit = 1000 bits, 1 megabit = 1000 kilobits, and 1 gigabit = 1000 megabits. This is different from how we measure file sizes on storage devices (which use binary prefixes like kibibytes and mebibytes).
To work out things like how long it will take to download a file or what size a file is based on speed and time, we often have to combine both sets of units in expressions.
That might mean converting a file size in bytes into bits, or changing megabits per second into bits per second, so that all units match in the calculation.
We can convert between the different units by doing the following (step-up):
From |
To |
Expression |
Explanation |
bits |
kilobits |
number of bits ÷ 1000 |
1000 bits = 1 kilobit |
kilobits |
megabits |
number of kilobits ÷ 1000 |
1000 kilobits = 1 megabit |
megabits |
gigabits |
number of megabits ÷ 1000 |
1000 megabits = 1 gigabit |
We can also do the opposite operations and set-down between the different units:
From |
To |
Expression |
Explanation |
gigabits |
megabits |
number of gigabits × 1000 |
1 gigabit = 1000 megabits |
megabits |
kilobits |
number of megabits × 1000 |
1 megabit = 1000 kilobits |
kilobits |
bits |
number of kilobits × 1000 |
1 kilobit = 1000 bits |
When working on GCSE questions surrounding file transfer you need to be aware of the following formula for working out total transfer time.
Transfer Time (seconds) = Bandwidth (bits per second) / File Size (bits)
The formula may need to be rearranged, for example if you were asked to calculate the bandwidth based on transfer time and file size.
Examples
When working with GCSE exam questions you must remember that file size is represented in factors of 1024 and that bandwidth is represented in factors of 1000. Often you step down file size and bandwidth down to bits before dividing or multiplying to the requested unit.
Calculating transfer time: A file is 10 MiB in size. The network speed is 20 Mb/s. Write an expression to calculate how long it will take to transfer the file.
Steps:
Answer (Expression):
(10 × 1024 × 1024 × 8) ÷ (20 × 1000 x 1000)
Calculate Bandwidth: A 25 MiB file takes 10 seconds to transfer. Write an expression to calculate the bandwidth in Mb/s.
Steps:
Answer (Expression):
(25 × 1024 × 1024 × 8) ÷ 10 ÷ 1000 ÷ 1000
Calculate File Size: A download takes 15 seconds at 50 Mb/s. Write an expression to calculate the file size in MiB.
Steps:
Answer (Expression):
(50 × 1000000 × 15) ÷ 8 ÷ 1024 ÷ 1024