Chapters

15 Transport Review: Knowledge Check

Start With the Review Scenario

Use this knowledge check as a review room for one transport decision at a time. For each question, identify the message purpose, loss tolerance, overhead cost, security boundary, and evidence that would justify the answer in a real deployment. The correct option should feel like a bounded design record, not just a remembered protocol fact.

15.1 In 60 Seconds

This knowledge check validates your transport protocol understanding through scenario-based quiz questions, overhead calculations, and battery life analysis. Key problems include comparing UDP vs TCP radio on-time for environmental sensors (1.3ms vs 13.3ms per transmission, yielding 45.5 vs 8.6 years battery life) and evaluating protocol choices for industrial monitoring, smart agriculture, and fleet tracking deployments.

15.2 Learning Objectives

By the end of this chapter, you will be able to:

  • Validate understanding: Test transport protocol knowledge through quiz questions
  • Apply concepts: Solve scenario-based protocol selection problems
  • Calculate overhead: Work through battery life and efficiency calculations
  • Analyze trade-offs: Evaluate protocol options for different IoT deployments

15.3 Prerequisites

Required Chapters:

Estimated Time: 45 minutes

15.4 Understanding Check: Battery Life Impact

Understanding Check: Battery Life Impact in Environmental Monitoring

Scenario: You’re designing a sensor network for a national park with 5,000 environmental sensors. Each sensor transmits a 10-byte temperature/humidity reading every 10 seconds using an nRF52840 module. You have two protocol choices: UDP fire-and-forget or TCP with full connection establishment.

Think about:

  1. How would you calculate the radio on-time difference between these approaches?
  2. For environmental data where occasional packet loss is acceptable, which design better serves the deployment’s 5-year maintenance cycle?

Key Insight: With UDP fire-and-forget, radio on-time is ~1.3 ms per transmission (24 bytes at 250 kbps) versus TCP’s ~13.3 ms (244 bytes including handshake/teardown). This 10× difference translates to UDP achieving 45.5 years battery life versus TCP’s 8.6 years—a 5.3× improvement.

Verify Your Understanding:

  • When would the guaranteed delivery of TCP justify its 5× battery life penalty?
  • For which IoT applications is occasional environmental data loss acceptable versus unacceptable?
Click to reveal answer

Answer: A) Design A (UDP): 1.3 ms radio time, 45.5 years battery | Better: Lower overhead

Explanation:

Step 1: Calculate Packet Sizes (with 6LoWPAN compression)

UDP Packet:

IPv6 header (6LoWPAN compressed): 6 bytes
UDP header: 8 bytes
Payload: 10 bytes
Total: 24 bytes

Overhead: 14 bytes / 24 bytes = 58% overhead
Payload efficiency: 10 bytes / 24 bytes = 42%

TCP Packet (full connection):

Handshake (SYN, SYN-ACK, ACK): 3 × 26 bytes = 78 bytes
Data packet: 6 (IPv6) + 20 (TCP) + 10 (payload) = 36 bytes
ACK: 6 (IPv6) + 20 (TCP) = 26 bytes
Teardown (FIN, ACK, FIN, ACK): 4 × 26 bytes = 104 bytes

Total per transmission: 78 + 36 + 26 + 104 = 244 bytes

Overhead: 234 bytes / 244 bytes = 96% overhead
Payload efficiency: 10 bytes / 244 bytes = 4%

Summary: For battery-powered environmental sensors with frequent transmission (every 10 sec), UDP is vastly superior due to 5× longer battery life. TCP’s reliability benefits don’t justify the 81% battery life reduction for non-critical telemetry data. If reliability is needed, use UDP with CoAP Confirmable messages for better performance than TCP.

15.5 Understanding Check: Protocol Selection

Understanding Check: Protocol Selection Trade-offs

Scenario: You’re consulting for four different IoT deployments, each with distinct requirements for reliability, latency, power, and security.

Smart Door Lock (Battery, Security-Critical):

  • Think about: Would TCP’s handshake overhead consume excessive battery for 10 daily operations?
  • Trade-off: Can UDP+DTLS with CoAP Confirmable provide reliability without TCP’s power cost?

