Application Protocols · Study deck

Modern HTTP: HTTP/2, HTTP/3, and Selection

Modern HTTP is the web stack learning to move many IoT conversations without reopening the road for every request.

Broker Bex is your guide for this deck.

httpmodern
Broker Bex, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain HTTP/2 Multiplexing: Describe how binary framing, stream multiplexing, and HPACK header compression reduce IoT gateway overhead by up to 76%
  • Evaluate HTTP/3 vs HTTP/2: Compare QUIC transport benefits against TCP-based HTTP/2 for mobile and cellular IoT deployments, justifying the choice based on network conditions
  • Select the Appropriate Protocol: Distinguish between HTTP/1.1, HTTP/2, and HTTP/3 based on device RAM constraints, network stability, and firewall policies
  • Configure Modern HTTP: Implement HTTP/2 and HTTP/3 settings for IoT gateways and cloud backends, including keep-alive tuning and QUIC server configuration
iotclass.org

Major section

In 60 Seconds

Telemetry is a time-linked record from a device.

  • Hypertext Transfer Protocol (HTTP) is a request-and-response method.
  • Transmission Control Protocol (TCP) is a delivery method that keeps an ordered byte stream.
  • User Datagram Protocol (UDP) sends separate units without that built-in stream.
  • Latency is the time data takes to arrive.
iotclass.org

Major section

In 60 Seconds (continued)

Constrained Application Protocol (CoAP) is a compact web-style method for small devices.

  • Message Queuing Telemetry Transport (MQTT) is a lightweight publish-and-subscribe method.
  • A gateway is a device or service that joins different system parts.
  • A newer version is not always a better fit.
  • This makes the trade clear before the team adds more features.
iotclass.org

Major section

Concurrent Data Transfers with HTTP/2 and HTTP/3

That's what HTTP/2 does - it's like a multi-lane highway!".

  • Meet the Sensor Squad!: Temperature Terry needs to send LOTS of messages to the Cloud Castle, but the old road is SO SLOW!
  • But the old road only has ONE lane!
  • Nobody has to wait!".
iotclass.org

Major section

Concurrent Data Transfers with HTTP/2 and HTTP/3 (continued)

The Problem: Sammy and 49 other sensors all want to send their readings to the Cloud Castle using HTTP/1.1.

  • "We have to wait in line FOREVER!" complains Sammy. "By the time my message arrives, the temperature has already changed!".
  • But what about when the road has potholes?".
  • Max explains HTTP/3: "HTTP/3 uses magic flying cars (QUIC)!
iotclass.org

Major section

HTTP/2: Multiplexing and Header Compression

The HTTP/2 side assigns telemetry, configuration, and firmware to separate logical streams whose frames share one secure connection.

  • That removes application-level queueing between requests, but the final note preserves an important limit: all frames still travel through one ordered TCP byte stream.

Why it matters

HTTP/1.1 repeats the example fields on every request; the first HTTP/2 request still sends them because both endpoints must establish matching table state.

HTTP/2 multiplexes independent application streams over one secure transport connection, while HTTP/1.1 often uses several connections or serial exchanges.
HTTP/2 multiplexes independent application streams over one secure transport connection, while HTTP/1.1 often uses several connections or serial exchanges.
iotclass.org

Major section

HTTP/2: Multiplexing and Header Compression (continued)

The repeated authorization and representation fields below can outweigh a tiny sensor value.

  • A later request can name indexed fields instead, reducing the example to roughly 15–30 bytes.
  • The saving therefore depends on connection reuse and repeated headers, linking HPACK’s benefit to the session choices in this chapter rather than to every isolated request.
  • HTTP/1.1 repeats the example fields on every request; the first HTTP/2 request still sends them because both endpoints must establish matching table state.
iotclass.org

Major section

Phoebe's Field Notes: Where the Battery-Life Number Behind the Calculator Comes From

The mathematical gist.: A 2000 mAh, 3.7 V battery carries 7.40 Wh by nameplate.

  • Separately, 2% monthly self-discharge leaves about 1570 mAh after a year.
  • Under HTTP/3, QUIC keeps those application streams independent, allowing telemetry to progress while the firmware stream waits.

Numbers to remember

3.7 V3.7 V battery carries 7.40 Wh by nameplate.
7.40 Wh3.7 V battery carries 7.40 Wh by nameplate.
2%2% monthly self-discharge leaves about 1570 mAh after a year.
iotclass.org

Major section

Protocol Selection Guide

The following decision flowchart helps you select the appropriate HTTP version (or alternative protocol) based on your IoT device constraints and network environment.

  • For an HTTP workload, many parallel exchanges favor HTTP/2 multiplexing; a client that changes networks in flight creates a specific case for HTTP/3 connection migration.
  • Existing HTTP/REST infrastructure must be preserved.

Numbers to remember

32KBDevices have sufficient memory (32KB+ RAM for TLS+HTTP/2 stack).
HTTP Protocol Selection Decision Tree for IoT Applications
HTTP Protocol Selection Decision Tree for IoT Applications
iotclass.org

Major section

Protocol Selection Guide (continued)

The remaining stable, simple path can use HTTP/1.1 with keep-alive.

  • Devices have sufficient memory (32KB+ RAM for TLS+HTTP/2 stack).
  • Connection reuse is possible (persistent connection to backend).
  • Simple request-response suffices (use CoAP instead).
  • UDP is blocked by network (enterprise firewalls).
iotclass.org

Deck summary

Key takeaways

Telemetry is a time-linked record from a device.

  • Constrained Application Protocol (CoAP) is a compact web-style method for small devices.
  • That's what HTTP/2 does - it's like a multi-lane highway!".
  • The Problem: Sammy and 49 other sensors all want to send their readings to the Cloud Castle using HTTP/1.1.
  • The HTTP/2 side assigns telemetry, configuration, and firmware to separate logical streams whose frames share one secure connection.
iotclass.org

Retrieval practice

Recall check

Broker Bex says: answer from memory, then check your reasoning.

Q1A sensor sends repeated headers over a reused HTTP/2 connection. Why can later requests have smaller headers?

AThey open fresh connections for repeated fields
BThey move the repeated headers into TCP
CThey reference fields in the shared header table
DThey omit the sensor measurement payload
Show answer

Answer: C HPACK establishes table state and later reuses indexed fields.

Q2A gateway loses a firmware packet while sending telemetry on another HTTP/3 stream. What behavior does the chapter predict?

ATelemetry progresses because radio loss is removed
BTelemetry can progress while firmware waits
CTelemetry must wait for the firmware gap
DThe firmware loss ends both application streams
Show answer

Answer: B QUIC keeps the application streams independent when one stream waits for missing data.

iotclass.org

Print reference

Answers

Answer key.

  1. C · HPACK establishes table state and later reuses indexed fields.
  2. B · QUIC keeps the application streams independent when one stream waits for missing data.
iotclass.org