Network bottlenecks
Quick answer
Network performance depends on throughput, latency, loss and queueing. A fast link does not guarantee fast application responses; inspect transport and application behavior in the same interval.
A link's rated speed is a ceiling, not the throughput guaranteed to one application. Application processing, retransmissions and round-trip delay can constrain useful delivery. Compare measurements at both endpoints during a controlled authorized test.
Prepare the practice environment
Run python3 lab-fixtures/performance/setup.py from the extracted root as an ordinary user. Enter the printed fresh private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. Run each snippet in a separate Bash process, not your interactive shell. Only private files are used; optional examples require an authorized snapshot VM. Do not change live monitoring or services. All supplied records are fictional; live read-only header checks do not retain measurements. Review the lab guide.
Prerequisites
Review: Disk latency and I/O.
How it works
For established TCP sockets, ss shows receive and send queues; listening socket queue columns have different meanings. A growing send queue may reflect congestion, a slow receiver or application behavior. A growing receive queue can indicate an application not consuming data promptly. Link statistics from ip -s link and driver-specific ethtool -S counters can reveal drops or errors, but counter meanings vary. Retransmissions may indicate loss or reordering; they do not prove a failing cable. Compare counter deltas, accounting scope and elapsed time. The fixture contains synthetic byte counters and queue sizes; it is not captured traffic. Use bits per second for link rates and distinguish decimal Mbit/s from binary MiB/s.
Try the examples
The counter increased by 2500000 bytes in two seconds; multiply by eight and divide by seconds and one million.
Expected stdout:
10.00 Mbit/sawk -F, 'NR>1 {print $1, "recv=" $2, "send=" $3}' sockets.csvBoth queues grew; investigate the receiver, sender and path before assigning cause.
Expected stdout:
start recv=0 send=0later recv=4096 send=65536ip -s link show dev lo | awk '/RX:/ {r=1} /TX:/ {t=1} END {if(r&&t) print "RX and TX present"}'Only field presence is retained, not actual traffic counts. Optional VM follow-up: compare ss -tin for your own test connection and ethtool -S on its authorized interface.
Expected stdout:
RX and TX presentCommon mistakes
Do not interpret every retransmission as physical failure or run traffic floods. Check application latency, counter deltas and queue trends first.
Practice
Calculate the link rate for an increase of 1000000 bytes in four seconds. Explain two possible causes of a growing receive queue and a safe observation to distinguish them.
Related references
Study: ss, ethtool. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Network bottlenecks — Knowledge Check
Apply performance-analysis concepts to synthetic fixtures and VM-only scenarios.
What does a growing TCP receive queue suggest?
One million bytes in four seconds is what rate?
What can retransmissions indicate?
Why compare counter deltas?