Packet Analysis: IoT Protocol Scenarios

Step through MQTT, CoAP, BLE, Zigbee, and HTTP packet traces and diagnose what each sequence proves

animation
packet-analysis
mqtt
coap
ble
zigbee
http
diagnostics
A guided IoT packet scenario analyzer for recognizing protocol-specific capture patterns, normal sequences, and common anomalies.
Animation IoT protocols Packet scenarios

IoT Protocol Scenario Analyzer

Step through protocol-specific packet traces. The goal is to recognize the normal sequence, spot where it breaks, and choose the next diagnostic check from capture evidence.

MQTTProtocol focus
CONNECTCurrent packet
Healthy sessionHealth signal
Verify keep-aliveNext action

IoT Protocol Scenario Workbench

Goal

Use packet order, direction, timing, and fields to decide whether an IoT protocol exchange is healthy.

Try First

Start with MQTT Session. Step through CONNECT, CONNACK, SUBSCRIBE, PUBLISH, and keep-alive packets.

Watch

The active packet changes the layer stack, key fields, byte signature, timeline, and diagnosis.

Why It Matters

Different IoT protocols fail differently. A good capture review checks the expected sequence before blaming the device.

Protocol Scenario

A healthy MQTT session has a visible connection handshake, subscription acknowledgement, publish traffic, and keep-alive exchange.

Playback

Captured Packets

Start from the first packet and verify that the next packet is the one the protocol expects.
CONNECT should be followed by CONNACKExpected sequence
Return code 0 means acceptedObserved evidence
Session setup is healthyWorking diagnosis

Layer Stack For Active Packet

Packet Details

Sequence Timeline

A healthy MQTT session moves from session setup to data transfer and keep-alive without repeated connects or missing acknowledgments.

Sequence First

Many IoT failures are visible in order: missing ACKs, repeated connection attempts, scan responses that never lead to connection, or joins that stop before device announce.

Direction Matters

Always check who sent the packet. Client-to-broker, central-to-peripheral, coordinator-to-device, and server-to-client directions have different meanings.

Fields Matter

Packet type, message ID, token, QoS, status code, RSSI, short address, and cluster ID usually explain the failure faster than payload text alone.

MQTT

  • CONNECT 0x10 should receive CONNACK 0x20.
  • QoS 1 PUBLISH expects PUBACK with the same packet identifier.
  • PINGREQ 0xC0 and PINGRESP 0xD0 prove keep-alive.

CoAP

  • CON messages require ACK or RST.
  • Repeated CON with the same Message ID indicates retransmission.
  • Tokens match request and response; Message ID handles reliability.

BLE and Zigbee

  • BLE discovery: ADV_IND, optional SCAN_REQ/RSP, CONNECT_IND, then GATT.
  • Zigbee join spans MAC association, NWK/APS security, ZDO announce, then ZCL reports.
  • Encrypted Zigbee payloads require keys before ZCL details are visible.

Practice 1

Choose CoAP Retransmission. Which field proves the repeated packets are retries rather than new readings?

Practice 2

Choose BLE Discovery. Which packet gives more device information than the advertisement alone?

Practice 3

Choose Zigbee Join. Where does the sequence move from joining into application-level reporting?

Related Study