Lesson 5: Bandwidth, Latency, and Throughput Explained
These three terms are critical metrics used to measure the performance and capacity of a network connection.
1. Bandwidth (Capacity)
Bandwidth is the maximum amount of data that can pass through a communication channel (like a cable or wireless connection) per unit of time.
- Analogy: Think of bandwidth as the width of a water pipe. A wider pipe (more bandwidth) allows more water (data) to flow simultaneously.
- Units: Measured in bits per second (bps), often seen as Kbps (Kilobits), Mbps (Megabits), or Gbps (Gigabits).
2. Latency (Delay)
Latency is the time delay required for a data packet to travel from its source to its destination and back again (often measured as Round Trip Time, or RTT).
- Analogy: Latency is the time it takes for the water to travel the length of the pipe.
- Units: Measured in milliseconds (ms). Low latency (e.g., 10ms) is ideal for real-time applications like gaming or VoIP.
3. Throughput (Actual Performance)
Throughput is the measure of how much data is actually successfully transferred over a connection in a given period.
- Relationship: Throughput is always less than or equal to the total Bandwidth, as it is affected by factors like latency, network congestion, and packet loss.
- Analogy: If your pipe has a maximum capacity (Bandwidth) of 10 gallons per minute, but the water company only sends 8 gallons per minute due to low pressure (congestion), your Throughput is 8 gallons per minute.
mermaid graph TD A[Bandwidth: Max Capacity] --> B{Network Congestion?}; A --> C{Packet Loss?}; B --> D(Throughput: Actual Performance); C --> D; E[Latency: Time Delay] --> D;