Industrial Sensors (200 Devices, Wired Power, High Frequency):

  • Think about: With 0.1% loss tolerance and no security needs, does TCP’s overhead justify the reliability?
  • Trade-off: How does UDP’s stateless operation benefit 200 concurrent sensor streams?

Firmware Updates (500 KB, Monthly, Critical Reliability):

  • Think about: Why is TCP’s guaranteed in-order delivery non-negotiable for firmware?
  • Trade-off: For infrequent large transfers, when does TCP overhead become acceptable?

Video Surveillance (Real-time, Encrypted, Frame Loss OK):

  • Think about: Why would TCP’s retransmission of old frames harm real-time video?
  • Trade-off: How does UDP+DTLS avoid head-of-line blocking while maintaining security?

Key Insight: In this example, smart locks and real-time video use UDP+DTLS, simple sensors use UDP where loss is acceptable, and firmware uses TCP+TLS for ordered delivery. Test lock energy and acknowledgements; do not claim a universal 5× saving.

Click to reveal answer

Answer: C) A→UDP+DTLS, B→UDP, C→TCP+TLS, D→UDP+DTLS

Decision Matrix Summary:

System   Reliability  Latency    Power       Security   Protocol
----------------------------------------------------------------
Lock     Critical*    <200ms     Battery     Required   UDP+DTLS
Sensors  0.1% loss OK Real-time  Mains       None       UDP
Firmware 100%         Background Acceptable  Required   TCP+TLS
Video    Frame loss OK <100ms    Mains       Required   UDP+DTLS

* Reliability via CoAP Confirmable (application layer)

Key Takeaway: Protocol selection requires analyzing reliability, latency, power, and security together. No single protocol optimal for all scenarios.

15.6 Quiz 1: TCP vs UDP Overhead

Quiz 1: Question 1: TCP vs UDP Overhead and Battery Life Impact

The answer becomes easier to audit when the acknowledgement and retransmission behavior are followed as a sequence rather than remembered as protocol labels. Inspect Figure 15.1 before comparing the reliability claims in the answer choices.

CoAP Confirmable message sequence over UDP, including acknowledgement and bounded retransmission behavior.
Figure 15.1: CoAP Confirmable message sequence over UDP, including acknowledgement and bounded retransmission behavior.

Read the sequence diagram Figure 15.1 from the sender’s Confirmable message to the receiver’s acknowledgement. Then follow the timeout path that retransmits a missing exchange and compare it with the receiver’s message-ID handling for duplicates. The sequence connects lightweight reliability to explicit application-layer state: UDP still carries datagrams, while CoAP supplies the bounded acknowledgement, retry, and deduplication behavior the alarm flow requires.

Why this works:

  • Reliability: CON messages retransmitted until ACK (max 4-5 attempts)
  • Ordering: Message ID allows receiver to sequence events
  • Deduplication: Receiver tracks processed IDs, ignores duplicates
  • Efficiency: Only retransmit lost messages (not all like TCP)
  • Stateless: No persistent connection state

Why NOT other answers:

  • A: Unacceptable for critical alarms
  • B: Can’t disable TCP congestion control easily, still has connection overhead
  • D: Wastes 5× bandwidth, no confirmation of delivery

15.7 Quiz 2: DTLS Handshake and Session Resumption

Question 3: DTLS Handshake Overhead and Session Resumption

A smart city deploys 10,000 parking sensors. Each sensor:

  • Reports parking status every 30 seconds
  • Uses NB-IoT cellular (RTT = 200 ms)
  • Assume the radio draws a constant 200 mW for the whole 600 ms full handshake or 200 ms resumption window.
  • Security required: DTLS with Pre-Shared Key (PSK)
  • Battery: 5 Ah (capacity alone is insufficient to establish battery life)

The network architect proposes two DTLS strategies:

Strategy 1: Full DTLS handshake for every transmission

  • Handshake: 6 messages, 620 bytes, 3 RTT (600 ms)
  • Data record: 10 bytes payload + 13 bytes DTLS overhead

