The Efficiency Claim Reduces to Counting Bytes
The Efficiency Claim Reduces to Counting Bytes
Ada re-derives this chapter’s own numbers step by step, at full precision
ADA · CALCULATION AUDIT
The Efficiency Claim Reduces to Counting Bytes
The chapter states a 9.4x overhead ratio between a 45-byte CoAP message and a 425-byte HTTP one, and claims it “translates directly to a 9.4x difference in radio energy.” Since only 5 of those 45 CoAP bytes are the actual reading, nearly the whole message is protocol overhead. This audit asks whether the energy calculation adds anything, or whether the efficiency claim simply reduces to counting bytes.
Companion to the chapter CoAP Methods and Multicast — every number here comes from that chapter.
The chapter states a 9.4x overhead ratio between a 45-byte CoAP message and a 425-byte HTTP one, and claims it “translates directly to a 9.4x difference in radio energy.” Since only 5 of those 45 CoAP bytes are the actual reading, nearly the whole message isprotocol overhead. Calculate this case.
This audit asks whether the energy calculation adds anything, or whether the efficiency claim simply reduces to counting bytes. Check shows this.
The design meaning is that the whole CoAP-versus-HTTP energy argument collapses to a single question — how many bytes leave the antenna — because for a tiny, infrequent reading the payload is a rounding error and the header is the bill. Check confirms it.
See the relationship before changing it
The figure reads from left to right. The blue input is http message size. The middle card names the page’s rule. The green output is energy ratio versus 45-byte coap. The arrow matters: change the input, apply the rule once, then read the result with its unit.
Derive the baseline in four named moves
- 1
Name the input. The chapter baseline is 425 bytes.
- 2
Name the relationship. ratio = HTTP bytes / 45 CoAP bytes
- 3
Substitute with units. 425 / 45 = 9.44 times
- 4
Read the result. Keep the unit beside the value, then use the result only inside the technical boundary below.
Predict, then change http message size
Try Predict how energy ratio versus 45-byte coap responds when http message size moves. Calculate http message size; compare energy ratio versus 45-byte coap with that prediction.
Observe Return to 425 bytes. Recheck energy ratio versus 45-byte coap with http message size at its chapter value.
Explain Common current, voltage, count, and rate terms cancel.
Check yourself
What should you do before trusting a moved-slider result?
What does this small model leave out?
Technical boundaries
Beyond the scope of “The Efficiency Claim Reduces to Counting Bytes” sit link-layer framing, IP fragmentation, security overhead, retransmissions, multicast loss, or server processing; “The Efficiency Claim Reduces to Counting Bytes” therefore reports only its named fixtures.
Ada: The panel above makes a strong claim — that a 9.4x overhead ratio “translates directly to a 9.4x difference in radio energy.” I want to check whether the energy calculation adds anything, or whether it just re-states the byte count.
Confirm the two message sizes first:
- CoAP:
4 + 8 + 28 + 5 = 45 bytes - HTTP:
200 + 40 + 5 + 180 = 425 bytes
Now the daily energy, at 1000 readings, 200 mA, 3 V, 250 kbps:
- CoAP:
1000 x (45 x 8 / 250000) x 0.2 x 3 = 0.864 J/day - HTTP:
1000 x (425 x 8 / 250000) x 0.2 x 3 = 8.16 J/day - Ratio:
8.16 / 0.864 = 9.444
That ratio is identical to the byte ratio 425 / 45 = 9.444, and it is no coincidence: every other term in the energy formula — the reading count, the current, the voltage, the link rate — is the same for both protocols, so it cancels, and the energy ratio can only be the on-wire byte ratio. The battery-life figures ride the same line: 2430 / 0.864 = 2812 days is 7.7 years, and 2430 / 8.16 = 298 days is 0.8 years.
One more number exposes where the bytes go. The actual reading is 5 bytes of a 45-byte CoAP message — 5 / 45 = 11.1% — so nearly nine-tenths of every transmission is protocol overhead, not data.
The design meaning is that the whole CoAP-versus-HTTP energy argument collapses to a single question — how many bytes leave the antenna — because for a tiny, infrequent reading the payload is a rounding error and the header is the bill.
Every number above is taken from the chapter’s own material and re-derived step by step.