Bandwidth vs Latency
Bandwidth
- Bandwidth is the maximum amount of data a network connection can transfer per second.
- It is usually measured in Megabits per second (Mbps).
- Think of a highway:
- A highway with six lanes can carry more cars at the same time than a road with two lanes.
- More lanes represent higher bandwidth.
- For a 1 GB file, ideal download times are approximately:
- 100 Mbps: 80 seconds.
- 1 Gbps: 8 seconds.
- Higher bandwidth allows you to transfer more data per second.
Latency
- In the highway analogy, latency is the time one car takes to reach its destination, regardless of how many lanes the highway has.
- In networking, we often measure Round Trip Time (RTT): the time a signal takes to reach a server and return.
- In online gaming, an action with 20 milliseconds of latency reaches the server much faster than one with 200 milliseconds.
- A 1 Gbps wireless 5G connection can have higher latency than a 100 Mbps wired fiber connection.
- Latency depends on:
- Distance.
- Routing.
- Congestion.
- Processing delays.
- Latency does not depend on bandwidth alone.
Takeaway
- Bandwidth: how much data you can transfer per second.
- Latency: how quickly data travels across the network.