Strategy 2: DTLS session resumption (abbreviated handshake)

  • Initial handshake: 620 bytes, 600 ms (once at deployment)
  • Resumption: 200 bytes, 1 RTT (200 ms) when session expires (every 24 hours)
  • Data record: 10 bytes payload + 13 bytes DTLS overhead

Under the stated constant-power simplification, compare energy per full handshake and resumption; what is the saving?

A) Strategy 1: 120 mJ/handshake B) A full handshake uses 120 mJ and a resumption uses 40 mJ, a 67% reduction. C) Both strategies use the same energy per handshake D) Resumption uses more energy than a full handshake

Click to reveal answer

Answer: B) A full handshake uses 120 mJ and a resumption uses 40 mJ, a 67% reduction.

Key Insights:

  1. Session resumption saves 67% of the modeled handshake energy (120 µJ → 40 µJ), using the energy units stated in the question..
  2. This is a handshake-energy comparison only; it does not establish battery life without a complete electrical budget.

Answer B is correct under the stated constant-power simplification: the comparison covers handshake energy only, not total device battery life.

Quiz 2: Question 5: DTLS Packet Overhead

The arithmetic is only defensible when every wrapper is assigned to the correct layer. Use Figure 15.2 to inspect the encapsulation stack before accepting a total transmission size.

DTLS packet encapsulation layers surrounding a 50-byte application payload.
Figure 15.2: DTLS packet encapsulation layers surrounding a 50-byte application payload.

Read the flowchart Figure 15.2 from the 50-byte application payload outward. Add the 29-byte DTLS record total, the 8-byte UDP header, and the 20-byte IPv4 header once each; this gives a 107-byte IP packet. Keep link-layer framing outside this network-layer total.

Actual calculation:

  • Application data: 50 bytes
  • DTLS record: +29 bytes (13-byte header, 8-byte explicit nonce, 8-byte integrity check)
  • UDP header: +8 bytes
  • IPv4 header: +20 bytes
  • IP packet total: 107 bytes; link-layer framing is excluded

Answer B (107 bytes) counts the 29-byte DTLS record overhead, UDP header, and IPv4 header once each; link-layer framing is excluded.

Quiz 2: Question 6: DTLS Session Resumption
Quiz 2: Question 9: DTLS Cookies

15.8 Quiz 3: Comprehensive Review

15.9 Summary

Key concepts tested in this knowledge check:

Read the results as one selection argument rather than five isolated facts. Requirements determine whether loss is tolerable, which transport or higher-layer reliability behavior fits, where DTLS session state changes the energy cost, and how wrapper bytes alter the battery estimate. The points below should therefore be explained with the message flow and receiver consequence that made each answer correct.

  • Protocol selection depends on reliability, latency, power, and security requirements
  • UDP excels for frequent small transmissions with tolerable loss
  • TCP is essential for large reliable transfers like firmware updates
  • DTLS session resumption dramatically reduces security overhead for IoT
  • Overhead calculations directly impact battery life predictions

15.10 What’s Next

Having completed the transport protocols review:

Continue according to the next layer in the same message path. Topology explains how endpoints are arranged, MQTT develops publish-subscribe behavior over TCP, CoAP develops constrained request-response behavior over UDP, and DTLS deepens the protected-datagram boundary. Carry the quiz’s reliability, latency, energy, and security assumptions forward so the next protocol chapter tests rather than resets the decision.

  • Topologies: Network structures and their trade-offs for IoT deployments
  • MQTT Protocol: Publish-subscribe messaging built on TCP
  • CoAP Protocol: RESTful communication over UDP for constrained devices
  • DTLS and Security: Deep dive into securing UDP-based IoT protocols

Hi, I’m Packet Pete. What do you need?

Find help

Let’s find what you need

Find a lesson or return to your module guide.

Give feedback

Help improve this chapter

Tell us what helped or what needs fixing.

Tips

Try a small next step

A few ways to get more from this chapter.

Ask AI

Continue the conversation

Take the conversation further with your preferred assistant.

AI help is available in supported modules when enabled in Settings.

No live person answers on independent study. Feedback does not promise a personal reply.

For welfare or safety concerns, follow your school’s procedures outside IoTClass.