Core Networking · Study deck
IoT Protocol Layers and Selection
A protocol is an agreed set of rules for an exchange.
Packet Pete is your guide for this deck.
After studying this chapter
Learning objectives
You will be able to:
- Explain: At each boundary, write the job: move bits, share the local link, name the sender and receiver, carry the message, protect it, route it to a service, and show the final result.
- Explain: A reference model earns its keep by naming duties a packet trace cannot show. Figure: The ITU view keeps the model compact keeps that list to four layers and two columns.
- Explain: Devices sense or act, the network carries what they produce, service support stores and processes it and offers it through APIs, and applications turn it into something a person uses.
Major section
Start With the Job of Each Protocol · Overview: Protocols Work as a Stack
Saying that the device is connected hides which rule or hand-off failed.
- At each boundary, write the job: move bits, share the local link, name the sender and receiver, carry the message, protect it, route it to a service, and show the final result.
- A gateway is a boundary device that may join unlike links or change message form.
Major section
Practitioner: Select the Stack from Constraints
Protocol selection should start with the system behavior, not a favorite protocol name.
- A practitioner asks what the device must send, how often, how far, under what power budget, through which gateway or service, and with what failure behavior.
- The narrow column beside them is the part teams skip.
- Choosing a verbose web stack because it is familiar.
- Assuming a dashboard click means the device changed state.
Major section
Under the Hood: Boundaries Create Failure Modes
The hard part of a protocol stack is often not the protocol syntax.
- Under the hood, every layer adds context and cost.
- Headers, acknowledgements, retransmissions, security wrappers, and gateway buffers are useful when they serve the requirement; they are waste when they hide responsibility or exceed the link budget.
- Each layer adds or removes facts around the data.
- A gateway may end one set of rules and start another when it changes a protocol.
Major section
Under the Hood: Boundaries Create Failure Modes (continued)
The layer names show where to look; they do not name an owner.
- At each handoff, record what came in, what went out, what was checked, what state was kept, and which fault reached the next layer.
- The message looks delivered, but command meaning, duplicate handling, or freshness is unclear.
- Reliability assumptions break when paths are lossy, sleepy, buffered, or translated.
- Address mapping, compression, fragmentation, or retries hide where packets are actually dropped.
Major section
Under the Hood: Boundaries Create Failure Modes (continued)
Address plan, adaptation context, frame fit, link acknowledgement, retry count, and channel evidence.
- Translation changes identity, time, quality, credentials, or failure visibility.
- Common pitfall: A protocol family name is not a deployed contract.
- Protocol Stack Review ChecklistBegin with the physical event, payload, receiver, and action the stack supports.
Major section
Worked End-to-End Stack Trace: Connected Tilt Maze
It decapsulates the Internet message all the way to its control application, validates freshness and limits, then creates a new local-link message for the Arduino.
- A fast command round trip does not prove low video latency, and smooth video does not prove that a stale motor command will be rejected.
- The command crosses the stack more than once because the Raspberry Pi is both an Internet endpoint and a local gateway.
Major section
IoT Reference Models
A layer picture helps only when each hand-off has an owner and evidence.
- OSI means Open Systems Interconnection, a model that separates network communication jobs.
- TCP means a connected byte stream that tracks order and loss.
- Telemetry means measurements and status sent from remote devices for review.
- This runway does not choose products or prove the full system.
Major section
IoT Reference Models (continued)
Break a hand-off, delay it, repeat it, restart one part, and keep the local safe response available.
- The deeper sections compare network models with IoT responsibility models and show how device, service, security, management, and human action fit together.
- An IoT reference model is not a poster to memorize.
- That shape is the argument.
Major section
IoT Reference Models (continued)
That sequence turns a flexible deployment—where one gateway may implement several roles—into explicit contracts.
- Each layer should explain a responsibility, an owner, and the evidence needed to know the system is still doing its job.
- The two vertical bars beside them are what makes this model different.
- An IoT reference model is not a product stack.
Major section
IoT Reference Models (continued)
A reference model earns its keep by naming duties a packet trace cannot show. Figure: The ITU view keeps the model compact keeps that list to four layers and two columns.
- Devices sense or act, the network carries what they produce, service support stores and processes it and offers it through APIs, and applications turn it into something a person uses.
- A design can pass every connectivity test and still have nobody named as the owner of updates or credentials.
- The ordered map connects technology selection to the deployment decision the message supports and exposes which failure boundaries still lack proof.
Major section
Summary · Key Takeaway
IoT communication is a stack of agreements, not one protocol name.
- Application, transport, network/adaptation, link, and physical layers each carry a different responsibility.
- Protocol selection should start from payload meaning, freshness, delivery behavior, range, power, gateway handoff, and operational ownership.
- Header overhead, retransmissions, security wrappers, and fragmentation are design costs that should be visible in the decision record.
Deck summary
Key takeaways
Saying that the device is connected hides which rule or hand-off failed.
- Protocol selection should start with the system behavior, not a favorite protocol name.
- The hard part of a protocol stack is often not the protocol syntax.
- The layer names show where to look; they do not name an owner.
- Address plan, adaptation context, frame fit, link acknowledgement, retry count, and channel evidence.
Retrieval practice
Recall check 1 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q1A team says, "We chose MQTT, so the network architecture is solved." What is the best response?
Show answer
Answer: C A stack choice is credible when the team names application meaning, transport behavior, addressing, link limits, security, gateway handoff, and layer evidence.
Retrieval practice
Recall check 2 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q2A battery sensor sends a small reading only occasionally through a local gateway. Which protocol-selection habit is strongest?
Show answer
Answer: D Constrained IoT stack selection should be driven by evidence about payload, freshness, link behavior, gateway handoff, and operations.
Retrieval practice
Recall check 3 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q3A gateway receives constrained-device messages on one side and publishes them to a cloud broker on the other. Which review record is most important?
Show answer
Answer: D Protocol-stack correctness depends on evidence at the boundaries where layers or gateways add, remove, or translate context.
Retrieval practice
Recall check 4 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q4Why do IoT teams use IoT reference models in addition to OSI or TCP/IP?
Show answer
Answer: A OSI and TCP/IP are still useful, but IoT reference models add the functional responsibilities that sit around the communication path.
Retrieval practice
Recall check 5 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q5A building gateway receives meter readings, rejects malformed payloads, summarizes normal readings locally, and sends alarms immediately to an operations service. What is the most useful reference-model review action?
Show answer
Answer: D A single product can span several model areas.
Retrieval practice
Recall check 6 of 6

Packet Pete says: answer from memory, then check your reasoning.
Q6A review document labels an IoT service-support layer as equivalent to the OSI session layer because both use the word service. What is the best correction?
Show answer
Answer: D Similar words across models can hide different meanings.
Print reference
Answers 1 of 2
Answer key.
- C · A stack choice is credible when the team names application meaning, transport behavior, addressing, link limits, security, gateway handoff, and layer evidence.
- D · Constrained IoT stack selection should be driven by evidence about payload, freshness, link behavior, gateway handoff, and operations.
- D · Protocol-stack correctness depends on evidence at the boundaries where layers or gateways add, remove, or translate context.
- A · OSI and TCP/IP are still useful, but IoT reference models add the functional responsibilities that sit around the communication path.
Print reference
Answers 2 of 2
Answer key.
- D · A single product can span several model areas.
- D · Similar words across models can hide different meanings.