Design Methodology · Study deck

Network Traffic Analysis: Capture Points and Tools

A device trace and an RF trace expose different faults.

Blueprint Bina is your guide for this deck.

networktrafficanalysis
Blueprint Bina, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: A Nordic nRF Sniffer, TI SmartRF Packet Sniffer, or supported 802.15.4 capture dongle can expose frame timing, acknowledgements, route repair, and channel behavior, while gateway logs show what reached the IP side.
  • Explain: The useful facts are the CONNECT/CONNACK timing, PUBLISH cadence, keepalive interval, DNS lookup, TCP reconnects, and whether the observed payload size and report interval match the simulation input.
  • Explain: RF sniffer Wireless link evidence Use for 802.15.4, Thread, Zigbee, BLE, or other over-the-air behavior when gateway logs cannot show the radio exchange.
iotclass.org

Major section

Capture Points

Reading: Device Interface against: RF Sniffer clarifies the practical meaning of Capture point selection controls which parts of the network behavior are visible.

  • The first highlights: Device Interface, the second highlights: RF Sniffer, and the last uses: Gateway to locate a communication boundary.
  • Encrypted link payloads and missed channels can limit interpretation.
  • Application payloads are often encrypted or aggregated.
Capture point selection controls which parts of the network behavior are visible.
Capture point selection controls which parts of the network behavior are visible.
iotclass.org

Major section

Tool Roles

Wireshark Interactive protocol review Use for packet dissection, timeline inspection, stream following, field exploration, and training reviewers on what the trace shows.

  • tcpdump Remote packet capture Use on gateways, routers, Linux devices, and field systems where a lightweight command-line capture is practical.
  • Application logs Outcome correlation Use to connect packets with commands, alerts, dashboards, user events, and incident timelines.
Protocol-specific capture choices keep the tool matched to the question being reviewed.
Protocol-specific capture choices keep the tool matched to the question being reviewed.
iotclass.org

Major section

Tool Roles (continued)

tshark Repeatable extraction Use for scripted field extraction, test automation, CI checks, and producing repeatable summaries from PCAP files.

  • RF sniffer Wireless link evidence Use for 802.15.4, Thread, Zigbee, BLE, or other over-the-air behavior when gateway logs cannot show the radio exchange.
  • Flow logs Aggregate path evidence Use when packet payloads are unnecessary and the question is about endpoints, volume, timing, or backhaul behavior.
  • For: Tool Roles, that order makes Protocol-specific capture choices keep the tool matched to the question being reviewed a traceable decision.
iotclass.org

Major section

Reading a Trace

The strongest traffic analysis reports behavior, not just packets.

  • Periodic reports, keepalive timing, command timing, sleep/wake windows, and event bursts.
  • Mismatch between firmware timing and protocol expectations can cause disconnects or stale data.
  • Retransmissions, duplicate messages, acknowledgements, retry limits, backoff, and missing responses.
  • High retry behavior can indicate weak links, congestion, queueing, broker pressure, or application timeouts.

Why it matters

Encryption may limit content review but still allow timing, size, endpoint, and session analysis.

iotclass.org

Major section

Encryption and Evidence Limits

Modern IoT traffic is often encrypted.

  • Traffic analysis should be honest about what remains visible and what needs another evidence source.
  • Production secrets, private payloads, and customer data should not be exposed just for convenience.
  • Decrypted test captures when session keys or test certificates are intentionally available.
  • Traffic protected by production keys should remain controlled by security policy.
iotclass.org

Major section

Comparing Traffic With Simulation

Traffic analysis is especially useful after simulation because it tests whether modeled assumptions match a field or pilot system.

  • Checks whether the simulated workload matches real device behavior.
  • Checks whether recovery time and command freshness remain acceptable.
  • Commissioning, key rotation, diagnostics, firmware update, and support traffic.

Try it: Comparing Traffic With Simulation in the chapter

iotclass.org

