NETWORKING / A CONCEPT NOTE
Latency vs Bandwidth
why 'fast' means two things
Overview · mechanism
pitfall · examples
01 / THE SHORT VERSION
The idea in a few sentences.
Bandwidth is the width of the pipe (how many bytes per second); latency is the speed of light (how long a single round-trip takes). You can't outrun the speed of light.
02 / FOLLOW THE MECHANISM
How time vs space flows
Request
client triggers a request. A physical signal travels down cables to the server.
Latency
round-trip time (RTT, e.g., 100ms) limits how fast a single session can get a reply.
Bandwidth
once stream starts, host pushes massive data down the connection.
Throughput
is governed by both (TCP Window Size / RTT). High latency caps transfer speeds.
04 / COMMAND NOTES
Read the command, then the result.
Inspect the flags and arguments before trying an example. Snippets can need local setup, replacement values, or resources in your own environment.
check round-trip latency
ping -c 10 8.8.8.8test network bandwidth limits
iperf3 -c speedtest.server05 / CHECK YOURSELF
Could you explain Latency vs Bandwidth to a teammate?
Try it out loud in two sentences: what it is, and the one detail that changes the picture. If you stall, the gap is the part to reread.
Up next in NetworkingWebSocketskeeping a connection alive