Article
Bit rate, bandwidth and latency
Two friends download the same game on the same day. One finishes in two minutes. The other waits twenty. The game is the same size, so what is different about their connections?
Bit rate and bandwidth
The bit rate of a connection is the number of bits it carries in one second. We measure it in bits per second. Because that number is usually very big, we use bigger units.
| Unit | Short name | Bits per second |
|---|---|---|
| Bit per second | bps | 1 |
| Kilobit per second | kbps | 1,000 |
| Megabit per second | Mbps | 1,000,000 |
| Gigabit per second | Gbps | 1,000,000,000 |
The bandwidth of a connection is the most data it can carry in a fixed amount of time. It is also measured in bits per second. Think of a road. Bandwidth is the number of lanes: more lanes let more cars pass each second. A connection with a bandwidth of 50 Mbps can carry up to 50 million bits every second.
The word "up to" matters. When the network is busy, or the server is slow, the real bit rate can be lower than the bandwidth.
How long does a download take?
If you know the size of a file and the bit rate, you can work out the time:
time in seconds = file size in bits / bit rate in bits per secondKeep the units matching. If the file size is in megabits, use megabits per second. If the file is given in bytes, change it to bits first. One byte is 8 bits. In this article, 1 megabyte (MB) is 1,000,000 bytes, so 1 MB is 8 megabits (Mb). Notice the capital B for bytes and the small b for bits.
Try this: cover the last column of the table and predict each time before you look.
| File size | Bit rate | Time |
|---|---|---|
| 80 megabits | 10 Mbps | 8 seconds |
| 80 megabits | 20 Mbps | 4 seconds |
| 80 megabits | 40 Mbps | 2 seconds |
| 160 megabits | 10 Mbps | 16 seconds |
Look for the pattern. Doubling the bit rate halves the time. Doubling the file size doubles the time.
Check your understanding
A file is 120 megabits in size. It is sent over a connection with a bit rate of 20 Mbps. Ignore latency. How long does the download take?
Latency is a different thing
Latency is the delay between sending data and its arrival at the receiver. It is measured in time, usually in milliseconds (ms). One millisecond is one thousandth of a second.
Go back to the road. Bandwidth is how many lanes there are. Latency is how long the road is, or how long the first car takes to arrive. A very wide road can still be very long.
| Bandwidth | Latency | |
|---|---|---|
| Question it answers | How much data per second? | How long until data starts to arrive? |
| Unit | Bits per second | Seconds or milliseconds |
| Big downloads depend on | A lot | A little |
| Video calls and online games depend on | Some | A lot |
A simple way to estimate a whole transfer is: latency, then the time to send the bits. So total time is roughly the latency plus (file size divided by bit rate).
Where the time goes
Request sent
latencyFirst bits arrive
size / bit rateLast bits arrive
Worked example: a download
Priya downloads a 50 MB file. Her bandwidth is 100 Mbps. Ignore latency.
- Change bytes to bits: 50 MB is 50 × 8 = 400 megabits.
- Divide by the bit rate: 400 megabits / 100 Mbps = 4 seconds.
A second case: a 600 MB video on a 20 Mbps connection.
- 600 × 8 = 4,800 megabits.
- 4,800 / 20 = 240 seconds, which is 4 minutes.
Now a very small message of 8,000 bits on a 100 Mbps connection. The sending time is 8,000 / 100,000,000 = 0.00008 seconds. If the latency is 80 ms (0.08 seconds), the delay is almost all latency. For small messages, latency matters more than bandwidth.
Check your understanding
Zoe has a 10 Mbps connection and wants a 2 GB game to download faster. Which change helps the most?
Common mistakes
- Mixing up Mb and MB. A megabyte is eight times as big as a megabit. Convert before you divide.
- Dividing the wrong way round. The time is size divided by rate, not rate divided by size.
- Thinking bandwidth is a speed of travel. Bandwidth tells you how much data fits through each second. It does not say how fast one bit moves.
- Thinking you always get the full bandwidth. It is the maximum, and the real rate is often lower.
- Fixing the wrong problem. More bandwidth speeds up big downloads. It does little for a laggy video call, which needs lower latency.
On the exam
Exam questions give simple numbers so you can divide by hand, and the units are usually already matching. Read the units carefully. Then ask whether the situation is about moving a lot of data (bandwidth) or about waiting for a reply (latency).
Key words
Bit rate: the number of bits sent or processed per unit of time. Bandwidth: the maximum amount of data a connection can carry in a fixed time, in bits per second. Mbps: megabits per second, 1,000,000 bits per second. Latency: the delay before data arrives, in time units such as milliseconds.