Major section

Incremental Examples

A room sensor pilot reports stale occupancy events after several nodes rejoin.

  • A lab team wants to confirm that an ESP32 temperature node publishes every 60 seconds to a local Mosquitto broker.
  • The capture can run on the gateway or broker host with tcpdump, then be reviewed in Wireshark or summarized with tshark.
  • The traffic-analysis plan should combine an 802.15.4 sniffer, gateway logs, and application timestamps during a planned join wave.
iotclass.org

Major section

Incremental Examples (continued)

The useful facts are the CONNECT/CONNACK timing, PUBLISH cadence, keepalive interval, DNS lookup, TCP reconnects, and whether the observed payload size and report interval match the simulation input.

  • A Nordic nRF Sniffer, TI SmartRF Packet Sniffer, or supported 802.15.4 capture dongle can expose frame timing, acknowledgements, route repair, and channel behavior, while gateway logs show what reached the IP side.
  • The result should identify whether the stale event is caused by RF retries, route repair, gateway queueing, or broker/application delay.
  • A facilities program needs to compare a simulation with field evidence from Wi-Fi gateways, LoRaWAN devices, and cellular backhaul.
iotclass.org

Deck summary

Key takeaways

Reading: Device Interface against: RF Sniffer clarifies the practical meaning of Capture point selection controls which parts of the network behavior are visible.

  • Wireshark Interactive protocol review Use for packet dissection, timeline inspection, stream following, field exploration, and training reviewers on what the trace shows.
  • tshark Repeatable extraction Use for scripted field extraction, test automation, CI checks, and producing repeatable summaries from PCAP files.
  • The strongest traffic analysis reports behavior, not just packets.
  • Modern IoT traffic is often encrypted.
iotclass.org

Retrieval practice

Recall check 1 of 3

Blueprint Bina says: answer from memory, then check your reasoning.

Q1Place each traffic-analysis artifact where it lives so you can turn a packet trace into a bounded design action without weakening security or privacy.

ADesign Question
BCapture Plan
CPacket Evidence
DProtocol Review
EModel Comparison
FDesign Action
Show answer

Answer: A Place each traffic-analysis artifact where it lives so you can turn a packet trace into a bounded design action without weakening security or privacy.

iotclass.org

Retrieval practice

Recall check 2 of 3

Blueprint Bina says: answer from memory, then check your reasoning.

Q2A simulation predicts reliable alarm delivery, but the pilot shows occasional stale alarms after gateway reboot. Which traffic-analysis plan is strongest?

ACapture reboot traffic plus broker logs, then compare alarm timing to the simulation.
BCapture quiet baseline traffic and compare average message timing with the simulation.
CUse the pilot's observed alarm arrival times as the release evidence and retire the simulation comparison.
DInspect only a dashboard screenshot after the reboot is complete.
Show answer

Answer: A Traffic analysis is strongest when it captures the exact scenario window that produced the symptom and compares packet behavior with logs and simulation assumptions.

iotclass.org

Retrieval practice

Recall check 3 of 3

Blueprint Bina says: answer from memory, then check your reasoning.

Q3A packet capture shows TLS application data but no readable MQTT topics or payloads. What is the correct interpretation?

AUse it for timing, endpoints, handshakes, resets, and sizes; use approved logs for payloads.
BThe production device should disable TLS so Wireshark can read the payload.
CThe capture proves the MQTT payload is malformed.
DTreat encrypted packets as useless because they hide payloads, topics, timing, and endpoint metadata.
Show answer

Answer: A Encrypted traffic analysis must state evidence limits.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Place each traffic-analysis artifact where it lives so you can turn a packet trace into a bounded design action without weakening security or privacy.
  2. A · Traffic analysis is strongest when it captures the exact scenario window that produced the symptom and compares packet behavior with logs and simulation assumptions.
  3. A · Encrypted traffic analysis must state evidence limits.
iotclass.org