Separate latency, throughput and loss by measurement
Task
Introduce each of the three network impairments independently and measure how they differ, then show the relationship that confuses people: high latency limits throughput even when bandwidth is plentiful.
Steps
- Measure the baseline from host A: round-trip time and loss with
ping -c 200 -i 0.2 B, single-stream throughput withiperf3 -c B -t 30, and eight streams withiperf3 -c B -t 30 -P 8. Record inlab/net/impair.csv, one row per condition with columnscondition,rtt_ms,single_mbps,multi_mbps,loss_pct. - Add 100 ms of latency only -- no loss, no bandwidth limit. Re-measure all four and record. Note what happened to single-stream throughput despite the link being unchanged. A current Linux stack auto-tunes its window up to several megabytes, which covers 100 ms at a few hundred Mbit/s; if the drop is small on your link, add a row with
iperf3 -w 256K, a window an untuned or older host would use. - Remove the latency and add 1% packet loss only. Re-measure and record the effect on throughput.
- Remove the loss and impose a hard bandwidth cap. Re-measure and record how this looks different from the first two.
- With the 100 ms latency restored, compare single-stream against eight-stream throughput and write in
lab/net/impair.mdwhy parallel streams helped and why a bigger link would not have.
Verify
awk -F, 'NR>1 && NF>=4 {n++} END {print n" measurement set(s)"}' lab/net/impair.csv
grep -Eci 'window' lab/net/impair.md
grep -Eci 'parallel|multi.stream' lab/net/impair.md
grep -Eci 'loss' lab/net/impair.md
Four measurement sets, and the notes must explain the window/RTT relationship. A small amount of loss should hurt throughput out of proportion to its size -- if it did not, the transfer was too short to trigger congestion control.
This is an independent study companion for CompTIA Cloud+ CV0-004 and is not produced by or endorsed by CompTIA.