Transport Protocols
IoT transport protocols, UDP, TCP, DTLS, reliability, transport selection, protocol review
Your guide: Broker Bex
“A message with no subscriber is a tree falling in an empty forest — design the topic before the payload.”
Transport protocols define how application data moves between endpoints after network-layer addressing has found a path. In IoT systems, that choice affects message delivery behavior, connection state, retry design, security boundaries, and the evidence available during review.
Use this page as a route map. Start with the transport basics, then compare UDP and TCP, review reliability patterns, add DTLS where UDP traffic needs transport security, and finish with selection, optimization, labs, review chapters, and the knowledge check.
Start With One Flow
Before choosing a transport protocol, follow one device message from the sensor to the receiver that must act on it. Ask what happens if that message is late, duplicated, reordered, lost, or exposed to the wrong party. That single flow gives the rest of the module a practical spine: UDP, TCP, reliability, DTLS, optimization, and review evidence are all different ways of answering the same delivery question.
What You Will Learn
By the end of this module, you should be able to:
- explain the role of the transport layer in an IoT communication stack;
- compare UDP and TCP using delivery behavior, ordering, connection state, and application responsibility;
- identify when reliability belongs in the transport protocol, the application protocol, or the system design;
- describe what DTLS protects for UDP-based traffic and what it does not close by itself;
- choose transport options from message purpose, loss tolerance, latency sensitivity, payload size, security need, and review evidence;
- use labs and review chapters to turn protocol vocabulary into defensible design decisions.
Recommended Route
Follow this sequence if you are new to the module:
- Transport Protocols: Fundamentals
- Transport Overview Pass for a second overview before protocol-specific chapters
- User Datagram Protocol (UDP)
- Transmission Control Protocol (TCP)
- TCP vs UDP: Comparison and Selection
- Transport Layer Protocols for IoT
- TCP and UDP Fundamentals
- Transport Selection
- Transport Decision Framework
- Transport Selection and Scenarios
- TCP Optimizations and QUIC for IoT
- Transport Optimizations
- Transport Practical Apps
- Transport Plain English Guide
- Transport Scenarios & Pitfalls
- Transport Protocols: Hands-On Lab
- Reliability & Errors
- Error Detection: CRC and Checksums
- Retries & Sequence Numbers
- Connection Reliability Lab
- DTLS and Transport Security
- DTLS: Securing UDP for IoT
- DTLS Fundamentals and Architecture
- DTLS Handshake Protocols
- DTLS Attacks & Auth
- DTLS Performance and Implementation
- Transport Comprehensive Review
- Transport Protocol Selection
- Transport Overhead Analysis
- DTLS Security Architecture
- Transport Review: Knowledge Check
Choose A Starting Point
Use these entry points when you already know the design question:
- To build the basic vocabulary, start with Transport Protocols: Fundamentals, User Datagram Protocol (UDP), and Transmission Control Protocol (TCP).
- To compare UDP and TCP for a system design, use TCP vs UDP: Comparison and Selection, Transport Layer Protocols for IoT, and TCP and UDP Fundamentals.
- To decide which protocol fits a scenario, use Transport Selection, Transport Decision Framework, and Transport Selection and Scenarios.
- To reason about reliability evidence, use Reliability & Errors, Error Detection: CRC and Checksums, Retries & Sequence Numbers, and Connection Reliability Lab.
- To review UDP transport security, use DTLS and Transport Security, DTLS: Securing UDP for IoT, DTLS Fundamentals and Architecture, DTLS Handshake Protocols, DTLS Attacks & Auth, and DTLS Performance and Implementation.
- To practice and review decisions, use Transport Protocols: Hands-On Lab, Transport Comprehensive Review, Transport Protocol Selection, Transport Overhead Analysis, DTLS Security Architecture, and Transport Review: Knowledge Check.
Study Questions
As you work through the module, keep asking:
- What does the application need from the transport layer: unordered delivery, ordered delivery, retransmission, connection state, security, or minimal overhead?
- Which losses, duplicates, delays, or reordered messages can the application tolerate?
- Where is reliability handled: transport protocol, application protocol, message broker, device logic, or operator review?
- Which identity, confidentiality, integrity, replay, and key-management evidence is needed for this traffic?
- What must be measured or recorded before choosing an optimization?
- What evidence would justify revisiting the transport choice during review?
Concept Relationships
- UDP keeps transport behavior small, which shifts more responsibility to the application and review plan.
- TCP provides connection-oriented reliability and ordering, but its state and recovery behavior still need scenario review.
- Reliability design connects detection, retry, sequencing, deduplication, and application tolerance.
- DTLS adds transport security for UDP-based traffic, while endpoint authorization, application validation, and operational monitoring remain separate review topics.
- Optimization choices should follow observed constraints and protocol responsibilities, not a generic preference for a newer protocol.
- Labs and review chapters connect protocol terms to design evidence, failure modes, and defensible decisions.
What’s Next
Begin with Transport Protocols: Fundamentals, then use the route map above to move toward the protocol selection, reliability, DTLS, lab, review, and knowledge-check pages that match your current design question.