Core Networking · Study deck

Network Performance Lab: Measurement Setup and Terms

A speed test number means little without packet size, path, load, and clock.

Packet Pete is your guide for this deck.

performance
Packet Pete, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Differentiate bandwidth from throughput: Explain why a 1 Mbps link may only deliver 100 Kbps of actual data due to protocol overhead and contention
  • Measure and interpret latency: Calculate round-trip time (RTT) and decompose its components (propagation, processing, queuing)
  • Demonstrate congestion effects: Apply network simulation to compare packet delivery under normal and overloaded traffic conditions
  • Calculate efficiency metrics: Compute goodput as a fraction of total transmitted data and compare protocol overhead ratios
iotclass.org

Major section

Start With the User-Visible Delay

The radio name sounds impressive, but the person still waits through a queue, a service call, and a slow device reply.

  • Bandwidth is the amount of data a link can carry in a set time.
  • Latency means delay from a starting event to a chosen finish.
  • A protocol is a shared set of message rules.
iotclass.org

Major section

Start With the User-Visible Delay (continued)

A single speed-test peak is not a service promise.

  • The lab cannot predict every future user or network.
  • The deeper sections separate delay, rate, loss, and variation so the team can fix the limiting step rather than blame the link label.
  • Network performance matters when a person, machine, or control loop notices the delay, loss, jitter, or throughput limit.
iotclass.org

Major section

In 60 Seconds

This ESP32 lab demonstrates why bandwidth, throughput, latency, and jitter are independent metrics.

  • A 1 Mbps link may deliver only 100 Kbps of useful data (goodput) due to protocol overhead and congestion.
iotclass.org

Major section

For Beginners: Network Performance

Network performance measures how quickly and reliably data moves between devices.

  • Think of it like measuring traffic flow on a road -- you care about speed (how fast cars go), throughput (how many cars pass per hour), and delays (how long you wait at intersections).
  • These same ideas apply when IoT sensors send data to the cloud.
iotclass.org

Major section

Overview: Performance Is A Measurement, Not A Link Label

A door sensor, vibration monitor, camera, and control loop can all share the word "network" while having different success criteria.

  • Those measurements can move in different directions.
  • A link can have high bandwidth and poor goodput if retransmissions dominate.
  • The tool names are less important than the measurement discipline.
iotclass.org

Major section

Overview: Performance Is A Measurement, Not A Link Label (continued)

A link can have acceptable average latency but unacceptable p95 latency if queues occasionally fill.

  • A link can deliver every packet and still fail a control task if the packets arrive after the decision deadline.
  • The overview lesson is that performance is a contract between the application and the path.
  • The path includes radio airtime, wired hops, queues, gateways, brokers, cloud services, and application processing.
iotclass.org

Major section

Practitioner: Build The Performance Evidence Record

For each run, capture packet size, payload size, packet rate, link condition, p50 and p95 latency, jitter range, loss rate, retransmissions, throughput, goodput, and the observed bottleneck.

  • Changing one variable at a time lets the evidence point to queueing, overhead, or loss instead of mixing all three.
  • Good practitioner notes use units and denominators.

Why it matters

That distinction matters in IoT because protocol headers, acknowledgements, security tags, keep-alives, retransmissions, and padding can all consume airtime without delivering new sensor data.

iotclass.org

Major section

Practitioner: Build The Performance Evidence Record (continued)

A path that looks healthy at 10 percent utilisation can fail near saturation, and a low average latency can hide p95 delays that break control loops or real-time dashboards.

  • Latency should say milliseconds and whether it is one-way or round-trip.
  • Loss should be lost packets over sent packets.
  • Throughput should be total delivered bits per second, while goodput should be useful application payload bits per second.
iotclass.org

Major section

Practitioner: Build The Performance Evidence Record (continued)

If loss rises during bursts, the fix may be backoff, buffering, or admission control.

  • The final line of the record is the engineering decision.
  • If p95 latency is above the control deadline, the fix may be lower packet rate, smaller payloads, local edge processing, a different radio setting, or a separate traffic class for control messages.
  • The lab should end with a decision tied to evidence, not a vague recommendation to use a faster network.
iotclass.org

Major section

Under the Hood: Queues Turn Load Into Delay

When offered load approaches the service rate, packets wait in buffers before they can be transmitted.

  • That queueing delay changes the distribution of latency, not just the average.
  • If buffers overflow, packet loss and retransmissions can add still more load.
  • The nominal bandwidth has not changed; the load relative to service has changed.

Why it matters

Wireless systems add another layer because contention and retries consume airtime.

iotclass.org

Major section

Under the Hood: Queues Turn Load Into Delay (continued)

LoRaWAN adds airtime and duty-cycle constraints.

  • The underlying reason is that a queue is a waiting room with a service rate.
  • If packets arrive slower than the link or processor can serve them, the queue drains between arrivals and delay stays bounded.
  • The under-the-hood lesson is to treat averages carefully.
iotclass.org

Major section

Under the Hood: Queues Turn Load Into Delay (continued)

TCP adds recovery and congestion-control behavior that can reduce send rate after loss.

  • If packets arrive at about the same rate they can be served, small bursts create waiting time.
  • If packets arrive faster than service for long enough, the queue grows until packets are dropped or deadlines are missed.
  • Each mechanism may be correct, but each one changes the useful payload delivered per unit time.
iotclass.org

Major section

Under the Hood: Queues Turn Load Into Delay (continued)

Wireless systems add another layer because contention and retries consume airtime.

  • The physical or radio link still has the same nominal capacity, but overhead, contention, retries, and queueing consume part of the path before useful application bytes arrive.
  • Average latency can hide a long tail, and the tail often decides whether an IoT workload is safe.
  • A dashboard may tolerate a late reading; a control loop may not.
iotclass.org

Major section

Large Dataset on a Fast Link

Radio astronomy systems are a useful reminder that "fast" is a relationship between data volume and time.

  • Using decimal storage units, a 10 TB data set is about $10 \times 10^{12}$ bytes.
  • The lesson is not that networks always beat physical transport.
iotclass.org

Deck summary

Key takeaways

The radio name sounds impressive, but the person still waits through a queue, a service call, and a slow device reply.

  • A single speed-test peak is not a service promise.
  • This ESP32 lab demonstrates why bandwidth, throughput, latency, and jitter are independent metrics.
  • Network performance measures how quickly and reliably data moves between devices.
  • A door sensor, vibration monitor, camera, and control loop can all share the word "network" while having different success criteria.
iotclass.org

Retrieval practice

Recall check

Packet Pete says: answer from memory, then check your reasoning.

Q1A LoRaWAN sensor transmits a 12-byte temperature reading. The total packet transmitted on the air is 29 bytes (12-byte payload + 13-byte MAC header + 4-byte MIC). What is the goodput efficiency of this transmission?

A100%, because successful packet delivery makes the full frame count as useful transferred data
B41.4%, because only 12 of the 29 transmitted bytes carry useful sensor data
C58.6%, because the 17-byte overhead is the dominant portion of the packet
D75%, because LoRaWAN is designed to be efficient for small payloads
Show answer

Answer: B

iotclass.org

Print reference

Answers

Answer key.

  1. B
iotclass.org