Summary
- RFC 7252 specifies the Constrained Application Protocol, a specialised web transfer protocol for constrained nodes and constrained networks such as low-power, lossy ones.
- The nodes often have 8-bit microcontrollers with small ROM and RAM, while those networks often show high packet error rates and throughputs in the tens of kbit/s.
- CoAP keeps the request, the response, the URI and the method, runs over UDP, and fits its fixed header into four bytes.
Somewhere in a building, a sensor the size of a postage stamp is being asked whether a door is open. It runs on an 8-bit microcontroller, a few kilobytes of RAM, a radio that manages tens of kbit/s on a good day, and a battery that has to survive several winters. It has no room for a header stack, no room for a handshake, and no opinion whatsoever about fonts.
RFC 7252, published in June 2014, is what happens when someone takes the web's grammar — a client, a server, a URI, a method, a response code — and removes everything the web added for the convenience of humans. The Constrained Application Protocol keeps GET, POST, PUT and DELETE. It keeps media types. It keeps the idea that a resource has a name and that you can ask for it. What it drops is the assumption that anyone involved has bandwidth to waste.
The wire tells the story. CoAP's fixed header is four bytes. A 16-bit message ID and a token do the matching that connection state does elsewhere, and they do it per message rather than per connection. Messages come in four flavours — confirmable, non-confirmable, acknowledgement, reset — so reliability becomes a choice made message by message instead of a property of a pipe that has to be established first. A reading that can be lost is sent and forgotten. A command that cannot be lost is retransmitted until somebody answers. HTTP spends its first round trip saying hello. CoAP spends nothing on hello.
The design targets are the opposite of a browser's. Bytes matter more than features, and a request that fits in one datagram beats a handshake that guarantees ordering. Where HTTP assumes a fat pipe and a person waiting, CoAP assumes a thin pipe and a machine that will ask again.
What makes the specification worth reading as engineering rather than trivia is how little it tries to settle. CoAP defines a message layer, a request/response layer, and the rules for getting between them. Everything else arrived later, in separate documents, and became real only when implementations shipped it. RFC 7641 added Observe, so a client can subscribe to a resource instead of polling it. RFC 7959 added block-wise transfer, so a payload too large for one datagram can still cross the wire. Neither rewrote the base protocol. Neither needed anyone's permission to be useful. An endpoint that does not implement Observe still speaks CoAP, and an endpoint that does still talks to one that does not. The common layer stayed thin, and the extensions earned their place by being adopted rather than announced.
Then the traffic reaches a gateway, and every discarded assumption comes back at once. A CoAP-to-HTTP proxy has to translate methods, map response codes, terminate DTLS, hold state the constrained device was never asked to hold, and cache whatever it can. The gateway is where a network that counts bytes meets a network that counts features. It is also where the bill lands. The complexity does not disappear; it moves to whoever can afford it, and the cheap end of the network is paid for by the expensive end.
That is the honest way to read RFC 7252. It is not a smaller web. It is a deliberate decision about where the complexity should live, taken by people who had counted the bytes and did not like the answer.
Member Briefing
Read the full trend briefing
Members read the full briefing with the source notes behind every finding.
Strategic Circle
A daily briefing in your language, built from changes we have verified.
Join for USD 20/monthCancel anytime.
Members also get the full research library, a daily briefing on the networks they follow and the private forum.






