encyclopegia.org

Constrained Application Protocol

Constrained Application Protocol (CoAP) is a specialized UDP-based Internet application protocol for constrained devices, as defined in RFC 7252 (published in 2014). It enables those constrained devices called "nodes" to communicate with the wider Internet using similar protocols. CoAP is designed for use between devices on the same constrained network (e.g., low-power, lossy networks), between devices and general nodes on the Internet, and between devices on different constrained networks both joined by an internet. CoAP is also being used via other mechanisms, such as SMS on mobile communication networks. CoAP is an application-layer protocol that is intended for use in resource-constrained Internet devices, such as wireless sensor network nodes. CoAP is designed to easily translate to HTTP for simplified integration with the web, while also meeting specialized requirements such as multicast support, very low overhead, and simplicity. Multicast, low overhead, and simplicity are important for Internet of things (IoT) and machine-to-machine (M2M) communication, which tend to be embedded and have much less memory and power supply than traditional Internet devices have. Therefore, efficiency is very important. CoAP can run on most devices that support UDP or a UDP analogue. It serves as the basis for other Internet services, such as DNS over CoAP.…

Constrained Application Protocol (CoAP) is a specialized UDP-based Internet application protocol for constrained devices, as defined in RFC 7252 (published in 2014). It enables those constrained devices called "nodes" to communicate with the wider Internet using similar protocols. CoAP is designed for use between devices on the same constrained network (e.g., low-power, lossy networks), between devices and general nodes on the Internet, and between devices on different constrained networks both joined by an internet. CoAP is also being used via other mechanisms, such as SMS on mobile communication networks. CoAP is an application-layer protocol that is intended for use in resource-constrained Internet devices, such as wireless sensor network nodes. CoAP is designed to easily translate to HTTP for simplified integration with the web, while also meeting specialized requirements such as multicast support, very low overhead, and simplicity. Multicast, low overhead, and simplicity are important for Internet of things (IoT) and machine-to-machine (M2M) communication, which tend to be embedded and have much less memory and power supply than traditional Internet devices have. Therefore, efficiency is very important. CoAP can run on most devices that support UDP or a UDP analogue. It serves as the basis for other Internet services, such as DNS over CoAP. The Internet Engineering Task Force (IETF) Constrained RESTful Environments Working Group (CoRE) has done the major standardization work for this protocol. In order to make the protocol suitable to IoT and M2M applications, various new functions have been added. ==Message formats== CoAP makes use of two message types, requests and responses, using a simple, binary header format. CoAP is by default bound to UDP and optionally to DTLS, providing a high level of communications security. When bound to UDP, the entire message must fit within a single datagram. When used with 6LoWPAN as defined in RFC 4944, messages should fit into a single IEEE 802.15.4 frame to minimize fragmentation. The smallest CoAP message is 4 bytes in length, if the token, options and payload fields are omitted, i.e. if it only consists of the CoAP header. The header is followed by the token value (0 to 8 bytes) which may be followed by a list of options in an optimized type–length–value format. Any bytes after the header, token and options (if any) are considered the message payload, which is prefixed by the one-byte "payload marker" (0xFF). The length of the payload is implied by the datagram length. define COAP_HEADER_VERSION(data) ( (0xC0 & (data)[0]) >> 6 ) define COAP_HEADER_TYPE(data) ( (0x30 & (data)[0]) >> 4 ) define COAP_HEADER_TKL(data) ( (0x0F & (data)[0]) >> 0 ) define COAP_HEADER_CLASS(data) ( ((data)[1] >> 5) & 0x07 ) define COAP_HEADER_CODE(data) ( ((data)[1] >> 0) & 0x1F ) define COAP_HEADER_MID(data) ( ((data)[2] ==Active protocol implementations== ==Proxy implementations== There exist proxy implementations which provide forward or reverse proxy functionality for the CoAP protocol and also implementations which translate between protocols like HTTP and CoAP. The following projects provide proxy functionality: Squid 3.1.9 with transparent HTTP-CoAP mapping module jcoap Proxy Californium cf-proxy2 CoAPthon FreeCoAP libcoap ==Projects using CoAP== ==Inactive protocol implementations== ==CoAP group communication== In many CoAP application domains it is essential to have the ability to address several CoAP resources as a group, instead of addressing each resource individually (e.g. to turn on all the CoAP-enabled lights in a room with a single CoAP request triggered by toggling the light switch). To address this need, the IETF has developed an optional extension for CoAP in the form of an experimental RFC: Group Communication for CoAP - RFC 7390 This extension relies on IP multicast to deliver the CoAP request to all group members. The use of multicast has certain benefits such as reducing the number of packets needed to deliver the request to the members. However, multicast also has its limitations such as poor reliability and being cache-unfriendly. An alternative method for CoAP group communication that uses unicasts instead of multicasts relies on having an intermediary where the groups are created. Clients send their group requests to the intermediary, which in turn sends individual unicast requests to the group members, collects the replies from them, and sends back an aggregated reply to the client. ==See also== Internet of Things OMA Lightweight M2M Web of Things Static Context Header Compression (SCHC)

References

No reference rows published for this article.

Cite this article

MLA

"Constrained Application Protocol." encyclopegia.org, 2026, https://encyclopegia.org/wiki/constrained-application-protocol. Accessed 24 November 2026.

Chicago

"Constrained Application Protocol." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/constrained-application-protocol.

APA

encyclopegia.org. (2026). Constrained Application Protocol. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/constrained-application-protocol

Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date2014Wikipedia

Related articles

Border Gateway Protocol

stub · references available

Dynamic Host Configuration Protocol

stub · references available

Uqair Protocol of 1922

stub · references available

Extensible Provisioning Protocol

stub · references available

Montreal Protocol

stub · references available

Network News Transfer Protocol

stub · references available

Distributed Social Networking Protocol

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378631490 · 0.5 · snapshot enwiki-001378631490

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.